@ray-js/smart-ui 1.0.0-beta.2 → 1.0.1-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/README.md +54 -1
- package/dist/@types/action-sheet/index.d.ts +115 -0
- package/dist/@types/area/index.d.ts +120 -0
- package/dist/@types/area/index.js +2 -0
- package/dist/@types/base/component.d.ts +11 -0
- package/dist/@types/base/component.js +2 -0
- package/dist/@types/base/events.d.ts +27 -0
- package/dist/@types/base/events.js +2 -0
- package/dist/@types/base/external-class-name.d.ts +12 -0
- package/dist/@types/base/external-class-name.js +2 -0
- package/dist/@types/base/index.d.ts +4 -0
- package/dist/{card → @types/base}/index.js +4 -8
- package/dist/@types/base/open-type.d.ts +175 -0
- package/dist/@types/base/open-type.js +2 -0
- package/dist/@types/battery/index.d.ts +58 -0
- package/dist/@types/battery/index.js +2 -0
- package/dist/@types/button/index.d.ts +109 -0
- package/dist/@types/button/index.js +2 -0
- package/dist/@types/calendar/index.d.ts +264 -0
- package/dist/@types/calendar/index.js +2 -0
- package/dist/@types/card/index.d.ts +92 -0
- package/dist/@types/card/index.js +2 -0
- package/dist/@types/cascader/index.d.ts +139 -0
- package/dist/@types/cascader/index.js +2 -0
- package/dist/@types/cell/index.d.ts +128 -0
- package/dist/@types/cell/index.js +2 -0
- package/dist/@types/cell-group/index.d.ts +21 -0
- package/dist/@types/cell-group/index.js +2 -0
- package/dist/@types/checkbox/index.d.ts +85 -0
- package/dist/@types/checkbox/index.js +2 -0
- package/dist/@types/checkbox-group/index.d.ts +38 -0
- package/dist/@types/checkbox-group/index.js +2 -0
- package/dist/@types/circle/index.d.ts +58 -0
- package/dist/@types/circle/index.js +2 -0
- package/dist/@types/col/index.d.ts +13 -0
- package/dist/@types/col/index.js +2 -0
- package/dist/@types/collapse/index.d.ts +60 -0
- package/dist/@types/collapse/index.js +2 -0
- package/dist/@types/collapse-item/index.d.ts +62 -0
- package/dist/@types/collapse-item/index.js +2 -0
- package/dist/@types/config-provider/index.d.ts +9 -0
- package/dist/@types/config-provider/index.js +2 -0
- package/dist/@types/config-provider/theme-vars.d.ts +63 -0
- package/dist/@types/config-provider/theme-vars.js +2 -0
- package/dist/@types/count-down/index.d.ts +81 -0
- package/dist/@types/count-down/index.js +2 -0
- package/dist/@types/custom-keyboard/index.d.ts +97 -0
- package/dist/@types/custom-keyboard/index.js +2 -0
- package/dist/@types/datetime-picker/index.d.ts +150 -0
- package/dist/@types/datetime-picker/index.js +2 -0
- package/dist/@types/dialog/dialog.d.ts +137 -0
- package/dist/@types/dialog/dialog.js +2 -0
- package/dist/@types/dialog/index.d.ts +168 -0
- package/dist/@types/dialog/index.js +2 -0
- package/dist/@types/divider/index.d.ts +24 -0
- package/dist/@types/divider/index.js +2 -0
- package/dist/@types/dropdown-item/index.d.ts +92 -0
- package/dist/@types/dropdown-item/index.js +2 -0
- package/dist/@types/dropdown-menu/index.d.ts +44 -0
- package/dist/@types/dropdown-menu/index.js +2 -0
- package/dist/@types/empty/index.d.ts +14 -0
- package/dist/@types/empty/index.js +2 -0
- package/dist/@types/field/index.d.ts +332 -0
- package/dist/@types/field/index.js +2 -0
- package/dist/@types/goods-action/index.d.ts +10 -0
- package/dist/@types/goods-action/index.js +2 -0
- package/dist/@types/goods-action-button/index.d.ts +67 -0
- package/dist/@types/goods-action-button/index.js +2 -0
- package/dist/@types/goods-action-icon/index.d.ts +60 -0
- package/dist/@types/goods-action-icon/index.js +2 -0
- package/dist/@types/grid/index.d.ts +63 -0
- package/dist/@types/grid/index.js +2 -0
- package/dist/@types/grid-item/index.d.ts +70 -0
- package/dist/@types/grid-item/index.js +2 -0
- package/dist/@types/icon/index.d.ts +47 -0
- package/dist/@types/icon/index.js +2 -0
- package/dist/@types/image/index.d.ts +117 -0
- package/dist/@types/image/index.js +2 -0
- package/dist/@types/index-anchor/index.d.ts +14 -0
- package/dist/@types/index-anchor/index.js +2 -0
- package/dist/@types/index-bar/index.d.ts +50 -0
- package/dist/@types/index-bar/index.js +2 -0
- package/dist/@types/index.d.ts +71 -0
- package/dist/@types/index.js +87 -0
- package/dist/@types/loading/index.d.ts +39 -0
- package/dist/@types/loading/index.js +2 -0
- package/dist/@types/nav-bar/index.d.ts +96 -0
- package/dist/@types/nav-bar/index.js +2 -0
- package/dist/@types/notice-bar/index.d.ts +71 -0
- package/dist/@types/notice-bar/index.js +2 -0
- package/dist/@types/notify/index.d.ts +1 -0
- package/dist/@types/notify/index.js +2 -0
- package/dist/@types/notify/notify.d.ts +84 -0
- package/dist/@types/notify/notify.js +2 -0
- package/dist/@types/overlay/index.d.ts +49 -0
- package/dist/@types/overlay/index.js +2 -0
- package/dist/@types/panel/index.d.ts +26 -0
- package/dist/@types/panel/index.js +2 -0
- package/dist/@types/picker/index.d.ts +154 -0
- package/dist/@types/picker/index.js +2 -0
- package/dist/@types/popup/index.d.ts +107 -0
- package/dist/@types/popup/index.js +2 -0
- package/dist/@types/progress/index.d.ts +59 -0
- package/dist/@types/progress/index.js +2 -0
- package/dist/@types/radio/index.d.ts +69 -0
- package/dist/@types/radio/index.js +2 -0
- package/dist/@types/radio-group/index.d.ts +37 -0
- package/dist/@types/radio-group/index.js +2 -0
- package/dist/@types/rate/index.d.ts +103 -0
- package/dist/@types/rate/index.js +2 -0
- package/dist/@types/row/index.d.ts +9 -0
- package/dist/@types/row/index.js +2 -0
- package/dist/@types/search/index.d.ts +166 -0
- package/dist/@types/search/index.js +2 -0
- package/dist/@types/share-sheet/index.d.ts +95 -0
- package/dist/@types/share-sheet/index.js +2 -0
- package/dist/@types/sidebar/index.d.ts +27 -0
- package/dist/@types/sidebar/index.js +2 -0
- package/dist/@types/sidebar-item/index.d.ts +52 -0
- package/dist/@types/sidebar-item/index.js +2 -0
- package/dist/@types/skeleton/index.d.ts +56 -0
- package/dist/@types/skeleton/index.js +2 -0
- package/dist/@types/slider/index.d.ts +103 -0
- package/dist/@types/slider/index.js +2 -0
- package/dist/@types/stepper/index.d.ts +169 -0
- package/dist/@types/stepper/index.js +2 -0
- package/dist/@types/steps/index.d.ts +83 -0
- package/dist/@types/steps/index.js +2 -0
- package/dist/@types/sticky/index.d.ts +36 -0
- package/dist/@types/sticky/index.js +2 -0
- package/dist/@types/submit-bar/index.d.ts +86 -0
- package/dist/@types/submit-bar/index.js +2 -0
- package/dist/@types/swipe-cell/index.d.ts +75 -0
- package/dist/@types/swipe-cell/index.js +2 -0
- package/dist/@types/switch/index.d.ts +75 -0
- package/dist/@types/switch/index.js +2 -0
- package/dist/@types/tab/index.d.ts +41 -0
- package/dist/@types/tab/index.js +2 -0
- package/dist/@types/tabbar/index.d.ts +68 -0
- package/dist/@types/tabbar/index.js +2 -0
- package/dist/@types/tabbar-item/index.d.ts +28 -0
- package/dist/@types/tabbar-item/index.js +2 -0
- package/dist/@types/tabs/index.d.ts +174 -0
- package/dist/@types/tabs/index.js +2 -0
- package/dist/@types/tag/index.d.ts +50 -0
- package/dist/@types/tag/index.js +2 -0
- package/dist/@types/toast/index.d.ts +2 -0
- package/dist/@types/toast/index.js +2 -0
- package/dist/@types/toast/toast.d.ts +112 -0
- package/dist/@types/toast/toast.js +3 -0
- package/dist/@types/transition/index.d.ts +105 -0
- package/dist/@types/transition/index.js +2 -0
- package/dist/@types/tree-select/index.d.ts +126 -0
- package/dist/@types/tree-select/index.js +2 -0
- package/dist/@types/uploader/index.d.ts +157 -0
- package/dist/@types/uploader/index.js +2 -0
- package/dist/action-sheet/PropTypes.d.ts +1 -1
- package/dist/area/PropTypes.d.ts +1 -1
- package/dist/base/index.d.ts +1 -1
- package/dist/battery/PropTypes.d.ts +1 -1
- package/dist/button/PropTypes.d.ts +1 -1
- package/dist/calendar/PropTypes.d.ts +1 -1
- package/dist/cascader/PropTypes.d.ts +1 -1
- package/dist/cell/PropTypes.d.ts +1 -1
- package/dist/cell-group/PropTypes.d.ts +1 -1
- package/dist/checkbox/PropTypes.d.ts +1 -1
- package/dist/checkbox-group/PropTypes.d.ts +1 -1
- package/dist/circle/PropTypes.d.ts +1 -1
- package/dist/col/PropTypes.d.ts +1 -1
- package/dist/collapse/PropTypes.d.ts +1 -1
- package/dist/collapse-item/PropTypes.d.ts +1 -1
- package/dist/config-provider/PropTypes.d.ts +1 -1
- package/dist/count-down/PropTypes.d.ts +1 -1
- package/dist/custom-keyboard/PropTypes.d.ts +1 -1
- package/dist/datetime-picker/PropTypes.d.ts +1 -1
- package/dist/dialog/PropTypes.d.ts +1 -1
- package/dist/divider/PropTypes.d.ts +1 -1
- package/dist/dropdown-item/PropTypes.d.ts +1 -1
- package/dist/dropdown-menu/PropTypes.d.ts +1 -1
- package/dist/empty/PropTypes.d.ts +1 -1
- package/dist/field/PropTypes.d.ts +1 -1
- package/dist/grid/PropTypes.d.ts +1 -1
- package/dist/grid-item/PropTypes.d.ts +1 -1
- package/dist/icon/PropTypes.d.ts +1 -1
- package/dist/image/PropTypes.d.ts +1 -1
- package/dist/index-anchor/PropTypes.d.ts +1 -1
- package/dist/index-bar/PropTypes.d.ts +1 -1
- package/dist/loading/PropTypes.d.ts +1 -1
- package/dist/nav-bar/PropTypes.d.ts +1 -1
- package/dist/notice-bar/PropTypes.d.ts +1 -1
- package/dist/notify/PropTypes.d.ts +1 -1
- package/dist/overlay/PropTypes.d.ts +1 -1
- package/dist/picker/PropTypes.d.ts +1 -1
- package/dist/popup/PropTypes.d.ts +1 -1
- package/dist/radio/PropTypes.d.ts +1 -1
- package/dist/radio-group/PropTypes.d.ts +1 -1
- package/dist/rate/PropTypes.d.ts +1 -1
- package/dist/row/PropTypes.d.ts +1 -1
- package/dist/search/PropTypes.d.ts +1 -1
- package/dist/share-sheet/PropTypes.d.ts +1 -1
- package/dist/sidebar/PropTypes.d.ts +1 -1
- package/dist/sidebar-item/PropTypes.d.ts +1 -1
- package/dist/skeleton/PropTypes.d.ts +1 -1
- package/dist/slider/PropTypes.d.ts +1 -1
- package/dist/slider/index.d.ts +4 -4
- package/dist/stepper/PropTypes.d.ts +1 -1
- package/dist/steps/PropTypes.d.ts +1 -1
- package/dist/sticky/PropTypes.d.ts +1 -1
- package/dist/swipe-cell/PropTypes.d.ts +1 -1
- package/dist/switch/PropTypes.d.ts +1 -1
- package/dist/tab/PropTypes.d.ts +1 -1
- package/dist/tabbar/PropTypes.d.ts +1 -1
- package/dist/tabbar-item/PropTypes.d.ts +1 -1
- package/dist/tabs/PropTypes.d.ts +1 -1
- package/dist/tag/PropTypes.d.ts +1 -1
- package/dist/toast/PropTypes.d.ts +1 -1
- package/dist/toast/index.d.ts +2 -1
- package/dist/transition/PropTypes.d.ts +1 -1
- package/dist/tree-select/PropTypes.d.ts +1 -1
- package/package.json +45 -8
- package/dist/card/Card.d.ts +0 -2
- package/dist/card/Card.js +0 -8
- package/dist/card/PropTypes.d.ts +0 -2
- package/dist/card/index.d.ts +0 -5
- /package/dist/{card/PropTypes.js → @types/action-sheet/index.js} +0 -0
- /package/dist/notify/{Notify.d.ts → notify.d.ts} +0 -0
- /package/dist/notify/{Notify.js → notify.js} +0 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TouchPositionDetail, VantBaseExternalClassName, VantComponent, VantEventHandler } from '../base';
|
|
3
|
+
export interface VantCellProps {
|
|
4
|
+
/**
|
|
5
|
+
* 左侧图标名称或图片链接,可选值见 Icon 组件
|
|
6
|
+
*/
|
|
7
|
+
icon?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 左侧标题
|
|
10
|
+
*/
|
|
11
|
+
title?: string | number;
|
|
12
|
+
/**
|
|
13
|
+
* 标题宽度,须包含单位
|
|
14
|
+
*/
|
|
15
|
+
titleWidth?: string;
|
|
16
|
+
/**
|
|
17
|
+
* 右侧内容
|
|
18
|
+
*/
|
|
19
|
+
value?: string | number;
|
|
20
|
+
/**
|
|
21
|
+
* 标题下方的描述信息
|
|
22
|
+
*/
|
|
23
|
+
label?: string;
|
|
24
|
+
/**
|
|
25
|
+
* 单元格大小
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* 是否显示下边框
|
|
29
|
+
*
|
|
30
|
+
* @default true
|
|
31
|
+
*/
|
|
32
|
+
border?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* 是否使内容垂直居中
|
|
35
|
+
*
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
/**
|
|
39
|
+
* 点击后跳转的链接地址
|
|
40
|
+
*/
|
|
41
|
+
url?: string;
|
|
42
|
+
/**
|
|
43
|
+
* 链接跳转类型
|
|
44
|
+
*
|
|
45
|
+
* @default 'navigateTo'
|
|
46
|
+
*/
|
|
47
|
+
linkType?: 'redirectTo' | 'switchTab' | 'reLaunch';
|
|
48
|
+
/**
|
|
49
|
+
* 是否开启点击反馈
|
|
50
|
+
*
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
clickable?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* 是否展示右侧箭头并开启点击反馈
|
|
56
|
+
*
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
isLink?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* 是否显示表单必填星号
|
|
62
|
+
*
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
required?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* 箭头方向
|
|
68
|
+
*/
|
|
69
|
+
arrowDirection?: 'left' | 'up' | 'down';
|
|
70
|
+
/**
|
|
71
|
+
* 是否使用`label slot`
|
|
72
|
+
*
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
75
|
+
uselabelSlot?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* 标题样式
|
|
78
|
+
*/
|
|
79
|
+
titleStyle?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface VantCellEvents {
|
|
82
|
+
/**
|
|
83
|
+
* 点击单元格时触发
|
|
84
|
+
*/
|
|
85
|
+
onClick?: VantEventHandler<TouchPositionDetail>;
|
|
86
|
+
}
|
|
87
|
+
export interface VantCellExternalClassName extends VantBaseExternalClassName {
|
|
88
|
+
/**
|
|
89
|
+
* 标题样式类
|
|
90
|
+
*/
|
|
91
|
+
titleClass?: string;
|
|
92
|
+
/**
|
|
93
|
+
* 描述信息样式类
|
|
94
|
+
*/
|
|
95
|
+
labelClass?: string;
|
|
96
|
+
/**
|
|
97
|
+
* 右侧内容样式类
|
|
98
|
+
*/
|
|
99
|
+
valueClass?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface VantCellSlot {
|
|
102
|
+
/**
|
|
103
|
+
* 自定义 value 显示内容,如果设置了 value 属性则不生效
|
|
104
|
+
*/
|
|
105
|
+
children?: React.ReactNode;
|
|
106
|
+
/**
|
|
107
|
+
* Cell Slot
|
|
108
|
+
*/
|
|
109
|
+
slot?: {
|
|
110
|
+
/**
|
|
111
|
+
* 自定义 title 显示内容,如果设置了 title 属性则不生效
|
|
112
|
+
*/
|
|
113
|
+
title?: React.ReactNode;
|
|
114
|
+
/**
|
|
115
|
+
* 自定义 label 显示内容,需要设置 use-label-slot 属性
|
|
116
|
+
*/
|
|
117
|
+
label?: React.ReactNode;
|
|
118
|
+
/**
|
|
119
|
+
* 自定义 icon 显示内容,如果设置了 icon 属性则不生效
|
|
120
|
+
*/
|
|
121
|
+
icon?: React.ReactNode;
|
|
122
|
+
/**
|
|
123
|
+
* 自定义右侧按钮,默认是 arrow,如果设置了 is-link 属性则不生效
|
|
124
|
+
*/
|
|
125
|
+
rightIcon?: React.ReactNode;
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
export type VantCell = VantComponent<VantCellProps, VantCellEvents, VantCellExternalClassName, VantCellSlot>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VantBaseExternalClassName, VantComponent } from '../base';
|
|
2
|
+
export interface VantCellGroupProps {
|
|
3
|
+
/**
|
|
4
|
+
* 分组标题
|
|
5
|
+
*/
|
|
6
|
+
title?: string;
|
|
7
|
+
/**
|
|
8
|
+
* 是否展示为圆角卡片风格
|
|
9
|
+
*
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
inset?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 是否显示外边框
|
|
15
|
+
*
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
border?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export type VantCellGroupExternalClassName = VantBaseExternalClassName;
|
|
21
|
+
export type VantCellGroup = VantComponent<VantCellGroupProps, {}, VantCellGroupExternalClassName>;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/// <reference types="miniprogram-api-typings" />
|
|
2
|
+
import { VantBaseExternalClassName, VantComponent, VantEventHandler } from '../base';
|
|
3
|
+
interface OtherProps {
|
|
4
|
+
/**
|
|
5
|
+
* 形状
|
|
6
|
+
*
|
|
7
|
+
* @default 'round'
|
|
8
|
+
*/
|
|
9
|
+
shape?: 'round' | 'square';
|
|
10
|
+
/**
|
|
11
|
+
* 是否为选中状态
|
|
12
|
+
*
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
value?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* 是否禁用单选框
|
|
18
|
+
*
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 是否禁用单选框内容点击
|
|
24
|
+
*
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
labelDisabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* 文本位置
|
|
30
|
+
*
|
|
31
|
+
* @default 'right'
|
|
32
|
+
*/
|
|
33
|
+
labelPosition?: 'left' | 'right';
|
|
34
|
+
/**
|
|
35
|
+
* 是否使用`icon slot`
|
|
36
|
+
*
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
useIconSlot?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* 选中状态颜色
|
|
42
|
+
*
|
|
43
|
+
* @default '#1989fa'
|
|
44
|
+
*/
|
|
45
|
+
checkedColor?: string;
|
|
46
|
+
/**
|
|
47
|
+
* `icon`大小
|
|
48
|
+
*
|
|
49
|
+
* @default 20px
|
|
50
|
+
*/
|
|
51
|
+
iconSize?: string | number;
|
|
52
|
+
}
|
|
53
|
+
interface VantCheckboxPropsWithName extends OtherProps {
|
|
54
|
+
name: string;
|
|
55
|
+
dataName: string;
|
|
56
|
+
}
|
|
57
|
+
interface VantCheckboxPropsWithoutName extends OtherProps {
|
|
58
|
+
name?: never;
|
|
59
|
+
dataName?: string;
|
|
60
|
+
}
|
|
61
|
+
export type VantCheckboxProps = VantCheckboxPropsWithName | VantCheckboxPropsWithoutName;
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated
|
|
64
|
+
*/
|
|
65
|
+
export interface VantCheckboxChangeEvent extends WechatMiniprogram.BaseEvent {
|
|
66
|
+
detail: boolean;
|
|
67
|
+
}
|
|
68
|
+
export interface VantCheckboxEvents {
|
|
69
|
+
/**
|
|
70
|
+
* 当绑定值变化时触发的事件
|
|
71
|
+
*/
|
|
72
|
+
onChange?: VantEventHandler<boolean>;
|
|
73
|
+
}
|
|
74
|
+
export interface VantCheckboxExternalClassName extends VantBaseExternalClassName {
|
|
75
|
+
/**
|
|
76
|
+
* 图标样式类
|
|
77
|
+
*/
|
|
78
|
+
iconClass?: string;
|
|
79
|
+
/**
|
|
80
|
+
* 描述信息样式类
|
|
81
|
+
*/
|
|
82
|
+
labelClass?: string;
|
|
83
|
+
}
|
|
84
|
+
export type VantCheckbox = VantComponent<VantCheckboxProps, VantCheckboxEvents, VantCheckboxExternalClassName>;
|
|
85
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { VantComponent, VantEventHandler } from '../base';
|
|
2
|
+
export interface VantCheckboxGroupProps {
|
|
3
|
+
/**
|
|
4
|
+
* 在表单内提交时的标识符
|
|
5
|
+
*/
|
|
6
|
+
name?: string;
|
|
7
|
+
/**
|
|
8
|
+
* 所有选中项的`name`
|
|
9
|
+
*/
|
|
10
|
+
value?: string[];
|
|
11
|
+
/**
|
|
12
|
+
* 是否禁用所有单选框
|
|
13
|
+
*
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 设置最大可选数
|
|
19
|
+
*
|
|
20
|
+
* `0`为无限制
|
|
21
|
+
*
|
|
22
|
+
* @default 0
|
|
23
|
+
*/
|
|
24
|
+
max?: number;
|
|
25
|
+
/**
|
|
26
|
+
* 排列方向
|
|
27
|
+
*
|
|
28
|
+
* @version `v1.7.0`
|
|
29
|
+
*/
|
|
30
|
+
direction?: 'horizontal' | 'vertical';
|
|
31
|
+
}
|
|
32
|
+
export interface VantCheckboxGroupEvents {
|
|
33
|
+
/**
|
|
34
|
+
* 当绑定值变化时触发的事件
|
|
35
|
+
*/
|
|
36
|
+
onChange?: VantEventHandler<string[]>;
|
|
37
|
+
}
|
|
38
|
+
export type VantCheckboxGroup = VantComponent<VantCheckboxGroupProps, VantCheckboxGroupEvents>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { VantComponent } from '../base';
|
|
2
|
+
export interface VantCircleProps {
|
|
3
|
+
/**
|
|
4
|
+
* 目标进度
|
|
5
|
+
*
|
|
6
|
+
* @default 0
|
|
7
|
+
*/
|
|
8
|
+
value?: number;
|
|
9
|
+
/**
|
|
10
|
+
* 指定`canvas`类型
|
|
11
|
+
*/
|
|
12
|
+
type?: '2d';
|
|
13
|
+
/**
|
|
14
|
+
* 圆环直径,默认单位为 `px`
|
|
15
|
+
*
|
|
16
|
+
* @default 100
|
|
17
|
+
*/
|
|
18
|
+
size?: number;
|
|
19
|
+
/**
|
|
20
|
+
* 进度条颜色,传入对象格式可以定义渐变色
|
|
21
|
+
*
|
|
22
|
+
* @default '#1989fa'
|
|
23
|
+
*/
|
|
24
|
+
color?: string | Record<string, string>;
|
|
25
|
+
/**
|
|
26
|
+
* 轨道颜色
|
|
27
|
+
*
|
|
28
|
+
* @default '#fff'
|
|
29
|
+
*/
|
|
30
|
+
'layer-color'?: string;
|
|
31
|
+
/**
|
|
32
|
+
* 填充颜色
|
|
33
|
+
*/
|
|
34
|
+
fill?: string;
|
|
35
|
+
/**
|
|
36
|
+
* 动画速度(单位为 value/s)
|
|
37
|
+
*
|
|
38
|
+
* @default 50
|
|
39
|
+
*/
|
|
40
|
+
speed?: number;
|
|
41
|
+
/**
|
|
42
|
+
* 文字
|
|
43
|
+
*/
|
|
44
|
+
text?: string;
|
|
45
|
+
/**
|
|
46
|
+
* 进度条宽度
|
|
47
|
+
*
|
|
48
|
+
* @default 4
|
|
49
|
+
*/
|
|
50
|
+
'stroke-width'?: number;
|
|
51
|
+
/**
|
|
52
|
+
* 是否顺时针增加
|
|
53
|
+
*
|
|
54
|
+
* @default true
|
|
55
|
+
*/
|
|
56
|
+
clockwise?: boolean;
|
|
57
|
+
}
|
|
58
|
+
export type VantCircle = VantComponent<VantCircleProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VantBaseExternalClassName, VantComponent } from '../base';
|
|
2
|
+
export interface VantColProps {
|
|
3
|
+
/**
|
|
4
|
+
* 列元素宽度
|
|
5
|
+
*/
|
|
6
|
+
span?: string | number;
|
|
7
|
+
/**
|
|
8
|
+
* 列元素偏移距离
|
|
9
|
+
*/
|
|
10
|
+
offset?: string | number;
|
|
11
|
+
}
|
|
12
|
+
export type VantColExternalClassName = VantBaseExternalClassName;
|
|
13
|
+
export type VantCol = VantComponent<VantColProps, {}, VantColExternalClassName>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/// <reference types="miniprogram-api-typings" />
|
|
2
|
+
import { VantBaseExternalClassName, VantComponent, VantEventHandler } from '../base';
|
|
3
|
+
export interface VantCollapseProps {
|
|
4
|
+
/**
|
|
5
|
+
* 当前展开面板的 `name`
|
|
6
|
+
*
|
|
7
|
+
* 非手风琴模式:`(string | number)[]`
|
|
8
|
+
*
|
|
9
|
+
* 手风琴模式:`string | number`
|
|
10
|
+
*/
|
|
11
|
+
value?: string | number | (string | number)[];
|
|
12
|
+
/**
|
|
13
|
+
* 是否开启手风琴模式
|
|
14
|
+
*
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
accordion?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 是否显示外边框
|
|
20
|
+
*
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
border?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
*/
|
|
28
|
+
export interface VantCollapseBaseEvent extends WechatMiniprogram.BaseEvent {
|
|
29
|
+
/**
|
|
30
|
+
* 当前打开的面板 name
|
|
31
|
+
*/
|
|
32
|
+
detail: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated
|
|
36
|
+
*/
|
|
37
|
+
export interface VantCollapseChangeEvent extends WechatMiniprogram.BaseEvent {
|
|
38
|
+
/**
|
|
39
|
+
* 手风琴模式时,为 name
|
|
40
|
+
*
|
|
41
|
+
* 非手风琴模式时,为打开的折叠面板的 name 数组
|
|
42
|
+
*/
|
|
43
|
+
detail: string | string[];
|
|
44
|
+
}
|
|
45
|
+
export interface VantCollapseEvents {
|
|
46
|
+
/**
|
|
47
|
+
* 切换面板时触发
|
|
48
|
+
*/
|
|
49
|
+
onChange?: VantEventHandler<string | string[]>;
|
|
50
|
+
/**
|
|
51
|
+
* 展开面板时触发
|
|
52
|
+
*/
|
|
53
|
+
onOpen?: VantEventHandler<string>;
|
|
54
|
+
/**
|
|
55
|
+
* 关闭面板时触发
|
|
56
|
+
*/
|
|
57
|
+
onClose?: VantEventHandler<string>;
|
|
58
|
+
}
|
|
59
|
+
export type VantCollapseExternalClassName = VantBaseExternalClassName;
|
|
60
|
+
export type VantCollapse = VantComponent<VantCollapseProps, VantCollapseEvents, VantCollapseExternalClassName>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { VantBaseExternalClassName, VantComponent } from '../base';
|
|
2
|
+
export interface VantCollapseItemProps {
|
|
3
|
+
/**
|
|
4
|
+
* 唯一标识符,默认为索引值
|
|
5
|
+
*
|
|
6
|
+
* @default index
|
|
7
|
+
*/
|
|
8
|
+
name?: string | number;
|
|
9
|
+
/**
|
|
10
|
+
* 标题栏左侧内容
|
|
11
|
+
*/
|
|
12
|
+
title?: string | number;
|
|
13
|
+
/**
|
|
14
|
+
* 标题栏左侧图标名称或图片链接,可选值见 `Icon` 组件
|
|
15
|
+
*/
|
|
16
|
+
icon?: string;
|
|
17
|
+
/**
|
|
18
|
+
* 标题栏右侧内容
|
|
19
|
+
*/
|
|
20
|
+
value?: string | number;
|
|
21
|
+
/**
|
|
22
|
+
* 标题栏描述信息
|
|
23
|
+
*/
|
|
24
|
+
label?: string;
|
|
25
|
+
/**
|
|
26
|
+
* 是否显示内边框
|
|
27
|
+
*
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
border?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* 是否展示标题栏右侧箭头并开启点击反馈
|
|
33
|
+
*
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
isLink?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* 是否开启点击反馈
|
|
39
|
+
*
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
clickable?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* 是否禁用面板
|
|
45
|
+
*
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* 标题栏大小
|
|
51
|
+
*
|
|
52
|
+
* @since `v1.10.3`
|
|
53
|
+
*/
|
|
54
|
+
size?: 'large';
|
|
55
|
+
}
|
|
56
|
+
export interface VantCollapseItemExternalClassName extends VantBaseExternalClassName {
|
|
57
|
+
/**
|
|
58
|
+
* 内容样式类
|
|
59
|
+
*/
|
|
60
|
+
contentClass?: string;
|
|
61
|
+
}
|
|
62
|
+
export type VantCollapseItem = VantComponent<VantCollapseItemProps, {}, VantCollapseItemExternalClassName>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VantComponent } from '../base';
|
|
2
|
+
import { ThemeVars } from './theme-vars';
|
|
3
|
+
export interface VantConfigProviderProps {
|
|
4
|
+
/**
|
|
5
|
+
* 自定义主题变量
|
|
6
|
+
*/
|
|
7
|
+
themeVars?: Partial<ThemeVars>;
|
|
8
|
+
}
|
|
9
|
+
export type VantConfigProvider = VantComponent<VantConfigProviderProps>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
type ColorPaletteThemeVars = 'black' | 'white' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'gray6' | 'gray7' | 'gray8' | 'red' | 'blue' | 'orange' | 'orangeDark' | 'orangeLight' | 'green';
|
|
2
|
+
type GradientColorsThemeVars = 'gradientRed' | 'gradientOrange';
|
|
3
|
+
type ComponentColorsThemeVars = 'textColor' | 'activeColor' | 'activeOpacity' | 'disabledOpacity' | 'backgroundColor' | 'backgroundColorLight' | 'textLinkColor';
|
|
4
|
+
type PaddingThemeVars = 'paddingBase' | 'paddingXs' | 'paddingSm' | 'paddingMd' | 'paddingLg' | 'paddingXl';
|
|
5
|
+
type FontThemeVars = 'fontSizeXs' | 'fontSizeSm' | 'fontSizeMd' | 'fontSizeLg' | 'fontWeightBold' | 'lineHeightXs' | 'lineHeightSm' | 'lineHeightMd' | 'lineHeightLg' | 'baseFontFamily' | 'priceIntegerFontFamily';
|
|
6
|
+
type AnimationThemeVars = 'animationDurationBase' | 'animationDurationFast';
|
|
7
|
+
type BorderThemeVars = 'borderColor' | 'borderWidthBase' | 'borderRadiusSm' | 'borderRadiusMd' | 'borderRadiusLg' | 'borderRadiusMax';
|
|
8
|
+
type ActionSheetThemeVars = 'actionSheetMaxHeight' | 'actionSheetHeaderHeight' | 'actionSheetHeaderFontSize' | 'actionSheetDescriptionColor' | 'actionSheetDescriptionFontSize' | 'actionSheetDescriptionLineHeight' | 'actionSheetItemBackground' | 'actionSheetItemFontSize' | 'actionSheetItemLineHeight' | 'actionSheetItemTextColor' | 'actionSheetItemDisabledTextColor' | 'actionSheetSubnameColor' | 'actionSheetSubnameFontSize' | 'actionSheetSubnameLineHeight' | 'actionSheetCloseIconSize' | 'actionSheetCloseIconColor' | 'actionSheetCloseIconPadding' | 'actionSheetCancelTextColor' | 'actionSheetCancelPaddingTop' | 'actionSheetCancelPaddingColor';
|
|
9
|
+
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';
|
|
10
|
+
type CalendarThemeVars = 'calendarHeight' | 'calendarBackgroundColor' | 'calendarPopupHeight' | 'calendarHeaderBoxShadow' | 'calendarHeaderTitleHeight' | 'calendarHeaderTitleFontSize' | 'calendarHeaderSubtitleFontSize' | 'calendarWeekdaysHeight' | 'calendarWeekdaysFontSize' | 'calendarMonthTitleFontSize' | 'calendarMonthMarkColor' | 'calendarMonthMarkFontSize' | 'calendarDayHeight' | 'calendarDayFontSize' | 'calendarRangeEdgeColor' | 'calendarRangeEdgeBackgroundColor' | 'calendarRangeMiddleColor' | 'calendarRangeMiddleBackgroundOpacity' | 'calendarSelectedDaySize' | 'calendarSelectedDayColor' | 'calendarInfoFontSize' | 'calendarInfoLineHeight' | 'calendarSelectedDayBackgroundColor' | 'calendarDayDisabledColor' | 'calendarConfirmButtonHeight' | 'calendarConfirmButtonMargin' | 'calendarConfirmButtonLineHeight';
|
|
11
|
+
type CardThemeVars = 'cardPadding' | 'cardFontSize' | 'cardTextColor' | 'cardBackgroundColor' | 'cardThumbSize' | 'cardTitleLineHeight' | 'cardDescColor' | 'cardDescLineHeight' | 'cardPriceColor' | 'cardOriginPriceColor' | 'cardOriginPriceFontSize' | 'cardPriceFontSize' | 'cardPriceIntegerFontSize' | 'cardPriceFontFamily';
|
|
12
|
+
type CellThemeVars = 'cellFontSize' | 'cellLineHeight' | 'cellVerticalPadding' | 'cellHorizontalPadding' | 'cellTextColor' | 'cellBackgroundColor' | 'cellBorderColor' | 'cellActiveColor' | 'cellRequiredColor' | 'cellLabelColor' | 'cellLabelFontSize' | 'cellLabelLineHeight' | 'cellLabelMarginTop' | 'cellValueColor' | 'cellIconSize' | 'cellRightIconColor' | 'cellLargeVerticalPadding' | 'cellLargeTitleFontSize' | 'cellLargeValueFontSize' | 'cellLargeLabelFontSize';
|
|
13
|
+
type CellGroupThemeVars = 'cellGroupBackgroundColor' | 'cellGroupTitleColor' | 'cellGroupTitlePadding' | 'cellGroupTitleFontSize' | 'cellGroupTitleLineHeight' | 'cellGroupInsetPadding' | 'cellGroupInsetBorderRadius' | 'cellGroupInsetTitlePadding';
|
|
14
|
+
type CheckboxThemeVars = 'checkboxSize' | 'checkboxBorderColor' | 'checkboxTransitionDuration' | 'checkboxLabelMargin' | 'checkboxLabelColor' | 'checkboxCheckedIconColor' | 'checkboxDisabledIconColor' | 'checkboxDisabledLabelColor' | 'checkboxDisabledBackgroundColor';
|
|
15
|
+
type CircleThemeVars = 'circleTextColor';
|
|
16
|
+
type CollapseThemeVars = 'collapseItemTransitionDuration' | 'collapseItemContentPadding' | 'collapseItemContentFontSize' | 'collapseItemContentLineHeight' | 'collapseItemContentTextColor' | 'collapseItemContentBackgroundColor' | 'collapseItemTitleDisabledColor';
|
|
17
|
+
type CountDownThemeVars = 'countDownTextColor' | 'countDownFontSize' | 'countDownLineHeight';
|
|
18
|
+
type DialogThemeVars = 'dialogWidth' | 'dialogSmallScreenWidth' | 'dialogFontSize' | 'dialogBorderRadius' | 'dialogBackgroundColor' | 'dialogHeaderFontWeight' | 'dialogHeaderLineHeight' | 'dialogHeaderPaddingTop' | 'dialogHeaderIsolatedPadding' | 'dialogMessagePadding' | 'dialogMessageFontSize' | 'dialogMessageLineHeight' | 'dialogMessageMaxHeight' | 'dialogHasTitleMessageTextColor' | 'dialogHasTitleMessagePaddingTop';
|
|
19
|
+
type FieldThemeVars = 'fieldLabelColor' | 'fieldInputTextColor' | 'fieldInputErrorTextColor' | 'fieldInputDisabledTextColor' | 'fieldPlaceholderTextColor' | 'fieldIconSize' | 'fieldClearIconSize' | 'fieldClearIconColor' | 'fieldIconContainerColor' | 'fieldErrorMessageColor' | 'fieldErrorMessageTextFontSize' | 'fieldTextAreaMinHeight' | 'fieldWordLimitColor' | 'fieldWordLimitFontSize' | 'fieldWordLimitLineHeight' | 'fieldWordNumFullColor' | 'fieldDisabledTextColor';
|
|
20
|
+
type GoodsActionThemeVars = 'goodsActionBackgroundColor' | 'goodsActionHeight' | 'goodsActionIconWidth' | 'goodsActionIconHeight' | 'goodsActionIconColor' | 'goodsActionIconSize' | 'goodsActionIconFontSize' | 'goodsActionIconTextColor' | 'goodsActionButtonHeight' | 'goodsActionButtonLineHeight' | 'goodsActionButtonBorderRadius' | 'goodsActionButtonWarningColor' | 'goodsActionButtonDangerColor' | 'goodsActionButtonPlainColor';
|
|
21
|
+
type ImageThemeVars = 'imagePlaceholderTextColor' | 'imagePlaceholderFontSize' | 'imagePlaceholderBackgroundColor' | 'imageLoadingIconSize' | 'imageLoadingIconColor' | 'imageErrorIconSize' | 'imageErrorIconColor';
|
|
22
|
+
type InfoThemeVars = 'infoSize' | 'infoColor' | 'infoPadding' | 'infoFontSize' | 'infoFontWeight' | 'infoBorderWidth' | 'infoBackgroundColor' | 'infoDotColor' | 'infoDotSize' | 'infoFontFamily';
|
|
23
|
+
type LoadingThemeVars = 'loadingTextColor' | 'loadingTextFontSize' | 'loadingTextLineHeight' | 'loadingSpinnerColor' | 'loadingSpinnerSize' | 'loadingSpinnerAnimationDuration';
|
|
24
|
+
type NavBarThemeVars = 'navBarHeight' | 'navBarBackgroundColor' | 'navBarArrowSize' | 'navBarIconColor' | 'navBarTextColor' | 'navBarTitleFontSize' | 'navBarTitleTextColor';
|
|
25
|
+
type NoticeBarThemeVars = 'noticeBarHeight' | 'noticeBarPadding' | 'noticeBarWrapablePadding' | 'noticeBarFontSize' | 'noticeBarTextColor' | 'noticeBarLineHeight' | 'noticeBarBackgroundColor' | 'noticeBarIconSize' | 'noticeBarIconMinWidth';
|
|
26
|
+
type NotifyThemeVars = 'notifyPadding' | 'notifyFontSize' | 'notifyLineHeight' | 'notifyPrimaryBackgroundColor' | 'notifySuccessBackgroundColor' | 'notifyDangerBackgroundColor' | 'notifyWarningBackgroundColor';
|
|
27
|
+
type OverlayThemeVars = 'overlayBackgroundColor';
|
|
28
|
+
type PanelThemeVars = 'panelBackgroundColor' | 'panelHeaderValueColor' | 'panelFooterPadding';
|
|
29
|
+
type PickerThemeVars = 'pickerBackgroundColor' | 'pickerToolbarHeight' | 'pickerTitleFontSize' | 'pickerActionPadding' | 'pickerActionFontSize' | 'pickerConfirmActionColor' | 'pickerCancelActionColor' | 'pickerOptionFontSize' | 'pickerOptionTextColor' | 'pickerLoadingIconColor' | 'pickerLoadingMaskColor' | 'pickerOptionDisabledOpacity' | 'pickerOptionSelectedTextColor';
|
|
30
|
+
type PopupThemeVars = 'popupBackgroundColor' | 'popupRoundBorderRadius' | 'popupCloseIconSize' | 'popupCloseIconColor' | 'popupCloseIconMargin' | 'popupCloseIconZIndex';
|
|
31
|
+
type ProgressThemeVars = 'progressHeight' | 'progressBackgroundColor' | 'progressPivotPadding' | 'progressColor' | 'progressPivotFontSize' | 'progressPivotLineHeight' | 'progressPivotBackgroundColor' | 'progressPivotTextColor';
|
|
32
|
+
type RadioThemeVars = 'radioSize' | 'radioBorderColor' | 'radioTransitionDuration' | 'radioLabelMargin' | 'radioLabelColor' | 'radioCheckedIconColor' | 'radioDisabledIconColor' | 'radioDisabledLabelColor' | 'radioDisabledBackgroundColor';
|
|
33
|
+
type RateThemeVars = 'rateHorizontalPadding' | 'rateIconSize' | 'rateIconVoidColor' | 'rateIconFullColor' | 'rateIconDisabledColor' | 'rateIconGutter';
|
|
34
|
+
type SwitchThemeVars = 'switchWidth' | 'switchHeight' | 'switchNodeSize' | 'switchNodeZIndex' | 'switchNodeBackgroundColor' | 'switchNodeBoxShadow' | 'switchBackgroundColor' | 'switchOnBackgroundColor' | 'switchTransitionDuration' | 'switchDisabledOpacity' | 'switchBorder';
|
|
35
|
+
type ShareSheetThemeVars = 'shareSheetHeaderPadding' | 'shareSheetTitleColor' | 'shareSheetTitleFontSize' | 'shareSheetTitleLineHeight' | 'shareSheetDescriptionColor' | 'shareSheetDescriptionFontSize' | 'shareSheetDescriptionLineHeight' | 'shareSheetIconSize' | 'shareSheetOptionNameColor' | 'shareSheetOptionNameFontSize' | 'shareSheetOptionDescriptionColor' | 'shareSheetOptionDescriptionFontSize' | 'shareSheetCancelButtonFontSize' | 'shareSheetCancelButtonHeight' | 'shareSheetCancelButtonBackground';
|
|
36
|
+
type SearchThemeVars = 'searchBackgroundColor' | 'searchPadding' | 'searchInputHeight' | 'searchLabelPadding' | 'searchLabelColor' | 'searchLabelFontSize' | 'searchLeftIconColor' | 'searchActionPadding' | 'searchActionTextColor' | 'searchActionFontSize';
|
|
37
|
+
type SidebarThemeVars = 'sidebarWidth';
|
|
38
|
+
type SidebarItemThemeVars = 'sidebarFontSize' | 'sidebarLineHeight' | 'sidebarTextColor' | 'sidebarDisabledTextColor' | 'sidebarPadding' | 'sidebarActiveColor' | 'sidebarBackgroundColor' | 'sidebarSelectedFontWeight' | 'sidebarSelectedTextColor' | 'sidebarSelectedBorderColor' | 'sidebarSelectedBackgroundColor';
|
|
39
|
+
type SliderThemeVars = 'sliderActiveBackgroundColor' | 'sliderInactiveBackgroundColor' | 'sliderDisabledOpacity' | 'sliderBarHeight' | 'sliderButtonWidth' | 'sliderButtonHeight' | 'sliderButtonBorderRadius' | 'sliderButtonBackgroundColor' | 'sliderButtonBoxShadow';
|
|
40
|
+
type StepThemeVars = 'stepTextColor' | 'stepProcessTextColor' | 'stepFontSize' | 'stepLineColor' | 'stepFinishLineColor' | 'stepFinishTextColor' | 'stepIconSize' | 'stepCircleSize' | 'stepCircleColor' | 'stepHorizontalTitleFontSize';
|
|
41
|
+
type StepsThemeVars = 'stepsBackgroundColor';
|
|
42
|
+
type StepperThemeVars = 'stepperActiveColor' | 'stepperBackgroundColor' | 'stepperButtonIconColor' | 'stepperButtonDisabledColor' | 'stepperButtonDisabledIconColor' | 'stepperButtonRoundThemeColor' | 'stepperInputWidth' | 'stepperInputHeight' | 'stepperInputFontSize' | 'stepperInputLineHeight' | 'stepperInputTextColor' | 'stepperInputDisabledTextColor' | 'stepperInputDisabledBackgroundColor' | 'stepperBorderRadius';
|
|
43
|
+
type SubmitBarThemeVars = 'submitBarHeight' | 'submitBarZIndex' | 'submitBarBackgroundColor' | 'submitBarButtonWidth' | 'submitBarPriceColor' | 'submitBarPriceFontSize' | 'submitBarCurrencyFontSize' | 'submitBarTextColor' | 'submitBarTextFontSize' | 'submitBarTipPadding' | 'submitBarTipFontSize' | 'submitBarTipLineHeight' | 'submitBarTipColor' | 'submitBarTipBackgroundColor' | 'submitBarTipIconSize' | 'submitBarButtonHeight' | 'submitBarPadding' | 'submitBarPriceIntegerFontSize' | 'submitBarPriceFontFamily';
|
|
44
|
+
type TabbarThemeVars = 'tabbarHeight' | 'tabbarBackgroundColor';
|
|
45
|
+
type TabbarItemThemeVars = 'tabbarItemFontSize' | 'tabbarItemTextColor' | 'tabbarItemActiveColor' | 'tabbarItemLineHeight' | 'tabbarItemIconSize' | 'tabbarItemMarginBottom';
|
|
46
|
+
type TabThemeVars = 'tabTextColor' | 'tabActiveTextColor' | 'tabDisabledTextColor' | 'tabFontSize';
|
|
47
|
+
type TabsThemeVars = 'tabsDefaultColor' | 'tabsLineHeight' | 'tabsCardHeight' | 'tabsNavBackgroundColor' | 'tabsBottomBarHeight' | 'tabsBottomBarColor';
|
|
48
|
+
type TagThemeVars = 'tagPadding' | 'tagTextColor' | 'tagFontSize' | 'tagBorderRadius' | 'tagLineHeight' | 'tagMediumPadding' | 'tagLargePadding' | 'tagLargeBorderRadius' | 'tagLargeFontSize' | 'tagRoundBorderRadius' | 'tagDangerColor' | 'tagPrimaryColor' | 'tagSuccessColor' | 'tagWarningColor' | 'tagDefaultColor' | 'tagPlainBackgroundColor';
|
|
49
|
+
type ToastThemeVars = 'toastMaxWidth' | 'toastFontSize' | 'toastTextColor' | 'toastLineHeight' | 'toastBorderRadius' | 'toastBackgroundColor' | 'toastIconSize' | 'toastTextMinWidth' | 'toastTextPadding' | 'toastDefaultPadding' | 'toastDefaultWidth' | 'toastDefaultMinHeight';
|
|
50
|
+
type GridItemThemeVars = 'gridItemContentPadding' | 'gridItemContentBackgroundColor' | 'gridItemContentActiveColor' | 'gridItemIconSize' | 'gridItemTextColor' | 'gridItemTextFontSize';
|
|
51
|
+
type DividerThemeVars = 'dividerMargin' | 'dividerTextColor' | 'dividerFontSize' | 'dividerLineHeight' | 'dividerBorderColor' | 'dividerContentPadding' | 'dividerContentLeftWidth' | 'dividerContentRightWidth';
|
|
52
|
+
type EmptyThemeVars = 'emptyPadding' | 'emptyImageSize' | 'emptyDescriptionMarginTop' | 'emptyDescriptionPadding' | 'emptyDescriptionColor' | 'emptyDescriptionFontSize' | 'emptyDescriptionLineHeight' | 'emptyBottomMarginTop';
|
|
53
|
+
type TreeSelectThemeVars = 'treeSelectFontSize' | 'treeSelectNavBackgroundColor' | 'treeSelectContentBackgroundColor' | 'treeSelectNavItemPadding' | 'treeSelectItemHeight' | 'treeSelectItemActiveColor' | 'treeSelectItemDisabledColor';
|
|
54
|
+
type UploaderThemeVars = 'uploaderSize' | 'uploaderIconSize' | 'uploaderIconColor' | 'uploaderTextColor' | 'uploaderTextFontSize' | 'uploaderUploadBackgroundColor' | 'uploaderUploadActiveColor' | 'uploaderDeleteColor' | 'uploaderDeleteIconSize' | 'uploaderDeleteBackgroundColor' | 'uploaderFileBackgroundColor' | 'uploaderFileIconSize' | 'uploaderFileIconColor' | 'uploaderFileNamePadding' | 'uploaderFileNameMarginTop' | 'uploaderFileNameFontSize' | 'uploaderFileNameTextColor' | 'uploaderMaskBackgroundColor' | 'uploaderMaskIconSize' | 'uploaderMaskMessageFontSize' | 'uploaderMaskMessageLineHeight' | 'uploaderLoadingIconSize' | 'uploaderLoadingIconColor' | 'uploaderDisabledOpacity';
|
|
55
|
+
type DropdownMenuThemeVars = 'dropdownMenuHeight' | 'dropdownMenuBackgroundColor' | 'dropdownMenuTitleFontSize' | 'dropdownMenuTitleTextColor' | 'dropdownMenuTitleActiveTextColor' | 'dropdownMenuTitleDisabledTextColor' | 'dropdownMenuTitlePadding' | 'dropdownMenuTitleLineHeight' | 'dropdownMenuOptionActiveColor' | 'dropdownMenuBoxShadow';
|
|
56
|
+
type IndexAnchorThemeVars = 'indexAnchorPadding' | 'indexAnchorTextColor' | 'indexAnchorFontWeight' | 'indexAnchorFontSize' | 'indexAnchorLineHeight' | 'indexAnchorBackgroundColor' | 'indexAnchorActiveBackgroundColor' | 'indexAnchorActiveTextColor';
|
|
57
|
+
type IndexBarThemeVars = 'indexBarIndexFontSize' | 'indexBarIndexLineHeight';
|
|
58
|
+
type SkeletonThemeVars = 'skeletonPadding' | 'skeletonRowHeight' | 'skeletonRowBackgroundColor' | 'skeletonRowMarginTop' | 'skeletonAvatarBackgroundColor' | 'skeletonAnimationDuration';
|
|
59
|
+
/**
|
|
60
|
+
* 主题变量
|
|
61
|
+
*/
|
|
62
|
+
export type ThemeVars = Record<ColorPaletteThemeVars | GradientColorsThemeVars | ComponentColorsThemeVars | PaddingThemeVars | FontThemeVars | AnimationThemeVars | BorderThemeVars | ActionSheetThemeVars | ButtonThemeVars | CalendarThemeVars | CardThemeVars | CellThemeVars | CellGroupThemeVars | CheckboxThemeVars | CircleThemeVars | CollapseThemeVars | CountDownThemeVars | DialogThemeVars | FieldThemeVars | GoodsActionThemeVars | ImageThemeVars | InfoThemeVars | LoadingThemeVars | NavBarThemeVars | NoticeBarThemeVars | NotifyThemeVars | OverlayThemeVars | PanelThemeVars | PickerThemeVars | PopupThemeVars | ProgressThemeVars | RadioThemeVars | RateThemeVars | SwitchThemeVars | ShareSheetThemeVars | SearchThemeVars | SidebarThemeVars | SidebarItemThemeVars | SliderThemeVars | StepThemeVars | StepsThemeVars | StepperThemeVars | SubmitBarThemeVars | TabbarThemeVars | TabbarItemThemeVars | TabThemeVars | TabsThemeVars | TagThemeVars | ToastThemeVars | GridItemThemeVars | DividerThemeVars | EmptyThemeVars | TreeSelectThemeVars | UploaderThemeVars | DropdownMenuThemeVars | IndexAnchorThemeVars | IndexBarThemeVars | SkeletonThemeVars, string>;
|
|
63
|
+
export {};
|