Files
workspace/code/g3soft-libs/docs/examples/segmented/basic.vue
T
2026-10-09 17:32:14 +08:00

12 lines
309 B
Vue

<script setup lang="ts">
// 最简用法:options 传原始值数组,选中值用 v-model 双向绑定
import { ref } from 'vue'
import { G3Segmented } from '@g3soft/ui'
const value = ref('list')
</script>
<template>
<G3Segmented v-model="value" :options="['list', 'board', 'timeline']" />
</template>