@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.
Files changed (187) hide show
  1. package/dist/@types/action-sheet/index.d.ts +16 -12
  2. package/dist/@types/base/component.d.ts +1 -1
  3. package/dist/@types/base/events.d.ts +4 -4
  4. package/dist/@types/base/external-class-name.d.ts +2 -2
  5. package/dist/@types/base/open-type.d.ts +11 -11
  6. package/dist/@types/battery/index.d.ts +3 -3
  7. package/dist/@types/button/index.d.ts +7 -7
  8. package/dist/@types/calendar/index.d.ts +14 -14
  9. package/dist/@types/cascader/index.d.ts +23 -11
  10. package/dist/@types/cell/index.d.ts +7 -7
  11. package/dist/@types/cell-group/index.d.ts +4 -4
  12. package/dist/@types/checkbox/index.d.ts +9 -9
  13. package/dist/@types/checkbox-group/index.d.ts +5 -5
  14. package/dist/@types/circle/index.d.ts +3 -3
  15. package/dist/@types/col/index.d.ts +4 -4
  16. package/dist/@types/collapse/index.d.ts +10 -10
  17. package/dist/@types/collapse-item/index.d.ts +4 -4
  18. package/dist/@types/config-provider/index.d.ts +3 -3
  19. package/dist/@types/count-down/index.d.ts +8 -8
  20. package/dist/@types/custom-keyboard/index.d.ts +8 -8
  21. package/dist/@types/datetime-picker/index.d.ts +10 -10
  22. package/dist/@types/dialog/dialog.d.ts +22 -22
  23. package/dist/@types/dialog/index.d.ts +7 -7
  24. package/dist/@types/divider/index.d.ts +3 -3
  25. package/dist/@types/dropdown-item/index.d.ts +13 -13
  26. package/dist/@types/dropdown-menu/index.d.ts +3 -3
  27. package/dist/@types/empty/index.d.ts +3 -3
  28. package/dist/@types/field/index.d.ts +20 -20
  29. package/dist/@types/grid/index.d.ts +4 -4
  30. package/dist/@types/grid-item/index.d.ts +8 -8
  31. package/dist/@types/icon/index.d.ts +7 -7
  32. package/dist/@types/image/index.d.ts +10 -10
  33. package/dist/@types/index-anchor/index.d.ts +3 -3
  34. package/dist/@types/index-bar/index.d.ts +6 -6
  35. package/dist/@types/loading/index.d.ts +4 -4
  36. package/dist/@types/nav-bar/index.d.ts +7 -7
  37. package/dist/@types/notice-bar/index.d.ts +7 -7
  38. package/dist/@types/notify/notify.d.ts +5 -5
  39. package/dist/@types/overlay/index.d.ts +6 -6
  40. package/dist/@types/picker/index.d.ts +14 -14
  41. package/dist/@types/popup/index.d.ts +8 -8
  42. package/dist/@types/progress/index.d.ts +4 -4
  43. package/dist/@types/radio/index.d.ts +7 -7
  44. package/dist/@types/radio-group/index.d.ts +6 -6
  45. package/dist/@types/rate/index.d.ts +7 -7
  46. package/dist/@types/row/index.d.ts +4 -4
  47. package/dist/@types/search/index.d.ts +9 -9
  48. package/dist/@types/sidebar/index.d.ts +7 -7
  49. package/dist/@types/sidebar-item/index.d.ts +8 -8
  50. package/dist/@types/skeleton/index.d.ts +3 -3
  51. package/dist/@types/slider/index.d.ts +11 -11
  52. package/dist/@types/stepper/index.d.ts +15 -15
  53. package/dist/@types/steps/index.d.ts +9 -9
  54. package/dist/@types/sticky/index.d.ts +6 -6
  55. package/dist/@types/swipe-cell/index.d.ts +14 -14
  56. package/dist/@types/switch/index.d.ts +7 -7
  57. package/dist/@types/tab/index.d.ts +6 -6
  58. package/dist/@types/tabbar/index.d.ts +6 -6
  59. package/dist/@types/tabbar-item/index.d.ts +4 -4
  60. package/dist/@types/tabs/index.d.ts +13 -13
  61. package/dist/@types/tag/index.d.ts +6 -6
  62. package/dist/@types/toast/index.d.ts +2 -2
  63. package/dist/@types/toast/toast.d.ts +11 -11
  64. package/dist/@types/transition/index.d.ts +11 -11
  65. package/dist/@types/tree-select/index.d.ts +12 -12
  66. package/dist/action-sheet/PropTypes.d.ts +2 -2
  67. package/dist/action-sheet/index.d.ts +2 -2
  68. package/dist/base/index.d.ts +2 -2
  69. package/dist/battery/PropTypes.d.ts +2 -2
  70. package/dist/battery/index.d.ts +2 -2
  71. package/dist/button/PropTypes.d.ts +2 -2
  72. package/dist/button/index.d.ts +2 -2
  73. package/dist/calendar/PropTypes.d.ts +2 -2
  74. package/dist/calendar/index.d.ts +2 -2
  75. package/dist/cascader/PropTypes.d.ts +2 -2
  76. package/dist/cascader/index.d.ts +2 -2
  77. package/dist/cell/PropTypes.d.ts +2 -2
  78. package/dist/cell/index.d.ts +2 -2
  79. package/dist/cell-group/PropTypes.d.ts +2 -2
  80. package/dist/cell-group/index.d.ts +2 -2
  81. package/dist/checkbox/PropTypes.d.ts +2 -2
  82. package/dist/checkbox/index.d.ts +2 -2
  83. package/dist/checkbox-group/PropTypes.d.ts +2 -2
  84. package/dist/checkbox-group/index.d.ts +2 -2
  85. package/dist/circle/PropTypes.d.ts +2 -2
  86. package/dist/col/PropTypes.d.ts +2 -2
  87. package/dist/col/index.d.ts +2 -2
  88. package/dist/collapse/PropTypes.d.ts +2 -2
  89. package/dist/collapse/index.d.ts +2 -2
  90. package/dist/collapse-item/PropTypes.d.ts +2 -2
  91. package/dist/collapse-item/index.d.ts +2 -2
  92. package/dist/common/withReactProps.js +12 -12
  93. package/dist/config-provider/PropTypes.d.ts +2 -2
  94. package/dist/config-provider/index.d.ts +2 -2
  95. package/dist/count-down/PropTypes.d.ts +2 -2
  96. package/dist/count-down/index.d.ts +2 -2
  97. package/dist/custom-keyboard/PropTypes.d.ts +2 -2
  98. package/dist/custom-keyboard/index.d.ts +2 -2
  99. package/dist/datetime-picker/PropTypes.d.ts +2 -2
  100. package/dist/datetime-picker/index.d.ts +2 -2
  101. package/dist/dialog/Dialog.d.ts +2 -2
  102. package/dist/dialog/PropTypes.d.ts +2 -2
  103. package/dist/dialog/index.d.ts +3 -3
  104. package/dist/divider/PropTypes.d.ts +2 -2
  105. package/dist/divider/index.d.ts +2 -2
  106. package/dist/dropdown-item/PropTypes.d.ts +2 -2
  107. package/dist/dropdown-item/index.d.ts +2 -2
  108. package/dist/dropdown-menu/PropTypes.d.ts +2 -2
  109. package/dist/dropdown-menu/index.d.ts +2 -2
  110. package/dist/empty/PropTypes.d.ts +2 -2
  111. package/dist/empty/index.d.ts +2 -2
  112. package/dist/field/PropTypes.d.ts +2 -2
  113. package/dist/field/index.d.ts +2 -2
  114. package/dist/grid/PropTypes.d.ts +2 -2
  115. package/dist/grid/index.d.ts +2 -2
  116. package/dist/grid-item/PropTypes.d.ts +2 -2
  117. package/dist/grid-item/index.d.ts +2 -2
  118. package/dist/icon/PropTypes.d.ts +2 -2
  119. package/dist/icon/index.d.ts +2 -2
  120. package/dist/image/PropTypes.d.ts +2 -2
  121. package/dist/image/index.d.ts +2 -2
  122. package/dist/index-anchor/PropTypes.d.ts +2 -2
  123. package/dist/index-anchor/index.d.ts +2 -2
  124. package/dist/index-bar/PropTypes.d.ts +2 -2
  125. package/dist/index-bar/index.d.ts +2 -2
  126. package/dist/index.d.ts +0 -3
  127. package/dist/index.js +3 -3
  128. package/dist/loading/PropTypes.d.ts +2 -2
  129. package/dist/loading/index.d.ts +2 -2
  130. package/dist/nav-bar/PropTypes.d.ts +2 -2
  131. package/dist/nav-bar/index.d.ts +2 -2
  132. package/dist/notice-bar/PropTypes.d.ts +2 -2
  133. package/dist/notice-bar/index.d.ts +2 -2
  134. package/dist/notify/PropTypes.d.ts +2 -2
  135. package/dist/notify/index.d.ts +2 -2
  136. package/dist/overlay/PropTypes.d.ts +2 -2
  137. package/dist/overlay/index.d.ts +2 -2
  138. package/dist/picker/PropTypes.d.ts +2 -2
  139. package/dist/picker/index.d.ts +2 -2
  140. package/dist/popup/PropTypes.d.ts +2 -2
  141. package/dist/popup/index.d.ts +2 -2
  142. package/dist/radio/PropTypes.d.ts +2 -2
  143. package/dist/radio/index.d.ts +2 -2
  144. package/dist/radio-group/PropTypes.d.ts +2 -2
  145. package/dist/radio-group/index.d.ts +2 -2
  146. package/dist/rate/PropTypes.d.ts +2 -2
  147. package/dist/rate/index.d.ts +2 -2
  148. package/dist/row/PropTypes.d.ts +2 -2
  149. package/dist/row/index.d.ts +2 -2
  150. package/dist/search/PropTypes.d.ts +2 -2
  151. package/dist/search/index.d.ts +2 -2
  152. package/dist/sidebar/PropTypes.d.ts +2 -2
  153. package/dist/sidebar/index.d.ts +2 -2
  154. package/dist/sidebar-item/PropTypes.d.ts +2 -2
  155. package/dist/sidebar-item/index.d.ts +2 -2
  156. package/dist/skeleton/PropTypes.d.ts +2 -2
  157. package/dist/skeleton/index.d.ts +2 -2
  158. package/dist/slider/PropTypes.d.ts +2 -2
  159. package/dist/slider/RangeSlider.d.ts +2 -2
  160. package/dist/slider/index.d.ts +4 -4
  161. package/dist/stepper/PropTypes.d.ts +2 -2
  162. package/dist/stepper/index.d.ts +2 -2
  163. package/dist/steps/PropTypes.d.ts +2 -2
  164. package/dist/steps/index.d.ts +2 -2
  165. package/dist/sticky/PropTypes.d.ts +2 -2
  166. package/dist/sticky/index.d.ts +2 -2
  167. package/dist/swipe-cell/PropTypes.d.ts +2 -2
  168. package/dist/swipe-cell/index.d.ts +2 -2
  169. package/dist/switch/PropTypes.d.ts +2 -2
  170. package/dist/switch/index.d.ts +2 -2
  171. package/dist/tab/PropTypes.d.ts +2 -2
  172. package/dist/tab/index.d.ts +2 -2
  173. package/dist/tabbar/PropTypes.d.ts +2 -2
  174. package/dist/tabbar/index.d.ts +2 -2
  175. package/dist/tabbar-item/PropTypes.d.ts +2 -2
  176. package/dist/tabbar-item/index.d.ts +2 -2
  177. package/dist/tabs/PropTypes.d.ts +2 -2
  178. package/dist/tabs/index.d.ts +2 -2
  179. package/dist/tag/PropTypes.d.ts +2 -2
  180. package/dist/tag/index.d.ts +2 -2
  181. package/dist/toast/PropTypes.d.ts +2 -2
  182. package/dist/toast/index.d.ts +2 -2
  183. package/dist/transition/PropTypes.d.ts +2 -2
  184. package/dist/transition/index.d.ts +2 -2
  185. package/dist/tree-select/PropTypes.d.ts +2 -2
  186. package/dist/tree-select/index.d.ts +2 -2
  187. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
- import { TouchPositionDetail, VantBaseExternalClassName, VantBaseLoadingExternalClassName, VantComponent, VantEventHandler } from '../base';
2
- export interface VantImageProps {
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 VantImageLoadEventDetail {
86
+ export interface SmartImageLoadEventDetail {
87
87
  width: number;
88
88
  height: number;
89
89
  }
90
- export interface VantImageErrorEventDetail {
90
+ export interface SmartImageErrorEventDetail {
91
91
  errMsg: string;
92
92
  }
93
- export interface VantImageEvents {
93
+ export interface SmartImageEvents {
94
94
  /**
95
95
  * 点击图片时触发
96
96
  */
97
- onClick?: VantEventHandler<TouchPositionDetail>;
97
+ onClick?: SmartEventHandler<TouchPositionDetail>;
98
98
  /**
99
99
  * 图片加载完毕时触发
100
100
  */
101
- onLoad?: VantEventHandler<VantImageLoadEventDetail>;
101
+ onLoad?: SmartEventHandler<SmartImageLoadEventDetail>;
102
102
  /**
103
103
  * 图片加载失败时触发
104
104
  */
105
- onError?: VantEventHandler<VantImageErrorEventDetail>;
105
+ onError?: SmartEventHandler<SmartImageErrorEventDetail>;
106
106
  }
107
- export interface VantImageExternalClassName extends VantBaseExternalClassName, VantBaseLoadingExternalClassName {
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 VantImage = VantComponent<VantImageProps, VantImageEvents, VantImageExternalClassName>;
117
+ export type SmartImage = SmartComponent<SmartImageProps, SmartImageEvents, SmartImageExternalClassName>;
@@ -1,5 +1,5 @@
1
- import { VantComponent } from '../base';
2
- export interface VantIndexAnchorProps {
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 VantIndexAnchor = VantComponent<VantIndexAnchorProps>;
14
+ export type SmartIndexAnchor = SmartComponent<SmartIndexAnchorProps>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="miniprogram-api-typings" />
2
- import { VantComponent, VantEventHandler } from '../base';
3
- export interface VantIndexBarProps {
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 VantIndexBarSelectEvent extends WechatMiniprogram.BaseEvent {
38
+ export interface SmartIndexBarSelectEvent extends WechatMiniprogram.BaseEvent {
39
39
  /**
40
40
  * 索引字符
41
41
  */
42
42
  detail: string | number;
43
43
  }
44
- export interface VantIndexBarEvents {
44
+ export interface SmartIndexBarEvents {
45
45
  /**
46
46
  * 选中字符时触发
47
47
  */
48
- onSelect?: VantEventHandler<string | number>;
48
+ onSelect?: SmartEventHandler<string | number>;
49
49
  }
50
- export type VantIndexBar = VantComponent<VantIndexBarProps, VantIndexBarEvents>;
50
+ export type SmartIndexBar = SmartComponent<SmartIndexBarProps, SmartIndexBarEvents>;
@@ -1,5 +1,5 @@
1
- import { VantBaseExternalClassName, VantComponent } from '../base';
2
- export interface VantLoadingProps {
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 VantLoadingExternalClassName = VantBaseExternalClassName;
39
- export type VantLoading = VantComponent<VantLoadingProps, {}, VantLoadingExternalClassName>;
38
+ export type SmartLoadingExternalClassName = SmartBaseExternalClassName;
39
+ export type SmartLoading = SmartComponent<SmartLoadingProps, {}, SmartLoadingExternalClassName>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { VantBaseExternalClassName, VantComponent, VantEventHandler } from '../base';
3
- export interface VantNavBarProps {
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 VantNavBarEvents {
80
+ export interface SmartNavBarEvents {
81
81
  /**
82
82
  * 点击左侧按钮时触发
83
83
  */
84
- onClickLeft?: VantEventHandler;
84
+ onClickLeft?: SmartEventHandler;
85
85
  /**
86
86
  * 点击右侧按钮时触发
87
87
  */
88
- onClickRight?: VantEventHandler;
88
+ onClickRight?: SmartEventHandler;
89
89
  }
90
- export interface VantNavBarExternalClassName extends VantBaseExternalClassName {
90
+ export interface SmartNavBarExternalClassName extends SmartBaseExternalClassName {
91
91
  /**
92
92
  * 标题样式类
93
93
  */
94
94
  titleClass?: string;
95
95
  }
96
- export type VantNavBar = VantComponent<VantNavBarProps, VantNavBarEvents, VantNavBarExternalClassName>;
96
+ export type SmartNavBar = SmartComponent<SmartNavBarProps, SmartNavBarEvents, SmartNavBarExternalClassName>;
@@ -1,5 +1,5 @@
1
- import { TouchPositionDetail, VantBaseExternalClassName, VantComponent, VantEventHandler, VantTouchEventHandler, WechatOpenType } from '../base';
2
- export interface VantNoticeBarProps {
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 VantNoticeBarEvents {
60
+ export interface SmartNoticeBarEvents {
61
61
  /**
62
62
  * 点击通知栏时触发
63
63
  */
64
- onClick?: VantTouchEventHandler;
64
+ onClick?: SmartTouchEventHandler;
65
65
  /**
66
66
  * 关闭通知栏时触发
67
67
  */
68
- onClose?: VantEventHandler<TouchPositionDetail>;
68
+ onClose?: SmartEventHandler<TouchPositionDetail>;
69
69
  }
70
- export type VantNoticeBarExternalClassName = VantBaseExternalClassName;
71
- export type VantNoticeBar = VantComponent<VantNoticeBarProps, VantNoticeBarEvents, VantNoticeBarExternalClassName>;
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 VantNotifyProps {
2
+ export interface SmartNotifyProps {
3
3
  /**
4
4
  * 在页面内添加自定义节点的标识符
5
5
  */
6
6
  id: string;
7
7
  }
8
- export interface VantNotifyOptions {
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 'van-notify'
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 VantNotify {
74
+ export interface SmartNotify {
75
75
  /**
76
76
  * 展示提示
77
77
  */
78
78
  (): (message: string) => void;
79
- (): (options: VantNotifyOptions) => void;
79
+ (): (options: SmartNotifyOptions) => void;
80
80
  /**
81
81
  * 关闭提示
82
82
  */
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { VantBaseExternalClassName, VantComponent, VantEventHandler } from '../base';
3
- export interface VantOverlayProps {
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 VantOverlayEvents {
37
+ export interface SmartOverlayEvents {
38
38
  /**
39
39
  * 点击时触发
40
40
  */
41
- onClick?: VantEventHandler;
41
+ onClick?: SmartEventHandler;
42
42
  }
43
- export interface VantOverlaySlot {
43
+ export interface SmartOverlaySlot {
44
44
  /**
45
45
  * 默认插槽,用于在遮罩层上方嵌入内容
46
46
  */
47
47
  children?: React.ReactNode;
48
48
  }
49
- export type VantOverlay = VantComponent<VantOverlayProps, VantOverlayEvents, VantBaseExternalClassName, VantOverlaySlot>;
49
+ export type SmartOverlay = SmartComponent<SmartOverlayProps, SmartOverlayEvents, SmartBaseExternalClassName, SmartOverlaySlot>;
@@ -1,10 +1,10 @@
1
- import { VantBaseExternalClassName, VantComponent, VantEventHandler } from '../base';
2
- export type VantPickerSingleColumn = string | Record<string, unknown>;
3
- export interface VantPickerMultipleColumn {
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: VantPickerSingleColumn[];
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 VantPickerProps {
26
+ export interface SmartPickerProps {
27
27
  /**
28
28
  * 对象数组,配置每一列显示的数据
29
29
  *
30
30
  * @default []
31
31
  */
32
- columns?: VantPickerSingleColumn[] | VantPickerMultipleColumn[];
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 VantPickerBaseEventDetail {
106
+ export interface SmartPickerBaseEventDetail {
107
107
  index: number | number[];
108
108
  picker: Record<string, any>;
109
109
  value: string[];
110
110
  }
111
- export interface VantPickerChangeEventDetail extends Omit<VantPickerBaseEventDetail, 'index'> {
111
+ export interface SmartPickerChangeEventDetail extends Omit<SmartPickerBaseEventDetail, 'index'> {
112
112
  index: number;
113
113
  }
114
- export interface VantPickerEvents {
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?: VantEventHandler<VantPickerBaseEventDetail>;
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?: VantEventHandler<VantPickerChangeEventDetail>;
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?: VantEventHandler<VantPickerBaseEventDetail>;
138
+ onChange?: SmartEventHandler<SmartPickerBaseEventDetail>;
139
139
  }
140
- export interface VantPickerExternalClassName extends VantBaseExternalClassName {
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 VantPicker = VantComponent<VantPickerProps, VantPickerEvents, VantPickerExternalClassName>;
154
+ export type SmartPicker = SmartComponent<SmartPickerProps, SmartPickerEvents, SmartPickerExternalClassName>;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { VantBaseExternalClassName, VantComponent, VantEventHandler } from '../base';
3
- import { VantTransitionEvents } from '../transition';
4
- export interface VantPopupProps {
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 VantPopupEvents extends VantTransitionEvents {
96
+ export interface SmartPopupEvents extends SmartTransitionEvents {
97
97
  /**
98
98
  * 关闭弹出层时触发
99
99
  */
100
- onClose?: VantEventHandler;
100
+ onClose?: SmartEventHandler;
101
101
  /**
102
102
  * 点击遮罩层时触发
103
103
  */
104
- onClickOverlay?: VantEventHandler;
104
+ onClickOverlay?: SmartEventHandler;
105
105
  }
106
- export type VantPopupExternalClassName = VantBaseExternalClassName;
107
- export type VantPopup = VantComponent<VantPopupProps, VantPopupEvents, VantPopupExternalClassName>;
106
+ export type SmartPopupExternalClassName = SmartBaseExternalClassName;
107
+ export type SmartPopup = SmartComponent<SmartPopupProps, SmartPopupEvents, SmartPopupExternalClassName>;
@@ -1,5 +1,5 @@
1
- import { VantBaseExternalClassName, VantComponent } from '../base';
2
- export interface VantProgressProps {
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 VantProgressExternalClassName = VantBaseExternalClassName;
59
- export type VantProgress = VantComponent<VantProgressProps, {}, VantProgressExternalClassName>;
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 { VantBaseExternalClassName, VantComponent, VantEventHandler } from '../base';
3
- export interface VantRadioProps {
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 VantRadioChangeEvent extends WechatMiniprogram.BaseEvent {
50
+ export interface SmartRadioChangeEvent extends WechatMiniprogram.BaseEvent {
51
51
  detail: string;
52
52
  }
53
- export interface VantRadioEvents {
53
+ export interface SmartRadioEvents {
54
54
  /**
55
55
  * 当绑定值变化时触发的事件
56
56
  */
57
- onchange?: VantEventHandler<string>;
57
+ onchange?: SmartEventHandler<string>;
58
58
  }
59
- export interface VantRadioExternalClassName extends VantBaseExternalClassName {
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 VantRadio = VantComponent<VantRadioProps, VantRadioEvents, VantRadioExternalClassName>;
69
+ export type SmartRadio = SmartComponent<SmartRadioProps, SmartRadioEvents, SmartRadioExternalClassName>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="miniprogram-api-typings" />
2
- import { VantComponent, VantEventHandler } from '../base';
3
- export interface VantRadioGroupProps {
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 VantRadioGroupChangeEvent extends WechatMiniprogram.BaseEvent {
28
+ export interface SmartRadioGroupChangeEvent extends WechatMiniprogram.BaseEvent {
29
29
  detail: string;
30
30
  }
31
- export interface VantRadioGroupEvents {
31
+ export interface SmartRadioGroupEvents {
32
32
  /**
33
33
  * 当绑定值变化时触发的事件
34
34
  */
35
- 'bind:change'?: VantEventHandler<string>;
35
+ 'bind:change'?: SmartEventHandler<string>;
36
36
  }
37
- export type VantRadioGroup = VantComponent<VantRadioGroupProps, VantRadioGroupEvents>;
37
+ export type SmartRadioGroup = SmartComponent<SmartRadioGroupProps, SmartRadioGroupEvents>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="miniprogram-api-typings" />
2
- import { VantBaseExternalClassName, VantComponent, VantEventHandler } from '../base';
3
- export interface VantRateProps {
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 VantRateChangeEvent extends WechatMiniprogram.BaseEvent {
88
+ export interface SmartRateChangeEvent extends WechatMiniprogram.BaseEvent {
89
89
  detail: number;
90
90
  }
91
- export interface VantRateEvents {
91
+ export interface SmartRateEvents {
92
92
  /**
93
93
  * 当前分值变化时触发的事件
94
94
  */
95
- onChange?: VantEventHandler<number>;
95
+ onChange?: SmartEventHandler<number>;
96
96
  }
97
- export interface VantRateExternalClassName extends VantBaseExternalClassName {
97
+ export interface SmartRateExternalClassName extends SmartBaseExternalClassName {
98
98
  /**
99
99
  * 图标样式类
100
100
  */
101
101
  iconClass?: string;
102
102
  }
103
- export type VantRate = VantComponent<VantRateProps, VantRateEvents, VantRateExternalClassName>;
103
+ export type SmartRate = SmartComponent<SmartRateProps, SmartRateEvents, SmartRateExternalClassName>;
@@ -1,9 +1,9 @@
1
- import { VantBaseExternalClassName, VantComponent } from '../base';
2
- export interface VantRowProps {
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 VantRowExternalClassName = VantBaseExternalClassName;
9
- export type VantRow = VantComponent<VantRowProps, {}, VantRowExternalClassName>;
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 { VantBaseExternalClassName, VantComponent, VantEventHandler } from '../base';
3
- import { VantFieldEvents } from '../field';
4
- export interface VantSearchProps {
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 VantSearchBaseEvent extends WechatMiniprogram.BaseEvent {
139
+ export interface SmartSearchBaseEvent extends WechatMiniprogram.BaseEvent {
140
140
  detail: string;
141
141
  }
142
- export interface VantSearchEvents extends Pick<VantFieldEvents, 'onChange' | 'onFocus' | 'onBlur' | 'onClear' | 'onClickInput'> {
142
+ export interface SmartSearchEvents extends Pick<SmartFieldEvents, 'onChange' | 'onFocus' | 'onBlur' | 'onClear' | 'onClickInput'> {
143
143
  /**
144
144
  * 确定搜索时触发
145
145
  */
146
- onSearch?: VantEventHandler<string>;
146
+ onSearch?: SmartEventHandler<string>;
147
147
  /**
148
148
  * 取消搜索搜索时触发
149
149
  */
150
- onCancel?: VantEventHandler;
150
+ onCancel?: SmartEventHandler;
151
151
  }
152
- export interface VantSearchExternalClassName extends VantBaseExternalClassName {
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 VantSearch = VantComponent<VantSearchProps, VantSearchEvents, VantSearchExternalClassName>;
166
+ export type SmartSearch = SmartComponent<SmartSearchProps, SmartSearchEvents, SmartSearchExternalClassName>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="miniprogram-api-typings" />
2
- import { VantBaseExternalClassName, VantComponent, VantEventHandler } from '../base';
3
- export interface VantSidebarProps {
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 VantSidebarChangeEvent extends WechatMiniprogram.BaseEvent {
14
+ export interface SmartSidebarChangeEvent extends WechatMiniprogram.BaseEvent {
15
15
  /**
16
16
  * 当前选中徽章的索引
17
17
  */
18
18
  detail: number;
19
19
  }
20
- export interface VantSidebarEvents {
20
+ export interface SmartSidebarEvents {
21
21
  /**
22
22
  * 切换徽章时触发
23
23
  */
24
- onChange?: VantEventHandler<number>;
24
+ onChange?: SmartEventHandler<number>;
25
25
  }
26
- export type VantSidebarExternalClassName = VantBaseExternalClassName;
27
- export type VantSidebar = VantComponent<VantSidebarProps, VantSidebarEvents, VantSidebarExternalClassName>;
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 { VantBaseExternalClassName, VantComponent, VantEventHandler } from '../base';
4
- export interface VantSidebarItemProps {
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 VantSidebarItemClickEvent extends WechatMiniprogram.BaseEvent {
33
+ export interface SmartSidebarItemClickEvent extends WechatMiniprogram.BaseEvent {
34
34
  /**
35
35
  * 当前徽章的索引
36
36
  */
37
37
  detail: number;
38
38
  }
39
- export interface VantSidebarItemEvents {
39
+ export interface SmartSidebarItemEvents {
40
40
  /**
41
41
  * 点击徽章时触发
42
42
  */
43
- onClick?: VantEventHandler<number>;
43
+ onClick?: SmartEventHandler<number>;
44
44
  }
45
- export interface VantSidebarItemSlot {
45
+ export interface SmartSidebarItemSlot {
46
46
  /**
47
47
  * 自定义标题栏,如果设置了 title 属性则不生效
48
48
  */
49
49
  title?: React.ReactNode;
50
50
  }
51
- export type VantSidebarItemExternalClassName = VantBaseExternalClassName;
52
- export type VantSidebarItem = VantComponent<VantSidebarItemProps, VantSidebarItemEvents, VantSidebarItemExternalClassName>;
51
+ export type SmartSidebarItemExternalClassName = SmartBaseExternalClassName;
52
+ export type SmartSidebarItem = SmartComponent<SmartSidebarItemProps, SmartSidebarItemEvents, SmartSidebarItemExternalClassName>;
@@ -1,5 +1,5 @@
1
- import { VantComponent } from '../base';
2
- export interface VantSkeletonProps {
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 VantSkeleton = VantComponent<VantSkeletonProps>;
56
+ export type SmartSkeleton = SmartComponent<SmartSkeletonProps>;