fix: 修复错误

This commit is contained in:
ganpeng
2022-06-01 13:57:02 +08:00
parent f20f4209a3
commit 873e0d3e43
5 changed files with 4 additions and 5 deletions

View File

@@ -5,7 +5,7 @@
<n-notification-provider>
<n-message-provider>
<MessageContent />
<slot slot="default"></slot>
<slot name="default"></slot>
</n-message-provider>
</n-notification-provider>
</n-dialog-provider>

View File

@@ -230,7 +230,6 @@
});
const { handleFormValues, initDefault } = useFormValues({
getProps,
defaultFormModel,
getSchema,
formModel,

View File

@@ -1,4 +1,4 @@
import { ComponentType } from '/types/index';
import { ComponentType } from './types/index';
/**
* @description: 生成placeholder

View File

@@ -41,7 +41,7 @@
const props = defineProps({ ...basicProps });
const emit = defineEmits(['on-close', 'on-ok', 'register']);
const propsRef = ref(<Partial<ModalProps> | null>null);
const propsRef = ref<Partial<ModalProps> | null>(null);
const isModal = ref(false);
const subLoading = ref(false);

View File

@@ -109,7 +109,7 @@
watch(
() => props.value,
() => {
imgList.value = props.value.map((item) => {
state.imgList = props.value.map((item) => {
return getImgUrl(item);
});
}