refactor: icon优化

Former-commit-id: efc04bf33433c06d7dea1f84c41ef83b06ff16f1
This commit is contained in:
haoxr
2023-01-15 12:55:13 +08:00
parent 3c38628218
commit af4fd8cb6a
12 changed files with 34 additions and 34 deletions

View File

@@ -14,7 +14,7 @@ const props = defineProps({
type: String,
default: 'icon'
},
iconName: {
iconClass: {
type: String,
required: false
},
@@ -27,7 +27,7 @@ const props = defineProps({
}
});
const symbolId = computed(() => `#${props.prefix}-${props.iconName}`);
const symbolId = computed(() => `#${props.prefix}-${props.iconClass}`);
</script>
<style scoped>