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 = computed(() => {
|
||||||
const { subBtuText } = propsRef.value as any
|
const { subBtuText } = propsRef.value as any;
|
||||||
return subBtuText;
|
return subBtuText || props.subBtuText;
|
||||||
})
|
});
|
||||||
|
|
||||||
async function setProps(modalProps: Partial<ModalProps>): Promise<void> {
|
async function setProps(modalProps: Partial<ModalProps>): Promise<void> {
|
||||||
propsRef.value = deepMerge(unref(propsRef) || ({} as any), modalProps);
|
propsRef.value = deepMerge(unref(propsRef) || ({} as any), modalProps);
|
||||||
@@ -63,6 +63,7 @@
|
|||||||
return {
|
return {
|
||||||
...attrs,
|
...attrs,
|
||||||
...unref(getProps),
|
...unref(getProps),
|
||||||
|
...unref(propsRef),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -92,6 +93,7 @@
|
|||||||
|
|
||||||
function handleSubmit() {
|
function handleSubmit() {
|
||||||
subLoading.value = true;
|
subLoading.value = true;
|
||||||
|
console.log(subLoading.value)
|
||||||
emit('on-ok');
|
emit('on-ok');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,7 +108,6 @@
|
|||||||
if (instance) {
|
if (instance) {
|
||||||
emit('register', modalMethods);
|
emit('register', modalMethods);
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
|||||||
Reference in New Issue
Block a user