forked from cerc-io/cosmos-explorer
feat: ObjectHorizontalElement tab UI refactor
This commit is contained in:
parent
a64c28c6ee
commit
8774bcdf72
@ -3,7 +3,8 @@ import DynamicComponent from './DynamicComponent.vue';
|
|||||||
import { select } from './index';
|
import { select } from './index';
|
||||||
import { ref} from 'vue'
|
import { ref} from 'vue'
|
||||||
const props = defineProps(['value']);
|
const props = defineProps(['value']);
|
||||||
const tab = ref('');
|
const tab = ref(Object.keys(props.value)[0] || '');
|
||||||
|
|
||||||
const changeTab = (val: string) => {
|
const changeTab = (val: string) => {
|
||||||
tab.value = val;
|
tab.value = val;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user