fix: 编辑器默认值

This commit is contained in:
JiangQiming 2023-01-04 14:03:10 +08:00
parent 3fbb1dd312
commit ebb0f58be5
2 changed files with 3 additions and 1 deletions

1
components.d.ts vendored
View File

@ -16,6 +16,7 @@ declare module '@vue/runtime-core' {
ADescriptions: typeof import('ant-design-vue/es')['Descriptions']
ADescriptionsItem: typeof import('ant-design-vue/es')['DescriptionsItem']
ADivider: typeof import('ant-design-vue/es')['Divider']
ADrawer: typeof import('ant-design-vue/es')['Drawer']
AForm: typeof import('ant-design-vue/es')['Form']
AFormItem: typeof import('ant-design-vue/es')['FormItem']
AInput: typeof import('ant-design-vue/es')['Input']

View File

@ -100,7 +100,7 @@ interface EmitProps {
const props = defineProps({
itemData: {
type: Object,
default: () => ({ type: 'geoPoint' }),
default: () => ({ type: 'object' }),
},
modelValue: {
type: [Number, String],
@ -167,6 +167,7 @@ const myValue = computed({
return props.modelValue;
},
set: (val: any) => {
objectValue.value = val;
emit('update:modelValue', val);
},
});