修改菜单树无法展开问题

This commit is contained in:
guanj
2026-07-14 14:39:59 +08:00
parent b3d671a93e
commit d0d62ab0af
8 changed files with 99 additions and 79 deletions

View File

@@ -10,7 +10,7 @@ export default defineComponent({
required: true
},
size: {
type: String,
type: [String, Number],
default: '18px'
},
color: {
@@ -21,7 +21,7 @@ export default defineComponent({
setup(props) {
const iconStyle = computed((): CSSProperties => {
const { size, color } = props
let s = `${size.replace('px', '')}px`
const s = `${String(size).replace('px', '')}px`
return {
fontSize: s,
color: color