refactor: icon优化
Former-commit-id: efc04bf33433c06d7dea1f84c41ef83b06ff16f1
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user