u
This commit is contained in:
1 parent
f572dce2f6
commit
e99a9fb274
356 files changed
+28877
-1055
No files matched your search
@@ -0,0 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
// 最简用法:options 传原始值数组,选中值用 v-model 双向绑定
|
||||
import { ref } from 'vue'
|
||||
import { G3Segmented } from '@g3soft/ui'
|
||||
|
||||
const value = ref('list')
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<G3Segmented v-model="value" :options="['list', 'board', 'timeline']" />
|
||||
<p style="margin: 8px 0 0; font-size: 13px; color: #6b7280">当前视图:{{ value }}</p>
|
||||
</div>
|
||||
</template>
|
||||
Reference in new issue
Block a user