fix 修复el-tag标签类型不一致问题
This commit is contained in:
parent
efeff40f2e
commit
9967a72e24
@ -15,7 +15,7 @@
|
|||||||
:key="item.value + ''"
|
:key="item.value + ''"
|
||||||
:disable-transitions="true"
|
:disable-transitions="true"
|
||||||
:index="index"
|
:index="index"
|
||||||
:type="item.elTagType === 'primary' || item.elTagType === 'default' ? '' : item.elTagType"
|
:type="item.elTagType === 'primary' || item.elTagType === 'default' ? 'primary' : item.elTagType"
|
||||||
:class="item.elTagClass"
|
:class="item.elTagClass"
|
||||||
>
|
>
|
||||||
{{ item.label + ' ' }}
|
{{ item.label + ' ' }}
|
||||||
@ -29,8 +29,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { propTypes } from '@/utils/propTypes';
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
options: Array<DictDataOption>;
|
options: Array<DictDataOption>;
|
||||||
value: number | string | Array<number | string>;
|
value: number | string | Array<number | string>;
|
||||||
|
2
src/types/element.d.ts
vendored
2
src/types/element.d.ts
vendored
@ -1,6 +1,6 @@
|
|||||||
import type * as ep from 'element-plus';
|
import type * as ep from 'element-plus';
|
||||||
declare global {
|
declare global {
|
||||||
declare type ElTagType = 'success' | 'info' | 'warning' | 'danger' | '';
|
declare type ElTagType = 'primary' | 'success' | 'info' | 'warning' | 'danger';
|
||||||
declare type ElFormInstance = ep.FormInstance;
|
declare type ElFormInstance = ep.FormInstance;
|
||||||
declare type ElTableInstance = ep.TableInstance;
|
declare type ElTableInstance = ep.TableInstance;
|
||||||
declare type ElUploadInstance = ep.UploadInstance;
|
declare type ElUploadInstance = ep.UploadInstance;
|
||||||
|
@ -169,7 +169,7 @@ const initFormData: DictDataForm = {
|
|||||||
dictLabel: '',
|
dictLabel: '',
|
||||||
dictValue: '',
|
dictValue: '',
|
||||||
cssClass: '',
|
cssClass: '',
|
||||||
listClass: '',
|
listClass: 'primary',
|
||||||
dictSort: 0,
|
dictSort: 0,
|
||||||
remark: ''
|
remark: ''
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user