CustomStyleSegmented.vue 590 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <el-segmented
  3. v-model="value"
  4. :options="options"
  5. v-bind="$attrs"
  6. style="
  7. --el-segmented-bg-color: #143D57;
  8. --el-segmented-item-selected-bg-color: #1CA7C8;
  9. --el-segmented-color: #fff;
  10. --el-segmented-item-hover-color: #fff;
  11. --el-segmented-item-active-bg-color: #0D507A;
  12. --el-segmented-item-hover-bg-color: #0D507A;"
  13. />
  14. </template>
  15. <script setup>
  16. const porps = defineProps({
  17. options: {
  18. type: Array,
  19. default: [ '在岗', '空闲' ]
  20. }
  21. })
  22. const value = defineModel()
  23. </script>
  24. <style lang="scss" scoped>
  25. </style>