@lingxiteam/theme-utils 0.1.3

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 (128) hide show
  1. package/README.md +83 -0
  2. package/dist/config/Button.d.ts +101 -0
  3. package/dist/config/Button.js +265 -0
  4. package/dist/config/Card.d.ts +137 -0
  5. package/dist/config/Card.js +149 -0
  6. package/dist/config/Cascader.d.ts +179 -0
  7. package/dist/config/Cascader.js +208 -0
  8. package/dist/config/Checkbox.d.ts +161 -0
  9. package/dist/config/Checkbox.js +161 -0
  10. package/dist/config/CheckboxGroup.d.ts +176 -0
  11. package/dist/config/CheckboxGroup.js +184 -0
  12. package/dist/config/Collapse.d.ts +170 -0
  13. package/dist/config/Collapse.js +308 -0
  14. package/dist/config/Container.d.ts +268 -0
  15. package/dist/config/Container.js +288 -0
  16. package/dist/config/DatePicker.d.ts +163 -0
  17. package/dist/config/DatePicker.js +163 -0
  18. package/dist/config/Description.d.ts +97 -0
  19. package/dist/config/Description.js +117 -0
  20. package/dist/config/Divider.d.ts +61 -0
  21. package/dist/config/Divider.js +61 -0
  22. package/dist/config/Form.d.ts +2700 -0
  23. package/dist/config/Form.js +1214 -0
  24. package/dist/config/Icon.d.ts +51 -0
  25. package/dist/config/Icon.js +51 -0
  26. package/dist/config/Input.d.ts +150 -0
  27. package/dist/config/Input.js +150 -0
  28. package/dist/config/InputNumber.d.ts +145 -0
  29. package/dist/config/InputNumber.js +145 -0
  30. package/dist/config/Link.d.ts +123 -0
  31. package/dist/config/Link.js +115 -0
  32. package/dist/config/MultipleSelect.d.ts +158 -0
  33. package/dist/config/MultipleSelect.js +166 -0
  34. package/dist/config/Radio.d.ts +171 -0
  35. package/dist/config/Radio.js +179 -0
  36. package/dist/config/RangePicker.d.ts +165 -0
  37. package/dist/config/RangePicker.js +165 -0
  38. package/dist/config/Select.d.ts +173 -0
  39. package/dist/config/Select.js +181 -0
  40. package/dist/config/StdUpload.d.ts +204 -0
  41. package/dist/config/StdUpload.js +208 -0
  42. package/dist/config/Switch.d.ts +137 -0
  43. package/dist/config/Switch.js +137 -0
  44. package/dist/config/Table.d.ts +398 -0
  45. package/dist/config/Table.js +527 -0
  46. package/dist/config/Tabs.d.ts +170 -0
  47. package/dist/config/Tabs.js +229 -0
  48. package/dist/config/Tag.d.ts +114 -0
  49. package/dist/config/Tag.js +314 -0
  50. package/dist/config/Text.d.ts +30 -0
  51. package/dist/config/Text.js +30 -0
  52. package/dist/config/TextArea.d.ts +142 -0
  53. package/dist/config/TextArea.js +142 -0
  54. package/dist/config/TimePicker.d.ts +164 -0
  55. package/dist/config/TimePicker.js +164 -0
  56. package/dist/config/Tree.d.ts +131 -0
  57. package/dist/config/Tree.js +175 -0
  58. package/dist/config/TreeSelect.d.ts +180 -0
  59. package/dist/config/TreeSelect.js +196 -0
  60. package/dist/css.d.ts +6 -0
  61. package/dist/css.js +121 -0
  62. package/dist/demo.d.ts +5 -0
  63. package/dist/demo.js +79 -0
  64. package/dist/h5config/Accordion.d.ts +338 -0
  65. package/dist/h5config/Accordion.js +445 -0
  66. package/dist/h5config/Button.d.ts +134 -0
  67. package/dist/h5config/Button.js +245 -0
  68. package/dist/h5config/Card.d.ts +268 -0
  69. package/dist/h5config/Card.js +425 -0
  70. package/dist/h5config/DAddressPicker.d.ts +196 -0
  71. package/dist/h5config/DAddressPicker.js +226 -0
  72. package/dist/h5config/DCheckbox.d.ts +203 -0
  73. package/dist/h5config/DCheckbox.js +237 -0
  74. package/dist/h5config/DForm.d.ts +1607 -0
  75. package/dist/h5config/DForm.js +897 -0
  76. package/dist/h5config/DMultiplePicker.d.ts +197 -0
  77. package/dist/h5config/DMultiplePicker.js +231 -0
  78. package/dist/h5config/DformDate.d.ts +199 -0
  79. package/dist/h5config/DformDate.js +229 -0
  80. package/dist/h5config/DformFile.d.ts +186 -0
  81. package/dist/h5config/DformFile.js +198 -0
  82. package/dist/h5config/DformImagePicker.d.ts +138 -0
  83. package/dist/h5config/DformImagePicker.js +150 -0
  84. package/dist/h5config/DformInput.d.ts +188 -0
  85. package/dist/h5config/DformInput.js +218 -0
  86. package/dist/h5config/DformInputNumber.d.ts +173 -0
  87. package/dist/h5config/DformInputNumber.js +203 -0
  88. package/dist/h5config/DformPicker.d.ts +198 -0
  89. package/dist/h5config/DformPicker.js +232 -0
  90. package/dist/h5config/DformRadio.d.ts +203 -0
  91. package/dist/h5config/DformRadio.js +237 -0
  92. package/dist/h5config/DformRangePicker.d.ts +199 -0
  93. package/dist/h5config/DformRangePicker.js +229 -0
  94. package/dist/h5config/DformSelect.d.ts +208 -0
  95. package/dist/h5config/DformSelect.js +260 -0
  96. package/dist/h5config/DformSwitch.d.ts +146 -0
  97. package/dist/h5config/DformSwitch.js +158 -0
  98. package/dist/h5config/DformTextArea.d.ts +184 -0
  99. package/dist/h5config/DformTextArea.js +214 -0
  100. package/dist/h5config/Divider.d.ts +53 -0
  101. package/dist/h5config/Divider.js +90 -0
  102. package/dist/h5config/FilterItems.d.ts +142 -0
  103. package/dist/h5config/FilterItems.js +181 -0
  104. package/dist/h5config/Grid.d.ts +117 -0
  105. package/dist/h5config/Grid.js +154 -0
  106. package/dist/h5config/Icon.d.ts +54 -0
  107. package/dist/h5config/Icon.js +54 -0
  108. package/dist/h5config/Link.d.ts +47 -0
  109. package/dist/h5config/Link.js +47 -0
  110. package/dist/h5config/LoadMore.d.ts +527 -0
  111. package/dist/h5config/LoadMore.js +940 -0
  112. package/dist/h5config/NoticeBarPlus.d.ts +104 -0
  113. package/dist/h5config/NoticeBarPlus.js +129 -0
  114. package/dist/h5config/SearchView.d.ts +128 -0
  115. package/dist/h5config/SearchView.js +163 -0
  116. package/dist/h5config/StaticTabs.d.ts +133 -0
  117. package/dist/h5config/StaticTabs.js +173 -0
  118. package/dist/h5config/Table.d.ts +182 -0
  119. package/dist/h5config/Table.js +566 -0
  120. package/dist/index.d.ts +4 -0
  121. package/dist/index.js +4 -0
  122. package/dist/lx-mobile.d.ts +9 -0
  123. package/dist/lx-mobile.js +153 -0
  124. package/dist/lx.d.ts +6 -0
  125. package/dist/lx.js +112 -0
  126. package/dist/utils.d.ts +12 -0
  127. package/dist/utils.js +65 -0
  128. package/package.json +38 -0
@@ -0,0 +1,170 @@
1
+ export declare const Tabs: {
2
+ type: string;
3
+ variable: {
4
+ headBgColor: {
5
+ type: string;
6
+ label: string;
7
+ groupsName: string;
8
+ };
9
+ activeBgColor: {
10
+ type: string;
11
+ label: string;
12
+ groupsName: string;
13
+ };
14
+ activeFColor: {
15
+ type: string;
16
+ label: string;
17
+ groupsName: string;
18
+ };
19
+ activeRadius: {
20
+ type: string;
21
+ label: string;
22
+ groupsName: string;
23
+ };
24
+ paddingValue: {
25
+ type: string;
26
+ label: string;
27
+ groupsName: string;
28
+ };
29
+ marginValue: {
30
+ type: string;
31
+ label: string;
32
+ groupsName: string;
33
+ };
34
+ lineHeight: {
35
+ type: string;
36
+ label: string;
37
+ groupsName: string;
38
+ };
39
+ fontSize: {
40
+ type: string;
41
+ label: string;
42
+ groupsName: string;
43
+ };
44
+ fontWeight: {
45
+ type: string;
46
+ label: string;
47
+ groupsName: string;
48
+ options: {
49
+ title: string;
50
+ value: string;
51
+ }[];
52
+ };
53
+ textColor: {
54
+ type: string;
55
+ label: string;
56
+ groupsName: string;
57
+ };
58
+ activeTextColor: {
59
+ type: string;
60
+ label: string;
61
+ groupsName: string;
62
+ };
63
+ activeFontWeight: {
64
+ type: string;
65
+ label: string;
66
+ groupsName: string;
67
+ options: {
68
+ title: string;
69
+ value: string;
70
+ }[];
71
+ };
72
+ borderRadius: {
73
+ type: string;
74
+ label: string;
75
+ groupsName: string;
76
+ };
77
+ bodyColor: {
78
+ type: string;
79
+ label: string;
80
+ groupsName: string;
81
+ };
82
+ };
83
+ groupsName: string;
84
+ icon: string;
85
+ title: string;
86
+ defaultValue: {
87
+ headBgColor: string;
88
+ activeBgColor: string;
89
+ activeFColor: string;
90
+ bodyColor: string;
91
+ activeRadius: string;
92
+ borderRadius: string;
93
+ paddingValue: string;
94
+ marginValue: string;
95
+ textColor: string;
96
+ activeTextColor: string;
97
+ lineHeight: string;
98
+ fontSize: string;
99
+ fontWeight: string;
100
+ activeFontWeight: string;
101
+ }[];
102
+ tpl: string;
103
+ components: {
104
+ id: string;
105
+ label: string;
106
+ compName: string;
107
+ type: string;
108
+ compType: number;
109
+ compLib: string;
110
+ props: {
111
+ name: string;
112
+ basicStatus: number;
113
+ type: string;
114
+ animated: boolean;
115
+ defaultActiveKey: string;
116
+ tabBarGutter: string;
117
+ tabPosition: string;
118
+ size: string;
119
+ };
120
+ style: {
121
+ width: string;
122
+ margin: string;
123
+ padding: string;
124
+ };
125
+ isContainer: boolean;
126
+ isBusiObjContainer: boolean;
127
+ cmdgroup: string[];
128
+ platform: string;
129
+ engineApi: never[];
130
+ icon: string;
131
+ description: string;
132
+ image: string;
133
+ groupsName: string;
134
+ onlyChildren: string[];
135
+ setEvents: never[];
136
+ isLabelDropBoxChild: boolean;
137
+ components: {
138
+ id: string;
139
+ label: string;
140
+ compName: string;
141
+ type: string;
142
+ compType: number;
143
+ compLib: string;
144
+ props: {
145
+ name: string;
146
+ basicStatus: number;
147
+ tab: string;
148
+ key: string;
149
+ };
150
+ style: {
151
+ minHeight: number;
152
+ };
153
+ isContainer: boolean;
154
+ isBusiObjContainer: boolean;
155
+ cmdgroup: string[];
156
+ platform: string;
157
+ engineApi: string[];
158
+ icon: string;
159
+ description: string;
160
+ image: string;
161
+ groupsName: string;
162
+ onlyRoot: string[];
163
+ setEvents: never[];
164
+ isLabelDropBoxChild: boolean;
165
+ components: never[];
166
+ path: string[];
167
+ }[];
168
+ path: string[];
169
+ }[];
170
+ };
@@ -0,0 +1,229 @@
1
+ export var Tabs = {
2
+ type: 'Tabs',
3
+ variable: {
4
+ headBgColor: {
5
+ type: 'color',
6
+ label: '头部背景颜色',
7
+ groupsName: '背景颜色'
8
+ },
9
+ activeBgColor: {
10
+ type: 'color',
11
+ label: '选中项背景颜色',
12
+ groupsName: '背景颜色'
13
+ },
14
+ activeFColor: {
15
+ type: 'color',
16
+ label: '分割线颜色',
17
+ groupsName: '背景颜色'
18
+ },
19
+ activeRadius: {
20
+ type: 'px',
21
+ label: '选中项边框圆角',
22
+ groupsName: '边框'
23
+ },
24
+ paddingValue: {
25
+ type: 'marginInput',
26
+ label: '选中项内边距',
27
+ groupsName: '布局'
28
+ },
29
+ marginValue: {
30
+ type: 'marginInput',
31
+ label: '选中项外边距',
32
+ groupsName: '布局'
33
+ },
34
+ lineHeight: {
35
+ type: 'px',
36
+ label: '标题文本行高',
37
+ groupsName: '文字'
38
+ },
39
+ fontSize: {
40
+ type: 'px',
41
+ label: '标题文本尺寸',
42
+ groupsName: '文字'
43
+ },
44
+ fontWeight: {
45
+ type: 'select',
46
+ label: '标题文本字重',
47
+ groupsName: '文字',
48
+ options: [{
49
+ title: '100',
50
+ value: '100'
51
+ }, {
52
+ title: '200',
53
+ value: '200'
54
+ }, {
55
+ title: '300',
56
+ value: '300'
57
+ }, {
58
+ title: '400',
59
+ value: '400'
60
+ }, {
61
+ title: '500',
62
+ value: '500'
63
+ }]
64
+ },
65
+ textColor: {
66
+ type: 'color',
67
+ label: '默认标题文本颜色',
68
+ groupsName: '文字'
69
+ },
70
+ activeTextColor: {
71
+ type: 'color',
72
+ label: '选中标题文本颜色',
73
+ groupsName: '文字'
74
+ },
75
+ activeFontWeight: {
76
+ type: 'select',
77
+ label: '选中标题文本字重',
78
+ groupsName: '文字',
79
+ options: [{
80
+ title: '100',
81
+ value: '100'
82
+ }, {
83
+ title: '200',
84
+ value: '200'
85
+ }, {
86
+ title: '300',
87
+ value: '300'
88
+ }, {
89
+ title: '400',
90
+ value: '400'
91
+ }, {
92
+ title: '500',
93
+ value: '500'
94
+ }]
95
+ },
96
+ // borderColor: {
97
+ // type: 'color',
98
+ // label: '边框颜色',
99
+ // groupsName: '边框',
100
+ // },
101
+ borderRadius: {
102
+ type: 'px',
103
+ label: '边框圆角',
104
+ groupsName: '边框'
105
+ },
106
+ bodyColor: {
107
+ type: 'color',
108
+ label: '内容区域背景',
109
+ groupsName: '背景颜色'
110
+ }
111
+ },
112
+ groupsName: '容器',
113
+ icon: 'icon-ico-comp-tabs',
114
+ title: '标签页',
115
+ defaultValue: [{
116
+ headBgColor: '#0085D0',
117
+ activeBgColor: '#005D92',
118
+ activeFColor: '#47e',
119
+ bodyColor: '#fff',
120
+ activeRadius: '2px',
121
+ borderRadius: '0px',
122
+ paddingValue: '12px 20px 12px 20px',
123
+ marginValue: '0px',
124
+ textColor: '#FFFFFF',
125
+ activeTextColor: '#FFFFFF',
126
+ lineHeight: '22px',
127
+ fontSize: '16px',
128
+ fontWeight: '300',
129
+ activeFontWeight: '300'
130
+ }],
131
+ tpl: ".ued-tabs-wrap .pcfactory-tabs > .pcfactory-tabs-nav .pcfactory-tabs-nav-wrap{\n background-color: headBgColor;\n }\n .ued-tabs-wrap .pcfactory-tabs-nav .pcfactory-tabs-tab-active{\n background-color: activeBgColor;\n border-top-left-radius: activeRadius;\n border-top-right-radius: activeRadius;\n\n }\n .ued-tabs-wrap .pcfactory-tabs-ink-bar{\n background-color: activeFColor;\n }\n .ued-tabs-wrap .pcfactory-tabs{\n background-color: bodyColor;\n border-radius: borderRadius;\n }\n .ued-tabs-wrap .pcfactory-tabs-nav .pcfactory-tabs-tab{\n padding: paddingValue;\n margin: marginValue;\n }\n .ued-tabs-wrap .pcfactory-tabs-nav .pcfactory-tabs-tab .pcfactory-tabs-tab-btn{\n color: textColor;\n line-height: lineHeight;\n font-size: fontSize;\n font-weight: fontWeight;\n }\n .ued-tabs-wrap .pcfactory-tabs-nav .pcfactory-tabs-tab-active .pcfactory-tabs-tab-btn{\n color: activeTextColor;\n font-weight: activeFontWeight;\n }",
132
+ components: [{
133
+ id: 'Tabs_9165146',
134
+ label: '标签页',
135
+ compName: 'Tabs',
136
+ type: 'Tabs',
137
+ compType: 0,
138
+ compLib: 'comm',
139
+ props: {
140
+ name: '标签页',
141
+ basicStatus: 1,
142
+ type: 'line',
143
+ animated: false,
144
+ defaultActiveKey: '1',
145
+ tabBarGutter: '4px',
146
+ tabPosition: 'top',
147
+ size: 'default'
148
+ },
149
+ style: {
150
+ width: '100%',
151
+ margin: '0 0 16px 0',
152
+ padding: '20px 20px 20px 20px'
153
+ },
154
+ isContainer: true,
155
+ isBusiObjContainer: false,
156
+ cmdgroup: ['basic'],
157
+ platform: 'pc',
158
+ engineApi: [],
159
+ icon: 'Tabs',
160
+ description: '',
161
+ image: '',
162
+ groupsName: '容器',
163
+ onlyChildren: ['TabPane'],
164
+ setEvents: [],
165
+ isLabelDropBoxChild: false,
166
+ components: [{
167
+ id: 'TabPane_0929347',
168
+ label: '标签子面板',
169
+ compName: 'TabPane',
170
+ type: 'TabPane',
171
+ compType: 0,
172
+ compLib: 'comm',
173
+ props: {
174
+ name: '标签子面板',
175
+ basicStatus: 1,
176
+ tab: '标题1',
177
+ key: '1'
178
+ },
179
+ style: {
180
+ minHeight: 40
181
+ },
182
+ isContainer: true,
183
+ isBusiObjContainer: false,
184
+ cmdgroup: ['basic'],
185
+ platform: 'pc',
186
+ engineApi: ['sandBoxSafeRun'],
187
+ icon: 'TabPane',
188
+ description: '',
189
+ image: '',
190
+ groupsName: '容器',
191
+ onlyRoot: ['Tabs'],
192
+ setEvents: [],
193
+ isLabelDropBoxChild: false,
194
+ components: [],
195
+ path: ['998509', 'Tabs_9165146']
196
+ }, {
197
+ id: 'TabPane_909',
198
+ label: '标签子面板',
199
+ compName: 'TabPane',
200
+ type: 'TabPane',
201
+ compType: 0,
202
+ compLib: 'comm',
203
+ props: {
204
+ name: '标签子面板',
205
+ basicStatus: 1,
206
+ tab: '标题2',
207
+ key: '2'
208
+ },
209
+ style: {
210
+ minHeight: 40
211
+ },
212
+ isContainer: true,
213
+ isBusiObjContainer: false,
214
+ cmdgroup: ['basic'],
215
+ platform: 'pc',
216
+ engineApi: ['sandBoxSafeRun'],
217
+ icon: 'TabPane',
218
+ description: '',
219
+ image: '',
220
+ groupsName: '容器',
221
+ onlyRoot: ['Tabs'],
222
+ setEvents: [],
223
+ isLabelDropBoxChild: false,
224
+ components: [],
225
+ path: ['998509', 'Tabs_9165146']
226
+ }],
227
+ path: ['998509']
228
+ }]
229
+ };
@@ -0,0 +1,114 @@
1
+ export declare const Tag: {
2
+ type: string;
3
+ variable: {
4
+ backgroundColor: {
5
+ type: string;
6
+ label: string;
7
+ groupsName: string;
8
+ };
9
+ paddingValue: {
10
+ type: string;
11
+ label: string;
12
+ groupsName: string;
13
+ };
14
+ borderRadius: {
15
+ type: string;
16
+ label: string;
17
+ groupsName: string;
18
+ };
19
+ fontSize: {
20
+ type: string;
21
+ label: string;
22
+ groupsName: string;
23
+ };
24
+ closeColor: {
25
+ type: string;
26
+ label: string;
27
+ groupsName: string;
28
+ };
29
+ closeSize: {
30
+ type: string;
31
+ label: string;
32
+ groupsName: string;
33
+ };
34
+ };
35
+ groupsName: string;
36
+ icon: string;
37
+ title: string;
38
+ defaultValue: {
39
+ backgroundColor: string;
40
+ paddingValue: string;
41
+ borderRadius: string;
42
+ fontSize: string;
43
+ closeColor: string;
44
+ closeSize: string;
45
+ }[];
46
+ tpl: string;
47
+ components: ({
48
+ id: string;
49
+ label: string;
50
+ compName: string;
51
+ type: string;
52
+ compType: number;
53
+ compLib: string;
54
+ props: {
55
+ name: string;
56
+ basicStatus: number;
57
+ title: string;
58
+ closable: boolean;
59
+ tagType: {
60
+ name: string;
61
+ key: string;
62
+ classname?: undefined;
63
+ };
64
+ };
65
+ style: {
66
+ minHeight: string;
67
+ };
68
+ isContainer: boolean;
69
+ isBusiObjContainer: boolean;
70
+ cmdgroup: string[];
71
+ platform: string;
72
+ icon: string;
73
+ description: string;
74
+ image: string;
75
+ groupsName: string;
76
+ setEvents: never[];
77
+ isLabelDropBoxChild: boolean;
78
+ components: never[];
79
+ path: string[];
80
+ } | {
81
+ id: string;
82
+ label: string;
83
+ compName: string;
84
+ type: string;
85
+ compType: number;
86
+ compLib: string;
87
+ props: {
88
+ name: string;
89
+ basicStatus: number;
90
+ title: string;
91
+ closable: boolean;
92
+ tagType: {
93
+ name: string;
94
+ key: string;
95
+ classname: string;
96
+ };
97
+ };
98
+ style: {
99
+ minHeight: string;
100
+ };
101
+ isContainer: boolean;
102
+ isBusiObjContainer: boolean;
103
+ cmdgroup: string[];
104
+ platform: string;
105
+ icon: string;
106
+ description: string;
107
+ image: string;
108
+ groupsName: string;
109
+ setEvents: never[];
110
+ isLabelDropBoxChild: boolean;
111
+ components: never[];
112
+ path: string[];
113
+ })[];
114
+ };