fix: 编辑器默认值
This commit is contained in:
parent
3fbb1dd312
commit
ebb0f58be5
|
@ -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']
|
||||
|
|
|
@ -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);
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue