linkmore-design 1.0.29 → 1.0.32

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 (121) hide show
  1. package/dist/index.umd.js +112 -22
  2. package/dist/index.umd.min.js +7 -7
  3. package/es/ButtonTags/style/style.css +3 -0
  4. package/es/Card/style/index.css +3 -0
  5. package/es/CkFilter/style/style.css +6 -1
  6. package/es/CustomerService/style/style.css +3 -0
  7. package/es/Drawer/style/index.css +3 -0
  8. package/es/Dropdown/style/index.css +3 -0
  9. package/es/EditTable/style/style.css +3 -0
  10. package/es/Empty/style/index.css +3 -0
  11. package/es/Filter/style/style.css +3 -0
  12. package/es/Image/index.d.ts +2 -0
  13. package/es/Image/index.js +3 -0
  14. package/es/Image/style/index.css +505 -0
  15. package/es/Image/style/index.d.ts +1 -0
  16. package/es/Image/style/index.js +1 -0
  17. package/es/Input/index.js +3 -4
  18. package/es/Input/style/style.css +18 -4
  19. package/es/InputNumber/style/index.css +3 -0
  20. package/es/LeftTable/style/style.css +4 -1
  21. package/es/LmTable/Table.js +31 -10
  22. package/es/LmTable/style/style.css +298 -1
  23. package/es/Menu/style/index.css +3 -0
  24. package/es/Modal/style/index.css +3 -0
  25. package/es/Notification/style/index.css +3 -0
  26. package/es/Pagination/style/index.css +3 -0
  27. package/es/PopTable/style/style.css +3 -0
  28. package/es/ProTable/style/style.css +3 -0
  29. package/es/Select/index.js +6 -7
  30. package/es/Select/style/index.css +3 -0
  31. package/es/Space/style/index.css +3 -0
  32. package/es/Switch/index.d.ts +2 -0
  33. package/es/Switch/index.js +3 -0
  34. package/es/Switch/style/index.css +505 -0
  35. package/es/Switch/style/index.d.ts +1 -0
  36. package/es/Switch/style/index.js +1 -0
  37. package/es/Table/index.d.ts +2 -0
  38. package/es/Table/index.js +3 -0
  39. package/es/Table/style/index.css +505 -0
  40. package/es/Table/style/index.d.ts +1 -0
  41. package/es/Table/style/index.js +1 -0
  42. package/es/Tabs/index.d.ts +12 -0
  43. package/es/Tabs/index.js +33 -0
  44. package/es/Tabs/style/index.css +511 -0
  45. package/es/Tabs/style/index.d.ts +1 -0
  46. package/es/Tabs/style/index.js +1 -0
  47. package/es/Tag/index.d.ts +12 -0
  48. package/es/Tag/index.js +36 -0
  49. package/es/Tag/style/index.css +562 -0
  50. package/es/Tag/style/index.d.ts +1 -0
  51. package/es/Tag/style/index.js +1 -0
  52. package/es/Tree/index.d.ts +6 -1
  53. package/es/Tree/index.js +30 -1
  54. package/es/Tree/style/index.css +15 -0
  55. package/es/index.js +49 -1
  56. package/es/message/index.d.ts +7 -0
  57. package/es/message/index.js +12 -0
  58. package/es/message/style/index.css +509 -0
  59. package/es/message/style/index.d.ts +1 -0
  60. package/es/message/style/index.js +1 -0
  61. package/es/styles/main.css +3 -0
  62. package/lib/ButtonTags/style/style.css +3 -0
  63. package/lib/Card/style/index.css +3 -0
  64. package/lib/CkFilter/style/style.css +6 -1
  65. package/lib/CustomerService/style/style.css +3 -0
  66. package/lib/Drawer/style/index.css +3 -0
  67. package/lib/Dropdown/style/index.css +3 -0
  68. package/lib/EditTable/style/style.css +3 -0
  69. package/lib/Empty/style/index.css +3 -0
  70. package/lib/Filter/style/style.css +3 -0
  71. package/lib/Image/index.d.ts +2 -0
  72. package/lib/Image/index.js +15 -0
  73. package/lib/Image/style/index.css +505 -0
  74. package/lib/Image/style/index.d.ts +1 -0
  75. package/lib/Image/style/index.js +3 -0
  76. package/lib/Input/index.js +3 -4
  77. package/lib/Input/style/style.css +18 -4
  78. package/lib/InputNumber/style/index.css +3 -0
  79. package/lib/LeftTable/style/style.css +4 -1
  80. package/lib/LmTable/Table.js +31 -10
  81. package/lib/LmTable/style/style.css +298 -1
  82. package/lib/Menu/style/index.css +3 -0
  83. package/lib/Modal/style/index.css +3 -0
  84. package/lib/Notification/style/index.css +3 -0
  85. package/lib/Pagination/style/index.css +3 -0
  86. package/lib/PopTable/style/style.css +3 -0
  87. package/lib/ProTable/style/style.css +3 -0
  88. package/lib/Select/index.js +8 -7
  89. package/lib/Select/style/index.css +3 -0
  90. package/lib/Space/style/index.css +3 -0
  91. package/lib/Switch/index.d.ts +2 -0
  92. package/lib/Switch/index.js +15 -0
  93. package/lib/Switch/style/index.css +505 -0
  94. package/lib/Switch/style/index.d.ts +1 -0
  95. package/lib/Switch/style/index.js +3 -0
  96. package/lib/Table/index.d.ts +2 -0
  97. package/lib/Table/index.js +15 -0
  98. package/lib/Table/style/index.css +505 -0
  99. package/lib/Table/style/index.d.ts +1 -0
  100. package/lib/Table/style/index.js +3 -0
  101. package/lib/Tabs/index.d.ts +12 -0
  102. package/lib/Tabs/index.js +46 -0
  103. package/lib/Tabs/style/index.css +511 -0
  104. package/lib/Tabs/style/index.d.ts +1 -0
  105. package/lib/Tabs/style/index.js +3 -0
  106. package/lib/Tag/index.d.ts +12 -0
  107. package/lib/Tag/index.js +52 -0
  108. package/lib/Tag/style/index.css +562 -0
  109. package/lib/Tag/style/index.d.ts +1 -0
  110. package/lib/Tag/style/index.js +3 -0
  111. package/lib/Tree/index.d.ts +6 -1
  112. package/lib/Tree/index.js +33 -1
  113. package/lib/Tree/style/index.css +15 -0
  114. package/lib/index.js +49 -1
  115. package/lib/message/index.d.ts +7 -0
  116. package/lib/message/index.js +24 -0
  117. package/lib/message/style/index.css +509 -0
  118. package/lib/message/style/index.d.ts +1 -0
  119. package/lib/message/style/index.js +3 -0
  120. package/lib/styles/main.css +3 -0
  121. package/package.json +1 -1
package/dist/index.umd.js CHANGED
@@ -39034,18 +39034,17 @@
39034
39034
  var _excluded$h = ["allowClear"],
39035
39035
  _excluded2$4 = ["allowClear"],
39036
39036
  _excluded3$2 = ["allowClear"];
39037
-
39038
- var LmInput = function LmInput(props) {
39037
+ var LmInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
39039
39038
  var _props$allowClear = props.allowClear,
39040
39039
  rest = _objectWithoutProperties(props, _excluded$h);
39041
39040
 
39042
39041
  return /*#__PURE__*/React__default['default'].createElement(_Input__default['default'], _extends({
39042
+ ref: ref,
39043
39043
  className: "lm_input"
39044
39044
  }, rest, {
39045
39045
  allowClear: true
39046
39046
  }));
39047
- };
39048
-
39047
+ });
39049
39048
  LmInput.Group = _Input__default['default'].Group;
39050
39049
  LmInput.Search = /*#__PURE__*/React.forwardRef(function (props, ref) {
39051
39050
  var _props$allowClear2 = props.allowClear,
@@ -74019,7 +74018,7 @@
74019
74018
  editConfig: editConfig
74020
74019
  };
74021
74020
 
74022
- var _excluded$_ = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "customCheck"];
74021
+ var _excluded$_ = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "customCheck", "rowSelection"];
74023
74022
  var Summary = ProviderWarp.Summary;
74024
74023
  var ResetTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
74025
74024
  var dataSource = props.dataSource,
@@ -74035,9 +74034,9 @@
74035
74034
  _props$virtual = props.virtual,
74036
74035
  virtual = _props$virtual === void 0 ? false : _props$virtual,
74037
74036
  customCheck = props.customCheck,
74037
+ rowSelection = props.rowSelection,
74038
74038
  resetProps = _objectWithoutProperties(props, _excluded$_);
74039
74039
 
74040
- console.log(virtual, '--virtual', autoSize);
74041
74040
  var _resetProps$rowKey = resetProps.rowKey,
74042
74041
  rowKey = _resetProps$rowKey === void 0 ? 'id' : _resetProps$rowKey;
74043
74042
 
@@ -74131,6 +74130,7 @@
74131
74130
 
74132
74131
 
74133
74132
  var config = React.useMemo(function () {
74133
+ console.log(resetProps, 'resetPropsresetProps');
74134
74134
  return _objectSpread({
74135
74135
  defaultSize: 'small',
74136
74136
  tableLayout: 'fixed',
@@ -74138,7 +74138,7 @@
74138
74138
  debounceTime: 300,
74139
74139
  revalidateOnFocus: false,
74140
74140
  options: {
74141
- setting: true,
74141
+ setting: false,
74142
74142
  density: false,
74143
74143
  fullScreen: false,
74144
74144
  reload: false
@@ -74153,9 +74153,9 @@
74153
74153
  tableAlertRender: false,
74154
74154
  checkConfig: checkConfig,
74155
74155
  // components: vComponents,
74156
- scroll: _objectSpread({
74156
+ scroll: resetProps.autoSizer || resetProps.scroll ? _objectSpread({
74157
74157
  y: autoSize.height
74158
- }, props.scroll),
74158
+ }, resetProps.scroll) : null,
74159
74159
  pagination: !hiddenPage && _objectSpread({
74160
74160
  showSizeChanger: true,
74161
74161
  showQuickJumper: true,
@@ -74163,7 +74163,7 @@
74163
74163
  return "\u5171 ".concat(total, " \u6761");
74164
74164
  }
74165
74165
  }, pagination),
74166
- rowSelection: {
74166
+ rowSelection: rowSelection === false ? null : _objectSpread({
74167
74167
  fixed: true,
74168
74168
  type: 'checkbox',
74169
74169
  columnWidth: 36,
@@ -74176,7 +74176,7 @@
74176
74176
  });
74177
74177
  rowClick === null || rowClick === void 0 ? void 0 : rowClick(selectedRows);
74178
74178
  }
74179
- },
74179
+ }, rowSelection),
74180
74180
  onRow: function onRow(record) {
74181
74181
  return {
74182
74182
  onClick: function onClick(e) {
@@ -74283,6 +74283,27 @@
74283
74283
  /** 1: 使用scroll.x y 来控制宽高 默认都是100% */
74284
74284
 
74285
74285
  var ResizeSize = /*#__PURE__*/React.forwardRef(function (props, ref) {
74286
+ var _props$autoSizer = props.autoSizer,
74287
+ autoSizer = _props$autoSizer === void 0 ? false : _props$autoSizer;
74288
+
74289
+ if (!autoSizer) {
74290
+ return /*#__PURE__*/React__default['default'].createElement("div", {
74291
+ ref: tableWarpRef,
74292
+ id: "lm_protable_warp",
74293
+ style: {
74294
+ width: '100%',
74295
+ height: '100%'
74296
+ }
74297
+ }, /*#__PURE__*/React__default['default'].createElement(ResetTable, _extends({
74298
+ ref: defaultRef
74299
+ }, props, {
74300
+ autoSize: {
74301
+ height: '100%',
74302
+ width: '100%'
74303
+ }
74304
+ })));
74305
+ }
74306
+
74286
74307
  var _useState9 = React.useState({
74287
74308
  width: '100%',
74288
74309
  height: '100%'
@@ -74296,11 +74317,10 @@
74296
74317
  var resizeRef = React.useRef(null);
74297
74318
  var resetHeight = React.useMemo(function () {
74298
74319
  var height = tableSize.height;
74299
- console.log(3);
74300
- var h = height - 48;
74320
+ var h = height - 32;
74301
74321
 
74302
74322
  if (!props.hiddenPage || props.customCheck) {
74303
- h -= 32;
74323
+ h -= 48;
74304
74324
  }
74305
74325
 
74306
74326
  if (props.columns.some(function (v) {
@@ -80954,23 +80974,22 @@
80954
80974
 
80955
80975
  var _excluded$1e = ["children", "className", "size", "dropdownClassName"];
80956
80976
  var prefixCls$5 = 'lm_select';
80957
-
80958
- var CLMSelect = function CLMSelect(props) {
80977
+ var CLMSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
80959
80978
  var children = props.children,
80960
80979
  className = props.className,
80961
80980
  _props$size = props.size,
80962
- size = _props$size === void 0 ? 'small' : _props$size,
80981
+ size = _props$size === void 0 ? 'middle' : _props$size,
80963
80982
  dropdownClassName = props.dropdownClassName,
80964
80983
  others = _objectWithoutProperties(props, _excluded$1e);
80965
80984
 
80966
80985
  return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'], _extends({
80967
80986
  className: classnames(className, prefixCls$5),
80968
- size: size
80987
+ size: size,
80988
+ ref: ref
80969
80989
  }, others, {
80970
80990
  dropdownClassName: classnames('lm_select_dropdown', dropdownClassName)
80971
80991
  }), children);
80972
- };
80973
-
80992
+ });
80974
80993
  var LMSelect = CLMSelect;
80975
80994
  LMSelect.Option = _Select__default['default'].Option;
80976
80995
  LMSelect.OptGroup = _Select__default['default'].OptGroup;
@@ -81004,6 +81023,56 @@
81004
81023
  }))));
81005
81024
  };
81006
81025
 
81026
+ var _excluded$1f = ["className"];
81027
+ var prefixCls$6 = 'lm_tree';
81028
+ var LmTree = /*#__PURE__*/React.forwardRef(function (props, ref) {
81029
+ var className = props.className,
81030
+ rest = _objectWithoutProperties(props, _excluded$1f);
81031
+
81032
+ return /*#__PURE__*/React__default['default'].createElement(_Tree__default['default'], _extends({
81033
+ ref: ref
81034
+ }, rest, {
81035
+ className: classnames(prefixCls$6, className)
81036
+ }));
81037
+ });
81038
+ LmTree.TreeNode = _Tree__default['default'].TreeNode;
81039
+ LmTree.DirectoryTree = _Tree__default['default'].DirectoryTree;
81040
+
81041
+ var _excluded$1g = ["className", "color"];
81042
+ var PresetColorTypes = ['pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime'];
81043
+ var prefixCls$7 = 'lm_tag';
81044
+ var LmTag = /*#__PURE__*/React.forwardRef(function (props, ref) {
81045
+ var className = props.className,
81046
+ color = props.color,
81047
+ rest = _objectWithoutProperties(props, _excluded$1g);
81048
+
81049
+ return /*#__PURE__*/React__default['default'].createElement(_Tag__default['default'], _extends({
81050
+ ref: ref
81051
+ }, rest, {
81052
+ color: color,
81053
+ className: classnames(prefixCls$7, {
81054
+ lm_tag_noborder: !!props.noborder
81055
+ }, className, PresetColorTypes.includes(color) && "lm_tag_main_color")
81056
+ }));
81057
+ });
81058
+ LmTag.CheckableTag = _Tag__default['default'].CheckableTag;
81059
+
81060
+ var _excluded$1h = ["className", "noBorder"];
81061
+ var prefixCls$8 = 'lm_tabs';
81062
+
81063
+ var LMTabs = function LMTabs(props) {
81064
+ var className = props.className,
81065
+ _props$noBorder = props.noBorder,
81066
+ noBorder = _props$noBorder === void 0 ? false : _props$noBorder,
81067
+ others = _objectWithoutProperties(props, _excluded$1h);
81068
+
81069
+ return /*#__PURE__*/React__default['default'].createElement(_Tabs__default['default'], _extends({}, others, {
81070
+ className: classnames(className, prefixCls$8, noBorder && 'lm_tabs_noborder')
81071
+ }));
81072
+ };
81073
+
81074
+ LMTabs.TabPane = _Tabs__default['default'].TabPane;
81075
+
81007
81076
  Object.defineProperty(exports, 'Card', {
81008
81077
  enumerable: true,
81009
81078
  get: function () {
@@ -81016,16 +81085,34 @@
81016
81085
  return _Space__default['default'];
81017
81086
  }
81018
81087
  });
81088
+ Object.defineProperty(exports, 'Table', {
81089
+ enumerable: true,
81090
+ get: function () {
81091
+ return _Table__default['default'];
81092
+ }
81093
+ });
81094
+ Object.defineProperty(exports, 'message', {
81095
+ enumerable: true,
81096
+ get: function () {
81097
+ return _message__default['default'];
81098
+ }
81099
+ });
81100
+ Object.defineProperty(exports, 'Image', {
81101
+ enumerable: true,
81102
+ get: function () {
81103
+ return _Image__default['default'];
81104
+ }
81105
+ });
81019
81106
  Object.defineProperty(exports, 'Empty', {
81020
81107
  enumerable: true,
81021
81108
  get: function () {
81022
81109
  return _Empty__default['default'];
81023
81110
  }
81024
81111
  });
81025
- Object.defineProperty(exports, 'Tree', {
81112
+ Object.defineProperty(exports, 'Switch', {
81026
81113
  enumerable: true,
81027
81114
  get: function () {
81028
- return _Tree__default['default'];
81115
+ return _Switch__default['default'];
81029
81116
  }
81030
81117
  });
81031
81118
  Object.defineProperty(exports, 'Menu', {
@@ -81067,6 +81154,9 @@
81067
81154
  exports.Radio = LMRadio;
81068
81155
  exports.Select = LMSelect;
81069
81156
  exports.TableRender = Index$h;
81157
+ exports.Tabs = LMTabs;
81158
+ exports.Tag = LmTag;
81159
+ exports.Tree = LmTree;
81070
81160
  exports.UploadOss = UploadOss;
81071
81161
  exports.VirtualList = VirList;
81072
81162