Commit 1fd90564543a738bf2f53f58e8006f9c36be6eea

Authored by xingyu
1 parent 6e49b199

feat: add defult coler

yudao-ui-admin-vue3/src/views/system/dict/dict.data.ts
@@ -34,44 +34,47 @@ export const crudSchemas = reactive<VxeCrudSchema>({ @@ -34,44 +34,47 @@ export const crudSchemas = reactive<VxeCrudSchema>({
34 title: '数据键值', 34 title: '数据键值',
35 field: 'value' 35 field: 'value'
36 }, 36 },
37 - {  
38 - title: '标签类型',  
39 - field: 'colorType',  
40 - form: {  
41 - component: 'Select',  
42 - componentProps: {  
43 - options: [  
44 - {  
45 - label: 'default',  
46 - value: ''  
47 - },  
48 - {  
49 - label: 'success',  
50 - value: 'success'  
51 - },  
52 - {  
53 - label: 'info',  
54 - value: 'info'  
55 - },  
56 - {  
57 - label: 'warning',  
58 - value: 'warning'  
59 - },  
60 - {  
61 - label: 'danger',  
62 - value: 'danger'  
63 - }  
64 - ]  
65 - }  
66 - },  
67 - isTable: false  
68 - }, 37 + // {
  38 + // title: '标签类型',
  39 + // field: 'colorType',
  40 + // form: {
  41 + // component: 'Select',
  42 + // componentProps: {
  43 + // options: [
  44 + // {
  45 + // label: 'default',
  46 + // value: ''
  47 + // },
  48 + // {
  49 + // label: 'success',
  50 + // value: 'success'
  51 + // },
  52 + // {
  53 + // label: 'info',
  54 + // value: 'info'
  55 + // },
  56 + // {
  57 + // label: 'warning',
  58 + // value: 'warning'
  59 + // },
  60 + // {
  61 + // label: 'danger',
  62 + // value: 'danger'
  63 + // }
  64 + // ]
  65 + // }
  66 + // },
  67 + // isTable: false
  68 + // },
69 { 69 {
70 title: '颜色', 70 title: '颜色',
71 field: 'cssClass', 71 field: 'cssClass',
72 isTable: false, 72 isTable: false,
73 form: { 73 form: {
74 - component: 'ColorPicker' 74 + component: 'ColorPicker',
  75 + componentProps: {
  76 + predefine: ['#ffffff', '#409eff', '#67c23a', '#e6a23c', '#f56c6c', '#909399', '#c71585']
  77 + }
75 } 78 }
76 }, 79 },
77 { 80 {