diff --git a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/component-container-property.vue b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/component-container-property.vue index 4ac5f3b7a..980cd82a4 100644 --- a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/component-container-property.vue +++ b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/component-container-property.vue @@ -27,7 +27,7 @@ const props = defineProps<{ modelValue: ComponentStyle }>(); const emit = defineEmits(['update:modelValue']); const formData = useVModel(props, 'modelValue', emit); -const treeData = [ +const treeData: any[] = [ { label: '外部边距', prop: 'margin', @@ -96,7 +96,7 @@ const treeData = [ }, ]; -const handleSliderChange = (prop: string) => { +function handleSliderChange(prop: string) { switch (prop) { case 'borderRadius': { formData.value.borderTopLeftRadius = formData.value.borderRadius; @@ -120,7 +120,7 @@ const handleSliderChange = (prop: string) => { break; } } -}; +}