linkmore-design 1.0.31 → 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 (47) hide show
  1. package/dist/index.umd.js +53 -12
  2. package/dist/index.umd.min.js +1 -1
  3. package/es/Image/index.d.ts +2 -0
  4. package/es/Image/index.js +3 -0
  5. package/es/Image/style/index.css +505 -0
  6. package/es/Image/style/index.d.ts +1 -0
  7. package/es/Image/style/index.js +1 -0
  8. package/es/LeftTable/style/style.css +1 -1
  9. package/es/LmTable/Table.js +31 -10
  10. package/es/LmTable/style/style.css +295 -1
  11. package/es/Switch/index.d.ts +2 -0
  12. package/es/Switch/index.js +3 -0
  13. package/es/Switch/style/index.css +505 -0
  14. package/es/Switch/style/index.d.ts +1 -0
  15. package/es/Switch/style/index.js +1 -0
  16. package/es/Table/index.d.ts +2 -0
  17. package/es/Table/index.js +3 -0
  18. package/es/Table/style/index.css +505 -0
  19. package/es/Table/style/index.d.ts +1 -0
  20. package/es/Table/style/index.js +1 -0
  21. package/es/Tabs/index.d.ts +3 -2
  22. package/es/Tabs/index.js +4 -2
  23. package/es/Tabs/style/index.css +3 -0
  24. package/es/index.js +25 -1
  25. package/lib/Image/index.d.ts +2 -0
  26. package/lib/Image/index.js +15 -0
  27. package/lib/Image/style/index.css +505 -0
  28. package/lib/Image/style/index.d.ts +1 -0
  29. package/lib/Image/style/index.js +3 -0
  30. package/lib/LeftTable/style/style.css +1 -1
  31. package/lib/LmTable/Table.js +31 -10
  32. package/lib/LmTable/style/style.css +295 -1
  33. package/lib/Switch/index.d.ts +2 -0
  34. package/lib/Switch/index.js +15 -0
  35. package/lib/Switch/style/index.css +505 -0
  36. package/lib/Switch/style/index.d.ts +1 -0
  37. package/lib/Switch/style/index.js +3 -0
  38. package/lib/Table/index.d.ts +2 -0
  39. package/lib/Table/index.js +15 -0
  40. package/lib/Table/style/index.css +505 -0
  41. package/lib/Table/style/index.d.ts +1 -0
  42. package/lib/Table/style/index.js +3 -0
  43. package/lib/Tabs/index.d.ts +3 -2
  44. package/lib/Tabs/index.js +4 -2
  45. package/lib/Tabs/style/index.css +3 -0
  46. package/lib/index.js +25 -1
  47. package/package.json +1 -1
package/dist/index.umd.js CHANGED
@@ -74018,7 +74018,7 @@
74018
74018
  editConfig: editConfig
74019
74019
  };
74020
74020
 
74021
- 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"];
74022
74022
  var Summary = ProviderWarp.Summary;
74023
74023
  var ResetTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
74024
74024
  var dataSource = props.dataSource,
@@ -74034,9 +74034,9 @@
74034
74034
  _props$virtual = props.virtual,
74035
74035
  virtual = _props$virtual === void 0 ? false : _props$virtual,
74036
74036
  customCheck = props.customCheck,
74037
+ rowSelection = props.rowSelection,
74037
74038
  resetProps = _objectWithoutProperties(props, _excluded$_);
74038
74039
 
74039
- console.log(virtual, '--virtual', autoSize);
74040
74040
  var _resetProps$rowKey = resetProps.rowKey,
74041
74041
  rowKey = _resetProps$rowKey === void 0 ? 'id' : _resetProps$rowKey;
74042
74042
 
@@ -74130,6 +74130,7 @@
74130
74130
 
74131
74131
 
74132
74132
  var config = React.useMemo(function () {
74133
+ console.log(resetProps, 'resetPropsresetProps');
74133
74134
  return _objectSpread({
74134
74135
  defaultSize: 'small',
74135
74136
  tableLayout: 'fixed',
@@ -74137,7 +74138,7 @@
74137
74138
  debounceTime: 300,
74138
74139
  revalidateOnFocus: false,
74139
74140
  options: {
74140
- setting: true,
74141
+ setting: false,
74141
74142
  density: false,
74142
74143
  fullScreen: false,
74143
74144
  reload: false
@@ -74152,9 +74153,9 @@
74152
74153
  tableAlertRender: false,
74153
74154
  checkConfig: checkConfig,
74154
74155
  // components: vComponents,
74155
- scroll: _objectSpread({
74156
+ scroll: resetProps.autoSizer || resetProps.scroll ? _objectSpread({
74156
74157
  y: autoSize.height
74157
- }, props.scroll),
74158
+ }, resetProps.scroll) : null,
74158
74159
  pagination: !hiddenPage && _objectSpread({
74159
74160
  showSizeChanger: true,
74160
74161
  showQuickJumper: true,
@@ -74162,7 +74163,7 @@
74162
74163
  return "\u5171 ".concat(total, " \u6761");
74163
74164
  }
74164
74165
  }, pagination),
74165
- rowSelection: {
74166
+ rowSelection: rowSelection === false ? null : _objectSpread({
74166
74167
  fixed: true,
74167
74168
  type: 'checkbox',
74168
74169
  columnWidth: 36,
@@ -74175,7 +74176,7 @@
74175
74176
  });
74176
74177
  rowClick === null || rowClick === void 0 ? void 0 : rowClick(selectedRows);
74177
74178
  }
74178
- },
74179
+ }, rowSelection),
74179
74180
  onRow: function onRow(record) {
74180
74181
  return {
74181
74182
  onClick: function onClick(e) {
@@ -74282,6 +74283,27 @@
74282
74283
  /** 1: 使用scroll.x y 来控制宽高 默认都是100% */
74283
74284
 
74284
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
+
74285
74307
  var _useState9 = React.useState({
74286
74308
  width: '100%',
74287
74309
  height: '100%'
@@ -74295,11 +74317,10 @@
74295
74317
  var resizeRef = React.useRef(null);
74296
74318
  var resetHeight = React.useMemo(function () {
74297
74319
  var height = tableSize.height;
74298
- console.log(3);
74299
- var h = height - 48;
74320
+ var h = height - 32;
74300
74321
 
74301
74322
  if (!props.hiddenPage || props.customCheck) {
74302
- h -= 32;
74323
+ h -= 48;
74303
74324
  }
74304
74325
 
74305
74326
  if (props.columns.some(function (v) {
@@ -81036,15 +81057,17 @@
81036
81057
  });
81037
81058
  LmTag.CheckableTag = _Tag__default['default'].CheckableTag;
81038
81059
 
81039
- var _excluded$1h = ["className"];
81060
+ var _excluded$1h = ["className", "noBorder"];
81040
81061
  var prefixCls$8 = 'lm_tabs';
81041
81062
 
81042
81063
  var LMTabs = function LMTabs(props) {
81043
81064
  var className = props.className,
81065
+ _props$noBorder = props.noBorder,
81066
+ noBorder = _props$noBorder === void 0 ? false : _props$noBorder,
81044
81067
  others = _objectWithoutProperties(props, _excluded$1h);
81045
81068
 
81046
81069
  return /*#__PURE__*/React__default['default'].createElement(_Tabs__default['default'], _extends({}, others, {
81047
- className: classnames(className, prefixCls$8)
81070
+ className: classnames(className, prefixCls$8, noBorder && 'lm_tabs_noborder')
81048
81071
  }));
81049
81072
  };
81050
81073
 
@@ -81062,18 +81085,36 @@
81062
81085
  return _Space__default['default'];
81063
81086
  }
81064
81087
  });
81088
+ Object.defineProperty(exports, 'Table', {
81089
+ enumerable: true,
81090
+ get: function () {
81091
+ return _Table__default['default'];
81092
+ }
81093
+ });
81065
81094
  Object.defineProperty(exports, 'message', {
81066
81095
  enumerable: true,
81067
81096
  get: function () {
81068
81097
  return _message__default['default'];
81069
81098
  }
81070
81099
  });
81100
+ Object.defineProperty(exports, 'Image', {
81101
+ enumerable: true,
81102
+ get: function () {
81103
+ return _Image__default['default'];
81104
+ }
81105
+ });
81071
81106
  Object.defineProperty(exports, 'Empty', {
81072
81107
  enumerable: true,
81073
81108
  get: function () {
81074
81109
  return _Empty__default['default'];
81075
81110
  }
81076
81111
  });
81112
+ Object.defineProperty(exports, 'Switch', {
81113
+ enumerable: true,
81114
+ get: function () {
81115
+ return _Switch__default['default'];
81116
+ }
81117
+ });
81077
81118
  Object.defineProperty(exports, 'Menu', {
81078
81119
  enumerable: true,
81079
81120
  get: function () {