+ {{ tabs_name }}
@@ -36,6 +37,10 @@ const props = defineProps({
type: String,
default: () => {},
},
+ tabsActive: {
+ type: String,
+ default: 'tabs',
+ },
});
const state = reactive({
@@ -43,7 +48,7 @@ const state = reactive({
new_content: props.content,
});
-const tabs_name = ref('tabs');
+const tabs_name = ref(props.tabsActive);
// 如果需要解构,确保使用toRefs
const { form, new_content } = toRefs(state);
const common_styles_update = (val: Object) => {