| | |
| | | :key="item.value + ''" |
| | | :disable-transitions="true" |
| | | :index="index" |
| | | :type="item.elTagType === 'primary' || item.elTagType === 'default' ? '' : item.elTagType" |
| | | :type="item.elTagType === 'primary' || item.elTagType === 'default' ? 'primary' : item.elTagType" |
| | | :class="item.elTagClass" |
| | | > |
| | | {{ item.label + ' ' }} |
| | |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { propTypes } from '@/utils/propTypes'; |
| | | |
| | | interface Props { |
| | | options: Array<DictDataOption>; |
| | | value: number | string | Array<number | string>; |
| | |
| | | import type * as ep from 'element-plus'; |
| | | declare global { |
| | | declare type ElTagType = 'success' | 'info' | 'warning' | 'danger' | ''; |
| | | declare type ElTagType = 'primary' | 'success' | 'info' | 'warning' | 'danger'; |
| | | declare type ElFormInstance = ep.FormInstance; |
| | | declare type ElTableInstance = ep.TableInstance; |
| | | declare type ElUploadInstance = ep.UploadInstance; |
| | |
| | | dictLabel: '', |
| | | dictValue: '', |
| | | cssClass: '', |
| | | listClass: '', |
| | | listClass: 'primary', |
| | | dictSort: 0, |
| | | remark: '' |
| | | }; |