This commit is contained in:
oneao committed 2026-10-08 22:38:34 +08:00
1 parent f572dce2f6
commit e99a9fb274
356 files changed
+28877 -1055

No files matched your search

@@ -0,0 +1,19 @@
<script setup lang="ts">
// 对象形态:自定义 label、禁用某项、带图标
import { ref } from 'vue'
import { G3Segmented } from '@g3soft/ui'
import { AlignCenter, AlignLeft, AlignRight } from '@lucide/vue'
const value = ref('left')
const options = [
{ label: '左对齐', value: 'left', icon: AlignLeft },
{ label: '居中', value: 'center', icon: AlignCenter },
{ label: '右对齐', value: 'right', icon: AlignRight },
{ label: '两端对齐(未实现)', value: 'justify', disabled: true },
]
</script>
<template>
<G3Segmented v-model="value" :options="options" />
</template>