linkmore-design 1.1.23 → 1.1.25

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,76 @@
1
+ ## <small>1.1.23 (2022-10-31)</small>
2
+
3
+ * 1.1.23 ([3a82908](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/3a82908))
4
+ * build: build ([856267e](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/856267e))
5
+ * fix: 修改拖拽移动事件 ([47632d9](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/47632d9))
6
+ * fix: add ([46b85f4](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/46b85f4))
7
+ * fix: change ([86a1282](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/86a1282))
8
+
9
+
10
+
11
+ ## <small>1.1.22 (2022-10-28)</small>
12
+
13
+ * 1.1.22 ([9a19225](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/9a19225))
14
+ * build: build ([3b79e5e](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/3b79e5e))
15
+ * feat: 筛选组件增加清楚按钮触发方式 ([64ed4c5](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/64ed4c5))
16
+ * fix: 修复lmedittable的选择问题 ([f0ae1f2](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/f0ae1f2))
17
+ * fix: 修改拖拽点 ([336fb8c](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/336fb8c))
18
+
19
+
20
+
21
+ ## <small>1.1.21 (2022-10-28)</small>
22
+
23
+ * 1.1.21 ([86a2415](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/86a2415))
24
+ * build: build ([1b7c124](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/1b7c124))
25
+
26
+
27
+
28
+ ## <small>1.1.20 (2022-10-28)</small>
29
+
30
+ * 1.1.20 ([2a6fd92](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/2a6fd92))
31
+ * feat: 描述列表增加行合并 ([2acdcaa](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/2acdcaa))
32
+ * feat: 增加上传组件拖拽功能 ([4e07162](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/4e07162))
33
+ * feat: 增加拖拽组件(实验性) ([62b3eef](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/62b3eef))
34
+ * docs: new lmDrag ([0580608](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/0580608))
35
+ * docs: new lmDrag ([7d8239b](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/7d8239b))
36
+
37
+
38
+
39
+ ## <small>1.1.19 (2022-10-25)</small>
40
+
41
+ * 1.1.19 ([7cda205](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/7cda205))
42
+ * build: build ([daddea9](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/daddea9))
43
+ * fix: 解锁react版本 ([3652d40](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/3652d40))
44
+ * fix: 添加form从ref 中设置数据无法生效的问题 ([c0b75b6](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/c0b75b6))
45
+ * fix: 修复 cascade inputnumber treeselect 在configProvider中设置size不生效的问题 ([f466792](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/f466792))
46
+ * fix: 修复descriptions每行最后一个存在padding的问题 ([8041520](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/8041520))
47
+ * fix: 修改按钮样式 ([647b669](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/647b669))
48
+ * fix: 修改筛选组件赋值错误问题 ([7b70b7c](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/7b70b7c))
49
+ * fate: 添加Select框带icon功能 ([eee6a75](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/eee6a75))
50
+
51
+
52
+
53
+ ## <small>1.1.18 (2022-10-24)</small>
54
+
55
+ * 1.1.18 ([1c75789](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/1c75789))
56
+ * fix: 添加快捷菜单在抽屉中的用例 ([ea3dbdf](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/ea3dbdf))
57
+ * fix: 修复propsComponet打包出来的问题。及添加quickmenu的hidden事件 ([277fbdd](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/277fbdd))
58
+
59
+
60
+
61
+ ## <small>1.1.17 (2022-10-21)</small>
62
+
63
+ * 1.1.17 ([f608658](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/f608658))
64
+ * build: build ([ef91efe](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/ef91efe))
65
+ * fix: 修改筛选内置下拉组件样式, 增加额外功能参数 ([b723cfd](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/b723cfd))
66
+ * fix: 修改图片预览旋转图标 ([2c03eb5](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/2c03eb5))
67
+ * feat: 表单响应式布局新版 ([78e8eb6](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/78e8eb6))
68
+ * feat: 增加图标库额外接收url ([a5f1947](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/a5f1947))
69
+ * docs: changlog ([95538b3](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/95538b3))
70
+ * docs: delete no use ([2442aa5](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/2442aa5))
71
+
72
+
73
+
1
74
  ## <small>1.1.16 (2022-10-21)</small>
2
75
 
3
76
  * 1.1.16 ([ed714ba](https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign/commit/ed714ba))
package/dist/index.umd.js CHANGED
@@ -182022,6 +182022,7 @@
182022
182022
  var instance = _ref.instance;
182023
182023
  var inputRef = React__default['default'].useRef(null);
182024
182024
  var accept = instance.accept,
182025
+ disabled = instance.disabled,
182025
182026
  children = instance.children,
182026
182027
  beforeUpload = instance.beforeUpload,
182027
182028
  getUploadStatus = instance.getUploadStatus,
@@ -182030,6 +182031,7 @@
182030
182031
  var handleClick = React.useCallback(function () {
182031
182032
  var _inputRef$current;
182032
182033
 
182034
+ if (disabled) return;
182033
182035
  var isUploading = getUploadStatus().uploading;
182034
182036
  if (isUploading) return;
182035
182037
  inputRef === null || inputRef === void 0 ? void 0 : (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.click();
@@ -182055,7 +182057,7 @@
182055
182057
  };
182056
182058
  return !getIsMaxCount() && /*#__PURE__*/React__default['default'].createElement("div", {
182057
182059
  onClick: handleClick,
182058
- className: "lm_upload_core"
182060
+ className: classnames('lm_upload_core', disabled && 'disabled')
182059
182061
  }, children || /*#__PURE__*/React__default['default'].createElement(UploadPicture, {
182060
182062
  instance: instance
182061
182063
  }), /*#__PURE__*/React__default['default'].createElement("input", _objectSpread({
@@ -182096,6 +182098,7 @@
182096
182098
  var file = _ref.file,
182097
182099
  instance = _ref.instance;
182098
182100
  var readOnly = instance.readOnly,
182101
+ disabled = instance.disabled,
182099
182102
  remove = instance.remove,
182100
182103
  download = instance.download,
182101
182104
  fileNames = instance.fileNames;
@@ -182112,7 +182115,7 @@
182112
182115
  onClick: function onClick() {
182113
182116
  return download(file);
182114
182117
  }
182115
- }, file[fileNames.fileName])), !readOnly && /*#__PURE__*/React.createElement("div", {
182118
+ }, file[fileNames.fileName])), !readOnly && !disabled && /*#__PURE__*/React.createElement("div", {
182116
182119
  className: "text_right lm_upload_item_text_action"
182117
182120
  }, /*#__PURE__*/React.createElement("div", {
182118
182121
  className: "action_delete",
@@ -182128,6 +182131,7 @@
182128
182131
  var file = _ref.file,
182129
182132
  instance = _ref.instance;
182130
182133
  var readOnly = instance.readOnly,
182134
+ disabled = instance.disabled,
182131
182135
  remove = instance.remove,
182132
182136
  preview = instance.preview,
182133
182137
  download = instance.download,
@@ -182149,7 +182153,7 @@
182149
182153
  onClick: function onClick() {
182150
182154
  return download(file);
182151
182155
  }
182152
- }, file[fileNames.fileName])), !readOnly && /*#__PURE__*/React.createElement("div", {
182156
+ }, file[fileNames.fileName])), !readOnly && !disabled && /*#__PURE__*/React.createElement("div", {
182153
182157
  className: "picture_right lm_upload_item_action"
182154
182158
  }, /*#__PURE__*/React.createElement("div", {
182155
182159
  className: "action_delete",
@@ -182225,6 +182229,7 @@
182225
182229
  instance = _ref.instance,
182226
182230
  listeners = _ref.listeners;
182227
182231
  var dispatch = instance.dispatch,
182232
+ disabled = instance.disabled,
182228
182233
  readOnly = instance.readOnly,
182229
182234
  size = instance.size,
182230
182235
  remove = instance.remove,
@@ -182298,7 +182303,15 @@
182298
182303
  })), /*#__PURE__*/React__default['default'].createElement("div", {
182299
182304
  className: "lm_upload_item_mask"
182300
182305
  }, /*#__PURE__*/React__default['default'].createElement("div", {
182301
- className: "lm_upload_item_action"
182306
+ className: "lm_upload_item_action",
182307
+ onKeyDown: function onKeyDown(e) {
182308
+ e.stopPropagation();
182309
+ e.preventDefault();
182310
+ },
182311
+ onPointerDown: function onPointerDown(e) {
182312
+ e.stopPropagation();
182313
+ e.preventDefault();
182314
+ }
182302
182315
  }, /*#__PURE__*/React__default['default'].createElement("div", {
182303
182316
  className: "action_preview",
182304
182317
  onClick: handlePreview
@@ -182307,7 +182320,7 @@
182307
182320
  style: {
182308
182321
  fontSize: resetSize.fontSize
182309
182322
  }
182310
- })), !readOnly && /*#__PURE__*/React__default['default'].createElement("div", {
182323
+ })), !readOnly && !disabled && /*#__PURE__*/React__default['default'].createElement("div", {
182311
182324
  className: "action_delete",
182312
182325
  onClick: function onClick() {
182313
182326
  return remove(file);
@@ -182344,6 +182357,7 @@
182344
182357
  itemRender = instance.itemRender,
182345
182358
  listType = instance.listType,
182346
182359
  showUploadList = instance.showUploadList,
182360
+ disabled = instance.disabled,
182347
182361
  enableDrag = instance.enableDrag,
182348
182362
  fileNames = instance.fileNames,
182349
182363
  move = instance.move;
@@ -182379,7 +182393,7 @@
182379
182393
  }
182380
182394
  };
182381
182395
 
182382
- if (enableDrag) {
182396
+ if (!disabled && enableDrag) {
182383
182397
  return /*#__PURE__*/React__default['default'].createElement(LmDrag$1, {
182384
182398
  options: fileList,
182385
182399
  rowKey: uid,
@@ -313204,7 +313218,17 @@
313204
313218
  };
313205
313219
 
313206
313220
  var Control = function Control(con) {
313221
+ var _col$newOptions;
313222
+
313223
+ // const resultComponentProps = isFunction(componentProps) ? componentProps?.(record, col) : componentProps
313207
313224
  var resultComponentProps = lodash.isFunction(componentProps) ? componentProps === null || componentProps === void 0 ? void 0 : componentProps(record, col) : componentProps;
313225
+
313226
+ if (lodash.isFunction(componentProps) && (col === null || col === void 0 ? void 0 : (_col$newOptions = col.newOptions) === null || _col$newOptions === void 0 ? void 0 : _col$newOptions.length)) {
313227
+ resultComponentProps = _objectSpread(_objectSpread({}, resultComponentProps), {}, {
313228
+ options: col === null || col === void 0 ? void 0 : col.newOptions
313229
+ });
313230
+ }
313231
+
313208
313232
  var clearAttrComponentProps = lodash.omit(resultComponentProps, ['optionOnly', 'isOnlyValue']);
313209
313233
 
313210
313234
  switch (con) {
@@ -313340,7 +313364,8 @@
313340
313364
 
313341
313365
  case 'render':
313342
313366
  {
313343
- var render = resultComponentProps.render;
313367
+ var _resultComponentProps = resultComponentProps,
313368
+ render = _resultComponentProps.render;
313344
313369
  var fromData = form.getFieldsValue();
313345
313370
  return render === null || render === void 0 ? void 0 : render(_objectSpread(_objectSpread({}, !isObjEmpty(fromData) ? _objectSpread(_objectSpread({}, record), {}, _defineProperty$1({}, dataIndex, fromData[dataIndex])) : record), {}, {
313346
313371
  onChange: save
@@ -313791,10 +313816,12 @@
313791
313816
 
313792
313817
 
313793
313818
  var hasDisableOptions = React.useMemo(function () {
313819
+ // const hasOnlyOptionsDatas = columns.filter(item => item?.['componentProps']?.optionOnly)
313794
313820
  var hasOnlyOptionsDatas = columns.filter(function (item) {
313795
313821
  var _item$componentProps;
313796
313822
 
313797
- return item === null || item === void 0 ? void 0 : (_item$componentProps = item['componentProps']) === null || _item$componentProps === void 0 ? void 0 : _item$componentProps.optionOnly;
313823
+ var resultComponentProps = lodash.isFunction(item === null || item === void 0 ? void 0 : item.componentProps) ? item === null || item === void 0 ? void 0 : (_item$componentProps = item.componentProps) === null || _item$componentProps === void 0 ? void 0 : _item$componentProps.call(item, {}, item) : item === null || item === void 0 ? void 0 : item.componentProps;
313824
+ return resultComponentProps === null || resultComponentProps === void 0 ? void 0 : resultComponentProps.optionOnly;
313798
313825
  });
313799
313826
 
313800
313827
  if (hasOnlyOptionsDatas.length) {
@@ -313809,9 +313836,14 @@
313809
313836
 
313810
313837
  var DisableOptions = React.useMemo(function () {
313811
313838
  var newColumns = columns === null || columns === void 0 ? void 0 : columns.map(function (item) {
313812
- var _ref8 = item['componentProps'] || {},
313839
+ var _item$componentProps2;
313840
+
313841
+ var resultComponentProps = lodash.isFunction(item.componentProps) ? item === null || item === void 0 ? void 0 : (_item$componentProps2 = item.componentProps) === null || _item$componentProps2 === void 0 ? void 0 : _item$componentProps2.call(item, {}, item) : item === null || item === void 0 ? void 0 : item.componentProps;
313842
+
313843
+ var _ref8 = resultComponentProps || {},
313813
313844
  optionOnly = _ref8.optionOnly,
313814
- options = _ref8.options;
313845
+ options = _ref8.options; // const { optionOnly, options } = item['componentProps'] || {}
313846
+
313815
313847
 
313816
313848
  if (optionOnly && options) {
313817
313849
  var dataIndex = item.dataIndex;
@@ -313823,6 +313855,13 @@
313823
313855
  disabled: !!dataIndexData.includes(o === null || o === void 0 ? void 0 : o.value)
313824
313856
  });
313825
313857
  });
313858
+
313859
+ if (lodash.isFunction(item.componentProps)) {
313860
+ return _objectSpread(_objectSpread({}, item), {}, {
313861
+ newOptions: newOptions
313862
+ });
313863
+ }
313864
+
313826
313865
  return _objectSpread(_objectSpread({}, item), {}, {
313827
313866
  componentProps: _objectSpread(_objectSpread({}, item['componentProps']), {}, {
313828
313867
  options: newOptions
@@ -313865,7 +313904,7 @@
313865
313904
  options: Array.isArray(useQuickOpetate) ? useQuickOpetate : ['add', 'delete']
313866
313905
  }
313867
313906
  } : null]).filter(function (item) {
313868
- return item;
313907
+ return item && item.show !== false;
313869
313908
  });
313870
313909
  localColumns = localColumns.map(function (item, index) {
313871
313910
  return _objectSpread(_objectSpread({}, item), {}, {
@@ -317205,7 +317244,8 @@
317205
317244
  className: 'lm_tree_select',
317206
317245
  value: resetValue,
317207
317246
  size: mergeSize,
317208
- disabled: mergedDisabled
317247
+ disabled: mergedDisabled,
317248
+ treeData: treeData
317209
317249
  }, resetProps), children);
317210
317250
  });
317211
317251
  var LMTreeSelect = CLMTreeSelect;