@lingxiteam/theme-utils 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/config/Button.d.ts +10 -10
  2. package/dist/config/Button.js +21 -21
  3. package/dist/config/Card.d.ts +18 -18
  4. package/dist/config/Card.js +40 -40
  5. package/dist/config/Cascader.d.ts +20 -20
  6. package/dist/config/Cascader.js +37 -37
  7. package/dist/config/Checkbox.d.ts +6 -22
  8. package/dist/config/Checkbox.js +28 -28
  9. package/dist/config/CheckboxGroup.d.ts +7 -7
  10. package/dist/config/CheckboxGroup.js +13 -13
  11. package/dist/config/Collapse.d.ts +24 -18
  12. package/dist/config/Collapse.js +49 -43
  13. package/dist/config/Container.d.ts +3 -3
  14. package/dist/config/Container.js +12 -12
  15. package/dist/config/DatePicker.d.ts +16 -16
  16. package/dist/config/DatePicker.js +26 -26
  17. package/dist/config/Description.d.ts +11 -11
  18. package/dist/config/Description.js +13 -13
  19. package/dist/config/Form.d.ts +19 -8
  20. package/dist/config/Form.js +51 -22
  21. package/dist/config/Input.d.ts +4 -4
  22. package/dist/config/Input.js +14 -14
  23. package/dist/config/InputNumber.d.ts +4 -4
  24. package/dist/config/InputNumber.js +14 -14
  25. package/dist/config/MultipleSelect.d.ts +4 -4
  26. package/dist/config/MultipleSelect.js +14 -14
  27. package/dist/config/Radio.d.ts +13 -13
  28. package/dist/config/Radio.js +22 -22
  29. package/dist/config/RangePicker.d.ts +22 -22
  30. package/dist/config/RangePicker.js +33 -33
  31. package/dist/config/Select.d.ts +7 -7
  32. package/dist/config/Select.js +23 -23
  33. package/dist/config/StdUpload.d.ts +22 -31
  34. package/dist/config/StdUpload.js +40 -39
  35. package/dist/config/Switch.d.ts +9 -18
  36. package/dist/config/Switch.js +29 -28
  37. package/dist/config/Table.d.ts +47 -47
  38. package/dist/config/Table.js +71 -71
  39. package/dist/config/Tabs.d.ts +18 -18
  40. package/dist/config/Tabs.js +46 -46
  41. package/dist/config/Tag.d.ts +4 -4
  42. package/dist/config/Tag.js +10 -13
  43. package/dist/config/TextArea.d.ts +5 -5
  44. package/dist/config/TextArea.js +16 -16
  45. package/dist/config/TimePicker.d.ts +16 -16
  46. package/dist/config/TimePicker.js +26 -26
  47. package/dist/config/Tree.d.ts +7 -7
  48. package/dist/config/Tree.js +17 -17
  49. package/dist/config/TreeSelect.d.ts +20 -20
  50. package/dist/config/TreeSelect.js +30 -30
  51. package/dist/h5config/Accordion.d.ts +19 -19
  52. package/dist/h5config/Accordion.js +36 -36
  53. package/dist/h5config/Button.d.ts +9 -9
  54. package/dist/h5config/Button.js +20 -20
  55. package/dist/h5config/Card.d.ts +25 -25
  56. package/dist/h5config/Card.js +51 -51
  57. package/dist/h5config/DAddressPicker.d.ts +16 -24
  58. package/dist/h5config/DAddressPicker.js +32 -40
  59. package/dist/h5config/DCheckbox.d.ts +14 -22
  60. package/dist/h5config/DCheckbox.js +32 -40
  61. package/dist/h5config/DForm.d.ts +15 -15
  62. package/dist/h5config/DForm.js +44 -43
  63. package/dist/h5config/DMultiplePicker.d.ts +16 -24
  64. package/dist/h5config/DMultiplePicker.js +32 -40
  65. package/dist/h5config/DformDate.d.ts +16 -24
  66. package/dist/h5config/DformDate.js +32 -40
  67. package/dist/h5config/DformFile.d.ts +106 -20
  68. package/dist/h5config/DformFile.js +110 -27
  69. package/dist/h5config/DformImagePicker.d.ts +17 -17
  70. package/dist/h5config/DformImagePicker.js +25 -25
  71. package/dist/h5config/DformInput.d.ts +13 -13
  72. package/dist/h5config/DformInput.js +31 -31
  73. package/dist/h5config/DformInputNumber.d.ts +8 -8
  74. package/dist/h5config/DformInputNumber.js +24 -24
  75. package/dist/h5config/DformPicker.d.ts +16 -24
  76. package/dist/h5config/DformPicker.js +32 -40
  77. package/dist/h5config/DformRadio.d.ts +20 -20
  78. package/dist/h5config/DformRadio.js +40 -40
  79. package/dist/h5config/DformRangePicker.d.ts +22 -30
  80. package/dist/h5config/DformRangePicker.js +38 -46
  81. package/dist/h5config/DformSelect.d.ts +16 -24
  82. package/dist/h5config/DformSelect.js +32 -40
  83. package/dist/h5config/DformSwitch.d.ts +2 -10
  84. package/dist/h5config/DformSwitch.js +12 -20
  85. package/dist/h5config/DformTextArea.d.ts +13 -13
  86. package/dist/h5config/DformTextArea.js +31 -31
  87. package/dist/h5config/FilterItems.d.ts +12 -12
  88. package/dist/h5config/FilterItems.js +21 -21
  89. package/dist/h5config/Grid.d.ts +18 -18
  90. package/dist/h5config/Grid.js +29 -29
  91. package/dist/h5config/Icon.js +1 -1
  92. package/dist/h5config/NoticeBarPlus.d.ts +10 -10
  93. package/dist/h5config/NoticeBarPlus.js +15 -15
  94. package/dist/h5config/SearchView.d.ts +17 -17
  95. package/dist/h5config/SearchView.js +28 -28
  96. package/dist/h5config/StaticTabs.d.ts +2 -2
  97. package/dist/h5config/StaticTabs.js +22 -21
  98. package/dist/h5config/Table.d.ts +20 -10
  99. package/dist/h5config/Table.js +45 -33
  100. package/package.json +1 -1
@@ -2,42 +2,26 @@ export var TreeSelect = {
2
2
  type: 'TreeSelect',
3
3
  hasPrefixClass: true,
4
4
  variable: {
5
- iconFontSize: {
6
- type: 'px',
7
- label: '下拉图标尺寸',
8
- groupsName: '文字',
9
- desc: '请根据实际【文本尺寸】调整,不宜与【文本尺寸】大小差异过大'
10
- },
11
- iconColor: {
12
- type: 'color',
13
- label: '下拉图标颜色',
14
- groupsName: '文字'
15
- },
16
- iconTop: {
17
- type: 'px',
18
- label: '下拉图标距离顶部',
19
- groupsName: '文字'
20
- },
21
5
  labelTextColor: {
22
6
  type: 'color',
23
- label: '标题文本颜色',
24
- groupsName: '文字',
7
+ label: '标题颜色',
8
+ groupsName: '标题',
25
9
  desc: '继承自表单,此处不可编辑',
26
10
  canEdit: false,
27
11
  extendsKey: 'Form'
28
12
  },
29
- labelLineHeight: {
13
+ labelFontSize: {
30
14
  type: 'px',
31
- label: '标题文本行高',
32
- groupsName: '文字',
15
+ label: '标题尺寸',
16
+ groupsName: '标题',
33
17
  desc: '继承自表单,此处不可编辑',
34
18
  canEdit: false,
35
19
  extendsKey: 'Form'
36
20
  },
37
- labelFontSize: {
21
+ labelLineHeight: {
38
22
  type: 'px',
39
- label: '标题文本尺寸',
40
- groupsName: '文字',
23
+ label: '标题行高',
24
+ groupsName: '标题',
41
25
  desc: '继承自表单,此处不可编辑',
42
26
  canEdit: false,
43
27
  extendsKey: 'Form'
@@ -58,17 +42,17 @@ export var TreeSelect = {
58
42
  canEdit: false,
59
43
  extendsKey: 'Form'
60
44
  },
61
- itemBorderColor: {
62
- type: 'color',
63
- label: '边框颜色',
45
+ itemBorderRadius: {
46
+ type: 'px',
47
+ label: '圆角',
64
48
  groupsName: '边框',
65
49
  desc: '继承自表单,此处不可编辑',
66
50
  canEdit: false,
67
51
  extendsKey: 'Form'
68
52
  },
69
- itemBorderRadius: {
70
- type: 'px',
71
- label: '边框圆角',
53
+ itemBorderColor: {
54
+ type: 'color',
55
+ label: '颜色',
72
56
  groupsName: '边框',
73
57
  desc: '继承自表单,此处不可编辑',
74
58
  canEdit: false,
@@ -82,6 +66,22 @@ export var TreeSelect = {
82
66
  desc: '继承自表单,此处不可编辑',
83
67
  canEdit: false,
84
68
  extendsKey: 'Form'
69
+ },
70
+ iconColor: {
71
+ type: 'color',
72
+ label: '后缀图标颜色',
73
+ groupsName: '其他'
74
+ },
75
+ iconFontSize: {
76
+ type: 'px',
77
+ label: '后缀图标尺寸',
78
+ groupsName: '其他',
79
+ desc: '请根据实际【文本尺寸】调整,不宜与【文本尺寸】大小差异过大'
80
+ },
81
+ iconTop: {
82
+ type: 'px',
83
+ label: '后缀图标向下偏移',
84
+ groupsName: '其他'
85
85
  }
86
86
  },
87
87
  groupsName: '数据录入',
@@ -1,75 +1,75 @@
1
1
  export declare const Accordion: {
2
2
  type: string;
3
3
  variable: {
4
- textColor: {
4
+ backgroundColor: {
5
5
  type: string;
6
6
  label: string;
7
7
  groupsName: string;
8
- followTheme: string;
9
8
  };
10
- lineHeight: {
9
+ bodyBgColor: {
11
10
  type: string;
12
11
  label: string;
13
12
  groupsName: string;
14
13
  };
15
- fontSize: {
14
+ textColor: {
16
15
  type: string;
17
16
  label: string;
18
17
  groupsName: string;
18
+ followTheme: string;
19
19
  };
20
- fontWeight: {
20
+ fontSize: {
21
21
  type: string;
22
22
  label: string;
23
23
  groupsName: string;
24
- options: {
25
- title: string;
26
- value: string;
27
- }[];
28
24
  };
29
- backgroundColor: {
25
+ lineHeight: {
30
26
  type: string;
31
27
  label: string;
32
28
  groupsName: string;
33
29
  };
34
- titleColor: {
30
+ fontWeight: {
35
31
  type: string;
36
32
  label: string;
37
33
  groupsName: string;
38
- followTheme: string;
34
+ options: {
35
+ title: string;
36
+ value: string;
37
+ }[];
39
38
  };
40
- tagSize: {
39
+ borderRadius: {
41
40
  type: string;
42
41
  label: string;
43
42
  groupsName: string;
44
43
  };
45
- tagMargin: {
44
+ borderColor: {
46
45
  type: string;
47
46
  label: string;
48
47
  groupsName: string;
48
+ followTheme: string;
49
49
  };
50
- arrowColor: {
50
+ titleColor: {
51
51
  type: string;
52
52
  label: string;
53
53
  groupsName: string;
54
54
  followTheme: string;
55
55
  };
56
- arrowSize: {
56
+ tagSize: {
57
57
  type: string;
58
58
  label: string;
59
59
  groupsName: string;
60
60
  };
61
- bodyBgColor: {
61
+ tagMargin: {
62
62
  type: string;
63
63
  label: string;
64
64
  groupsName: string;
65
65
  };
66
- borderColor: {
66
+ arrowColor: {
67
67
  type: string;
68
68
  label: string;
69
69
  groupsName: string;
70
70
  followTheme: string;
71
71
  };
72
- borderRadius: {
72
+ arrowSize: {
73
73
  type: string;
74
74
  label: string;
75
75
  groupsName: string;
@@ -1,25 +1,35 @@
1
1
  export var Accordion = {
2
2
  type: 'Accordion',
3
3
  variable: {
4
+ backgroundColor: {
5
+ type: 'color',
6
+ label: '头部填充颜色',
7
+ groupsName: '背景'
8
+ },
9
+ bodyBgColor: {
10
+ type: 'color',
11
+ label: '内容填充颜色',
12
+ groupsName: '背景'
13
+ },
4
14
  textColor: {
5
15
  type: 'color',
6
- label: '标题文本颜色',
16
+ label: '标题颜色',
7
17
  groupsName: '标题',
8
18
  followTheme: '@color-text-base'
9
19
  },
10
- lineHeight: {
20
+ fontSize: {
11
21
  type: 'px',
12
- label: '标题文本行高',
22
+ label: '标题尺寸',
13
23
  groupsName: '标题'
14
24
  },
15
- fontSize: {
25
+ lineHeight: {
16
26
  type: 'px',
17
- label: '标题文本尺寸',
27
+ label: '标题行高',
18
28
  groupsName: '标题'
19
29
  },
20
30
  fontWeight: {
21
31
  type: 'select',
22
- label: '标题文本字重',
32
+ label: '标题字重',
23
33
  groupsName: '标题',
24
34
  options: [{
25
35
  title: '100',
@@ -44,15 +54,21 @@ export var Accordion = {
44
54
  value: '700'
45
55
  }]
46
56
  },
47
- backgroundColor: {
57
+ borderRadius: {
58
+ type: 'px',
59
+ label: '圆角',
60
+ groupsName: '边框'
61
+ },
62
+ borderColor: {
48
63
  type: 'color',
49
- label: '头部背景颜色',
50
- groupsName: '背景颜色'
64
+ label: '颜色',
65
+ groupsName: '边框',
66
+ followTheme: '@border-color-base'
51
67
  },
52
68
  titleColor: {
53
69
  type: 'color',
54
- label: '装饰条颜色',
55
- groupsName: '标题',
70
+ label: '装饰符颜色',
71
+ groupsName: '其他',
56
72
  followTheme: '@brand-primary'
57
73
  },
58
74
  // lineColor: {
@@ -62,40 +78,24 @@ export var Accordion = {
62
78
  // },
63
79
  tagSize: {
64
80
  type: 'px',
65
- label: '标题装饰图标尺寸',
66
- groupsName: '标题'
81
+ label: '装饰符标尺寸',
82
+ groupsName: '其他'
67
83
  },
68
84
  tagMargin: {
69
- type: 'px',
70
- label: '标题左外边距',
71
- groupsName: '标题'
85
+ type: 'marginInput',
86
+ label: '装饰符外边距',
87
+ groupsName: '其他'
72
88
  },
73
89
  arrowColor: {
74
90
  type: 'color',
75
91
  label: '后缀图标颜色',
76
- groupsName: '标题',
92
+ groupsName: '其他',
77
93
  followTheme: '@border-color-base'
78
94
  },
79
95
  arrowSize: {
80
96
  type: 'px',
81
97
  label: '后缀图标尺寸',
82
- groupsName: '标题'
83
- },
84
- bodyBgColor: {
85
- type: 'color',
86
- label: '内容背景颜色',
87
- groupsName: '背景颜色'
88
- },
89
- borderColor: {
90
- type: 'color',
91
- label: '边框颜色',
92
- groupsName: '边框',
93
- followTheme: '@border-color-base'
94
- },
95
- borderRadius: {
96
- type: 'px',
97
- label: '边框圆角',
98
- groupsName: '边框'
98
+ groupsName: '其他'
99
99
  }
100
100
  },
101
101
  hasPrefixClass: true,
@@ -111,7 +111,7 @@ export var Accordion = {
111
111
  titleColor: '#47e',
112
112
  // lineColor: '#f0f0f0',
113
113
  tagSize: '16px',
114
- tagMargin: '8px',
114
+ tagMargin: '0 0 0 8px',
115
115
  arrowColor: '#cccccc',
116
116
  arrowSize: '19px',
117
117
  bodyBgColor: '#fff',
@@ -123,7 +123,7 @@ export var Accordion = {
123
123
  '@color-text-base': [],
124
124
  '@border-color-base': []
125
125
  },
126
- tpl: ".lcdp-accordion {\n .lcdp-accordion-header{\n color: textColor;\n font-weight: fontWeight;\n font-size: fontSize;\n line-height: lineHeight;\n background: backgroundColor;\n > div {\n margin-left: tagMargin !important;\n }\n }\n .lcdp-accordion-header-icon-left{\n background: titleColor;\n }\n .lcdp-accordion-header-default-icon{\n height: tagSize;\n background: titleColor;\n margin-right: -4px;\n }\n .adm-collapse-arrow svg{\n color: arrowColor;\n width: arrowSize;\n height: arrowSize;\n }\n .adm-list-item-content-main{\n background: bodyBgColor;\n }\n .adm-collapse{\n border-radius: borderRadius;\n border-color: borderColor !important;\n }\n }\n ",
126
+ tpl: ".lcdp-accordion {\n .lcdp-accordion-header{\n color: textColor;\n font-weight: fontWeight;\n font-size: fontSize;\n line-height: lineHeight;\n background: backgroundColor;\n > div {\n margin: tagMargin !important;\n }\n }\n .lcdp-accordion-header-icon-left{\n background: titleColor;\n }\n .lcdp-accordion-header-default-icon{\n height: tagSize;\n background: titleColor;\n margin-right: -4px;\n }\n .adm-collapse-arrow svg{\n color: arrowColor;\n width: arrowSize;\n height: arrowSize;\n }\n .adm-list-item-content-main{\n background: bodyBgColor;\n }\n .adm-collapse{\n border-radius: borderRadius;\n border-color: borderColor !important;\n }\n }\n ",
127
127
  components: [{
128
128
  id: 'Accordion_960849',
129
129
  label: '折叠面板',
@@ -1,48 +1,48 @@
1
1
  export declare const Button: {
2
2
  type: string;
3
3
  variable: {
4
- textColor: {
4
+ backgroundColor: {
5
5
  type: string;
6
6
  label: string;
7
7
  groupsName: string;
8
8
  followTheme: string;
9
9
  };
10
- lineHeight: {
10
+ textColor: {
11
11
  type: string;
12
12
  label: string;
13
13
  groupsName: string;
14
+ followTheme: string;
14
15
  };
15
16
  fontSize: {
16
17
  type: string;
17
18
  label: string;
18
19
  groupsName: string;
19
20
  };
20
- backgroundColor: {
21
+ lineHeight: {
21
22
  type: string;
22
23
  label: string;
23
24
  groupsName: string;
24
- followTheme: string;
25
25
  };
26
- borderColor: {
26
+ paddingValue: {
27
27
  type: string;
28
28
  label: string;
29
29
  groupsName: string;
30
- followTheme: string;
31
30
  };
32
- borderRadius: {
31
+ marginValue: {
33
32
  type: string;
34
33
  label: string;
35
34
  groupsName: string;
36
35
  };
37
- paddingValue: {
36
+ borderRadius: {
38
37
  type: string;
39
38
  label: string;
40
39
  groupsName: string;
41
40
  };
42
- marginValue: {
41
+ borderColor: {
43
42
  type: string;
44
43
  label: string;
45
44
  groupsName: string;
45
+ followTheme: string;
46
46
  };
47
47
  };
48
48
  groupsName: string;
@@ -1,38 +1,27 @@
1
1
  export var Button = {
2
2
  type: 'Button',
3
3
  variable: {
4
+ backgroundColor: {
5
+ type: 'color',
6
+ label: '填充颜色',
7
+ groupsName: '背景',
8
+ followTheme: '@brand-primary'
9
+ },
4
10
  textColor: {
5
11
  type: 'color',
6
12
  label: '文本颜色',
7
13
  groupsName: '文字',
8
14
  followTheme: '@color-text-base'
9
15
  },
10
- lineHeight: {
11
- type: 'px',
12
- label: '文本行高',
13
- groupsName: '文字'
14
- },
15
16
  fontSize: {
16
17
  type: 'px',
17
18
  label: '文本尺寸',
18
19
  groupsName: '文字'
19
20
  },
20
- backgroundColor: {
21
- type: 'color',
22
- label: '主题颜色',
23
- groupsName: '颜色',
24
- followTheme: '@brand-primary'
25
- },
26
- borderColor: {
27
- type: 'color',
28
- label: '边框颜色',
29
- groupsName: '边框',
30
- followTheme: '@border-color-base'
31
- },
32
- borderRadius: {
21
+ lineHeight: {
33
22
  type: 'px',
34
- label: '边框圆角',
35
- groupsName: '边框'
23
+ label: '文本行高',
24
+ groupsName: '文字'
36
25
  },
37
26
  paddingValue: {
38
27
  type: 'marginInput',
@@ -43,6 +32,17 @@ export var Button = {
43
32
  type: 'marginInput',
44
33
  label: '外边距',
45
34
  groupsName: '布局'
35
+ },
36
+ borderRadius: {
37
+ type: 'px',
38
+ label: '圆角',
39
+ groupsName: '边框'
40
+ },
41
+ borderColor: {
42
+ type: 'color',
43
+ label: '颜色',
44
+ groupsName: '边框',
45
+ followTheme: '@border-color-base'
46
46
  }
47
47
  },
48
48
  groupsName: '通用',
@@ -2,12 +2,32 @@ export declare const Card: {
2
2
  type: string;
3
3
  hasPrefixClass: boolean;
4
4
  variable: {
5
+ backgroundColor: {
6
+ type: string;
7
+ label: string;
8
+ groupsName: string;
9
+ };
10
+ bodyBgColor: {
11
+ type: string;
12
+ label: string;
13
+ groupsName: string;
14
+ };
15
+ footBgColor: {
16
+ type: string;
17
+ label: string;
18
+ groupsName: string;
19
+ };
5
20
  textColor: {
6
21
  type: string;
7
22
  label: string;
8
23
  followTheme: string;
9
24
  groupsName: string;
10
25
  };
26
+ fontSize: {
27
+ type: string;
28
+ label: string;
29
+ groupsName: string;
30
+ };
11
31
  lineHeight: {
12
32
  type: string;
13
33
  label: string;
@@ -17,11 +37,6 @@ export declare const Card: {
17
37
  value: string;
18
38
  }[];
19
39
  };
20
- fontSize: {
21
- type: string;
22
- label: string;
23
- groupsName: string;
24
- };
25
40
  fontWeight: {
26
41
  type: string;
27
42
  label: string;
@@ -31,18 +46,18 @@ export declare const Card: {
31
46
  value: string;
32
47
  }[];
33
48
  };
34
- backgroundColor: {
49
+ borderRadius: {
35
50
  type: string;
36
51
  label: string;
37
52
  groupsName: string;
38
53
  };
39
- titleColor: {
54
+ borderColor: {
40
55
  type: string;
41
56
  label: string;
42
57
  groupsName: string;
43
58
  followTheme: string;
44
59
  };
45
- lineColor: {
60
+ titleColor: {
46
61
  type: string;
47
62
  label: string;
48
63
  groupsName: string;
@@ -68,33 +83,18 @@ export declare const Card: {
68
83
  label: string;
69
84
  groupsName: string;
70
85
  };
71
- bodyBgColor: {
72
- type: string;
73
- label: string;
74
- groupsName: string;
75
- };
76
- bodyLineColor: {
86
+ lineColor: {
77
87
  type: string;
78
88
  label: string;
79
89
  groupsName: string;
80
90
  followTheme: string;
81
91
  };
82
- footBgColor: {
83
- type: string;
84
- label: string;
85
- groupsName: string;
86
- };
87
- borderColor: {
92
+ bodyLineColor: {
88
93
  type: string;
89
94
  label: string;
90
95
  groupsName: string;
91
96
  followTheme: string;
92
97
  };
93
- borderRadius: {
94
- type: string;
95
- label: string;
96
- groupsName: string;
97
- };
98
98
  };
99
99
  groupsName: string;
100
100
  icon: string;