mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-14 23:12:51 +00:00
优化
This commit is contained in:
parent
330bf4deaa
commit
69180cbf6b
@ -82,6 +82,7 @@ const props = defineProps({
|
|||||||
type: String,
|
type: String,
|
||||||
default: "60%"
|
default: "60%"
|
||||||
},
|
},
|
||||||
|
formatter: Function,
|
||||||
|
|
||||||
// 多个内容展示
|
// 多个内容展示
|
||||||
tabs: Array as PropType<TabItem[]>,
|
tabs: Array as PropType<TabItem[]>,
|
||||||
@ -138,6 +139,10 @@ async function open(data?: string | TabItem[]) {
|
|||||||
data = props.modelValue;
|
data = props.modelValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (props.formatter) {
|
||||||
|
data = props.formatter(data);
|
||||||
|
}
|
||||||
|
|
||||||
if (props.tabs) {
|
if (props.tabs) {
|
||||||
list.value = props.tabs;
|
list.value = props.tabs;
|
||||||
onTabChange(0);
|
onTabChange(0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user