@pisell/materials 1.0.927 → 1.0.928

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 (266) 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 +3 -3
  6. package/build/lowcode/preview.js +148 -164
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +23 -37
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +28 -42
  11. package/es/components/auto-complete-number/index.d.ts +0 -1
  12. package/es/components/badge/index.d.ts +0 -1
  13. package/es/components/batch-editor/fields/index.d.ts +0 -1
  14. package/es/components/calendar/index.d.ts +0 -1
  15. package/es/components/checkbox/index.d.ts +0 -1
  16. package/es/components/classicLayout/index.d.ts +0 -1
  17. package/es/components/colorPicker/index.d.ts +0 -1
  18. package/es/components/config-provider/index.d.ts +0 -1
  19. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  20. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  21. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  22. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  23. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  24. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  25. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  26. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  27. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  28. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  29. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  30. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  31. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  32. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -1
  33. package/es/components/dataSourceComponents/fields/Upload/index.js +4 -0
  34. package/es/components/dataSourceComponents/fields/index.d.ts +2 -2
  35. package/es/components/dropdown/index.d.ts +0 -1
  36. package/es/components/filter/components/items/index.d.ts +0 -1
  37. package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
  38. package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
  39. package/es/components/filter/components/items/text/index.d.ts +0 -1
  40. package/es/components/page/index.d.ts +1 -0
  41. package/es/components/pisellAdjustPrice/index.d.ts +1 -0
  42. package/es/components/pisellCard/index.d.ts +0 -1
  43. package/es/components/pisellDatePicker/index.d.ts +0 -1
  44. package/es/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  45. package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
  46. package/es/components/pisellInput/index.d.ts +1 -0
  47. package/es/components/pisellText/components/Editable/index.d.ts +29 -0
  48. package/es/components/pisellText/components/Editable/index.js +159 -0
  49. package/es/components/pisellText/components/Editable/index.less +40 -0
  50. package/es/components/pisellText/index.d.ts +1 -0
  51. package/es/components/pisellText/index.js +2 -0
  52. package/es/components/pisellUpload/index.d.ts +0 -1
  53. package/es/components/productCard/components/Divider/index.d.ts +0 -1
  54. package/es/components/productCard/components/Header/index.d.ts +1 -0
  55. package/es/components/productCard/components/Sales/index.d.ts +1 -0
  56. package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -1
  57. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
  58. package/es/components/radio/index.d.ts +0 -1
  59. package/es/components/segmented/index.d.ts +0 -1
  60. package/es/components/select/index.js +4 -2
  61. package/es/components/select-time/RightPanel/index.d.ts +0 -1
  62. package/es/components/select-time/index.d.ts +0 -1
  63. package/es/components/skeleton/index.d.ts +0 -1
  64. package/es/components/slider/index.d.ts +0 -1
  65. package/es/components/sort/components/InlineMenu/index.d.ts +0 -1
  66. package/es/components/sortableList/index.d.ts +1 -1
  67. package/es/components/sortableList/index.js +2 -1
  68. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  69. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  70. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  71. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  72. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  73. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  74. package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  75. package/es/components/table/Summary/index.d.ts +0 -1
  76. package/es/components/table/Table/fields/date/Config/index.d.ts +0 -1
  77. package/es/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  78. package/es/components/table/Table/fields/image/Config/index.d.ts +0 -1
  79. package/es/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  80. package/es/components/table/Table/fields/image/index.d.ts +0 -1
  81. package/es/components/table/Table/fields/link/Config/index.d.ts +0 -1
  82. package/es/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  83. package/es/components/table/Table/fields/number/Config/index.d.ts +0 -1
  84. package/es/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  85. package/es/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  86. package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  87. package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  88. package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  89. package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  90. package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  91. package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  92. package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  93. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  94. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  95. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  96. package/es/components/table/Table/fields/search/Config/index.d.ts +0 -1
  97. package/es/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  98. package/es/components/table/Table/fields/select/Config/index.d.ts +0 -1
  99. package/es/components/table/Table/fields/select/Show/index.d.ts +0 -1
  100. package/es/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  101. package/es/components/table/Table/fields/text/Config/index.d.ts +0 -1
  102. package/es/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  103. package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  104. package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  105. package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  106. package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  107. package/es/components/table/Table/utils.d.ts +1 -1
  108. package/es/components/table/TableFilter/SortIcon.d.ts +0 -1
  109. package/es/components/table/hooks/useTableSetting.js +3 -2
  110. package/es/components/time-picker/index.d.ts +0 -1
  111. package/es/components/upload/index.d.ts +0 -1
  112. package/es/components/virtual-keyboard/Amount/index.d.ts +1 -0
  113. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -1
  114. package/es/components/virtual-keyboard/Number/index.d.ts +1 -0
  115. package/es/components/virtual-keyboard/Time/utils.d.ts +0 -1
  116. package/es/components/walletCard/Guest/index.d.ts +0 -1
  117. package/es/components/walletCard/Guide/index.d.ts +0 -1
  118. package/lib/components/auto-complete-number/index.d.ts +0 -1
  119. package/lib/components/badge/index.d.ts +0 -1
  120. package/lib/components/batch-editor/fields/index.d.ts +0 -1
  121. package/lib/components/calendar/index.d.ts +0 -1
  122. package/lib/components/checkbox/index.d.ts +0 -1
  123. package/lib/components/classicLayout/index.d.ts +0 -1
  124. package/lib/components/colorPicker/index.d.ts +0 -1
  125. package/lib/components/config-provider/index.d.ts +0 -1
  126. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  127. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  128. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  129. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  130. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  131. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  132. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  133. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  134. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  135. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  136. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  137. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  138. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  139. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -1
  140. package/lib/components/dataSourceComponents/fields/Upload/index.js +2 -0
  141. package/lib/components/dataSourceComponents/fields/index.d.ts +2 -2
  142. package/lib/components/dropdown/index.d.ts +0 -1
  143. package/lib/components/filter/components/items/index.d.ts +0 -1
  144. package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
  145. package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
  146. package/lib/components/filter/components/items/text/index.d.ts +0 -1
  147. package/lib/components/page/index.d.ts +1 -0
  148. package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
  149. package/lib/components/pisellCard/index.d.ts +0 -1
  150. package/lib/components/pisellDatePicker/index.d.ts +0 -1
  151. package/lib/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  152. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
  153. package/lib/components/pisellInput/index.d.ts +1 -0
  154. package/lib/components/pisellText/components/Editable/index.d.ts +29 -0
  155. package/lib/components/pisellText/components/Editable/index.js +143 -0
  156. package/lib/components/pisellText/components/Editable/index.less +40 -0
  157. package/lib/components/pisellText/index.d.ts +1 -0
  158. package/lib/components/pisellText/index.js +2 -0
  159. package/lib/components/pisellUpload/index.d.ts +0 -1
  160. package/lib/components/productCard/components/Divider/index.d.ts +0 -1
  161. package/lib/components/productCard/components/Header/index.d.ts +1 -0
  162. package/lib/components/productCard/components/Sales/index.d.ts +1 -0
  163. package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -1
  164. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
  165. package/lib/components/radio/index.d.ts +0 -1
  166. package/lib/components/segmented/index.d.ts +0 -1
  167. package/lib/components/select/index.js +7 -2
  168. package/lib/components/select-time/RightPanel/index.d.ts +0 -1
  169. package/lib/components/select-time/index.d.ts +0 -1
  170. package/lib/components/skeleton/index.d.ts +0 -1
  171. package/lib/components/slider/index.d.ts +0 -1
  172. package/lib/components/sort/components/InlineMenu/index.d.ts +0 -1
  173. package/lib/components/sortableList/index.d.ts +1 -1
  174. package/lib/components/sortableList/index.js +2 -2
  175. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  176. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  177. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  178. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  179. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  180. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  181. package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  182. package/lib/components/table/Summary/index.d.ts +0 -1
  183. package/lib/components/table/Table/fields/date/Config/index.d.ts +0 -1
  184. package/lib/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  185. package/lib/components/table/Table/fields/image/Config/index.d.ts +0 -1
  186. package/lib/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  187. package/lib/components/table/Table/fields/image/index.d.ts +0 -1
  188. package/lib/components/table/Table/fields/link/Config/index.d.ts +0 -1
  189. package/lib/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  190. package/lib/components/table/Table/fields/number/Config/index.d.ts +0 -1
  191. package/lib/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  192. package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  193. package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  194. package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  195. package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  196. package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  197. package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  198. package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  199. package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  200. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  201. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  202. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  203. package/lib/components/table/Table/fields/search/Config/index.d.ts +0 -1
  204. package/lib/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  205. package/lib/components/table/Table/fields/select/Config/index.d.ts +0 -1
  206. package/lib/components/table/Table/fields/select/Show/index.d.ts +0 -1
  207. package/lib/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  208. package/lib/components/table/Table/fields/text/Config/index.d.ts +0 -1
  209. package/lib/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  210. package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  211. package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  212. package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  213. package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  214. package/lib/components/table/Table/utils.d.ts +1 -1
  215. package/lib/components/table/TableFilter/SortIcon.d.ts +0 -1
  216. package/lib/components/table/hooks/useTableSetting.js +3 -1
  217. package/lib/components/time-picker/index.d.ts +0 -1
  218. package/lib/components/upload/index.d.ts +0 -1
  219. package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -0
  220. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -1
  221. package/lib/components/virtual-keyboard/Number/index.d.ts +1 -0
  222. package/lib/components/virtual-keyboard/Time/utils.d.ts +0 -1
  223. package/lib/components/walletCard/Guest/index.d.ts +0 -1
  224. package/lib/components/walletCard/Guide/index.d.ts +0 -1
  225. package/lowcode/pisell-text.editable/meta.ts +115 -0
  226. package/lowcode/pisell-text.editable/snippets.ts +15 -0
  227. package/lowcode/sortable-list/meta.ts +1 -1
  228. package/package.json +3 -3
  229. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  230. package/es/components/iconfont/index.d.ts +0 -8
  231. package/es/components/pisell-config-provider/context.d.ts +0 -22
  232. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  233. package/es/components/pisellAdjustPrice/type.d.ts +0 -22
  234. package/es/components/pisellToast/squareToast/index.d.ts +0 -15
  235. package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
  236. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
  237. package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
  238. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  239. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
  240. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
  241. package/es/components/productCard/components/Action/index.d.ts +0 -3
  242. package/es/components/productCard/locales.d.ts +0 -84
  243. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  244. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  245. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  246. package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
  247. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  248. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  249. package/lib/components/iconfont/index.d.ts +0 -8
  250. package/lib/components/pisell-config-provider/context.d.ts +0 -22
  251. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  252. package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
  253. package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
  254. package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
  255. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
  256. package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
  257. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  258. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
  259. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
  260. package/lib/components/productCard/components/Action/index.d.ts +0 -3
  261. package/lib/components/productCard/locales.d.ts +0 -84
  262. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  263. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  264. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  265. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
  266. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AutoCompleteProps, InputNumberProps } from "antd";
3
2
  interface AutoCompleteNumberProps {
4
3
  autoCompleteProps: AutoCompleteProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BadgeProps as OriginalBadgeprops } from 'antd';
3
2
  import './index.less';
4
3
  export interface Badgeprops extends OriginalBadgeprops {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  price: import("react").FC<import("./Price").PriceProps>;
4
3
  image: (props: import("./Image").ImageProps) => JSX.Element | null;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Calendar: (props: any) => JSX.Element;
3
2
  export default Calendar;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Checkbox: (props: any) => JSX.Element;
3
2
  export default Checkbox;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ClassicLayout: (props: any) => JSX.Element;
4
3
  export default ClassicLayout;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ColorPickerProps } from 'antd';
3
2
  declare const ColorPicker: (props: ColorPickerProps) => JSX.Element;
4
3
  export default ColorPicker;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ConfigProviderProps as OriginalConfigProviderProps } from "antd/es/config-provider";
3
2
  import "dayjs/locale/zh-cn";
4
3
  export interface ConfigProviderProps extends OriginalConfigProviderProps {
@@ -43,7 +43,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
43
43
  }) => JSX.Element;
44
44
  export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
45
45
  options?: any;
46
- optionSourceType?: "default" | "custom" | "api" | undefined;
46
+ optionSourceType?: "custom" | "default" | "api" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -19,7 +19,7 @@ interface UseTablePropsProps {
19
19
  */
20
20
  declare const useTableProps: (props: UseTablePropsProps) => {
21
21
  currentComponentId: any;
22
- title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
22
+ title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
23
23
  pagination: {
24
24
  total: number;
25
25
  current: number;
@@ -28,7 +28,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
28
28
  showSizeChanger: boolean;
29
29
  };
30
30
  columns: import("./useColumns").Column[];
31
- subTitle: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
31
+ subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
32
32
  buttons: any[] | null;
33
33
  filter: any;
34
34
  onRow: (record: any) => any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ColorPickerProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const ColorPickerReadPretty: (props: ColorPickerProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DateRangePickerProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const DateRangePickerReadPretty: (props: DateRangePickerProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconSelectProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const IconSelectReadPretty: (props: IconSelectProps) => JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const InputReadPretty: (props: InputProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const InputReadPretty: (props: InputProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const InputReadPretty: (props: InputProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TextAreaProps } from "./type";
3
2
  import "./ReadPretty.less";
4
3
  declare const TextAreaReadPretty: (props: TextAreaProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UrlProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  export declare const formatUrl: (url: string) => string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
3
3
  options?: any;
4
- optionSourceType?: "default" | "custom" | "api" | undefined;
4
+ optionSourceType?: "custom" | "default" | "api" | undefined;
5
5
  labelField: string;
6
6
  valueField: string;
7
7
  extraParams?: Record<string, any> | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TimePickerProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const TimePickerReadPretty: (props: TimePickerProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TranslationProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const TranslationReadPretty: (props: TranslationProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const CameraPopover: (props: {
3
2
  onLocalFileClick: () => void;
4
3
  onCameraChange: (file: any) => void;
@@ -8,6 +8,7 @@ import { withFormItem } from "../../dataSourceForm/utils";
8
8
  import UploadWithMode from "./WithMode";
9
9
  import { checkFileCount } from "./utils";
10
10
  import { DEFAULT_MAX_COUNT } from "./constants";
11
+ import BaseUpload from "./BaseUpload";
11
12
  var Upload = withFormItem(UploadWithMode, {
12
13
  otherFormItemProps: function otherFormItemProps(props, others) {
13
14
  var rule = {};
@@ -35,4 +36,7 @@ var Upload = withFormItem(UploadWithMode, {
35
36
  };
36
37
  }
37
38
  });
39
+
40
+ // @ts-ignore
41
+ Upload.BaseUpload = BaseUpload;
38
42
  export default Upload;
@@ -35,7 +35,7 @@ declare const formFieldMap: {
35
35
  };
36
36
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
37
37
  options?: any;
38
- optionSourceType?: "default" | "custom" | "api" | undefined;
38
+ optionSourceType?: "custom" | "default" | "api" | undefined;
39
39
  labelField: string;
40
40
  valueField: string;
41
41
  extraParams?: Record<string, any> | undefined;
@@ -90,7 +90,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
90
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
91
91
  }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
92
92
  options?: any;
93
- optionSourceType?: "default" | "custom" | "api" | undefined;
93
+ optionSourceType?: "custom" | "default" | "api" | undefined;
94
94
  labelField: string;
95
95
  valueField: string;
96
96
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Dropdown: (props: any) => JSX.Element;
3
2
  export default Dropdown;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Text: () => JSX.Element;
3
2
  export default Text;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Text: (props: any) => JSX.Element;
3
2
  export default Text;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ConfigProviderProps } from '../config-provider';
2
3
  interface PageProps extends ConfigProviderProps {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { PisellAdjustPriceProps } from './type';
3
4
  declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CardProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface PisellCardProps extends CardProps {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PisellDatePicker: (props: any) => JSX.Element;
3
2
  export default PisellDatePicker;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface ScanProps {
4
3
  onChange: (val: string) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps, ButtonProps } from 'antd';
2
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
3
4
  export interface CopyProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import { PisellContextType } from '../pisell-config-provider/context';
3
4
  declare const PisellInput: {
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export declare type MultiLanguageValue = {
4
+ en: string;
5
+ 'zh-CN': string;
6
+ 'zh-HK': string;
7
+ };
8
+ export interface EditableConfig {
9
+ /** 是否禁用编辑 */
10
+ disabled?: boolean;
11
+ /** 最大长度 */
12
+ maxLength?: number;
13
+ /** 编辑图标 */
14
+ icon?: React.ReactNode;
15
+ }
16
+ export interface EditableProps extends React.HTMLAttributes<HTMLSpanElement> {
17
+ /** 文本内容,支持字符串或多语言对象 */
18
+ value?: string | MultiLanguageValue;
19
+ /** 子节点内容,优先级高于 value */
20
+ children?: React.ReactNode;
21
+ /** 可编辑配置,boolean 时使用默认配置 */
22
+ editable?: boolean | EditableConfig;
23
+ /** 编辑变更回调 */
24
+ onChange?: (value: string | MultiLanguageValue) => void;
25
+ /** 输入框尺寸 */
26
+ size?: 'large' | 'middle' | 'small';
27
+ }
28
+ declare const Editable: React.FC<EditableProps>;
29
+ export default Editable;
@@ -0,0 +1,159 @@
1
+ var _excluded = ["value", "children", "editable", "onChange", "className", "size"];
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ 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); }
4
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5
+ 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."); }
6
+ 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); }
7
+ 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; }
8
+ 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; } }
9
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
10
+ 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; }
11
+ 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; }
12
+ import React, { useState, useMemo } from 'react';
13
+ import { Input } from 'antd';
14
+ import Icon from "../../../icon";
15
+ import { isString } from '@pisell/utils';
16
+ import classNames from 'classnames';
17
+ import useEngineContext from "../../../../hooks/useEngineContext";
18
+ import Translation from "../../../translation";
19
+ import "./index.less";
20
+ var defaultGlobal = {
21
+ shopLanguages: {
22
+ primary: 'en',
23
+ list: [{
24
+ id: 1,
25
+ code: 'zh-CN',
26
+ text: '简体中文',
27
+ primary: 1,
28
+ status: 'published'
29
+ }, {
30
+ id: 2,
31
+ code: 'en',
32
+ text: 'English',
33
+ primary: 0,
34
+ status: 'published'
35
+ }, {
36
+ id: 3,
37
+ code: 'zh-HK',
38
+ text: '繁體中文',
39
+ primary: 0,
40
+ status: 'published'
41
+ }]
42
+ },
43
+ primary_locale: 'en'
44
+ };
45
+ var Editable = function Editable(props) {
46
+ var _context$appHelper;
47
+ var value = props.value,
48
+ children = props.children,
49
+ _props$editable = props.editable,
50
+ editable = _props$editable === void 0 ? false : _props$editable,
51
+ onChange = props.onChange,
52
+ className = props.className,
53
+ _props$size = props.size,
54
+ size = _props$size === void 0 ? 'middle' : _props$size,
55
+ others = _objectWithoutProperties(props, _excluded);
56
+ var context = useEngineContext();
57
+ var store = context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.store;
58
+ var _useState = useState(false),
59
+ _useState2 = _slicedToArray(_useState, 2),
60
+ isEditing = _useState2[0],
61
+ setIsEditing = _useState2[1];
62
+ // 解析编辑配置
63
+ var editableConfig = useMemo(function () {
64
+ if (typeof editable === 'boolean') {
65
+ return editable ? {} : null;
66
+ }
67
+ return editable || null;
68
+ }, [editable]);
69
+ var currentLocale = useMemo(function () {
70
+ var _context$appHelper$ut;
71
+ return ((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut = _context$appHelper$ut.storage) === null || _context$appHelper$ut === void 0 ? void 0 : _context$appHelper$ut.get('umi_locale')) || 'en';
72
+ }, []);
73
+ var displayValue = useMemo(function () {
74
+ if (children) return children;
75
+ if (isString(value)) {
76
+ return value;
77
+ }
78
+ if (value && _typeof(value) === 'object') {
79
+ return value[currentLocale] || '';
80
+ }
81
+ return '';
82
+ }, [value, currentLocale, children]);
83
+ var displayText = useMemo(function () {
84
+ return typeof displayValue === 'string' ? displayValue : String(displayValue || '');
85
+ }, [displayValue]);
86
+
87
+ // 判断是否为多语言对象
88
+ var isMultiLanguage = useMemo(function () {
89
+ return value && _typeof(value) === 'object' && !isString(value);
90
+ }, [value]);
91
+
92
+ // 编辑功能
93
+ var handleEdit = function handleEdit() {
94
+ if (editableConfig !== null && editableConfig !== void 0 && editableConfig.disabled) return;
95
+ setIsEditing(true);
96
+ };
97
+ var handleInputChange = function handleInputChange(newValue) {
98
+ if (!onChange) return;
99
+ onChange(newValue);
100
+ };
101
+
102
+ // 编辑模式渲染
103
+ if (isEditing && editableConfig) {
104
+ // 如果是多语言对象,使用 Translation 组件
105
+ if (isMultiLanguage) {
106
+ return /*#__PURE__*/React.createElement("div", {
107
+ className: classNames('pisell-text-editable-editing', className)
108
+ }, /*#__PURE__*/React.createElement(Translation, {
109
+ value: value,
110
+ onChange: handleInputChange,
111
+ onPressEnter: function onPressEnter() {
112
+ return setIsEditing(false);
113
+ }
114
+ // onBlur={() => setIsEditing(false)}
115
+ ,
116
+ maxLength: editableConfig.maxLength,
117
+ size: size,
118
+ autoFocus: true
119
+ }));
120
+ }
121
+
122
+ // 普通字符串,使用 Input 组件
123
+ return /*#__PURE__*/React.createElement(Input, {
124
+ value: displayText,
125
+ onChange: function onChange(e) {
126
+ return handleInputChange(e.target.value);
127
+ },
128
+ onPressEnter: function onPressEnter() {
129
+ return setIsEditing(false);
130
+ }
131
+ // onBlur={() => setIsEditing(false)}
132
+ ,
133
+ maxLength: editableConfig.maxLength,
134
+ size: size,
135
+ autoFocus: true,
136
+ className: classNames('pisell-text-editable-input', className),
137
+ style: others.style
138
+ });
139
+ }
140
+
141
+ // 正常显示模式
142
+ return /*#__PURE__*/React.createElement("span", _extends({
143
+ className: classNames('pisell-text-editable', className, {
144
+ 'pisell-text-editable-enabled': editableConfig && !editableConfig.disabled
145
+ })
146
+ }, others), displayValue, editableConfig && !editableConfig.disabled && !isEditing && /*#__PURE__*/React.createElement("span", {
147
+ className: "pisell-text-editable-edit-icon",
148
+ onClick: function onClick(e) {
149
+ e.preventDefault();
150
+ e.stopPropagation();
151
+ handleEdit();
152
+ },
153
+ title: "\u70B9\u51FB\u7F16\u8F91"
154
+ }, editableConfig.icon || /*#__PURE__*/React.createElement(Icon, {
155
+ type: "pisell2-edit-05",
156
+ size: 16
157
+ })));
158
+ };
159
+ export default Editable;
@@ -0,0 +1,40 @@
1
+ .pisell-text-editable {
2
+ position: relative;
3
+
4
+ &-enabled {
5
+ cursor: pointer;
6
+ }
7
+
8
+ &-edit-icon {
9
+ margin-left: 4px;
10
+ color: rgba(0, 0, 0, 0.45);
11
+ font-size: 12px;
12
+ opacity: 1;
13
+ cursor: pointer;
14
+ pointer-events: auto;
15
+ z-index: 1;
16
+
17
+ &:hover {
18
+ color: #1890ff;
19
+ }
20
+
21
+ // 确保内部的图标不会阻止点击事件
22
+ * {
23
+ pointer-events: none;
24
+ }
25
+ }
26
+
27
+ &-input {
28
+ min-width: 100px;
29
+
30
+ &.ant-input {
31
+ border: 1px solid #1890ff;
32
+ box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
33
+ }
34
+ }
35
+
36
+ &-editing {
37
+ display: inline-block;
38
+ width: 100%;
39
+ }
40
+ }
@@ -4,5 +4,6 @@ export interface PisellTextProps extends React.HTMLAttributes<HTMLSpanElement> {
4
4
  declare const PisellText: {
5
5
  (props: PisellTextProps): JSX.Element;
6
6
  Amount: (props: import("./components/Amount").AmountProps) => JSX.Element;
7
+ Editable: React.FC<import("./components/Editable").EditableProps>;
7
8
  };
8
9
  export default PisellText;
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
2
  import Amount from "./components/Amount";
3
+ import Editable from "./components/Editable";
3
4
  var PisellText = function PisellText(props) {
4
5
  return /*#__PURE__*/React.createElement("span", props);
5
6
  };
6
7
  PisellText.Amount = Amount;
8
+ PisellText.Editable = Editable;
7
9
  export default PisellText;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { UploadProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface PisellUploadProps extends UploadProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Divider: ({ type }: any) => JSX.Element;
4
3
  export default Divider;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: (props: any) => JSX.Element;
3
4
  export default Header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
3
4
  export default Sales;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Like: ({ status, onLike, className, style, isShowChangeResource, }: {
4
3
  style?: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface SelectHolderModalProps {
3
4
  visible: boolean;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Radio: (props: any) => JSX.Element;
3
2
  export default Radio;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SegmentedProps } from "antd";
3
2
  import "./index.less";
4
3
  declare const Segmented: (props: SegmentedProps) => JSX.Element;
@@ -23,6 +23,7 @@ var SelectBase = /*#__PURE__*/forwardRef(function (props, ref) {
23
23
  options = props.options,
24
24
  propsDropdownRender = props.dropdownRender,
25
25
  showSearch = props.showSearch,
26
+ onSearch = props.onSearch,
26
27
  styleType = props.styleType,
27
28
  _props$optionFilterPr = props.optionFilterProp,
28
29
  optionFilterProp = _props$optionFilterPr === void 0 ? 'value' : _props$optionFilterPr,
@@ -87,7 +88,8 @@ var SelectBase = /*#__PURE__*/forwardRef(function (props, ref) {
87
88
  placeholder: getText('select-dropdown-render-search'),
88
89
  value: searchValue,
89
90
  onChange: function onChange(e) {
90
- return setSearchValue(e.target.value);
91
+ onSearch === null || onSearch === void 0 || onSearch(e.target.value);
92
+ setSearchValue(e.target.value);
91
93
  },
92
94
  bordered: false,
93
95
  allowClear: true,
@@ -105,7 +107,7 @@ var SelectBase = /*#__PURE__*/forwardRef(function (props, ref) {
105
107
  onChange: onSelectAllChange,
106
108
  checked: checkboxChecked
107
109
  }, getText('select-dropdown-render-select-all')))));
108
- }, [isShowDropdown, isShowSelectAll, checkboxChecked, propsDropdownRender, searchValue, showSearch]);
110
+ }, [isShowDropdown, isShowSelectAll, checkboxChecked, propsDropdownRender, searchValue, showSearch, onSearch]);
109
111
  if (styleType === 'system') {
110
112
  return /*#__PURE__*/React.createElement(BrowserSelect, props);
111
113
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface RightPanelProps {
4
3
  value: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
3
2
  import { PopoverProps, TimePickerProps } from "antd";
4
3
  import "./index.less";
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Skeleton: (props: any) => JSX.Element;
3
2
  export default Skeleton;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SliderOuter: (props: any) => JSX.Element;
3
2
  export default SliderOuter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MenuProps } from "antd";
3
2
  import "./index.less";
4
3
  interface InlineMenuProps {
@@ -4,7 +4,7 @@ export interface SortableListProps<T> {
4
4
  dataSource: Props<T>["list"];
5
5
  onChange: Props<T>["onChange"];
6
6
  rowKey: Props<T>["rowKey"];
7
- renderItem?: (item: T) => React.ReactNode;
7
+ renderItem?: (item: T, index: number) => React.ReactNode;
8
8
  activationConstraint?: Props<T>["activationConstraint"];
9
9
  }
10
10
  declare const SortableList: React.FC<SortableListProps<any>>;