@ray-js/smart-ui 2.13.1 → 2.13.2-beta-1
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.
- package/es/@types/config-provider/index.d.ts +7 -2
- package/es/@types/config-provider/theme-vars.d.ts +1 -1
- package/es/action-sheet/README.md +613 -0
- package/es/battery/README.md +149 -0
- package/es/bottom-sheet/README.md +495 -0
- package/es/button/README.md +335 -0
- package/es/calendar/README.md +513 -0
- package/es/cascader/README.md +326 -0
- package/es/cell/README.md +317 -0
- package/es/checkbox/README.md +481 -0
- package/es/circle/README.md +132 -0
- package/es/col/README.md +162 -0
- package/es/collapse/README.md +127 -0
- package/es/config-provider/README.md +150 -0
- package/es/count-down/README.md +201 -0
- package/es/custom-keyboard/README.md +122 -0
- package/es/datetime-picker/README.md +438 -0
- package/es/dialog/README.md +451 -0
- package/es/divider/README.md +132 -0
- package/es/dropdown-menu/README.md +331 -0
- package/es/empty/README.md +119 -0
- package/es/field/README.md +455 -0
- package/es/grid/README.md +273 -0
- package/es/icon/README.md +178 -0
- package/es/image/README.md +225 -0
- package/es/index-bar/README.md +186 -0
- package/es/loading/README.md +120 -0
- package/es/nav-bar/README.md +410 -0
- package/es/notice-bar/README.md +274 -0
- package/es/notify/README.md +121 -0
- package/es/overlay/README.md +128 -0
- package/es/picker/README.md +412 -0
- package/es/popover/README.md +338 -0
- package/es/popup/README.md +272 -0
- package/es/progress/README.md +88 -0
- package/es/radio/README.md +423 -0
- package/es/rate/README.md +248 -0
- package/es/search/README.md +290 -0
- package/es/sidebar/README.md +176 -0
- package/es/skeleton/README.md +141 -0
- package/es/slider/README.md +444 -0
- package/es/stepper/README.md +231 -0
- package/es/sticky/README.md +91 -0
- package/es/swipe-cell/README.md +217 -0
- package/es/switch/README.md +316 -0
- package/es/tab/README.md +501 -0
- package/es/tabbar/README.md +397 -0
- package/es/tag/README.md +215 -0
- package/es/toast/README.md +293 -0
- package/es/transition/README.md +140 -0
- package/es/tree-select/README.md +348 -0
- package/lib/@types/config-provider/index.d.ts +7 -2
- package/lib/@types/config-provider/theme-vars.d.ts +1 -1
- package/lib/action-sheet/README.md +613 -0
- package/lib/battery/README.md +149 -0
- package/lib/bottom-sheet/README.md +495 -0
- package/lib/button/README.md +335 -0
- package/lib/calendar/README.md +513 -0
- package/lib/cascader/README.md +326 -0
- package/lib/cell/README.md +317 -0
- package/lib/checkbox/README.md +481 -0
- package/lib/circle/README.md +132 -0
- package/lib/col/README.md +162 -0
- package/lib/collapse/README.md +127 -0
- package/lib/config-provider/README.md +150 -0
- package/lib/count-down/README.md +201 -0
- package/lib/custom-keyboard/README.md +122 -0
- package/lib/datetime-picker/README.md +438 -0
- package/lib/dialog/README.md +451 -0
- package/lib/divider/README.md +132 -0
- package/lib/dropdown-menu/README.md +331 -0
- package/lib/empty/README.md +119 -0
- package/lib/field/README.md +455 -0
- package/lib/grid/README.md +273 -0
- package/lib/icon/README.md +178 -0
- package/lib/image/README.md +225 -0
- package/lib/index-bar/README.md +186 -0
- package/lib/loading/README.md +120 -0
- package/lib/nav-bar/README.md +410 -0
- package/lib/notice-bar/README.md +274 -0
- package/lib/notify/README.md +121 -0
- package/lib/overlay/README.md +128 -0
- package/lib/picker/README.md +412 -0
- package/lib/popover/README.md +338 -0
- package/lib/popup/README.md +272 -0
- package/lib/progress/README.md +88 -0
- package/lib/radio/README.md +423 -0
- package/lib/rate/README.md +248 -0
- package/lib/search/README.md +290 -0
- package/lib/sidebar/README.md +176 -0
- package/lib/skeleton/README.md +141 -0
- package/lib/slider/README.md +444 -0
- package/lib/stepper/README.md +231 -0
- package/lib/sticky/README.md +91 -0
- package/lib/swipe-cell/README.md +217 -0
- package/lib/switch/README.md +316 -0
- package/lib/tab/README.md +501 -0
- package/lib/tabbar/README.md +397 -0
- package/lib/tag/README.md +215 -0
- package/lib/toast/README.md +293 -0
- package/lib/transition/README.md +140 -0
- package/lib/tree-select/README.md +348 -0
- package/package.json +3 -3
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
---
|
|
2
|
+
category: 数据录入
|
|
3
|
+
assets: TreeSelection
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# TreeSelect 分类选择
|
|
8
|
+
|
|
9
|
+
### 介绍
|
|
10
|
+
|
|
11
|
+
用于从一组相关联的数据集合中进行选择。
|
|
12
|
+
|
|
13
|
+
### 引入
|
|
14
|
+
|
|
15
|
+
```jsx
|
|
16
|
+
import { TreeSelect } from '@ray-js/smart-ui';
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 代码演示
|
|
20
|
+
|
|
21
|
+
### 单选模式
|
|
22
|
+
|
|
23
|
+
可以在任意位置上使用 TreeSelect 组件。传入对应的数据即可。此组件支持单选或多选,具体行为完全基于事件 onClickItem 的实现逻辑如何为属性 activeId 赋值,当 activeId 为数组时即为多选状态。
|
|
24
|
+
|
|
25
|
+
```jsx
|
|
26
|
+
import { TreeSelect } from '@ray-js/smart-ui';
|
|
27
|
+
import React, { useState, useMemo, useCallback } from 'react';
|
|
28
|
+
|
|
29
|
+
const items = [
|
|
30
|
+
{
|
|
31
|
+
text: '浙江',
|
|
32
|
+
options: [
|
|
33
|
+
{
|
|
34
|
+
text: '杭州',
|
|
35
|
+
id: 1,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
text: '温州',
|
|
39
|
+
id: 2,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
text: '宁波',
|
|
43
|
+
id: 3,
|
|
44
|
+
disabled: true,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
text: '义乌',
|
|
48
|
+
id: 4,
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
text: '江苏',
|
|
54
|
+
options: [
|
|
55
|
+
[
|
|
56
|
+
{
|
|
57
|
+
text: '南京',
|
|
58
|
+
id: 5,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
text: '无锡',
|
|
62
|
+
id: 6,
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
text: '徐州',
|
|
66
|
+
id: 7,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
text: '苏州',
|
|
70
|
+
id: 8,
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
text: '福建',
|
|
77
|
+
disabled: true,
|
|
78
|
+
options: [
|
|
79
|
+
{
|
|
80
|
+
text: '泉州',
|
|
81
|
+
id: 9,
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
},
|
|
85
|
+
];
|
|
86
|
+
|
|
87
|
+
export default function Demo() {
|
|
88
|
+
const [mainActiveIndex, setmainActiveIndex] = useState(0);
|
|
89
|
+
const [activeId, setactiveId] = useState(0);
|
|
90
|
+
const onClickNav = useCallback(({ detail }) => {
|
|
91
|
+
setmainActiveIndex(detail.index || 0);
|
|
92
|
+
}, []);
|
|
93
|
+
|
|
94
|
+
const onClickItem = useCallback(
|
|
95
|
+
({ detail }) => {
|
|
96
|
+
const id = activeId === detail.id ? null : detail.id;
|
|
97
|
+
setactiveId(id);
|
|
98
|
+
},
|
|
99
|
+
[activeId]
|
|
100
|
+
);
|
|
101
|
+
return (
|
|
102
|
+
<TreeSelect
|
|
103
|
+
items={items}
|
|
104
|
+
mainActiveIndex={mainActiveIndex}
|
|
105
|
+
activeId={activeId}
|
|
106
|
+
onClickItem={onClickItem}
|
|
107
|
+
onClickNav={onClickNav}
|
|
108
|
+
/>
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### 多选模式
|
|
114
|
+
|
|
115
|
+
```jsx
|
|
116
|
+
import { TreeSelect } from '@ray-js/smart-ui';
|
|
117
|
+
import React, { useState, useMemo, useCallback } from 'react';
|
|
118
|
+
|
|
119
|
+
const items = [
|
|
120
|
+
{
|
|
121
|
+
text: '浙江',
|
|
122
|
+
options: [
|
|
123
|
+
{
|
|
124
|
+
text: '杭州',
|
|
125
|
+
id: 1,
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
text: '温州',
|
|
129
|
+
id: 2,
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
text: '宁波',
|
|
133
|
+
id: 3,
|
|
134
|
+
disabled: true,
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
text: '义乌',
|
|
138
|
+
id: 4,
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
text: '江苏',
|
|
144
|
+
options: [
|
|
145
|
+
[
|
|
146
|
+
{
|
|
147
|
+
text: '南京',
|
|
148
|
+
id: 5,
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
text: '无锡',
|
|
152
|
+
id: 6,
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
text: '徐州',
|
|
156
|
+
id: 7,
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
text: '苏州',
|
|
160
|
+
id: 8,
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
],
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
text: '福建',
|
|
167
|
+
disabled: true,
|
|
168
|
+
options: [
|
|
169
|
+
{
|
|
170
|
+
text: '泉州',
|
|
171
|
+
id: 9,
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
},
|
|
175
|
+
];
|
|
176
|
+
|
|
177
|
+
export default function Demo() {
|
|
178
|
+
const [mainActiveIndex, setmainActiveIndex] = useState(0);
|
|
179
|
+
const [activeId, setactiveId] = useState([]);
|
|
180
|
+
const onClickNav = useCallback(({ detail }) => {
|
|
181
|
+
setmainActiveIndex(detail.index || 0);
|
|
182
|
+
}, []);
|
|
183
|
+
|
|
184
|
+
const onClickItem = useCallback(
|
|
185
|
+
({ detail }) => {
|
|
186
|
+
const result = [...activeIdMulti];
|
|
187
|
+
const idx = result.indexOf(detail.id);
|
|
188
|
+
if (idx > -1) {
|
|
189
|
+
result.splice(idx, 1);
|
|
190
|
+
} else {
|
|
191
|
+
result.push(detail.id);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
setactiveId(result);
|
|
195
|
+
},
|
|
196
|
+
[activeId]
|
|
197
|
+
);
|
|
198
|
+
return (
|
|
199
|
+
<TreeSelect
|
|
200
|
+
items={items}
|
|
201
|
+
max={2}
|
|
202
|
+
mainActiveIndex={mainActiveIndex}
|
|
203
|
+
activeId={activeId}
|
|
204
|
+
onClickItem={onClickItem}
|
|
205
|
+
onClickNav={onClickNav}
|
|
206
|
+
/>
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### 自定义内容
|
|
212
|
+
|
|
213
|
+
```jsx
|
|
214
|
+
import { TreeSelect, Image } from '@ray-js/smart-ui';
|
|
215
|
+
import React, { useState, useMemo, useCallback } from 'react';
|
|
216
|
+
|
|
217
|
+
export default function Demo() {
|
|
218
|
+
const [mainActiveIndex, setmainActiveIndex] = useState(0);
|
|
219
|
+
const [activeId, setactiveId] = useState([]);
|
|
220
|
+
const onClickNav = useCallback(({ detail }) => {
|
|
221
|
+
setmainActiveIndex(detail.index || 0);
|
|
222
|
+
}, []);
|
|
223
|
+
|
|
224
|
+
const onClickItem = useCallback(
|
|
225
|
+
({ detail }) => {
|
|
226
|
+
const result = [...activeIdMulti];
|
|
227
|
+
const idx = result.indexOf(detail.id);
|
|
228
|
+
if (idx > -1) {
|
|
229
|
+
result.splice(idx, 1);
|
|
230
|
+
} else {
|
|
231
|
+
result.push(detail.id);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
setactiveId(result);
|
|
235
|
+
},
|
|
236
|
+
[activeId]
|
|
237
|
+
);
|
|
238
|
+
return (
|
|
239
|
+
<TreeSelect
|
|
240
|
+
items={[{ text: '分组 1' }, { text: '分组 2' }]}
|
|
241
|
+
height="55vw"
|
|
242
|
+
mainActiveIndex={mainActiveIndex}
|
|
243
|
+
activeId={activeId}
|
|
244
|
+
onClickItem={onClickItem}
|
|
245
|
+
onClickNav={onClickNav}
|
|
246
|
+
slot={{
|
|
247
|
+
content: (
|
|
248
|
+
<Image
|
|
249
|
+
src={
|
|
250
|
+
mainActiveIndex === 0
|
|
251
|
+
? 'https://static1.tuyacn.com/static/tuya-miniapp-doc/_next/static/images/logo.png'
|
|
252
|
+
: 'https://static1.tuyacn.com/static/tuya-miniapp-doc/_next/static/images/logo.png'
|
|
253
|
+
}
|
|
254
|
+
width="100%"
|
|
255
|
+
height="100%"
|
|
256
|
+
/>
|
|
257
|
+
),
|
|
258
|
+
}}
|
|
259
|
+
/>
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
## API
|
|
265
|
+
|
|
266
|
+
### Props
|
|
267
|
+
|
|
268
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
269
|
+
| ----------------- | ----------------------------- | --------------------------- | ----------- |
|
|
270
|
+
| activeId | 右侧选中项的 id,支持传入数组 | _string \| number \| Array_ | `0` |
|
|
271
|
+
| height | 高度,默认单位为`px` | _number \| string_ | `300` |
|
|
272
|
+
| items | 分类显示所需的数据 | _Array_ | `[]` |
|
|
273
|
+
| mainActiveIndex | 左侧选中项的索引 | _number_ | `0` |
|
|
274
|
+
| max | 右侧项最大选中个数 | _number_ | _Infinity_ |
|
|
275
|
+
| selectedIcon | 自定义右侧栏选中状态的图标 | _string_ | `Checkmark` |
|
|
276
|
+
|
|
277
|
+
### Events
|
|
278
|
+
|
|
279
|
+
| 事件名 | 说明 | 回调参数 |
|
|
280
|
+
| --------------- | -------------------------------- | -------------------------------------- |
|
|
281
|
+
| onClickItem | 右侧选择项被点击时,会触发的事件 | event.detail: 该点击项的数据 |
|
|
282
|
+
| onClickNav | 左侧导航点击时,触发的事件 | event.detail.index:被点击的导航的索引 |
|
|
283
|
+
|
|
284
|
+
### Slots
|
|
285
|
+
|
|
286
|
+
| 名称 | 说明 |
|
|
287
|
+
| ------- | ------------------------------------------------ |
|
|
288
|
+
| content | 自定义右侧区域内容,如果存在 items,则插入在顶部 |
|
|
289
|
+
|
|
290
|
+
### items 数据结构
|
|
291
|
+
|
|
292
|
+
`items` 整体为一个数组,数组内包含一系列描述分类的对象。每个分类里,text 表示当前分类的名称。options 表示分类里的可选项,为数组结构,id 被用来唯一标识每个选项。
|
|
293
|
+
|
|
294
|
+
```javascript
|
|
295
|
+
[
|
|
296
|
+
{
|
|
297
|
+
// 导航名称
|
|
298
|
+
text: '所有城市',
|
|
299
|
+
// 导航名称右上角徽标
|
|
300
|
+
badge: 3,
|
|
301
|
+
// 是否在导航名称右上角显示小红点
|
|
302
|
+
dot: true,
|
|
303
|
+
// 禁用选项
|
|
304
|
+
disabled: false,
|
|
305
|
+
// 该导航下所有的可选项
|
|
306
|
+
options: [
|
|
307
|
+
{
|
|
308
|
+
// 名称
|
|
309
|
+
text: '温州',
|
|
310
|
+
// id,作为匹配选中状态的标识
|
|
311
|
+
id: 1,
|
|
312
|
+
// 禁用选项
|
|
313
|
+
disabled: true,
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
text: '杭州',
|
|
317
|
+
id: 2,
|
|
318
|
+
},
|
|
319
|
+
],
|
|
320
|
+
},
|
|
321
|
+
];
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
### 外部样式类
|
|
325
|
+
|
|
326
|
+
| 类名 | 说明 |
|
|
327
|
+
| ---------------------- | ------------------ |
|
|
328
|
+
| contentActiveClass | 右侧选项选中样式类 |
|
|
329
|
+
| contentDisabledClass | 右侧选项禁用样式类 |
|
|
330
|
+
| contentItemClass | 右侧选项样式类 |
|
|
331
|
+
| mainActiveClass | 左侧选项选中样式类 |
|
|
332
|
+
| mainDisabledClass | 左侧选项禁用样式类 |
|
|
333
|
+
| mainItemClass | 左侧选项样式类 |
|
|
334
|
+
|
|
335
|
+
### 样式变量
|
|
336
|
+
|
|
337
|
+
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](/material/smartui?comId=config-provider)。
|
|
338
|
+
|
|
339
|
+
| 名称 | 默认值 | 描述 |
|
|
340
|
+
| ----------------------------- | -------------------------------------- | ---- |
|
|
341
|
+
| --tree-select-font-color | _var(--app-B6-N1, rgba(0, 0, 0, 1))_ | 树形选择字体颜色 |
|
|
342
|
+
| --tree-select-font-size | _14px_ | 树形选择字体大小 |
|
|
343
|
+
| --tree-select-nav-background-color | _var(--app-B3, #ffffff)_ | 树形选择导航背景颜色 |
|
|
344
|
+
| --tree-select-content-background-color | _var(--app-B3, #ffffff)_ | 树形选择内容背景颜色 |
|
|
345
|
+
| --tree-select-nav-item-padding | _@padding-sm @padding-xs @padding-sm @padding-sm_ | 树形选择导航项内边距 |
|
|
346
|
+
| --tree-select-item-height | _44px_ | 树形选择项高度 |
|
|
347
|
+
| --tree-select-item-active-color | _#ee0a24_ | 活动状态选择项颜色 |
|
|
348
|
+
| --tree-select-item-disabled-color | _var(--app-B6-N4, rgba(0, 0, 0, 0.4))_ | 禁用状态选择项颜色 |
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentBase, SmartComponent } from '../base';
|
|
2
3
|
import { ThemeVars } from './theme-vars';
|
|
3
|
-
export interface SmartConfigProviderProps {
|
|
4
|
+
export interface SmartConfigProviderProps extends ComponentBase {
|
|
4
5
|
/**
|
|
5
6
|
* 自定义主题变量
|
|
6
7
|
*/
|
|
@@ -10,5 +11,9 @@ export interface SmartConfigProviderProps {
|
|
|
10
11
|
* @version 2.8.0
|
|
11
12
|
*/
|
|
12
13
|
theme?: 'light' | 'dark';
|
|
14
|
+
/**
|
|
15
|
+
* 内部根节点样式类
|
|
16
|
+
*/
|
|
17
|
+
customClass?: React.CSSProperties;
|
|
13
18
|
}
|
|
14
19
|
export type SmartConfigProvider = SmartComponent<SmartConfigProviderProps>;
|
|
@@ -5,7 +5,7 @@ type ToastThemeVars = 'toastBg' | 'toastBaseBorder' | 'toastBaseBoxShadow' | 'to
|
|
|
5
5
|
type IconThemeVars = 'iconColor';
|
|
6
6
|
type ActionSheetThemeVars = 'actionSheetWidth' | 'actionSheetLeft' | 'actionSheetMaxHeight' | 'actionSheetMargin' | 'actionSheetActiveColor' | 'actionSheetActiveIconColor' | 'actionSheetItemDisabledOpacity' | 'actionSheetHeaderBorderColor' | 'actionSheetHeaderHeight' | 'actionSheetHeaderColor' | 'actionSheetHeaderFontSize' | 'actionSheetHeaderFontWeight' | 'actionSheetDescriptionColor' | 'actionSheetDescriptionFontSize' | 'actionSheetDescriptionLineHeight' | 'actionSheetItemBackground' | 'actionSheetItemBorderRadius' | 'actionSheetItemIconMargin' | 'actionSheetItemIconColor' | 'actionSheetItemIconSize' | 'actionSheetItemFontSize' | 'actionSheetItemFontWeight' | 'actionSheetItemLineHeight' | 'actionSheetItemTextColor' | 'actionSheetSubnameColor' | 'actionSheetSubnameFontSize' | 'actionSheetSubnameLineHeight' | 'actionSheetConfirmTextColor' | 'actionSheetConfirmFontWeight' | 'actionSheetCancelTextColor' | 'actionSheetFooterPaddingTop' | 'actionSheetFooterPaddingColor';
|
|
7
7
|
type BottomSheetThemeVars = 'bottomSheetWidth' | 'bottomSheetMinHeight' | 'bottomSheetMaxHeight' | 'bottomSheetPadding' | 'bottomSheetHeaderPadding' | 'bottomSheetIconMargin' | 'bottomSheetHeaderHeight' | 'bottomSheetHeaderColor' | 'bottomSheetHeaderFontSize' | 'bottomSheetHeaderFontWeight' | 'bottomSheetFontColor' | 'bottomSheetDraggerPadding' | 'bottomSheetDraggerNodeWidth' | 'bottomSheetDraggerNodeHeight' | 'bottomSheetDraggerNodeBorderRadius' | 'bottomSheetDraggerNodeBackground';
|
|
8
|
-
type ButtonThemeVars = 'buttonMiniHeight' | 'buttonMiniMinWidth' | 'buttonMiniFontSize' | 'buttonSmallHeight' | 'buttonSmallFontSize' | 'buttonSmallMinWidth' | 'buttonNormalFontSize' | 'buttonLargeHeight' | 'buttonDefaultColor' | 'buttonDefaultHeight' | 'buttonDefaultFontSize' | 'buttonDefaultBackgroundColor' | 'buttonDefaultBorderColor' | 'buttonPrimaryColor' | 'buttonPrimaryBackgroundColor' | 'buttonPrimaryBorderColor' | 'buttonInfoColor' | 'buttonInfoBackgroundColor' | 'buttonInfoBorderColor' | 'buttonDangerColor' | 'buttonDangerBackgroundColor' | 'buttonDangerBorderColor' | 'buttonWarningColor' | 'buttonWarningBackgroundColor' | 'buttonWarningBorderColor' | 'buttonLineHeight' | 'buttonBorderWidth' | 'buttonBorderRadius' | 'buttonRoundBorderRadius' | 'buttonPlainBackgroundColor' | 'buttonDisabledOpacity' | 'buttonFontWeight' | 'buttonPrimaryFontWeight';
|
|
8
|
+
type ButtonThemeVars = 'buttonMiniHeight' | 'buttonMiniMinWidth' | 'buttonMiniFontSize' | 'buttonSmallHeight' | 'buttonSmallFontSize' | 'buttonSmallMinWidth' | 'buttonNormalFontSize' | 'buttonLargeHeight' | 'buttonDefaultColor' | 'buttonDefaultHeight' | 'buttonDefaultFontSize' | 'buttonDefaultBackgroundColor' | 'buttonDefaultBorderColor' | 'buttonPrimaryColor' | 'buttonPrimaryBackgroundColor' | 'buttonPrimaryBorderColor' | 'buttonInfoColor' | 'buttonInfoBackgroundColor' | 'buttonInfoBorderColor' | 'buttonDangerColor' | 'buttonDangerBackgroundColor' | 'buttonDangerBorderColor' | 'buttonWarningColor' | 'buttonWarningBackgroundColor' | 'buttonWarningBorderColor' | 'buttonLineHeight' | 'buttonBorderWidth' | 'buttonBorderRadius' | 'buttonRoundBorderRadius' | 'buttonPlainBackgroundColor' | 'buttonDisabledOpacity' | 'buttonFontWeight' | 'buttonPrimaryFontWeight' | 'buttonPlainColor';
|
|
9
9
|
type CalendarThemeVars = 'calendarBackgroundColor' | 'calendarHeaderBoxShadow' | 'calendarHeaderTitleHeight' | 'calendarHeaderTitleFontSize' | 'calendarHeaderTitleWeight' | 'calendarHeaderTitleFontColor' | 'calendarHeaderSubtitleFontSize' | 'calendarWeekdaysHeight' | 'calendarWeekdaysFontSize' | 'calendarWeekdaysFontColor' | 'calendarMonthTitleFontSize' | 'calendarMonthMarkColor' | 'calendarMonthMarkFontSize' | 'calendarDayHeight' | 'calendarCellItemFontSize' | 'calendarCellItemWidth' | 'calendarCellItemHeight' | 'calendarCellItemMargin' | 'calendarCellItemFontColor' | 'calendarCellItemBorderRadius' | 'calendarDayFontWeight' | 'calendarDaySelectBorderRadius' | 'calendarRangeEdgeColor' | 'calendarRangeEdgeBackgroundColor' | 'calendarRangeMiddleColor' | 'calendarRangeMiddleBackgroundOpacity' | 'calendarSelectedDaySize' | 'calendarSelectedDayColor' | 'calendarInfoFontSize' | 'calendarInfoLineHeight' | 'calendarSelectedDayBackgroundColor' | 'calendarConfirmButtonHeight' | 'calendarConfirmButtonMargin' | 'calendarConfirmButtonLineHeight' | 'calendarTextColor' | 'calendarPopupHeight' | 'calendarPopupHeightMonth' | 'calendarPopupHeightYear' | 'calendarHeaderSaveColor' | 'calendarHeaderIconBgColor' | 'calendarHeaderIconColor';
|
|
10
10
|
type CellThemeVars = 'cellFontSize' | 'cellLineHeight' | 'cellVerticalPadding' | 'cellHorizontalPadding' | 'cellTextColor' | 'cellBackgroundColor' | 'cellActiveColor' | 'cellRequiredColor' | 'cellLabelColor' | 'cellLabelFontSize' | 'cellLabelLineHeight' | 'cellLabelMarginTop' | 'cellValueColor' | 'cellIconSize' | 'cellRightIconColor' | 'cellBorderColor' | 'cellBorderLeftPosition' | 'cellBorderRightPosition' | 'cellGroupBackgroundColor' | 'cellGroupTitleColor' | 'cellGroupTitlePadding' | 'cellGroupTitleFontSize' | 'cellGroupTitleLineHeight' | 'cellGroupInsetPadding' | 'cellGroupInsetBorderRadius' | 'cellGroupInsetTitlePadding';
|
|
11
11
|
type CheckboxThemeVars = 'checkboxSize' | 'checkboxBorderColor' | 'checkboxBorderRadius' | 'checkboxTransitionDuration' | 'checkboxLabelSize' | 'checkboxLabelMargin' | 'checkboxLabelColor' | 'checkboxCheckedIconColor' | 'checkboxDisabledLabelColor' | 'checkboxDisabledOpacity';
|