mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-04 13:42:27 +08:00
@@ -51,9 +51,9 @@
|
||||
});
|
||||
|
||||
const subBtuText = computed(() => {
|
||||
const { subBtuText } = propsRef.value as any
|
||||
return subBtuText;
|
||||
})
|
||||
const { subBtuText } = propsRef.value as any;
|
||||
return subBtuText || props.subBtuText;
|
||||
});
|
||||
|
||||
async function setProps(modalProps: Partial<ModalProps>): Promise<void> {
|
||||
propsRef.value = deepMerge(unref(propsRef) || ({} as any), modalProps);
|
||||
@@ -63,6 +63,7 @@
|
||||
return {
|
||||
...attrs,
|
||||
...unref(getProps),
|
||||
...unref(propsRef),
|
||||
};
|
||||
});
|
||||
|
||||
@@ -92,6 +93,7 @@
|
||||
|
||||
function handleSubmit() {
|
||||
subLoading.value = true;
|
||||
console.log(subLoading.value)
|
||||
emit('on-ok');
|
||||
}
|
||||
|
||||
@@ -106,7 +108,6 @@
|
||||
if (instance) {
|
||||
emit('register', modalMethods);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
|
||||
Reference in New Issue
Block a user