@ray-js/smart-ui 1.0.2-beta-2 → 1.0.2-beta-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.
- package/dist/@types/action-sheet/index.d.ts +16 -12
- package/dist/@types/base/component.d.ts +1 -1
- package/dist/@types/base/events.d.ts +4 -4
- package/dist/@types/base/external-class-name.d.ts +2 -2
- package/dist/@types/base/open-type.d.ts +11 -11
- package/dist/@types/battery/index.d.ts +3 -3
- package/dist/@types/button/index.d.ts +7 -7
- package/dist/@types/calendar/index.d.ts +14 -14
- package/dist/@types/cascader/index.d.ts +23 -11
- package/dist/@types/cell/index.d.ts +7 -7
- package/dist/@types/cell-group/index.d.ts +4 -4
- package/dist/@types/checkbox/index.d.ts +9 -9
- package/dist/@types/checkbox-group/index.d.ts +5 -5
- package/dist/@types/circle/index.d.ts +3 -3
- package/dist/@types/col/index.d.ts +4 -4
- package/dist/@types/collapse/index.d.ts +10 -10
- package/dist/@types/collapse-item/index.d.ts +4 -4
- package/dist/@types/config-provider/index.d.ts +3 -3
- package/dist/@types/count-down/index.d.ts +8 -8
- package/dist/@types/custom-keyboard/index.d.ts +8 -8
- package/dist/@types/datetime-picker/index.d.ts +10 -10
- package/dist/@types/dialog/dialog.d.ts +22 -22
- package/dist/@types/dialog/index.d.ts +7 -7
- package/dist/@types/divider/index.d.ts +3 -3
- package/dist/@types/dropdown-item/index.d.ts +13 -13
- package/dist/@types/dropdown-menu/index.d.ts +3 -3
- package/dist/@types/empty/index.d.ts +3 -3
- package/dist/@types/field/index.d.ts +20 -20
- package/dist/@types/grid/index.d.ts +4 -4
- package/dist/@types/grid-item/index.d.ts +8 -8
- package/dist/@types/icon/index.d.ts +7 -7
- package/dist/@types/image/index.d.ts +10 -10
- package/dist/@types/index-anchor/index.d.ts +3 -3
- package/dist/@types/index-bar/index.d.ts +6 -6
- package/dist/@types/loading/index.d.ts +4 -4
- package/dist/@types/nav-bar/index.d.ts +7 -7
- package/dist/@types/notice-bar/index.d.ts +7 -7
- package/dist/@types/notify/notify.d.ts +5 -5
- package/dist/@types/overlay/index.d.ts +6 -6
- package/dist/@types/picker/index.d.ts +14 -14
- package/dist/@types/popup/index.d.ts +8 -8
- package/dist/@types/progress/index.d.ts +4 -4
- package/dist/@types/radio/index.d.ts +7 -7
- package/dist/@types/radio-group/index.d.ts +6 -6
- package/dist/@types/rate/index.d.ts +7 -7
- package/dist/@types/row/index.d.ts +4 -4
- package/dist/@types/search/index.d.ts +9 -9
- package/dist/@types/sidebar/index.d.ts +7 -7
- package/dist/@types/sidebar-item/index.d.ts +8 -8
- package/dist/@types/skeleton/index.d.ts +3 -3
- package/dist/@types/slider/index.d.ts +11 -11
- package/dist/@types/stepper/index.d.ts +15 -15
- package/dist/@types/steps/index.d.ts +9 -9
- package/dist/@types/sticky/index.d.ts +6 -6
- package/dist/@types/swipe-cell/index.d.ts +14 -14
- package/dist/@types/switch/index.d.ts +7 -7
- package/dist/@types/tab/index.d.ts +6 -6
- package/dist/@types/tabbar/index.d.ts +6 -6
- package/dist/@types/tabbar-item/index.d.ts +4 -4
- package/dist/@types/tabs/index.d.ts +13 -13
- package/dist/@types/tag/index.d.ts +6 -6
- package/dist/@types/toast/index.d.ts +2 -2
- package/dist/@types/toast/toast.d.ts +11 -11
- package/dist/@types/transition/index.d.ts +11 -11
- package/dist/@types/tree-select/index.d.ts +12 -12
- package/dist/action-sheet/PropTypes.d.ts +2 -2
- package/dist/action-sheet/index.d.ts +2 -2
- package/dist/base/index.d.ts +2 -2
- package/dist/battery/PropTypes.d.ts +2 -2
- package/dist/battery/index.d.ts +2 -2
- package/dist/button/PropTypes.d.ts +2 -2
- package/dist/button/index.d.ts +2 -2
- package/dist/calendar/PropTypes.d.ts +2 -2
- package/dist/calendar/index.d.ts +2 -2
- package/dist/cascader/PropTypes.d.ts +2 -2
- package/dist/cascader/index.d.ts +2 -2
- package/dist/cell/PropTypes.d.ts +2 -2
- package/dist/cell/index.d.ts +2 -2
- package/dist/cell-group/PropTypes.d.ts +2 -2
- package/dist/cell-group/index.d.ts +2 -2
- package/dist/checkbox/PropTypes.d.ts +2 -2
- package/dist/checkbox/index.d.ts +2 -2
- package/dist/checkbox-group/PropTypes.d.ts +2 -2
- package/dist/checkbox-group/index.d.ts +2 -2
- package/dist/circle/PropTypes.d.ts +2 -2
- package/dist/col/PropTypes.d.ts +2 -2
- package/dist/col/index.d.ts +2 -2
- package/dist/collapse/PropTypes.d.ts +2 -2
- package/dist/collapse/index.d.ts +2 -2
- package/dist/collapse-item/PropTypes.d.ts +2 -2
- package/dist/collapse-item/index.d.ts +2 -2
- package/dist/common/withReactProps.js +12 -12
- package/dist/config-provider/PropTypes.d.ts +2 -2
- package/dist/config-provider/index.d.ts +2 -2
- package/dist/count-down/PropTypes.d.ts +2 -2
- package/dist/count-down/index.d.ts +2 -2
- package/dist/custom-keyboard/PropTypes.d.ts +2 -2
- package/dist/custom-keyboard/index.d.ts +2 -2
- package/dist/datetime-picker/PropTypes.d.ts +2 -2
- package/dist/datetime-picker/index.d.ts +2 -2
- package/dist/dialog/Dialog.d.ts +2 -2
- package/dist/dialog/PropTypes.d.ts +2 -2
- package/dist/dialog/index.d.ts +3 -3
- package/dist/divider/PropTypes.d.ts +2 -2
- package/dist/divider/index.d.ts +2 -2
- package/dist/dropdown-item/PropTypes.d.ts +2 -2
- package/dist/dropdown-item/index.d.ts +2 -2
- package/dist/dropdown-menu/PropTypes.d.ts +2 -2
- package/dist/dropdown-menu/index.d.ts +2 -2
- package/dist/empty/PropTypes.d.ts +2 -2
- package/dist/empty/index.d.ts +2 -2
- package/dist/field/PropTypes.d.ts +2 -2
- package/dist/field/index.d.ts +2 -2
- package/dist/grid/PropTypes.d.ts +2 -2
- package/dist/grid/index.d.ts +2 -2
- package/dist/grid-item/PropTypes.d.ts +2 -2
- package/dist/grid-item/index.d.ts +2 -2
- package/dist/icon/PropTypes.d.ts +2 -2
- package/dist/icon/index.d.ts +2 -2
- package/dist/image/PropTypes.d.ts +2 -2
- package/dist/image/index.d.ts +2 -2
- package/dist/index-anchor/PropTypes.d.ts +2 -2
- package/dist/index-anchor/index.d.ts +2 -2
- package/dist/index-bar/PropTypes.d.ts +2 -2
- package/dist/index-bar/index.d.ts +2 -2
- package/dist/index.d.ts +0 -3
- package/dist/index.js +3 -3
- package/dist/loading/PropTypes.d.ts +2 -2
- package/dist/loading/index.d.ts +2 -2
- package/dist/nav-bar/PropTypes.d.ts +2 -2
- package/dist/nav-bar/index.d.ts +2 -2
- package/dist/notice-bar/PropTypes.d.ts +2 -2
- package/dist/notice-bar/index.d.ts +2 -2
- package/dist/notify/PropTypes.d.ts +2 -2
- package/dist/notify/index.d.ts +2 -2
- package/dist/overlay/PropTypes.d.ts +2 -2
- package/dist/overlay/index.d.ts +2 -2
- package/dist/picker/PropTypes.d.ts +2 -2
- package/dist/picker/index.d.ts +2 -2
- package/dist/popup/PropTypes.d.ts +2 -2
- package/dist/popup/index.d.ts +2 -2
- package/dist/radio/PropTypes.d.ts +2 -2
- package/dist/radio/index.d.ts +2 -2
- package/dist/radio-group/PropTypes.d.ts +2 -2
- package/dist/radio-group/index.d.ts +2 -2
- package/dist/rate/PropTypes.d.ts +2 -2
- package/dist/rate/index.d.ts +2 -2
- package/dist/row/PropTypes.d.ts +2 -2
- package/dist/row/index.d.ts +2 -2
- package/dist/search/PropTypes.d.ts +2 -2
- package/dist/search/index.d.ts +2 -2
- package/dist/sidebar/PropTypes.d.ts +2 -2
- package/dist/sidebar/index.d.ts +2 -2
- package/dist/sidebar-item/PropTypes.d.ts +2 -2
- package/dist/sidebar-item/index.d.ts +2 -2
- package/dist/skeleton/PropTypes.d.ts +2 -2
- package/dist/skeleton/index.d.ts +2 -2
- package/dist/slider/PropTypes.d.ts +2 -2
- package/dist/slider/RangeSlider.d.ts +2 -2
- package/dist/slider/index.d.ts +4 -4
- package/dist/stepper/PropTypes.d.ts +2 -2
- package/dist/stepper/index.d.ts +2 -2
- package/dist/steps/PropTypes.d.ts +2 -2
- package/dist/steps/index.d.ts +2 -2
- package/dist/sticky/PropTypes.d.ts +2 -2
- package/dist/sticky/index.d.ts +2 -2
- package/dist/swipe-cell/PropTypes.d.ts +2 -2
- package/dist/swipe-cell/index.d.ts +2 -2
- package/dist/switch/PropTypes.d.ts +2 -2
- package/dist/switch/index.d.ts +2 -2
- package/dist/tab/PropTypes.d.ts +2 -2
- package/dist/tab/index.d.ts +2 -2
- package/dist/tabbar/PropTypes.d.ts +2 -2
- package/dist/tabbar/index.d.ts +2 -2
- package/dist/tabbar-item/PropTypes.d.ts +2 -2
- package/dist/tabbar-item/index.d.ts +2 -2
- package/dist/tabs/PropTypes.d.ts +2 -2
- package/dist/tabs/index.d.ts +2 -2
- package/dist/tag/PropTypes.d.ts +2 -2
- package/dist/tag/index.d.ts +2 -2
- package/dist/toast/PropTypes.d.ts +2 -2
- package/dist/toast/index.d.ts +2 -2
- package/dist/transition/PropTypes.d.ts +2 -2
- package/dist/transition/index.d.ts +2 -2
- package/dist/tree-select/PropTypes.d.ts +2 -2
- package/dist/tree-select/index.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TouchPositionDetail,
|
|
2
|
-
export interface
|
|
1
|
+
import { TouchPositionDetail, SmartBaseExternalClassName, SmartBaseLoadingExternalClassName, SmartComponent, SmartEventHandler } from '../base';
|
|
2
|
+
export interface SmartImageProps {
|
|
3
3
|
/**
|
|
4
4
|
* 图片链接
|
|
5
5
|
*/
|
|
@@ -83,28 +83,28 @@ export interface VantImageProps {
|
|
|
83
83
|
*/
|
|
84
84
|
showMenuByLongpress?: boolean;
|
|
85
85
|
}
|
|
86
|
-
export interface
|
|
86
|
+
export interface SmartImageLoadEventDetail {
|
|
87
87
|
width: number;
|
|
88
88
|
height: number;
|
|
89
89
|
}
|
|
90
|
-
export interface
|
|
90
|
+
export interface SmartImageErrorEventDetail {
|
|
91
91
|
errMsg: string;
|
|
92
92
|
}
|
|
93
|
-
export interface
|
|
93
|
+
export interface SmartImageEvents {
|
|
94
94
|
/**
|
|
95
95
|
* 点击图片时触发
|
|
96
96
|
*/
|
|
97
|
-
onClick?:
|
|
97
|
+
onClick?: SmartEventHandler<TouchPositionDetail>;
|
|
98
98
|
/**
|
|
99
99
|
* 图片加载完毕时触发
|
|
100
100
|
*/
|
|
101
|
-
onLoad?:
|
|
101
|
+
onLoad?: SmartEventHandler<SmartImageLoadEventDetail>;
|
|
102
102
|
/**
|
|
103
103
|
* 图片加载失败时触发
|
|
104
104
|
*/
|
|
105
|
-
onError?:
|
|
105
|
+
onError?: SmartEventHandler<SmartImageErrorEventDetail>;
|
|
106
106
|
}
|
|
107
|
-
export interface
|
|
107
|
+
export interface SmartImageExternalClassName extends SmartBaseExternalClassName, SmartBaseLoadingExternalClassName {
|
|
108
108
|
/**
|
|
109
109
|
* 图片样式类
|
|
110
110
|
*/
|
|
@@ -114,4 +114,4 @@ export interface VantImageExternalClassName extends VantBaseExternalClassName, V
|
|
|
114
114
|
*/
|
|
115
115
|
errorClass?: string;
|
|
116
116
|
}
|
|
117
|
-
export type
|
|
117
|
+
export type SmartImage = SmartComponent<SmartImageProps, SmartImageEvents, SmartImageExternalClassName>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
1
|
+
import { SmartComponent } from '../base';
|
|
2
|
+
export interface SmartIndexAnchorProps {
|
|
3
3
|
/**
|
|
4
4
|
* 是否使用自定义内容的插槽
|
|
5
5
|
*
|
|
@@ -11,4 +11,4 @@ export interface VantIndexAnchorProps {
|
|
|
11
11
|
*/
|
|
12
12
|
index?: string | number;
|
|
13
13
|
}
|
|
14
|
-
export type
|
|
14
|
+
export type SmartIndexAnchor = SmartComponent<SmartIndexAnchorProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="miniprogram-api-typings" />
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { SmartComponent, SmartEventHandler } from '../base';
|
|
3
|
+
export interface SmartIndexBarProps {
|
|
4
4
|
/**
|
|
5
5
|
* 索引字符列表
|
|
6
6
|
*
|
|
@@ -35,16 +35,16 @@ export interface VantIndexBarProps {
|
|
|
35
35
|
/**
|
|
36
36
|
* @deprecated
|
|
37
37
|
*/
|
|
38
|
-
export interface
|
|
38
|
+
export interface SmartIndexBarSelectEvent extends WechatMiniprogram.BaseEvent {
|
|
39
39
|
/**
|
|
40
40
|
* 索引字符
|
|
41
41
|
*/
|
|
42
42
|
detail: string | number;
|
|
43
43
|
}
|
|
44
|
-
export interface
|
|
44
|
+
export interface SmartIndexBarEvents {
|
|
45
45
|
/**
|
|
46
46
|
* 选中字符时触发
|
|
47
47
|
*/
|
|
48
|
-
onSelect?:
|
|
48
|
+
onSelect?: SmartEventHandler<string | number>;
|
|
49
49
|
}
|
|
50
|
-
export type
|
|
50
|
+
export type SmartIndexBar = SmartComponent<SmartIndexBarProps, SmartIndexBarEvents>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
1
|
+
import { SmartBaseExternalClassName, SmartComponent } from '../base';
|
|
2
|
+
export interface SmartLoadingProps {
|
|
3
3
|
/**
|
|
4
4
|
* 颜色
|
|
5
5
|
*
|
|
@@ -35,5 +35,5 @@ export interface VantLoadingProps {
|
|
|
35
35
|
*/
|
|
36
36
|
vertical?: boolean;
|
|
37
37
|
}
|
|
38
|
-
export type
|
|
39
|
-
export type
|
|
38
|
+
export type SmartLoadingExternalClassName = SmartBaseExternalClassName;
|
|
39
|
+
export type SmartLoading = SmartComponent<SmartLoadingProps, {}, SmartLoadingExternalClassName>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { SmartBaseExternalClassName, SmartComponent, SmartEventHandler } from '../base';
|
|
3
|
+
export interface SmartNavBarProps {
|
|
4
4
|
/**
|
|
5
5
|
* 标题
|
|
6
6
|
*
|
|
@@ -77,20 +77,20 @@ export interface VantNavBarProps {
|
|
|
77
77
|
right?: React.ReactNode;
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
export interface
|
|
80
|
+
export interface SmartNavBarEvents {
|
|
81
81
|
/**
|
|
82
82
|
* 点击左侧按钮时触发
|
|
83
83
|
*/
|
|
84
|
-
onClickLeft?:
|
|
84
|
+
onClickLeft?: SmartEventHandler;
|
|
85
85
|
/**
|
|
86
86
|
* 点击右侧按钮时触发
|
|
87
87
|
*/
|
|
88
|
-
onClickRight?:
|
|
88
|
+
onClickRight?: SmartEventHandler;
|
|
89
89
|
}
|
|
90
|
-
export interface
|
|
90
|
+
export interface SmartNavBarExternalClassName extends SmartBaseExternalClassName {
|
|
91
91
|
/**
|
|
92
92
|
* 标题样式类
|
|
93
93
|
*/
|
|
94
94
|
titleClass?: string;
|
|
95
95
|
}
|
|
96
|
-
export type
|
|
96
|
+
export type SmartNavBar = SmartComponent<SmartNavBarProps, SmartNavBarEvents, SmartNavBarExternalClassName>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TouchPositionDetail,
|
|
2
|
-
export interface
|
|
1
|
+
import { TouchPositionDetail, SmartBaseExternalClassName, SmartComponent, SmartEventHandler, SmartTouchEventHandler, WechatOpenType } from '../base';
|
|
2
|
+
export interface SmartNoticeBarProps {
|
|
3
3
|
/**
|
|
4
4
|
* 通知栏模式
|
|
5
5
|
*
|
|
@@ -57,15 +57,15 @@ export interface VantNoticeBarProps {
|
|
|
57
57
|
*/
|
|
58
58
|
openType?: WechatOpenType;
|
|
59
59
|
}
|
|
60
|
-
export interface
|
|
60
|
+
export interface SmartNoticeBarEvents {
|
|
61
61
|
/**
|
|
62
62
|
* 点击通知栏时触发
|
|
63
63
|
*/
|
|
64
|
-
onClick?:
|
|
64
|
+
onClick?: SmartTouchEventHandler;
|
|
65
65
|
/**
|
|
66
66
|
* 关闭通知栏时触发
|
|
67
67
|
*/
|
|
68
|
-
onClose?:
|
|
68
|
+
onClose?: SmartEventHandler<TouchPositionDetail>;
|
|
69
69
|
}
|
|
70
|
-
export type
|
|
71
|
-
export type
|
|
70
|
+
export type SmartNoticeBarExternalClassName = SmartBaseExternalClassName;
|
|
71
|
+
export type SmartNoticeBar = SmartComponent<SmartNoticeBarProps, SmartNoticeBarEvents, SmartNoticeBarExternalClassName>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="miniprogram-api-typings" />
|
|
2
|
-
export interface
|
|
2
|
+
export interface SmartNotifyProps {
|
|
3
3
|
/**
|
|
4
4
|
* 在页面内添加自定义节点的标识符
|
|
5
5
|
*/
|
|
6
6
|
id: string;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface SmartNotifyOptions {
|
|
9
9
|
/**
|
|
10
10
|
* 类型
|
|
11
11
|
*
|
|
@@ -27,7 +27,7 @@ export interface VantNotifyOptions {
|
|
|
27
27
|
/**
|
|
28
28
|
* 自定义节点选择器
|
|
29
29
|
*
|
|
30
|
-
* @default '
|
|
30
|
+
* @default 'smart-notify'
|
|
31
31
|
*/
|
|
32
32
|
selector?: string;
|
|
33
33
|
/**
|
|
@@ -71,12 +71,12 @@ export interface VantNotifyOptions {
|
|
|
71
71
|
*/
|
|
72
72
|
safeAreaInsetTop?: boolean;
|
|
73
73
|
}
|
|
74
|
-
export interface
|
|
74
|
+
export interface SmartNotify {
|
|
75
75
|
/**
|
|
76
76
|
* 展示提示
|
|
77
77
|
*/
|
|
78
78
|
(): (message: string) => void;
|
|
79
|
-
(): (options:
|
|
79
|
+
(): (options: SmartNotifyOptions) => void;
|
|
80
80
|
/**
|
|
81
81
|
* 关闭提示
|
|
82
82
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { SmartBaseExternalClassName, SmartComponent, SmartEventHandler } from '../base';
|
|
3
|
+
export interface SmartOverlayProps {
|
|
4
4
|
/**
|
|
5
5
|
* 是否展示遮罩层
|
|
6
6
|
*
|
|
@@ -34,16 +34,16 @@ export interface VantOverlayProps {
|
|
|
34
34
|
*/
|
|
35
35
|
lockScroll?: boolean;
|
|
36
36
|
}
|
|
37
|
-
export interface
|
|
37
|
+
export interface SmartOverlayEvents {
|
|
38
38
|
/**
|
|
39
39
|
* 点击时触发
|
|
40
40
|
*/
|
|
41
|
-
onClick?:
|
|
41
|
+
onClick?: SmartEventHandler;
|
|
42
42
|
}
|
|
43
|
-
export interface
|
|
43
|
+
export interface SmartOverlaySlot {
|
|
44
44
|
/**
|
|
45
45
|
* 默认插槽,用于在遮罩层上方嵌入内容
|
|
46
46
|
*/
|
|
47
47
|
children?: React.ReactNode;
|
|
48
48
|
}
|
|
49
|
-
export type
|
|
49
|
+
export type SmartOverlay = SmartComponent<SmartOverlayProps, SmartOverlayEvents, SmartBaseExternalClassName, SmartOverlaySlot>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
3
|
-
export interface
|
|
1
|
+
import { SmartBaseExternalClassName, SmartComponent, SmartEventHandler } from '../base';
|
|
2
|
+
export type SmartPickerSingleColumn = string | Record<string, unknown>;
|
|
3
|
+
export interface SmartPickerMultipleColumn {
|
|
4
4
|
/**
|
|
5
5
|
* 列中对应的备选值
|
|
6
6
|
*/
|
|
7
|
-
values:
|
|
7
|
+
values: SmartPickerSingleColumn[];
|
|
8
8
|
/**
|
|
9
9
|
* 初始选中项的索引,默认为 `0`
|
|
10
10
|
*
|
|
@@ -23,13 +23,13 @@ export interface VantPickerMultipleColumn {
|
|
|
23
23
|
unit?: string;
|
|
24
24
|
[key: string]: unknown;
|
|
25
25
|
}
|
|
26
|
-
export interface
|
|
26
|
+
export interface SmartPickerProps {
|
|
27
27
|
/**
|
|
28
28
|
* 对象数组,配置每一列显示的数据
|
|
29
29
|
*
|
|
30
30
|
* @default []
|
|
31
31
|
*/
|
|
32
|
-
columns?:
|
|
32
|
+
columns?: SmartPickerSingleColumn[] | SmartPickerMultipleColumn[];
|
|
33
33
|
/**
|
|
34
34
|
* 是否显示顶部栏
|
|
35
35
|
*
|
|
@@ -103,15 +103,15 @@ export interface VantPickerProps {
|
|
|
103
103
|
*/
|
|
104
104
|
unit?: string;
|
|
105
105
|
}
|
|
106
|
-
export interface
|
|
106
|
+
export interface SmartPickerBaseEventDetail {
|
|
107
107
|
index: number | number[];
|
|
108
108
|
picker: Record<string, any>;
|
|
109
109
|
value: string[];
|
|
110
110
|
}
|
|
111
|
-
export interface
|
|
111
|
+
export interface SmartPickerChangeEventDetail extends Omit<SmartPickerBaseEventDetail, 'index'> {
|
|
112
112
|
index: number;
|
|
113
113
|
}
|
|
114
|
-
export interface
|
|
114
|
+
export interface SmartPickerEvents {
|
|
115
115
|
/**
|
|
116
116
|
* 点击完成按钮时触发
|
|
117
117
|
*
|
|
@@ -119,7 +119,7 @@ export interface VantPickerEvents {
|
|
|
119
119
|
*
|
|
120
120
|
* 多列:所有列选中值,所有列选中值对应的索引
|
|
121
121
|
*/
|
|
122
|
-
onConfirm?:
|
|
122
|
+
onConfirm?: SmartEventHandler<SmartPickerBaseEventDetail>;
|
|
123
123
|
/**
|
|
124
124
|
* 点击取消按钮时触发
|
|
125
125
|
*
|
|
@@ -127,7 +127,7 @@ export interface VantPickerEvents {
|
|
|
127
127
|
*
|
|
128
128
|
* 多列:所有列选中值,所有列选中值对应的索引
|
|
129
129
|
*/
|
|
130
|
-
onCancel?:
|
|
130
|
+
onCancel?: SmartEventHandler<SmartPickerChangeEventDetail>;
|
|
131
131
|
/**
|
|
132
132
|
* 选项改变时触发
|
|
133
133
|
*
|
|
@@ -135,9 +135,9 @@ export interface VantPickerEvents {
|
|
|
135
135
|
*
|
|
136
136
|
* 多列:`Picker` 实例,所有列选中值,当前列对应的索引
|
|
137
137
|
*/
|
|
138
|
-
onChange?:
|
|
138
|
+
onChange?: SmartEventHandler<SmartPickerBaseEventDetail>;
|
|
139
139
|
}
|
|
140
|
-
export interface
|
|
140
|
+
export interface SmartPickerExternalClassName extends SmartBaseExternalClassName {
|
|
141
141
|
/**
|
|
142
142
|
* 选中项样式类
|
|
143
143
|
*/
|
|
@@ -151,4 +151,4 @@ export interface VantPickerExternalClassName extends VantBaseExternalClassName {
|
|
|
151
151
|
*/
|
|
152
152
|
columnClass?: string;
|
|
153
153
|
}
|
|
154
|
-
export type
|
|
154
|
+
export type SmartPicker = SmartComponent<SmartPickerProps, SmartPickerEvents, SmartPickerExternalClassName>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export interface
|
|
2
|
+
import { SmartBaseExternalClassName, SmartComponent, SmartEventHandler } from '../base';
|
|
3
|
+
import { SmartTransitionEvents } from '../transition';
|
|
4
|
+
export interface SmartPopupProps {
|
|
5
5
|
/**
|
|
6
6
|
* 是否显示弹出层
|
|
7
7
|
*
|
|
@@ -93,15 +93,15 @@ export interface VantPopupProps {
|
|
|
93
93
|
*/
|
|
94
94
|
lockScroll?: boolean;
|
|
95
95
|
}
|
|
96
|
-
export interface
|
|
96
|
+
export interface SmartPopupEvents extends SmartTransitionEvents {
|
|
97
97
|
/**
|
|
98
98
|
* 关闭弹出层时触发
|
|
99
99
|
*/
|
|
100
|
-
onClose?:
|
|
100
|
+
onClose?: SmartEventHandler;
|
|
101
101
|
/**
|
|
102
102
|
* 点击遮罩层时触发
|
|
103
103
|
*/
|
|
104
|
-
onClickOverlay?:
|
|
104
|
+
onClickOverlay?: SmartEventHandler;
|
|
105
105
|
}
|
|
106
|
-
export type
|
|
107
|
-
export type
|
|
106
|
+
export type SmartPopupExternalClassName = SmartBaseExternalClassName;
|
|
107
|
+
export type SmartPopup = SmartComponent<SmartPopupProps, SmartPopupEvents, SmartPopupExternalClassName>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
1
|
+
import { SmartBaseExternalClassName, SmartComponent } from '../base';
|
|
2
|
+
export interface SmartProgressProps {
|
|
3
3
|
/**
|
|
4
4
|
* 是否置灰
|
|
5
5
|
*
|
|
@@ -55,5 +55,5 @@ export interface VantProgressProps {
|
|
|
55
55
|
*/
|
|
56
56
|
'pivot-color'?: string;
|
|
57
57
|
}
|
|
58
|
-
export type
|
|
59
|
-
export type
|
|
58
|
+
export type SmartProgressExternalClassName = SmartBaseExternalClassName;
|
|
59
|
+
export type SmartProgress = SmartComponent<SmartProgressProps, {}, SmartProgressExternalClassName>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="miniprogram-api-typings" />
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { SmartBaseExternalClassName, SmartComponent, SmartEventHandler } from '../base';
|
|
3
|
+
export interface SmartRadioProps {
|
|
4
4
|
/**
|
|
5
5
|
* 标识符
|
|
6
6
|
*/
|
|
@@ -47,16 +47,16 @@ export interface VantRadioProps {
|
|
|
47
47
|
/**
|
|
48
48
|
* @deprecated
|
|
49
49
|
*/
|
|
50
|
-
export interface
|
|
50
|
+
export interface SmartRadioChangeEvent extends WechatMiniprogram.BaseEvent {
|
|
51
51
|
detail: string;
|
|
52
52
|
}
|
|
53
|
-
export interface
|
|
53
|
+
export interface SmartRadioEvents {
|
|
54
54
|
/**
|
|
55
55
|
* 当绑定值变化时触发的事件
|
|
56
56
|
*/
|
|
57
|
-
onchange?:
|
|
57
|
+
onchange?: SmartEventHandler<string>;
|
|
58
58
|
}
|
|
59
|
-
export interface
|
|
59
|
+
export interface SmartRadioExternalClassName extends SmartBaseExternalClassName {
|
|
60
60
|
/**
|
|
61
61
|
* 图标样式类
|
|
62
62
|
*/
|
|
@@ -66,4 +66,4 @@ export interface VantRadioExternalClassName extends VantBaseExternalClassName {
|
|
|
66
66
|
*/
|
|
67
67
|
labelClass?: string;
|
|
68
68
|
}
|
|
69
|
-
export type
|
|
69
|
+
export type SmartRadio = SmartComponent<SmartRadioProps, SmartRadioEvents, SmartRadioExternalClassName>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="miniprogram-api-typings" />
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { SmartComponent, SmartEventHandler } from '../base';
|
|
3
|
+
export interface SmartRadioGroupProps {
|
|
4
4
|
/**
|
|
5
5
|
* 在表单内提交时的标识符
|
|
6
6
|
*/
|
|
@@ -25,13 +25,13 @@ export interface VantRadioGroupProps {
|
|
|
25
25
|
/**
|
|
26
26
|
* @deprecated
|
|
27
27
|
*/
|
|
28
|
-
export interface
|
|
28
|
+
export interface SmartRadioGroupChangeEvent extends WechatMiniprogram.BaseEvent {
|
|
29
29
|
detail: string;
|
|
30
30
|
}
|
|
31
|
-
export interface
|
|
31
|
+
export interface SmartRadioGroupEvents {
|
|
32
32
|
/**
|
|
33
33
|
* 当绑定值变化时触发的事件
|
|
34
34
|
*/
|
|
35
|
-
'bind:change'?:
|
|
35
|
+
'bind:change'?: SmartEventHandler<string>;
|
|
36
36
|
}
|
|
37
|
-
export type
|
|
37
|
+
export type SmartRadioGroup = SmartComponent<SmartRadioGroupProps, SmartRadioGroupEvents>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="miniprogram-api-typings" />
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { SmartBaseExternalClassName, SmartComponent, SmartEventHandler } from '../base';
|
|
3
|
+
export interface SmartRateProps {
|
|
4
4
|
/**
|
|
5
5
|
* 在表单内提交时的标识符
|
|
6
6
|
*/
|
|
@@ -85,19 +85,19 @@ export interface VantRateProps {
|
|
|
85
85
|
/**
|
|
86
86
|
* @deprecated
|
|
87
87
|
*/
|
|
88
|
-
export interface
|
|
88
|
+
export interface SmartRateChangeEvent extends WechatMiniprogram.BaseEvent {
|
|
89
89
|
detail: number;
|
|
90
90
|
}
|
|
91
|
-
export interface
|
|
91
|
+
export interface SmartRateEvents {
|
|
92
92
|
/**
|
|
93
93
|
* 当前分值变化时触发的事件
|
|
94
94
|
*/
|
|
95
|
-
onChange?:
|
|
95
|
+
onChange?: SmartEventHandler<number>;
|
|
96
96
|
}
|
|
97
|
-
export interface
|
|
97
|
+
export interface SmartRateExternalClassName extends SmartBaseExternalClassName {
|
|
98
98
|
/**
|
|
99
99
|
* 图标样式类
|
|
100
100
|
*/
|
|
101
101
|
iconClass?: string;
|
|
102
102
|
}
|
|
103
|
-
export type
|
|
103
|
+
export type SmartRate = SmartComponent<SmartRateProps, SmartRateEvents, SmartRateExternalClassName>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
1
|
+
import { SmartBaseExternalClassName, SmartComponent } from '../base';
|
|
2
|
+
export interface SmartRowProps {
|
|
3
3
|
/**
|
|
4
4
|
* 列元素之间的间距(单位为 px)
|
|
5
5
|
*/
|
|
6
6
|
gutter?: string | number;
|
|
7
7
|
}
|
|
8
|
-
export type
|
|
9
|
-
export type
|
|
8
|
+
export type SmartRowExternalClassName = SmartBaseExternalClassName;
|
|
9
|
+
export type SmartRow = SmartComponent<SmartRowProps, {}, SmartRowExternalClassName>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="miniprogram-api-typings" />
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export interface
|
|
2
|
+
import { SmartBaseExternalClassName, SmartComponent, SmartEventHandler } from '../base';
|
|
3
|
+
import { SmartFieldEvents } from '../field';
|
|
4
|
+
export interface SmartSearchProps {
|
|
5
5
|
/**
|
|
6
6
|
* 在表单内提交时的标识符
|
|
7
7
|
*/
|
|
@@ -136,20 +136,20 @@ export interface VantSearchProps {
|
|
|
136
136
|
/**
|
|
137
137
|
* @deprecated
|
|
138
138
|
*/
|
|
139
|
-
export interface
|
|
139
|
+
export interface SmartSearchBaseEvent extends WechatMiniprogram.BaseEvent {
|
|
140
140
|
detail: string;
|
|
141
141
|
}
|
|
142
|
-
export interface
|
|
142
|
+
export interface SmartSearchEvents extends Pick<SmartFieldEvents, 'onChange' | 'onFocus' | 'onBlur' | 'onClear' | 'onClickInput'> {
|
|
143
143
|
/**
|
|
144
144
|
* 确定搜索时触发
|
|
145
145
|
*/
|
|
146
|
-
onSearch?:
|
|
146
|
+
onSearch?: SmartEventHandler<string>;
|
|
147
147
|
/**
|
|
148
148
|
* 取消搜索搜索时触发
|
|
149
149
|
*/
|
|
150
|
-
onCancel?:
|
|
150
|
+
onCancel?: SmartEventHandler;
|
|
151
151
|
}
|
|
152
|
-
export interface
|
|
152
|
+
export interface SmartSearchExternalClassName extends SmartBaseExternalClassName {
|
|
153
153
|
/**
|
|
154
154
|
* 搜索框样式类
|
|
155
155
|
*/
|
|
@@ -163,4 +163,4 @@ export interface VantSearchExternalClassName extends VantBaseExternalClassName {
|
|
|
163
163
|
*/
|
|
164
164
|
cancelClass?: string;
|
|
165
165
|
}
|
|
166
|
-
export type
|
|
166
|
+
export type SmartSearch = SmartComponent<SmartSearchProps, SmartSearchEvents, SmartSearchExternalClassName>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="miniprogram-api-typings" />
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { SmartBaseExternalClassName, SmartComponent, SmartEventHandler } from '../base';
|
|
3
|
+
export interface SmartSidebarProps {
|
|
4
4
|
/**
|
|
5
5
|
* 选中项的索引
|
|
6
6
|
*
|
|
@@ -11,17 +11,17 @@ export interface VantSidebarProps {
|
|
|
11
11
|
/**
|
|
12
12
|
* @deprecated
|
|
13
13
|
*/
|
|
14
|
-
export interface
|
|
14
|
+
export interface SmartSidebarChangeEvent extends WechatMiniprogram.BaseEvent {
|
|
15
15
|
/**
|
|
16
16
|
* 当前选中徽章的索引
|
|
17
17
|
*/
|
|
18
18
|
detail: number;
|
|
19
19
|
}
|
|
20
|
-
export interface
|
|
20
|
+
export interface SmartSidebarEvents {
|
|
21
21
|
/**
|
|
22
22
|
* 切换徽章时触发
|
|
23
23
|
*/
|
|
24
|
-
onChange?:
|
|
24
|
+
onChange?: SmartEventHandler<number>;
|
|
25
25
|
}
|
|
26
|
-
export type
|
|
27
|
-
export type
|
|
26
|
+
export type SmartSidebarExternalClassName = SmartBaseExternalClassName;
|
|
27
|
+
export type SmartSidebar = SmartComponent<SmartSidebarProps, SmartSidebarEvents, SmartSidebarExternalClassName>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="miniprogram-api-typings" />
|
|
2
2
|
/// <reference types="react" />
|
|
3
|
-
import {
|
|
4
|
-
export interface
|
|
3
|
+
import { SmartBaseExternalClassName, SmartComponent, SmartEventHandler } from '../base';
|
|
4
|
+
export interface SmartSidebarItemProps {
|
|
5
5
|
/**
|
|
6
6
|
* 内容
|
|
7
7
|
*
|
|
@@ -30,23 +30,23 @@ export interface VantSidebarItemProps {
|
|
|
30
30
|
/**
|
|
31
31
|
* @deprecated
|
|
32
32
|
*/
|
|
33
|
-
export interface
|
|
33
|
+
export interface SmartSidebarItemClickEvent extends WechatMiniprogram.BaseEvent {
|
|
34
34
|
/**
|
|
35
35
|
* 当前徽章的索引
|
|
36
36
|
*/
|
|
37
37
|
detail: number;
|
|
38
38
|
}
|
|
39
|
-
export interface
|
|
39
|
+
export interface SmartSidebarItemEvents {
|
|
40
40
|
/**
|
|
41
41
|
* 点击徽章时触发
|
|
42
42
|
*/
|
|
43
|
-
onClick?:
|
|
43
|
+
onClick?: SmartEventHandler<number>;
|
|
44
44
|
}
|
|
45
|
-
export interface
|
|
45
|
+
export interface SmartSidebarItemSlot {
|
|
46
46
|
/**
|
|
47
47
|
* 自定义标题栏,如果设置了 title 属性则不生效
|
|
48
48
|
*/
|
|
49
49
|
title?: React.ReactNode;
|
|
50
50
|
}
|
|
51
|
-
export type
|
|
52
|
-
export type
|
|
51
|
+
export type SmartSidebarItemExternalClassName = SmartBaseExternalClassName;
|
|
52
|
+
export type SmartSidebarItem = SmartComponent<SmartSidebarItemProps, SmartSidebarItemEvents, SmartSidebarItemExternalClassName>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
1
|
+
import { SmartComponent } from '../base';
|
|
2
|
+
export interface SmartSkeletonProps {
|
|
3
3
|
/**
|
|
4
4
|
* 段落占位图行数
|
|
5
5
|
*
|
|
@@ -53,4 +53,4 @@ export interface VantSkeletonProps {
|
|
|
53
53
|
*/
|
|
54
54
|
animate?: boolean;
|
|
55
55
|
}
|
|
56
|
-
export type
|
|
56
|
+
export type SmartSkeleton = SmartComponent<SmartSkeletonProps>;
|