@pisell/materials 2.2.87 → 2.2.88

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 (254) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +7 -7
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +13 -13
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +12 -12
  11. package/es/components/batch-editor/index.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  13. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  14. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  15. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  16. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  17. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  18. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
  19. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  20. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +78 -0
  21. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  22. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  23. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  24. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  25. package/es/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
  26. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  27. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  28. package/es/components/dataSourceComponents/fields/index.d.ts +20 -19
  29. package/es/components/date-picker/datePickerCpt.d.ts +1 -0
  30. package/es/components/date-picker/index.d.ts +1 -0
  31. package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  32. package/es/components/drag-sort-tree/index.d.ts +4 -0
  33. package/es/components/filter/index.d.ts +1 -0
  34. package/es/components/iconfont/index.d.ts +8 -0
  35. package/es/components/list/index.d.ts +1 -0
  36. package/es/components/login-and-register/index.d.ts +82 -0
  37. package/es/components/lowCodePage/index.d.ts +1 -0
  38. package/es/components/page/index.d.ts +1 -0
  39. package/es/components/pisell-config-provider/index.d.ts +12 -0
  40. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  41. package/es/components/pisellAdjustPrice/index.d.ts +1 -0
  42. package/es/components/pisellEmpty/index.d.ts +19 -0
  43. package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
  44. package/es/components/pisellInput/index.d.ts +1 -0
  45. package/es/components/pisellLoading/index.d.ts +1 -0
  46. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  47. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  48. package/es/components/pisellModal/components/index.d.ts +1 -0
  49. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
  50. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
  51. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  52. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
  53. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
  54. package/es/components/productCard/cartSkuCard/index.d.ts +1 -0
  55. package/es/components/productCard/cartSkuCard/locales.d.ts +93 -0
  56. package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
  57. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  58. package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  59. package/es/components/productCard/components/Header/index.d.ts +1 -0
  60. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  61. package/es/components/productCard/components/Note/index.d.ts +1 -0
  62. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  63. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  64. package/es/components/productCard/components/Packages/index.d.ts +1 -0
  65. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  66. package/es/components/productCard/components/Sales/index.d.ts +1 -0
  67. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
  68. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  69. package/es/components/productCard/locales.d.ts +84 -0
  70. package/es/components/productCard/status.d.ts +32 -0
  71. package/es/components/productCard/types.d.ts +84 -0
  72. package/es/components/qrcode/index.d.ts +1 -0
  73. package/es/components/select-time/index.d.ts +0 -1
  74. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  75. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  76. package/es/components/table/Actions/index.d.ts +1 -0
  77. package/es/components/table/BasicTable/index.d.ts +1 -0
  78. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  79. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  80. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  81. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  82. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  83. package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
  84. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  85. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  86. package/es/components/table/Table/fields/index.d.ts +3 -2
  87. package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
  88. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  89. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  90. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  91. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  92. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  93. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  94. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  95. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  96. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  97. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  98. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  99. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  100. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  101. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  102. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  103. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  104. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  105. package/es/components/table/Table/utils.d.ts +1 -1
  106. package/es/components/table/View/index.d.ts +1 -0
  107. package/es/components/table/types.d.ts +251 -0
  108. package/es/components/versionSelect/index.d.ts +1 -0
  109. package/es/components/virtual-keyboard/Amount/index.d.ts +4 -30
  110. package/es/components/virtual-keyboard/Amount/index.js +73 -6
  111. package/es/components/virtual-keyboard/Amount/index.less +39 -0
  112. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  113. package/es/components/virtual-keyboard/Amount/themeConfig.js +32 -0
  114. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  115. package/es/components/virtual-keyboard/Amount/types.js +1 -0
  116. package/es/components/virtual-keyboard/Number/index.d.ts +4 -11
  117. package/es/components/virtual-keyboard/Number/index.js +77 -7
  118. package/es/components/virtual-keyboard/Number/index.less +39 -0
  119. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  120. package/es/components/virtual-keyboard/Number/themeConfig.js +32 -0
  121. package/es/components/virtual-keyboard/Number/types.d.ts +25 -0
  122. package/es/components/virtual-keyboard/Number/types.js +1 -0
  123. package/es/components/virtual-keyboard/index.d.ts +11 -0
  124. package/es/components/virtual-keyboard/index.js +88 -3
  125. package/es/components/virtual-keyboard/index.less +33 -1
  126. package/es/locales/en-US.d.ts +278 -0
  127. package/es/locales/zh-CN.d.ts +273 -0
  128. package/es/locales/zh-TW.d.ts +273 -0
  129. package/es/utils/index.d.ts +1 -1
  130. package/es/utils/platform.d.ts +1 -1
  131. package/lib/components/batch-editor/index.d.ts +1 -0
  132. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  133. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  134. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  135. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  136. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  137. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  138. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
  139. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  140. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +78 -0
  141. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  142. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  143. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  144. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  145. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
  146. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  147. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  148. package/lib/components/dataSourceComponents/fields/index.d.ts +20 -19
  149. package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
  150. package/lib/components/date-picker/index.d.ts +1 -0
  151. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  152. package/lib/components/drag-sort-tree/index.d.ts +4 -0
  153. package/lib/components/filter/index.d.ts +1 -0
  154. package/lib/components/iconfont/index.d.ts +8 -0
  155. package/lib/components/list/index.d.ts +1 -0
  156. package/lib/components/login-and-register/index.d.ts +82 -0
  157. package/lib/components/lowCodePage/index.d.ts +1 -0
  158. package/lib/components/page/index.d.ts +1 -0
  159. package/lib/components/pisell-config-provider/index.d.ts +12 -0
  160. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  161. package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
  162. package/lib/components/pisellEmpty/index.d.ts +19 -0
  163. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
  164. package/lib/components/pisellInput/index.d.ts +1 -0
  165. package/lib/components/pisellLoading/index.d.ts +1 -0
  166. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  167. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  168. package/lib/components/pisellModal/components/index.d.ts +1 -0
  169. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
  170. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
  171. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  172. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
  173. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
  174. package/lib/components/productCard/cartSkuCard/index.d.ts +1 -0
  175. package/lib/components/productCard/cartSkuCard/locales.d.ts +93 -0
  176. package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
  177. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  178. package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  179. package/lib/components/productCard/components/Header/index.d.ts +1 -0
  180. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  181. package/lib/components/productCard/components/Note/index.d.ts +1 -0
  182. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  183. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  184. package/lib/components/productCard/components/Packages/index.d.ts +1 -0
  185. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  186. package/lib/components/productCard/components/Sales/index.d.ts +1 -0
  187. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
  188. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  189. package/lib/components/productCard/locales.d.ts +84 -0
  190. package/lib/components/productCard/status.d.ts +32 -0
  191. package/lib/components/productCard/types.d.ts +84 -0
  192. package/lib/components/qrcode/index.d.ts +1 -0
  193. package/lib/components/select-time/index.d.ts +0 -1
  194. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  195. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  196. package/lib/components/table/Actions/index.d.ts +1 -0
  197. package/lib/components/table/BasicTable/index.d.ts +1 -0
  198. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  199. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  200. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  201. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  202. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  203. package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
  204. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  205. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  206. package/lib/components/table/Table/fields/index.d.ts +3 -2
  207. package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
  208. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  209. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  210. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  211. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  212. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  213. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  214. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  215. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  216. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  217. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  218. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  219. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  220. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  221. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  222. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  223. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  224. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  225. package/lib/components/table/Table/utils.d.ts +1 -1
  226. package/lib/components/table/View/index.d.ts +1 -0
  227. package/lib/components/table/types.d.ts +251 -0
  228. package/lib/components/versionSelect/index.d.ts +1 -0
  229. package/lib/components/virtual-keyboard/Amount/index.d.ts +4 -30
  230. package/lib/components/virtual-keyboard/Amount/index.js +68 -17
  231. package/lib/components/virtual-keyboard/Amount/index.less +39 -0
  232. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  233. package/lib/components/virtual-keyboard/Amount/themeConfig.js +60 -0
  234. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  235. package/lib/components/virtual-keyboard/Amount/types.js +17 -0
  236. package/lib/components/virtual-keyboard/Number/index.d.ts +4 -11
  237. package/lib/components/virtual-keyboard/Number/index.js +65 -11
  238. package/lib/components/virtual-keyboard/Number/index.less +39 -0
  239. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  240. package/lib/components/virtual-keyboard/Number/themeConfig.js +60 -0
  241. package/lib/components/virtual-keyboard/Number/types.d.ts +25 -0
  242. package/lib/components/virtual-keyboard/Number/types.js +17 -0
  243. package/lib/components/virtual-keyboard/index.d.ts +11 -0
  244. package/lib/components/virtual-keyboard/index.js +60 -2
  245. package/lib/components/virtual-keyboard/index.less +33 -1
  246. package/lib/locales/en-US.d.ts +278 -0
  247. package/lib/locales/zh-CN.d.ts +273 -0
  248. package/lib/locales/zh-TW.d.ts +273 -0
  249. package/lib/utils/index.d.ts +1 -1
  250. package/lib/utils/platform.d.ts +1 -1
  251. package/lowcode/pisell-number-keyboard/meta.ts +167 -0
  252. package/lowcode/pisell-price-keyboard/meta.ts +167 -0
  253. package/lowcode/virtual-keyboard/meta.ts +131 -0
  254. package/package.json +1 -1
@@ -0,0 +1,251 @@
1
+ import { FilterType } from "../filter/types";
2
+ import { SortItemProps } from "../sort/types";
3
+ import React from "react";
4
+ export declare type StorageMode = "" | "localStorage";
5
+ /**
6
+ * 排序总配置
7
+ */
8
+ export declare type SortType = {
9
+ /** 排序是否展示 */
10
+ show: boolean;
11
+ /** 排序存储模式 */
12
+ storageMode: StorageMode;
13
+ list: SortItemProps[];
14
+ };
15
+ /**
16
+ * 列展示总配置
17
+ */
18
+ export declare type ColumnSettingType = {
19
+ /** 列设置是否展示 */
20
+ show: boolean;
21
+ /** 列设置存储模式 */
22
+ storageMode: StorageMode;
23
+ };
24
+ declare type DataSourceListItemType = {
25
+ isCustom: boolean;
26
+ columnKey?: string;
27
+ label?: string;
28
+ name?: string | string[];
29
+ isHidden?: boolean;
30
+ };
31
+ /**
32
+ * 数据源分组总配置
33
+ */
34
+ export declare type DataSourceGroupType = {
35
+ /** 分组设置是否展示 */
36
+ show: boolean;
37
+ /** 分组设置存储模式 */
38
+ storageMode: StorageMode;
39
+ /** */
40
+ list: DataSourceListItemType[];
41
+ };
42
+ /**
43
+ * Gallery封面总配置
44
+ */
45
+ declare type GalleryCoverType = {
46
+ /** 封面是否展示 */
47
+ show: boolean;
48
+ /**
49
+ * 封面图片可以使用的字段
50
+ */
51
+ fields: string[];
52
+ /**
53
+ * 封面高度
54
+ */
55
+ height: number;
56
+ /** 图片裁剪方式 */
57
+ objectFit: "fill" | "cover";
58
+ };
59
+ /**
60
+ * Gallery标题总配置
61
+ */
62
+ declare type GalleryTitleType = {
63
+ /** 标题使用的字段 */
64
+ field: string;
65
+ /** 标题行数 */
66
+ line: number;
67
+ };
68
+ /**
69
+ * Gallery头部区域总配置
70
+ */
71
+ declare type GalleryHeaderType = {
72
+ /** 头部区域插槽 */
73
+ slot?: (record: Record<string, any>, index: number) => React.ReactNode;
74
+ /** 头部区域其他字段设置 */
75
+ fields: {
76
+ /** 头部区域其他字段是否展示 */
77
+ show: boolean;
78
+ /** 头部区域其他字段 */
79
+ list: string[];
80
+ };
81
+ };
82
+ /**
83
+ * Gallery内容区域总配置
84
+ */
85
+ declare type GalleryContentType = {
86
+ /** 内容区域字段配置 */
87
+ fields: {
88
+ columnKey: string;
89
+ show: boolean;
90
+ }[];
91
+ };
92
+ export declare type GallerySettingValueType = {
93
+ coverField: string | "noCover";
94
+ coverObjectFit: "fill" | "cover";
95
+ compactMode: "default" | "compact";
96
+ isShowLabel: boolean;
97
+ };
98
+ /**
99
+ * Gallery底部区域总配置
100
+ */
101
+ declare type GalleryFooterType = {
102
+ /** 底部区域自定义渲染 */
103
+ render: (record: Record<string, any>, index: number) => React.ReactNode;
104
+ /** 底部区域高度 */
105
+ height: number;
106
+ };
107
+ /**
108
+ * Gallery模式总配置
109
+ */
110
+ export declare type GallerySettingType = {
111
+ /** 卡片最小宽度 */
112
+ cardMinWidth: number;
113
+ /** 卡片最大宽度 */
114
+ cardMaxWidth: number;
115
+ /** 水平间隔 */
116
+ horizontalGutter: number;
117
+ /** 垂直间隔 */
118
+ verticalGutter: number;
119
+ /** 封面配置 */
120
+ cover: GalleryCoverType;
121
+ /** 标题配置 */
122
+ title: GalleryTitleType;
123
+ /** 头部区域 */
124
+ header: GalleryHeaderType;
125
+ /** 内容区域 */
126
+ content: GalleryContentType;
127
+ /** 固定高度 */
128
+ fixedHeight: boolean;
129
+ /** 固定的卡片高度 */
130
+ cardHeight: number;
131
+ /** 固定顶部 */
132
+ fixedHeader: boolean;
133
+ /** 固定底部 */
134
+ fixedFooter: boolean;
135
+ /** 底部区域 */
136
+ footer: GalleryFooterType;
137
+ /** 卡片点击时间 */
138
+ onItem: (record: Record<string, any>, index: number) => void;
139
+ };
140
+ /** 视图模式 */
141
+ export declare type ModeType = "grid" | "gallery" | "kanban";
142
+ /**
143
+ * 视图模式总配置
144
+ */
145
+ export declare type GridViewType = {
146
+ /** 默认视图模式 */
147
+ defaultViewMode: ModeType;
148
+ /** 开启多视图模式可进行页面内转换 */
149
+ multiple: boolean;
150
+ /** 当前可用的视图模式列表 */
151
+ modeList: ModeType[];
152
+ };
153
+ declare type SortDetail = {
154
+ fromIndex: number;
155
+ toIndex: number;
156
+ dataSource: Record<string, any>[];
157
+ fromId: number | string;
158
+ toId: number | string;
159
+ fromItem: Record<string, any>;
160
+ toItem: Record<string, any>;
161
+ };
162
+ /** 导入导出模式 */
163
+ export declare type ExportImportModeType = "import" | "export" | "export_file" | "import_log";
164
+ /**
165
+ * @title: 导出导入api
166
+ * @description:
167
+ * @return {*}
168
+ * @Author: WangHan
169
+ * @Date: 2024-09-11 15:44
170
+ */
171
+ export declare type ApiProps = {
172
+ export?: string;
173
+ import?: string;
174
+ export_file: string;
175
+ import_log?: string;
176
+ template?: string;
177
+ };
178
+ /**
179
+ * 导入导出配置
180
+ */
181
+ export declare type ExportImportType = {
182
+ /** 是否展示 */
183
+ show: boolean;
184
+ /** 当前所选项 */
185
+ selectLists: string[];
186
+ /** 导入模版链接 */
187
+ templateFileUrl: string;
188
+ /** 标题 */
189
+ title: string;
190
+ hiddenKeys?: string[];
191
+ apiUrl?: ApiProps;
192
+ otherParams?: any;
193
+ };
194
+ export declare type GridViewProps = {
195
+ columns: any;
196
+ dataSource: any[];
197
+ dispatch: any;
198
+ /**
199
+ * 画册模式的配置
200
+ */
201
+ gallery: GallerySettingType;
202
+ /**
203
+ * 视图设置
204
+ */
205
+ view: GridViewType;
206
+ style: React.CSSProperties;
207
+ pagination: any;
208
+ filter: FilterType;
209
+ buttons: React.ReactNode | any[];
210
+ actionButtons: any;
211
+ sort: SortType;
212
+ title?: React.ReactNode | (() => React.ReactNode);
213
+ showTitle?: boolean;
214
+ subTitle?: React.ReactNode | (() => React.ReactNode);
215
+ showSubTitle?: boolean;
216
+ exportImport: ExportImportType;
217
+ onValuesChange: (changedValues: any, values: any) => void;
218
+ summary: any;
219
+ utils: any;
220
+ rowKey: ((record: Record<string, any>) => string) | string;
221
+ columnSetting?: ColumnSettingType;
222
+ dataSourceGroup?: DataSourceGroupType;
223
+ loading: boolean;
224
+ dragSort: boolean;
225
+ onSortChange?: (detail: SortDetail) => boolean;
226
+ __id?: string;
227
+ __designMode?: "design";
228
+ /**
229
+ * 当前本地配置的key 用此hash是否改变用来判断是否清空本地配置 不填默认使用columns数据生成hash
230
+ */
231
+ currentSettingKey?: string;
232
+ /**
233
+ * 当前本地配置的唯一值, 不填默认使用currentSettingKey
234
+ */
235
+ currentComponentId?: string;
236
+ /**
237
+ * 当前表格中数据发生变化事件 包含本地筛选和外部传入数据变化
238
+ * @param currentDataSource
239
+ */
240
+ onDataSourceChange?: (currentDataSource: Record<string, any>[]) => void;
241
+ tabs: {
242
+ show: boolean;
243
+ type: 'default' | 'button' | 'buttonGroup' | 'dropdown';
244
+ items: {
245
+ name: string;
246
+ filterBy?: Record<string, any>;
247
+ sortBy?: string;
248
+ }[];
249
+ };
250
+ };
251
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  import './index.less';
3
4
  export interface Version {
@@ -1,32 +1,6 @@
1
- import React from 'react';
2
- import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
3
- export interface RightItemsStyleProps {
4
- buttonBackgroundColor?: string;
5
- textColor?: string;
6
- resetButtonBackgroundColor?: string;
7
- resetButtonTextColor?: string;
8
- isDoneButtonFollowTheme?: boolean;
9
- doneButtonBackgroundColor?: string;
10
- doneButtonTextColor?: string;
11
- }
12
- export interface AmountProps {
13
- max?: number;
14
- min?: number;
15
- doneText?: string;
16
- resetText?: string;
17
- defaultValue?: string | number;
18
- placeholder?: string;
19
- amountProps?: {
20
- showCurrencySymbol: boolean;
21
- useThousandsSeparator: boolean;
22
- };
23
- presets?: BaseNumberKeyboardProps['presets'];
24
- value?: string | number;
25
- onChange?: (val: string | number) => void;
26
- onEnter?: (val: string | number) => void;
27
- defaultSelect?: boolean;
28
- inputFormat?: (_v: string) => React.ReactNode | null;
29
- rightItemsStyle?: RightItemsStyleProps;
30
- }
1
+ /// <reference types="react" />
2
+ import { AmountProps, RightItemsStyleProps } from './types';
3
+ import './index.less';
4
+ export type { AmountProps, RightItemsStyleProps };
31
5
  declare const Amount: (props: AmountProps) => JSX.Element;
32
6
  export default Amount;
@@ -1,14 +1,29 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["min", "max", "amountProps", "doneText", "resetText", "defaultValue", "placeholder", "onEnter", "presets", "defaultSelect", "inputFormat", "rightItemsStyle", "selectType"];
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1
8
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
9
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
10
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
11
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
12
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
13
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- import React, { useEffect } from 'react';
14
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
15
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16
+ import React, { useEffect, useMemo } from 'react';
8
17
  import { useControllableValue } from 'ahooks';
18
+ import classNames from 'classnames';
19
+ import { setTheme } from '@pisell/utils';
9
20
  import BaseNumberKeyboard from "../BaseNumberKeyboard";
10
21
  import PisellText from "../../pisellText";
22
+ import usePisellConfig from "../../pisell-config-provider/hooks/usePisellConfig";
23
+ import { amountThemeConfig } from "./themeConfig";
24
+ import "./index.less";
11
25
  var Amount = function Amount(props) {
26
+ var _rightItemsStyle$isDo;
12
27
  var min = props.min,
13
28
  max = props.max,
14
29
  amountProps = props.amountProps,
@@ -20,7 +35,11 @@ var Amount = function Amount(props) {
20
35
  presets = props.presets,
21
36
  defaultSelect = props.defaultSelect,
22
37
  inputFormat = props.inputFormat,
23
- rightItemsStyle = props.rightItemsStyle;
38
+ rightItemsStyle = props.rightItemsStyle,
39
+ _props$selectType = props.selectType,
40
+ selectType = _props$selectType === void 0 ? 'light' : _props$selectType,
41
+ others = _objectWithoutProperties(props, _excluded);
42
+ var config = usePisellConfig();
24
43
  var _useControllableValue = useControllableValue(props, {
25
44
  defaultValue: defaultValue || ''
26
45
  }),
@@ -30,6 +49,41 @@ var Amount = function Amount(props) {
30
49
  useEffect(function () {
31
50
  document.body.id = 'body';
32
51
  }, []);
52
+
53
+ /**
54
+ * 配置颜色
55
+ * 根据 props 和 selectType 生成最终的配置颜色
56
+ */
57
+ var configColor = useMemo(function () {
58
+ var currentConfig = amountThemeConfig[selectType];
59
+
60
+ // 过滤出有效的 props 并合并到默认配置中
61
+ var validProps = Object.entries(props).reduce(function (acc, _ref) {
62
+ var _ref2 = _slicedToArray(_ref, 2),
63
+ key = _ref2[0],
64
+ value = _ref2[1];
65
+ if (value !== undefined && key in currentConfig) {
66
+ acc[key] = value;
67
+ }
68
+ return acc;
69
+ }, {});
70
+ return _objectSpread(_objectSpread({}, currentConfig), validProps);
71
+ }, [selectType, props]);
72
+ useEffect(function () {
73
+ setTheme({
74
+ '--pisell-amount-background-color': configColor.backgroundColor,
75
+ '--pisell-amount-container-background-color': configColor.containerBackgroundColor,
76
+ '--pisell-amount-text-color': configColor.textColor,
77
+ '--pisell-amount-keyboard-background-color': configColor.keyboardBackgroundColor,
78
+ '--pisell-amount-keyboard-button-background-color': configColor.keyboardButtonBackgroundColor,
79
+ '--pisell-amount-keyboard-button-text-color': configColor.keyboardButtonTextColor,
80
+ '--pisell-amount-keyboard-button-hover-color': configColor.keyboardButtonHoverColor,
81
+ '--pisell-amount-reset-button-background-color': configColor.resetButtonBackgroundColor,
82
+ '--pisell-amount-reset-button-text-color': configColor.resetButtonTextColor,
83
+ '--pisell-amount-done-button-background-color': configColor.doneButtonBackgroundColor,
84
+ '--pisell-amount-done-button-text-color': configColor.doneButtonTextColor
85
+ });
86
+ }, [configColor]);
33
87
  var format = function format(_v) {
34
88
  var v = "".concat(_v);
35
89
  if (inputFormat !== null && inputFormat !== void 0 && inputFormat(v)) {
@@ -47,11 +101,16 @@ var Amount = function Amount(props) {
47
101
  showCurrencySymbol: amountProps === null || amountProps === void 0 ? void 0 : amountProps.showCurrencySymbol,
48
102
  useThousandsSeparator: amountProps === null || amountProps === void 0 ? void 0 : amountProps.useThousandsSeparator,
49
103
  style: {
50
- color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor) || '#000000'
104
+ color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor) || configColor.textColor
51
105
  }
52
106
  }), endWith && '.');
53
107
  };
54
- return /*#__PURE__*/React.createElement(BaseNumberKeyboard, {
108
+ return /*#__PURE__*/React.createElement("div", {
109
+ className: classNames('pisell-amount-keyboard-wrap', {
110
+ 'pisell-amount-keyboard-dark': selectType === 'dark',
111
+ 'pisell-amount-keyboard-light': selectType === 'light'
112
+ })
113
+ }, /*#__PURE__*/React.createElement(BaseNumberKeyboard, {
55
114
  defaultSelect: defaultSelect,
56
115
  max: max,
57
116
  min: min,
@@ -64,7 +123,15 @@ var Amount = function Amount(props) {
64
123
  resetText: resetText,
65
124
  onEnter: onEnter,
66
125
  presets: presets,
67
- rightItemsStyle: rightItemsStyle
68
- });
126
+ rightItemsStyle: _objectSpread(_objectSpread({}, rightItemsStyle), {}, {
127
+ buttonBackgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.buttonBackgroundColor) || configColor.buttonBackgroundColor,
128
+ textColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor) || configColor.textColor,
129
+ resetButtonBackgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.resetButtonBackgroundColor) || configColor.resetButtonBackgroundColor,
130
+ resetButtonTextColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.resetButtonTextColor) || configColor.resetButtonTextColor,
131
+ isDoneButtonFollowTheme: (_rightItemsStyle$isDo = rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.isDoneButtonFollowTheme) !== null && _rightItemsStyle$isDo !== void 0 ? _rightItemsStyle$isDo : configColor.isDoneButtonFollowTheme,
132
+ doneButtonBackgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.doneButtonBackgroundColor) || configColor.doneButtonBackgroundColor,
133
+ doneButtonTextColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.doneButtonTextColor) || configColor.doneButtonTextColor
134
+ })
135
+ }));
69
136
  };
70
137
  export default Amount;
@@ -0,0 +1,39 @@
1
+ .pisell-amount-keyboard-wrap {
2
+ background-color: var(--pisell-amount-background-color, #ffffff);
3
+
4
+ &.pisell-amount-keyboard-dark {
5
+ background-color: var(--pisell-amount-background-color, rgba(0, 0, 0, 0.70));
6
+ }
7
+
8
+ &.pisell-amount-keyboard-light {
9
+ background-color: var(--pisell-amount-background-color, #ffffff);
10
+ }
11
+
12
+ .pisell-virtual-keyboard-input {
13
+ background-color: var(--pisell-amount-container-background-color, #d0d5dd);
14
+ color: var(--pisell-amount-text-color, #000000);
15
+ }
16
+
17
+ .pisell-keyboard {
18
+ background-color: var(--pisell-amount-keyboard-background-color, #f9f9f9);
19
+
20
+ .pisell-keyboard-item {
21
+ background-color: var(--pisell-amount-keyboard-button-background-color, #ffffff);
22
+ color: var(--pisell-amount-keyboard-button-text-color, #000000);
23
+
24
+ &:hover {
25
+ background-color: var(--pisell-amount-keyboard-button-hover-color, #f5f5f5);
26
+ }
27
+ }
28
+
29
+ .pisell-keyboard-reset-button {
30
+ background-color: var(--pisell-amount-reset-button-background-color, #ffffff);
31
+ color: var(--pisell-amount-reset-button-text-color, #d92d20);
32
+ }
33
+
34
+ .pisell-keyboard-done-button {
35
+ background-color: var(--pisell-amount-done-button-background-color, #4ca30d);
36
+ color: var(--pisell-amount-done-button-text-color, #ffffff);
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,32 @@
1
+ export declare const amountThemeConfig: {
2
+ dark: {
3
+ backgroundColor: string;
4
+ containerBackgroundColor: string;
5
+ buttonBackgroundColor: string;
6
+ textColor: string;
7
+ resetButtonBackgroundColor: string;
8
+ resetButtonTextColor: string;
9
+ isDoneButtonFollowTheme: boolean;
10
+ doneButtonBackgroundColor: string;
11
+ doneButtonTextColor: string;
12
+ keyboardBackgroundColor: string;
13
+ keyboardButtonBackgroundColor: string;
14
+ keyboardButtonTextColor: string;
15
+ keyboardButtonHoverColor: string;
16
+ };
17
+ light: {
18
+ backgroundColor: string;
19
+ containerBackgroundColor: string;
20
+ buttonBackgroundColor: string;
21
+ textColor: string;
22
+ resetButtonBackgroundColor: string;
23
+ resetButtonTextColor: string;
24
+ isDoneButtonFollowTheme: boolean;
25
+ doneButtonBackgroundColor: string;
26
+ doneButtonTextColor: string;
27
+ keyboardBackgroundColor: string;
28
+ keyboardButtonBackgroundColor: string;
29
+ keyboardButtonTextColor: string;
30
+ keyboardButtonHoverColor: string;
31
+ };
32
+ };
@@ -0,0 +1,32 @@
1
+ export var amountThemeConfig = {
2
+ dark: {
3
+ backgroundColor: 'rgba(0, 0, 0, 0.70)',
4
+ containerBackgroundColor: 'rgba(0, 0, 0, 0.40)',
5
+ buttonBackgroundColor: '#ffffff',
6
+ textColor: '#000000',
7
+ resetButtonBackgroundColor: '#ffffff',
8
+ resetButtonTextColor: '#d92d20',
9
+ isDoneButtonFollowTheme: true,
10
+ doneButtonBackgroundColor: '#4ca30d',
11
+ doneButtonTextColor: '#ffffff',
12
+ keyboardBackgroundColor: 'rgba(0, 0, 0, 0.40)',
13
+ keyboardButtonBackgroundColor: '#ffffff',
14
+ keyboardButtonTextColor: '#000000',
15
+ keyboardButtonHoverColor: '#f5f5f5'
16
+ },
17
+ light: {
18
+ backgroundColor: '#ffffff',
19
+ containerBackgroundColor: '#d0d5dd',
20
+ buttonBackgroundColor: '#ffffff',
21
+ textColor: '#000000',
22
+ resetButtonBackgroundColor: '#ffffff',
23
+ resetButtonTextColor: '#d92d20',
24
+ isDoneButtonFollowTheme: true,
25
+ doneButtonBackgroundColor: '#4ca30d',
26
+ doneButtonTextColor: '#ffffff',
27
+ keyboardBackgroundColor: '#f9f9f9',
28
+ keyboardButtonBackgroundColor: '#ffffff',
29
+ keyboardButtonTextColor: '#000000',
30
+ keyboardButtonHoverColor: '#f5f5f5'
31
+ }
32
+ };
@@ -0,0 +1,44 @@
1
+ /// <reference types="react" />
2
+ import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
3
+ export interface RightItemsStyleProps {
4
+ buttonBackgroundColor?: string;
5
+ textColor?: string;
6
+ resetButtonBackgroundColor?: string;
7
+ resetButtonTextColor?: string;
8
+ isDoneButtonFollowTheme?: boolean;
9
+ doneButtonBackgroundColor?: string;
10
+ doneButtonTextColor?: string;
11
+ }
12
+ export interface AmountProps {
13
+ max?: number;
14
+ min?: number;
15
+ doneText?: string;
16
+ resetText?: string;
17
+ defaultValue?: string | number;
18
+ placeholder?: string;
19
+ amountProps?: {
20
+ showCurrencySymbol: boolean;
21
+ useThousandsSeparator: boolean;
22
+ };
23
+ presets?: BaseNumberKeyboardProps['presets'];
24
+ value?: string | number;
25
+ onChange?: (val: string | number) => void;
26
+ onEnter?: (val: string | number) => void;
27
+ defaultSelect?: boolean;
28
+ inputFormat?: (_v: string) => React.ReactNode | null;
29
+ rightItemsStyle?: RightItemsStyleProps;
30
+ selectType?: 'light' | 'dark';
31
+ backgroundColor?: string;
32
+ containerBackgroundColor?: string;
33
+ buttonBackgroundColor?: string;
34
+ textColor?: string;
35
+ resetButtonBackgroundColor?: string;
36
+ resetButtonTextColor?: string;
37
+ isDoneButtonFollowTheme?: boolean;
38
+ doneButtonBackgroundColor?: string;
39
+ doneButtonTextColor?: string;
40
+ keyboardBackgroundColor?: string;
41
+ keyboardButtonBackgroundColor?: string;
42
+ keyboardButtonTextColor?: string;
43
+ keyboardButtonHoverColor?: string;
44
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,13 +1,6 @@
1
- export interface NumberProps {
2
- max?: number;
3
- min?: number;
4
- doneText?: string;
5
- resetText: string;
6
- defaultValue?: string | number;
7
- placeholder?: string;
8
- value?: string | number;
9
- onChange?: (val: string | number) => void;
10
- onEnter?: (val: string | number) => void;
11
- }
1
+ /// <reference types="react" />
2
+ import { NumberProps } from './types';
3
+ import './index.less';
4
+ export type { NumberProps };
12
5
  declare const Number: (props: NumberProps) => JSX.Element;
13
6
  export default Number;