diff --git a/yudao-ui-admin-vue3/src/components/Icon/src/Icon.vue b/yudao-ui-admin-vue3/src/components/Icon/src/Icon.vue index 8c5ddede4..4c32f9bcf 100644 --- a/yudao-ui-admin-vue3/src/components/Icon/src/Icon.vue +++ b/yudao-ui-admin-vue3/src/components/Icon/src/Icon.vue @@ -15,7 +15,9 @@ const props = defineProps({ // icon color color: propTypes.string, // icon size - size: propTypes.number.def(16) + size: propTypes.number.def(16), + // icon svg class + svgClass: propTypes.string.def('') }) const elRef = ref(null) @@ -34,6 +36,11 @@ const getIconifyStyle = computed(() => { } }) +const getSvgClass = computed(() => { + const { svgClass } = props + return `iconify ${svgClass}` +}) + const updateIcon = async (icon: string) => { if (unref(isLocal)) return @@ -66,13 +73,13 @@ watch( diff --git a/yudao-ui-admin-vue3/src/layout/components/Breadcrumb/src/Breadcrumb.vue b/yudao-ui-admin-vue3/src/layout/components/Breadcrumb/src/Breadcrumb.vue index 47aa762fd..3b888fca9 100644 --- a/yudao-ui-admin-vue3/src/layout/components/Breadcrumb/src/Breadcrumb.vue +++ b/yudao-ui-admin-vue3/src/layout/components/Breadcrumb/src/Breadcrumb.vue @@ -53,7 +53,7 @@ export default defineComponent({ {meta?.icon && breadcrumbIcon.value ? ( <> - {t(v?.meta?.title)} + {t(v?.meta?.title)} ) : ( t(v?.meta?.title)