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