feat: tab页允许手动修改标题 新建流程改为tab页而不是弹框

This commit is contained in:
gaoyunqi
2024-02-05 11:27:33 +08:00
parent 445292105f
commit ec11057a12
7 changed files with 606 additions and 37 deletions

View File

@ -43,8 +43,9 @@
const { t } = useI18n();
const getTitle = computed(() => {
const { tabItem: { meta } = {} } = props;
return meta && t(meta.title as string);
const tabItem = props.tabItem as any;
const meta = tabItem.meta || {};
return tabItem.tabTitle || (meta && t(meta.title as string));
});
const getIsTabs = computed(() => !props.isExtra);