feat: ObjectHorizontalElement tab UI refactor

This commit is contained in:
Alisa | Side.one 2023-05-07 09:32:23 +08:00
parent a64c28c6ee
commit 8774bcdf72

View File

@ -3,7 +3,8 @@ import DynamicComponent from './DynamicComponent.vue';
import { select } from './index';
import { ref} from 'vue'
const props = defineProps(['value']);
const tab = ref('');
const tab = ref(Object.keys(props.value)[0] || '');
const changeTab = (val: string) => {
tab.value = val;
};