linkmore-design 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/dist/Affix/demos/basic.d.ts +1 -0
  2. package/dist/Alert/demos/basic.d.ts +1 -0
  3. package/dist/Alert/demos/visible.d.ts +1 -0
  4. package/dist/Approval/demos/basic.d.ts +1 -0
  5. package/dist/Avatar/demos/basic.d.ts +1 -0
  6. package/dist/Badge/SingleNumber.d.ts +1 -0
  7. package/dist/Badge/demos/basic.d.ts +1 -0
  8. package/dist/Breadcrumb/demos/basic.d.ts +1 -0
  9. package/dist/Breadcrumb/demos/basic1.d.ts +1 -0
  10. package/dist/Button/demos/basic.d.ts +1 -0
  11. package/dist/Button/demos/disabled.d.ts +1 -0
  12. package/dist/Button/demos/icon.d.ts +1 -0
  13. package/dist/Calendar/demos/basic.d.ts +1 -0
  14. package/dist/Card/demos/basic.d.ts +1 -0
  15. package/dist/Carousel/demos/basic.d.ts +1 -0
  16. package/dist/Cascader/demos/basic.d.ts +1 -0
  17. package/dist/Col/demos/basic.d.ts +1 -0
  18. package/dist/Collapse/demos/basic.d.ts +1 -0
  19. package/dist/Comment/demos/basic.d.ts +1 -0
  20. package/dist/ConfigProvider/demos/componentSize.d.ts +1 -0
  21. package/dist/CustomTableOption/demos/basic.d.ts +1 -0
  22. package/dist/DatePicker/PickerButton.d.ts +1 -0
  23. package/dist/DatePicker/PickerTag.d.ts +1 -0
  24. package/dist/DatePicker/demos/basic.d.ts +1 -0
  25. package/dist/Descriptions/demos/basic.d.ts +1 -0
  26. package/dist/Drawer/demos/basic.d.ts +1 -0
  27. package/dist/Drawer/demos/button.d.ts +1 -0
  28. package/dist/Drawer/demos/nested.d.ts +1 -0
  29. package/dist/Dropdown/demos/basic.d.ts +1 -0
  30. package/dist/Dropdown/demos/button.d.ts +1 -0
  31. package/dist/Dropdown/demos/icon.d.ts +1 -0
  32. package/dist/Dropdown/demos/local.d.ts +1 -0
  33. package/dist/Dropdown/demos/target.d.ts +1 -0
  34. package/dist/Empty/demos/basic.d.ts +1 -0
  35. package/dist/Empty/demos/custom.d.ts +1 -0
  36. package/dist/Empty/empty.d.ts +1 -0
  37. package/dist/Empty/simple.d.ts +1 -0
  38. package/dist/Form/demos/drawer1152-triple.d.ts +1 -0
  39. package/dist/Form/demos/drawer440-double.d.ts +1 -0
  40. package/dist/Form/demos/drawer440.d.ts +1 -0
  41. package/dist/Form/demos/drawer720-double.d.ts +1 -0
  42. package/dist/Form/demos/error-tip.d.ts +1 -0
  43. package/dist/Form/demos/formlist.d.ts +1 -0
  44. package/dist/Form/demos/horizontal.d.ts +1 -0
  45. package/dist/Form/demos/inline.d.ts +1 -0
  46. package/dist/Form/demos/modal416.d.ts +1 -0
  47. package/dist/Form/demos/modal552-double.d.ts +1 -0
  48. package/dist/Form/demos/responsive.d.ts +1 -0
  49. package/dist/Form/demos/vertical.d.ts +1 -0
  50. package/dist/FullScreen/demos/basic.d.ts +1 -0
  51. package/dist/FullScreen/demos/useInModal.d.ts +1 -0
  52. package/dist/Grid/demos/basic.d.ts +1 -0
  53. package/dist/Image/demos/basic.d.ts +1 -0
  54. package/dist/ImageViewer/components/Arrows.d.ts +1 -0
  55. package/dist/ImageViewer/components/Carousel.d.ts +1 -0
  56. package/dist/ImageViewer/components/Operate.d.ts +1 -0
  57. package/dist/ImageViewer/components/Thumb.d.ts +1 -0
  58. package/dist/ImageViewer/wrapeer/Container.d.ts +1 -0
  59. package/dist/ImageViewer/wrapeer/Wrapper.d.ts +1 -0
  60. package/dist/Input/demos/after.d.ts +1 -0
  61. package/dist/Input/demos/base.d.ts +1 -0
  62. package/dist/Input/demos/basic.d.ts +1 -0
  63. package/dist/Input/demos/color.d.ts +1 -0
  64. package/dist/Input/demos/combination.d.ts +1 -0
  65. package/dist/Input/demos/import.d.ts +1 -0
  66. package/dist/Input/demos/line.d.ts +1 -0
  67. package/dist/Input/demos/password.d.ts +1 -0
  68. package/dist/Input/demos/size.d.ts +1 -0
  69. package/dist/InputNumber/demos/basic.d.ts +1 -0
  70. package/dist/InputNumber/demos/format.d.ts +1 -0
  71. package/dist/InputNumber/demos/price.d.ts +1 -0
  72. package/dist/InputNumber/demos/status.d.ts +1 -0
  73. package/dist/InputNumber/demos/suffix.d.ts +1 -0
  74. package/dist/Layout/demos/basic.d.ts +1 -0
  75. package/dist/List/demos/basic.d.ts +1 -0
  76. package/dist/LmEditTable/DndContainer.d.ts +1 -0
  77. package/dist/LmEditTable/DragHandle.d.ts +1 -0
  78. package/dist/LmEditTable/demos/basic.d.ts +1 -0
  79. package/dist/LmEditTable/demos/colsort.d.ts +1 -0
  80. package/dist/LmEditTable/demos/group.d.ts +1 -0
  81. package/dist/LmEditTable/demos/sinleEdit.d.ts +1 -0
  82. package/dist/LmEditTable/demos/size.d.ts +1 -0
  83. package/dist/LmEditTable/sortableBox.d.ts +1 -0
  84. package/dist/LmEditTable/sortableBoxCol.d.ts +1 -0
  85. package/dist/LmEditTable/sortableItem.d.ts +1 -0
  86. package/dist/LmEditTable/sortableItemCol.d.ts +1 -0
  87. package/dist/LmSelect/GhostSelect.d.ts +1 -0
  88. package/dist/LmSelect/demos/basic.d.ts +1 -0
  89. package/dist/LmSelect/demos/checkbox.d.ts +1 -0
  90. package/dist/LmSelect/demos/ghost.d.ts +1 -0
  91. package/dist/LmSelect/useCheckboxOptions.d.ts +1 -0
  92. package/dist/LmTable/components/DndContainer.d.ts +1 -0
  93. package/dist/LmTable/components/customRenderEmpty.d.ts +1 -0
  94. package/dist/LmTable/components/inputDataEdit.d.ts +1 -0
  95. package/dist/LmTable/components/tableChartsModal.d.ts +1 -0
  96. package/dist/LmUpload/UploadList/ItemPicture.d.ts +1 -0
  97. package/dist/LmUpload/UploadList/ItemPictureCard.d.ts +1 -0
  98. package/dist/LmUpload/UploadList/ItemText.d.ts +1 -0
  99. package/dist/LmUpload/components/card.d.ts +1 -0
  100. package/dist/LmUpload/view/index.d.ts +1 -0
  101. package/dist/LmUpload/wrapper/Upload.d.ts +1 -0
  102. package/dist/Mentions/demos/basic.d.ts +1 -0
  103. package/dist/Menu/demos/basic.d.ts +1 -0
  104. package/dist/Modal/demos/basic.d.ts +1 -0
  105. package/dist/Modal/demos/info.d.ts +1 -0
  106. package/dist/PageHeader/demos/basic.d.ts +1 -0
  107. package/dist/Pagination/demos/basic.d.ts +1 -0
  108. package/dist/Popconfirm/demos/basic.d.ts +1 -0
  109. package/dist/Popover/demos/basic.d.ts +1 -0
  110. package/dist/Popover/demos/basic1.d.ts +1 -0
  111. package/dist/Popover/index.d.ts +1 -1
  112. package/dist/Progress/demos/basic.d.ts +1 -0
  113. package/dist/Progress/demos/circle.d.ts +1 -0
  114. package/dist/Progress/demos/dynamic.d.ts +1 -0
  115. package/dist/Progress/demos/small.d.ts +1 -0
  116. package/dist/QuickMenu/demos/basic.d.ts +1 -0
  117. package/dist/Rate/demos/basic.d.ts +1 -0
  118. package/dist/Result/demos/403.d.ts +1 -0
  119. package/dist/Result/demos/404.d.ts +1 -0
  120. package/dist/Result/demos/500.d.ts +1 -0
  121. package/dist/Result/demos/basic.d.ts +1 -0
  122. package/dist/Result/demos/customicon.d.ts +1 -0
  123. package/dist/Result/demos/error.d.ts +1 -0
  124. package/dist/Result/demos/info.d.ts +1 -0
  125. package/dist/Result/demos/success.d.ts +1 -0
  126. package/dist/Result/demos/warning.d.ts +1 -0
  127. package/dist/Result/noFound.d.ts +1 -0
  128. package/dist/Result/serverError.d.ts +1 -0
  129. package/dist/Result/unauthorized.d.ts +1 -0
  130. package/dist/Row/demos/basic.d.ts +1 -0
  131. package/dist/Segmented/demos/basic.d.ts +1 -0
  132. package/dist/Select/demos/basic.d.ts +1 -0
  133. package/dist/Select/demos/bordered.d.ts +1 -0
  134. package/dist/Skeleton/demos/basic.d.ts +1 -0
  135. package/dist/Slider/demos/basic.d.ts +1 -0
  136. package/dist/Space/demos/auto.d.ts +1 -0
  137. package/dist/Space/demos/basic.d.ts +1 -0
  138. package/dist/Space/demos/vertical.d.ts +1 -0
  139. package/dist/Spin/demos/basic.d.ts +1 -0
  140. package/dist/Spin/demos/size.d.ts +1 -0
  141. package/dist/Statistic/demos/basic.d.ts +1 -0
  142. package/dist/Steps/demos/basic.d.ts +1 -0
  143. package/dist/Switch/demos/basic.d.ts +1 -0
  144. package/dist/Switch/demos/table.d.ts +1 -0
  145. package/dist/Table/demos/basic.d.ts +1 -0
  146. package/dist/Tabs/demos/basic.d.ts +1 -0
  147. package/dist/Tabs/demos/nobroder.d.ts +1 -0
  148. package/dist/Tag/demos/CheckableTag.d.ts +1 -0
  149. package/dist/Tag/demos/ExigencyTag.d.ts +1 -0
  150. package/dist/Tag/demos/add.d.ts +1 -0
  151. package/dist/Tag/demos/basic.d.ts +1 -0
  152. package/dist/Tag/demos/border.d.ts +1 -0
  153. package/dist/Tag/demos/colors.d.ts +1 -0
  154. package/dist/Timeline/demos/basic.d.ts +1 -0
  155. package/dist/Tooltip/demos/basic.d.ts +1 -0
  156. package/dist/Tooltip/index.d.ts +1 -1
  157. package/dist/Transfer/demos/basic.d.ts +1 -0
  158. package/dist/Tree/demos/basic.d.ts +1 -0
  159. package/dist/Tree/demos/controlled.d.ts +1 -0
  160. package/dist/Tree/demos/search.d.ts +1 -0
  161. package/dist/Tree/demos/sort.d.ts +1 -0
  162. package/dist/Tree/utils/dropIndicator.d.ts +1 -0
  163. package/dist/TreeSelect/demos/basic.d.ts +1 -0
  164. package/dist/Typography/demos/basic.d.ts +1 -0
  165. package/dist/hooks/useFullscreen/demos/basic.d.ts +1 -0
  166. package/dist/hooks/useFullscreen/demos/useInModal.d.ts +1 -0
  167. package/dist/index.umd.css +286 -1227
  168. package/dist/index.umd.js +243104 -261662
  169. package/dist/index.umd.min.css +2 -2
  170. package/dist/index.umd.min.js +20 -20
  171. package/dist/locale-provider/index.d.ts +2 -2
  172. package/dist/message/demos/basic.d.ts +1 -0
  173. package/dist/message/demos/other.d.ts +1 -0
  174. package/dist/notification/demos/basic.d.ts +1 -0
  175. package/dist/notification/demos/button.d.ts +1 -0
  176. package/dist/notification/demos/icon.d.ts +1 -0
  177. package/es/Badge/SingleNumber.d.ts +1 -0
  178. package/es/DatePicker/PickerButton.d.ts +1 -0
  179. package/es/DatePicker/PickerTag.d.ts +1 -0
  180. package/es/LeftTable/index.js +6 -2
  181. package/es/LmEditTable/sortableItemCol.d.ts +1 -0
  182. package/es/LmTable/Table.js +45 -63
  183. package/es/LmTable/components/sheelTableCell.js +1 -4
  184. package/es/Popover/index.d.ts +1 -1
  185. package/es/Tooltip/index.d.ts +1 -1
  186. package/es/Tree/utils/dropIndicator.d.ts +1 -0
  187. package/es/locale-provider/index.d.ts +2 -2
  188. package/lib/Badge/SingleNumber.d.ts +1 -0
  189. package/lib/DatePicker/PickerButton.d.ts +1 -0
  190. package/lib/DatePicker/PickerTag.d.ts +1 -0
  191. package/lib/LeftTable/index.js +6 -2
  192. package/lib/LmEditTable/sortableItemCol.d.ts +1 -0
  193. package/lib/LmTable/Table.js +45 -63
  194. package/lib/LmTable/components/sheelTableCell.js +1 -4
  195. package/lib/Popover/index.d.ts +1 -1
  196. package/lib/Tooltip/index.d.ts +1 -1
  197. package/lib/Tree/utils/dropIndicator.d.ts +1 -0
  198. package/lib/locale-provider/index.d.ts +2 -2
  199. package/package.json +1 -1
  200. package/CHANGELOG.md +0 -12
  201. package/dist/base.css +0 -511
  202. package/dist/variables.css +0 -12504
@@ -54,8 +54,8 @@ export default class LocaleProvider extends React.Component<LocaleProviderProps,
54
54
  componentDidMount(): void;
55
55
  componentDidUpdate(prevProps: LocaleProviderProps): void;
56
56
  componentWillUnmount(): void;
57
- getMemoizedContextValue: (localeValue: Locale) => Locale & {
57
+ getMemoizedContextValue: import("memoize-one").MemoizedFn<(localeValue: Locale) => Locale & {
58
58
  exist?: boolean;
59
- };
59
+ }>;
60
60
  render(): JSX.Element;
61
61
  }
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const App: () => JSX.Element;
2
3
  export default App;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const App: () => JSX.Element;
2
3
  export default App;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const App: () => JSX.Element;
2
3
  export default App;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const App: () => JSX.Element;
2
3
  export default App;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const App: () => JSX.Element;
2
3
  export default App;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface UnitNumberProps {
2
3
  prefixCls: string;
3
4
  value: string | number;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import type { ButtonProps } from 'antd';
2
3
  export default function PickerButton(props: ButtonProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import type { ILMTagProps } from '../Tag';
2
3
  export default function PickerTag(props: ILMTagProps): JSX.Element;
@@ -96,7 +96,7 @@ var LeftSide = function LeftSide(props) {
96
96
  onHeaderClick = _props$onHeaderClick === void 0 ? function () {} : _props$onHeaderClick,
97
97
  _props$bottomNode = props.bottomNode,
98
98
  bottomNode = _props$bottomNode === void 0 ? null : _props$bottomNode,
99
- rest = (0, _objectWithoutProperties2.default)(props, _excluded); // 带有删除的树
99
+ rest = (0, _objectWithoutProperties2.default)(props, _excluded); // 带有删除的
100
100
 
101
101
  if (modeType === 'edit' && treeData.category) {
102
102
  treeData.category = traverse(treeData.category);
@@ -108,8 +108,12 @@ var LeftSide = function LeftSide(props) {
108
108
  }),
109
109
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
110
110
  useTree = _useState2[0],
111
- setTree = _useState2[1]; // 左侧树分类变化事件
111
+ setTree = _useState2[1];
112
112
 
113
+ (0, _react.useEffect)(function () {
114
+ useTree.treeData = treeData.category;
115
+ setTree((0, _objectSpread2.default)({}, useTree));
116
+ }, [treeData]); // 左侧树分类变化事件
113
117
 
114
118
  var getTreeTypeChange = function getTreeTypeChange(value) {
115
119
  var title = treeType.data.find(function (v) {
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function SortableItem(props: any): JSX.Element;
@@ -685,60 +685,42 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
685
685
  /** TODO: 在分组的情况,需要排除_group行的数据转换 */
686
686
 
687
687
 
688
- var handlePaste = function handlePaste(e) {
689
- var _shellStatusRef$curre12;
690
-
691
- if (isEmpty((_shellStatusRef$curre12 = shellStatusRef.current) === null || _shellStatusRef$curre12 === void 0 ? void 0 : _shellStatusRef$curre12.editing)) {
692
- var _shellStatusRef$curre13 = shellStatusRef.current,
693
- start = _shellStatusRef$curre13.start,
694
- end = _shellStatusRef$curre13.end;
695
- start = {
696
- i: Math.min(start.i, end.i),
697
- j: Math.min(start.j, end.j)
698
- };
699
- end = {
700
- i: Math.max(start.i, end.i),
701
- j: Math.max(start.j, end.j)
702
- };
703
- var parse = defaultParsePaste;
704
- var pasteData = [];
705
-
706
- if (window.clipboardData && window.clipboardData.getData) {
707
- // IE
708
- pasteData = parse(window.clipboardData.getData('Text'));
709
- } else if (e.clipboardData && e.clipboardData.getData) {
710
- pasteData = parse(e.clipboardData.getData('text/plain'));
711
- } // in order of preference
712
-
713
-
714
- var resultEnd = [];
715
- pasteData.forEach(function (row, i) {
716
- row.forEach(function (value, j) {
717
- resultEnd.push({
718
- i: start.i + i,
719
- j: start.j + j,
720
- value: value
721
- });
722
- });
723
- });
724
- var columnsKeysList = columns.map(function (item) {
725
- return item.dataIndex;
726
- });
727
- var res = (0, _immer.produce)(dataSourceRef.current, function (draft) {
728
- resultEnd.forEach(function (item) {
729
- var _isSelected2;
730
-
731
- if ((_isSelected2 = isSelected(item.i, item.j)) === null || _isSelected2 === void 0 ? void 0 : _isSelected2.isSelected) {
732
- draft[item.i][columnsKeysList[item.j]] = item.value;
733
- }
734
- });
735
- });
736
- /** 只有开通了编辑权限之后才可以 */
737
-
738
- if (editSheet) {
739
- dataChange === null || dataChange === void 0 ? void 0 : dataChange(res);
740
- }
741
- }
688
+ var handlePaste = function handlePaste(e) {// if (isEmpty(shellStatusRef.current?.editing)) {
689
+ // let { start, end } = shellStatusRef.current
690
+ // start = { i: Math.min(start.i, end.i), j: Math.min(start.j, end.j) }
691
+ // end = { i: Math.max(start.i, end.i), j: Math.max(start.j, end.j) }
692
+ // const parse = defaultParsePaste
693
+ // let pasteData = []
694
+ // if (window.clipboardData && window.clipboardData.getData) {
695
+ // // IE
696
+ // pasteData = parse(window.clipboardData.getData('Text'))
697
+ // } else if (e.clipboardData && e.clipboardData.getData) {
698
+ // pasteData = parse(e.clipboardData.getData('text/plain'))
699
+ // }
700
+ // // in order of preference
701
+ // const resultEnd = []
702
+ // pasteData.forEach((row, i) => {
703
+ // row.forEach((value, j) => {
704
+ // resultEnd.push({
705
+ // i: start.i + i,
706
+ // j: start.j + j,
707
+ // value,
708
+ // })
709
+ // })
710
+ // })
711
+ // const columnsKeysList = columns.map((item) => item.dataIndex)
712
+ // const res = produce(dataSourceRef.current, (draft) => {
713
+ // resultEnd.forEach((item) => {
714
+ // if (isSelected(item.i, item.j)?.isSelected) {
715
+ // draft[item.i][columnsKeysList[item.j]] = item.value
716
+ // }
717
+ // })
718
+ // })
719
+ // /** 只有开通了编辑权限之后才可以 */
720
+ // if (editSheet) {
721
+ // dataChange?.(res)
722
+ // }
723
+ // }
742
724
  };
743
725
 
744
726
  var pageClick = function pageClick(e) {
@@ -782,13 +764,13 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
782
764
 
783
765
 
784
766
  var sheelMouseDown = function sheelMouseDown(i, j, e, commitStatus) {
785
- var _shellStatusRef$curre14, _shellStatusRef$curre15, _shellStatusRef$curre16, _shellStatusRef$curre17, _shellStatusRef$curre18, _shellStatusRef$curre19, _shellStatusRef$curre20, _shellStatusRef$curre21, _shellStatusRef$curre22, _shellStatusRef$curre23;
767
+ var _shellStatusRef$curre12, _shellStatusRef$curre13, _shellStatusRef$curre14, _shellStatusRef$curre15, _shellStatusRef$curre16, _shellStatusRef$curre17, _shellStatusRef$curre18, _shellStatusRef$curre19, _shellStatusRef$curre20, _shellStatusRef$curre21;
786
768
 
787
- var isNowEditingSameCell = !isEmpty((_shellStatusRef$curre14 = shellStatusRef.current) === null || _shellStatusRef$curre14 === void 0 ? void 0 : _shellStatusRef$curre14.editing) && ((_shellStatusRef$curre15 = shellStatusRef.current) === null || _shellStatusRef$curre15 === void 0 ? void 0 : _shellStatusRef$curre15.editing.i) === i && ((_shellStatusRef$curre16 = shellStatusRef.current) === null || _shellStatusRef$curre16 === void 0 ? void 0 : _shellStatusRef$curre16.editing.j) === j;
788
- var editing = isEmpty((_shellStatusRef$curre17 = shellStatusRef.current) === null || _shellStatusRef$curre17 === void 0 ? void 0 : _shellStatusRef$curre17.editing) || ((_shellStatusRef$curre18 = shellStatusRef.current) === null || _shellStatusRef$curre18 === void 0 ? void 0 : _shellStatusRef$curre18.editing.i) !== i || ((_shellStatusRef$curre19 = shellStatusRef.current) === null || _shellStatusRef$curre19 === void 0 ? void 0 : _shellStatusRef$curre19.editing.j) !== j ? {} : (_shellStatusRef$curre20 = shellStatusRef.current) === null || _shellStatusRef$curre20 === void 0 ? void 0 : _shellStatusRef$curre20.editing;
769
+ var isNowEditingSameCell = !isEmpty((_shellStatusRef$curre12 = shellStatusRef.current) === null || _shellStatusRef$curre12 === void 0 ? void 0 : _shellStatusRef$curre12.editing) && ((_shellStatusRef$curre13 = shellStatusRef.current) === null || _shellStatusRef$curre13 === void 0 ? void 0 : _shellStatusRef$curre13.editing.i) === i && ((_shellStatusRef$curre14 = shellStatusRef.current) === null || _shellStatusRef$curre14 === void 0 ? void 0 : _shellStatusRef$curre14.editing.j) === j;
770
+ var editing = isEmpty((_shellStatusRef$curre15 = shellStatusRef.current) === null || _shellStatusRef$curre15 === void 0 ? void 0 : _shellStatusRef$curre15.editing) || ((_shellStatusRef$curre16 = shellStatusRef.current) === null || _shellStatusRef$curre16 === void 0 ? void 0 : _shellStatusRef$curre16.editing.i) !== i || ((_shellStatusRef$curre17 = shellStatusRef.current) === null || _shellStatusRef$curre17 === void 0 ? void 0 : _shellStatusRef$curre17.editing.j) !== j ? {} : (_shellStatusRef$curre18 = shellStatusRef.current) === null || _shellStatusRef$curre18 === void 0 ? void 0 : _shellStatusRef$curre18.editing;
789
771
  shellStatusRef.current = {
790
772
  selecting: !isNowEditingSameCell,
791
- start: (e === null || e === void 0 ? void 0 : e.shiftKey) || commitStatus ? (_shellStatusRef$curre21 = shellStatusRef.current) === null || _shellStatusRef$curre21 === void 0 ? void 0 : _shellStatusRef$curre21.start : {
773
+ start: (e === null || e === void 0 ? void 0 : e.shiftKey) || commitStatus ? (_shellStatusRef$curre19 = shellStatusRef.current) === null || _shellStatusRef$curre19 === void 0 ? void 0 : _shellStatusRef$curre19.start : {
792
774
  i: i,
793
775
  j: j
794
776
  },
@@ -799,7 +781,7 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
799
781
  editing: editing,
800
782
  forceEdit: !!isNowEditingSameCell,
801
783
  commiting: commitStatus ? {
802
- start: (_shellStatusRef$curre22 = shellStatusRef.current) === null || _shellStatusRef$curre22 === void 0 ? void 0 : _shellStatusRef$curre22.start,
784
+ start: (_shellStatusRef$curre20 = shellStatusRef.current) === null || _shellStatusRef$curre20 === void 0 ? void 0 : _shellStatusRef$curre20.start,
803
785
  end: {
804
786
  i: i,
805
787
  j: j
@@ -812,7 +794,7 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
812
794
  setCommitIng(true);
813
795
  }
814
796
 
815
- if (isEmpty((_shellStatusRef$curre23 = shellStatusRef.current) === null || _shellStatusRef$curre23 === void 0 ? void 0 : _shellStatusRef$curre23.editing)) {
797
+ if (isEmpty((_shellStatusRef$curre21 = shellStatusRef.current) === null || _shellStatusRef$curre21 === void 0 ? void 0 : _shellStatusRef$curre21.editing)) {
816
798
  setEditIng(false);
817
799
  }
818
800
 
@@ -827,9 +809,9 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
827
809
 
828
810
  var onContextMenu = function onContextMenu(evt, i, j) {
829
811
  evt.preventDefault();
830
- var _shellStatusRef$curre24 = shellStatusRef.current,
831
- start = _shellStatusRef$curre24.start,
832
- end = _shellStatusRef$curre24.end;
812
+ var _shellStatusRef$curre22 = shellStatusRef.current,
813
+ start = _shellStatusRef$curre22.start,
814
+ end = _shellStatusRef$curre22.end;
833
815
  /** 如果表格当前没有选择,则把当前的右击的td块默认选中 */
834
816
 
835
817
  if (isEmpty(start) && isEmpty(end)) {
@@ -151,10 +151,7 @@ var SheelTabelCell = function SheelTabelCell(props) {
151
151
  onContextMenu: handleContextMenu,
152
152
  onDoubleClick: handleDoubleClick,
153
153
  key: "".concat(rowIndex, "_").concat(colIndex)
154
- }), content, isRightEnd && isEnd && !isEditing && /*#__PURE__*/React.createElement("div", {
155
- ref: endCellRef,
156
- className: 'lmtable_cell_end_icon'
157
- }));
154
+ }), content);
158
155
  };
159
156
 
160
157
  export default SheelTabelCell;
@@ -7,5 +7,5 @@ export interface PopoverProps extends AbstractTooltipProps {
7
7
  /** @private Used For Popconfirm. Safe to remove. */
8
8
  _overlay?: React.ReactNode;
9
9
  }
10
- declare const Popover: React.ForwardRefExoticComponent<Pick<PopoverProps, keyof PopoverProps> & React.RefAttributes<unknown>>;
10
+ declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<unknown>>;
11
11
  export default Popover;
@@ -40,5 +40,5 @@ export interface TooltipPropsWithTitle extends AbstractTooltipProps {
40
40
  overlay?: React.ReactNode | RenderFunction;
41
41
  }
42
42
  export declare type TooltipProps = TooltipPropsWithTitle | TooltipPropsWithOverlay;
43
- declare const Tooltip: React.ForwardRefExoticComponent<(Pick<TooltipPropsWithOverlay, keyof TooltipPropsWithOverlay> | Pick<TooltipPropsWithTitle, keyof TooltipPropsWithTitle>) & React.RefAttributes<unknown>>;
43
+ declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<unknown>>;
44
44
  export default Tooltip;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const offset = 4;
2
3
  export default function dropIndicatorRender(props: {
3
4
  dropPosition: -1 | 0 | 1;
@@ -54,8 +54,8 @@ export default class LocaleProvider extends React.Component<LocaleProviderProps,
54
54
  componentDidMount(): void;
55
55
  componentDidUpdate(prevProps: LocaleProviderProps): void;
56
56
  componentWillUnmount(): void;
57
- getMemoizedContextValue: (localeValue: Locale) => Locale & {
57
+ getMemoizedContextValue: import("memoize-one").MemoizedFn<(localeValue: Locale) => Locale & {
58
58
  exist?: boolean;
59
- };
59
+ }>;
60
60
  render(): JSX.Element;
61
61
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface UnitNumberProps {
2
3
  prefixCls: string;
3
4
  value: string | number;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import type { ButtonProps } from 'antd';
2
3
  export default function PickerButton(props: ButtonProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import type { ILMTagProps } from '../Tag';
2
3
  export default function PickerTag(props: ILMTagProps): JSX.Element;
@@ -96,7 +96,7 @@ var LeftSide = function LeftSide(props) {
96
96
  onHeaderClick = _props$onHeaderClick === void 0 ? function () {} : _props$onHeaderClick,
97
97
  _props$bottomNode = props.bottomNode,
98
98
  bottomNode = _props$bottomNode === void 0 ? null : _props$bottomNode,
99
- rest = (0, _objectWithoutProperties2.default)(props, _excluded); // 带有删除的树
99
+ rest = (0, _objectWithoutProperties2.default)(props, _excluded); // 带有删除的
100
100
 
101
101
  if (modeType === 'edit' && treeData.category) {
102
102
  treeData.category = traverse(treeData.category);
@@ -108,8 +108,12 @@ var LeftSide = function LeftSide(props) {
108
108
  }),
109
109
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
110
110
  useTree = _useState2[0],
111
- setTree = _useState2[1]; // 左侧树分类变化事件
111
+ setTree = _useState2[1];
112
112
 
113
+ (0, _react.useEffect)(function () {
114
+ useTree.treeData = treeData.category;
115
+ setTree((0, _objectSpread2.default)({}, useTree));
116
+ }, [treeData]); // 左侧树分类变化事件
113
117
 
114
118
  var getTreeTypeChange = function getTreeTypeChange(value) {
115
119
  var title = treeType.data.find(function (v) {
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function SortableItem(props: any): JSX.Element;
@@ -685,60 +685,42 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
685
685
  /** TODO: 在分组的情况,需要排除_group行的数据转换 */
686
686
 
687
687
 
688
- var handlePaste = function handlePaste(e) {
689
- var _shellStatusRef$curre12;
690
-
691
- if (isEmpty((_shellStatusRef$curre12 = shellStatusRef.current) === null || _shellStatusRef$curre12 === void 0 ? void 0 : _shellStatusRef$curre12.editing)) {
692
- var _shellStatusRef$curre13 = shellStatusRef.current,
693
- start = _shellStatusRef$curre13.start,
694
- end = _shellStatusRef$curre13.end;
695
- start = {
696
- i: Math.min(start.i, end.i),
697
- j: Math.min(start.j, end.j)
698
- };
699
- end = {
700
- i: Math.max(start.i, end.i),
701
- j: Math.max(start.j, end.j)
702
- };
703
- var parse = defaultParsePaste;
704
- var pasteData = [];
705
-
706
- if (window.clipboardData && window.clipboardData.getData) {
707
- // IE
708
- pasteData = parse(window.clipboardData.getData('Text'));
709
- } else if (e.clipboardData && e.clipboardData.getData) {
710
- pasteData = parse(e.clipboardData.getData('text/plain'));
711
- } // in order of preference
712
-
713
-
714
- var resultEnd = [];
715
- pasteData.forEach(function (row, i) {
716
- row.forEach(function (value, j) {
717
- resultEnd.push({
718
- i: start.i + i,
719
- j: start.j + j,
720
- value: value
721
- });
722
- });
723
- });
724
- var columnsKeysList = columns.map(function (item) {
725
- return item.dataIndex;
726
- });
727
- var res = (0, _immer.produce)(dataSourceRef.current, function (draft) {
728
- resultEnd.forEach(function (item) {
729
- var _isSelected2;
730
-
731
- if ((_isSelected2 = isSelected(item.i, item.j)) === null || _isSelected2 === void 0 ? void 0 : _isSelected2.isSelected) {
732
- draft[item.i][columnsKeysList[item.j]] = item.value;
733
- }
734
- });
735
- });
736
- /** 只有开通了编辑权限之后才可以 */
737
-
738
- if (editSheet) {
739
- dataChange === null || dataChange === void 0 ? void 0 : dataChange(res);
740
- }
741
- }
688
+ var handlePaste = function handlePaste(e) {// if (isEmpty(shellStatusRef.current?.editing)) {
689
+ // let { start, end } = shellStatusRef.current
690
+ // start = { i: Math.min(start.i, end.i), j: Math.min(start.j, end.j) }
691
+ // end = { i: Math.max(start.i, end.i), j: Math.max(start.j, end.j) }
692
+ // const parse = defaultParsePaste
693
+ // let pasteData = []
694
+ // if (window.clipboardData && window.clipboardData.getData) {
695
+ // // IE
696
+ // pasteData = parse(window.clipboardData.getData('Text'))
697
+ // } else if (e.clipboardData && e.clipboardData.getData) {
698
+ // pasteData = parse(e.clipboardData.getData('text/plain'))
699
+ // }
700
+ // // in order of preference
701
+ // const resultEnd = []
702
+ // pasteData.forEach((row, i) => {
703
+ // row.forEach((value, j) => {
704
+ // resultEnd.push({
705
+ // i: start.i + i,
706
+ // j: start.j + j,
707
+ // value,
708
+ // })
709
+ // })
710
+ // })
711
+ // const columnsKeysList = columns.map((item) => item.dataIndex)
712
+ // const res = produce(dataSourceRef.current, (draft) => {
713
+ // resultEnd.forEach((item) => {
714
+ // if (isSelected(item.i, item.j)?.isSelected) {
715
+ // draft[item.i][columnsKeysList[item.j]] = item.value
716
+ // }
717
+ // })
718
+ // })
719
+ // /** 只有开通了编辑权限之后才可以 */
720
+ // if (editSheet) {
721
+ // dataChange?.(res)
722
+ // }
723
+ // }
742
724
  };
743
725
 
744
726
  var pageClick = function pageClick(e) {
@@ -782,13 +764,13 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
782
764
 
783
765
 
784
766
  var sheelMouseDown = function sheelMouseDown(i, j, e, commitStatus) {
785
- var _shellStatusRef$curre14, _shellStatusRef$curre15, _shellStatusRef$curre16, _shellStatusRef$curre17, _shellStatusRef$curre18, _shellStatusRef$curre19, _shellStatusRef$curre20, _shellStatusRef$curre21, _shellStatusRef$curre22, _shellStatusRef$curre23;
767
+ var _shellStatusRef$curre12, _shellStatusRef$curre13, _shellStatusRef$curre14, _shellStatusRef$curre15, _shellStatusRef$curre16, _shellStatusRef$curre17, _shellStatusRef$curre18, _shellStatusRef$curre19, _shellStatusRef$curre20, _shellStatusRef$curre21;
786
768
 
787
- var isNowEditingSameCell = !isEmpty((_shellStatusRef$curre14 = shellStatusRef.current) === null || _shellStatusRef$curre14 === void 0 ? void 0 : _shellStatusRef$curre14.editing) && ((_shellStatusRef$curre15 = shellStatusRef.current) === null || _shellStatusRef$curre15 === void 0 ? void 0 : _shellStatusRef$curre15.editing.i) === i && ((_shellStatusRef$curre16 = shellStatusRef.current) === null || _shellStatusRef$curre16 === void 0 ? void 0 : _shellStatusRef$curre16.editing.j) === j;
788
- var editing = isEmpty((_shellStatusRef$curre17 = shellStatusRef.current) === null || _shellStatusRef$curre17 === void 0 ? void 0 : _shellStatusRef$curre17.editing) || ((_shellStatusRef$curre18 = shellStatusRef.current) === null || _shellStatusRef$curre18 === void 0 ? void 0 : _shellStatusRef$curre18.editing.i) !== i || ((_shellStatusRef$curre19 = shellStatusRef.current) === null || _shellStatusRef$curre19 === void 0 ? void 0 : _shellStatusRef$curre19.editing.j) !== j ? {} : (_shellStatusRef$curre20 = shellStatusRef.current) === null || _shellStatusRef$curre20 === void 0 ? void 0 : _shellStatusRef$curre20.editing;
769
+ var isNowEditingSameCell = !isEmpty((_shellStatusRef$curre12 = shellStatusRef.current) === null || _shellStatusRef$curre12 === void 0 ? void 0 : _shellStatusRef$curre12.editing) && ((_shellStatusRef$curre13 = shellStatusRef.current) === null || _shellStatusRef$curre13 === void 0 ? void 0 : _shellStatusRef$curre13.editing.i) === i && ((_shellStatusRef$curre14 = shellStatusRef.current) === null || _shellStatusRef$curre14 === void 0 ? void 0 : _shellStatusRef$curre14.editing.j) === j;
770
+ var editing = isEmpty((_shellStatusRef$curre15 = shellStatusRef.current) === null || _shellStatusRef$curre15 === void 0 ? void 0 : _shellStatusRef$curre15.editing) || ((_shellStatusRef$curre16 = shellStatusRef.current) === null || _shellStatusRef$curre16 === void 0 ? void 0 : _shellStatusRef$curre16.editing.i) !== i || ((_shellStatusRef$curre17 = shellStatusRef.current) === null || _shellStatusRef$curre17 === void 0 ? void 0 : _shellStatusRef$curre17.editing.j) !== j ? {} : (_shellStatusRef$curre18 = shellStatusRef.current) === null || _shellStatusRef$curre18 === void 0 ? void 0 : _shellStatusRef$curre18.editing;
789
771
  shellStatusRef.current = {
790
772
  selecting: !isNowEditingSameCell,
791
- start: (e === null || e === void 0 ? void 0 : e.shiftKey) || commitStatus ? (_shellStatusRef$curre21 = shellStatusRef.current) === null || _shellStatusRef$curre21 === void 0 ? void 0 : _shellStatusRef$curre21.start : {
773
+ start: (e === null || e === void 0 ? void 0 : e.shiftKey) || commitStatus ? (_shellStatusRef$curre19 = shellStatusRef.current) === null || _shellStatusRef$curre19 === void 0 ? void 0 : _shellStatusRef$curre19.start : {
792
774
  i: i,
793
775
  j: j
794
776
  },
@@ -799,7 +781,7 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
799
781
  editing: editing,
800
782
  forceEdit: !!isNowEditingSameCell,
801
783
  commiting: commitStatus ? {
802
- start: (_shellStatusRef$curre22 = shellStatusRef.current) === null || _shellStatusRef$curre22 === void 0 ? void 0 : _shellStatusRef$curre22.start,
784
+ start: (_shellStatusRef$curre20 = shellStatusRef.current) === null || _shellStatusRef$curre20 === void 0 ? void 0 : _shellStatusRef$curre20.start,
803
785
  end: {
804
786
  i: i,
805
787
  j: j
@@ -812,7 +794,7 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
812
794
  setCommitIng(true);
813
795
  }
814
796
 
815
- if (isEmpty((_shellStatusRef$curre23 = shellStatusRef.current) === null || _shellStatusRef$curre23 === void 0 ? void 0 : _shellStatusRef$curre23.editing)) {
797
+ if (isEmpty((_shellStatusRef$curre21 = shellStatusRef.current) === null || _shellStatusRef$curre21 === void 0 ? void 0 : _shellStatusRef$curre21.editing)) {
816
798
  setEditIng(false);
817
799
  }
818
800
 
@@ -827,9 +809,9 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
827
809
 
828
810
  var onContextMenu = function onContextMenu(evt, i, j) {
829
811
  evt.preventDefault();
830
- var _shellStatusRef$curre24 = shellStatusRef.current,
831
- start = _shellStatusRef$curre24.start,
832
- end = _shellStatusRef$curre24.end;
812
+ var _shellStatusRef$curre22 = shellStatusRef.current,
813
+ start = _shellStatusRef$curre22.start,
814
+ end = _shellStatusRef$curre22.end;
833
815
  /** 如果表格当前没有选择,则把当前的右击的td块默认选中 */
834
816
 
835
817
  if (isEmpty(start) && isEmpty(end)) {
@@ -167,10 +167,7 @@ var SheelTabelCell = function SheelTabelCell(props) {
167
167
  onContextMenu: handleContextMenu,
168
168
  onDoubleClick: handleDoubleClick,
169
169
  key: "".concat(rowIndex, "_").concat(colIndex)
170
- }), content, isRightEnd && isEnd && !isEditing && /*#__PURE__*/_react.default.createElement("div", {
171
- ref: endCellRef,
172
- className: 'lmtable_cell_end_icon'
173
- }));
170
+ }), content);
174
171
  };
175
172
 
176
173
  var _default = SheelTabelCell;
@@ -7,5 +7,5 @@ export interface PopoverProps extends AbstractTooltipProps {
7
7
  /** @private Used For Popconfirm. Safe to remove. */
8
8
  _overlay?: React.ReactNode;
9
9
  }
10
- declare const Popover: React.ForwardRefExoticComponent<Pick<PopoverProps, keyof PopoverProps> & React.RefAttributes<unknown>>;
10
+ declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<unknown>>;
11
11
  export default Popover;
@@ -40,5 +40,5 @@ export interface TooltipPropsWithTitle extends AbstractTooltipProps {
40
40
  overlay?: React.ReactNode | RenderFunction;
41
41
  }
42
42
  export declare type TooltipProps = TooltipPropsWithTitle | TooltipPropsWithOverlay;
43
- declare const Tooltip: React.ForwardRefExoticComponent<(Pick<TooltipPropsWithOverlay, keyof TooltipPropsWithOverlay> | Pick<TooltipPropsWithTitle, keyof TooltipPropsWithTitle>) & React.RefAttributes<unknown>>;
43
+ declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<unknown>>;
44
44
  export default Tooltip;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const offset = 4;
2
3
  export default function dropIndicatorRender(props: {
3
4
  dropPosition: -1 | 0 | 1;
@@ -54,8 +54,8 @@ export default class LocaleProvider extends React.Component<LocaleProviderProps,
54
54
  componentDidMount(): void;
55
55
  componentDidUpdate(prevProps: LocaleProviderProps): void;
56
56
  componentWillUnmount(): void;
57
- getMemoizedContextValue: (localeValue: Locale) => Locale & {
57
+ getMemoizedContextValue: import("memoize-one").MemoizedFn<(localeValue: Locale) => Locale & {
58
58
  exist?: boolean;
59
- };
59
+ }>;
60
60
  render(): JSX.Element;
61
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkmore-design",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "author": {
5
5
  "name": "nowthen",
6
6
  "email": "rnlvwyx@gmail.com"
package/CHANGELOG.md DELETED
@@ -1,12 +0,0 @@
1
- #
2
- ## V2.0.0
3
- `2020-12-12`
4
-
5
- * 升级项目中全部依赖库版本,主要包括:react17、antd4、webpack5...
6
- * 增加 commitlint 规范git提交;
7
- * 增加 husky + lint-staged + Prettier 规范代码提交校验
8
- * 优化 eslint + prettier 规范项目代码风格
9
-
10
-
11
- ## V1.0.0
12
- 第一版