mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-15 02:40:46 +08:00
546b21ea82
* feat(components): [segmented] new component * feat(components): [segmented] * feat(components): update * feat(components): update * feat(theme-chalk): update * feat(components): update * feat: update * feat: update * feat(components): add focus-visible * feat(theme-chalk): update * feat(components): fix test * docs: docs * feat(components): update * feat: add icon
21 lines
496 B
Vue
21 lines
496 B
Vue
<template>
|
|
<div class="custom-style">
|
|
<el-segmented v-model="value" :options="options" />
|
|
</div>
|
|
</template>
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
|
|
const value = ref('Delicacy')
|
|
|
|
const options = ['Delicacy', 'Desserts&Drinks', 'Fresh foods', 'Supermarket']
|
|
</script>
|
|
|
|
<style scoped>
|
|
.custom-style .el-segmented {
|
|
--el-segmented-item-selected-color: var(--el-text-color-primary);
|
|
--el-segmented-item-selected-bg-color: #ffd100;
|
|
--el-border-radius-base: 16px;
|
|
}
|
|
</style>
|