Fix bug and README.md update

This commit is contained in:
xiaoma
2021-09-18 17:49:04 +08:00
parent 531a31ee5d
commit d1635add5f
10 changed files with 60 additions and 12 deletions

View File

@@ -50,6 +50,11 @@
return { ...props, ...(unref(propsRef) as any) };
});
const subBtuText = computed(() => {
const { subBtuText } = propsRef.value as any
return subBtuText;
})
async function setProps(modalProps: Partial<ModalProps>): Promise<void> {
propsRef.value = deepMerge(unref(propsRef) || ({} as any), modalProps);
}