linkmore-design 1.1.23 → 1.1.24

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
@@ -313204,7 +313204,17 @@
313204
313204
  };
313205
313205
 
313206
313206
  var Control = function Control(con) {
313207
+ var _col$newOptions;
313208
+
313209
+ // const resultComponentProps = isFunction(componentProps) ? componentProps?.(record, col) : componentProps
313207
313210
  var resultComponentProps = lodash.isFunction(componentProps) ? componentProps === null || componentProps === void 0 ? void 0 : componentProps(record, col) : componentProps;
313211
+
313212
+ 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)) {
313213
+ resultComponentProps = _objectSpread(_objectSpread({}, resultComponentProps), {}, {
313214
+ options: col === null || col === void 0 ? void 0 : col.newOptions
313215
+ });
313216
+ }
313217
+
313208
313218
  var clearAttrComponentProps = lodash.omit(resultComponentProps, ['optionOnly', 'isOnlyValue']);
313209
313219
 
313210
313220
  switch (con) {
@@ -313340,7 +313350,8 @@
313340
313350
 
313341
313351
  case 'render':
313342
313352
  {
313343
- var render = resultComponentProps.render;
313353
+ var _resultComponentProps = resultComponentProps,
313354
+ render = _resultComponentProps.render;
313344
313355
  var fromData = form.getFieldsValue();
313345
313356
  return render === null || render === void 0 ? void 0 : render(_objectSpread(_objectSpread({}, !isObjEmpty(fromData) ? _objectSpread(_objectSpread({}, record), {}, _defineProperty$1({}, dataIndex, fromData[dataIndex])) : record), {}, {
313346
313357
  onChange: save
@@ -313791,10 +313802,12 @@
313791
313802
 
313792
313803
 
313793
313804
  var hasDisableOptions = React.useMemo(function () {
313805
+ // const hasOnlyOptionsDatas = columns.filter(item => item?.['componentProps']?.optionOnly)
313794
313806
  var hasOnlyOptionsDatas = columns.filter(function (item) {
313795
313807
  var _item$componentProps;
313796
313808
 
313797
- return item === null || item === void 0 ? void 0 : (_item$componentProps = item['componentProps']) === null || _item$componentProps === void 0 ? void 0 : _item$componentProps.optionOnly;
313809
+ 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;
313810
+ return resultComponentProps === null || resultComponentProps === void 0 ? void 0 : resultComponentProps.optionOnly;
313798
313811
  });
313799
313812
 
313800
313813
  if (hasOnlyOptionsDatas.length) {
@@ -313809,9 +313822,14 @@
313809
313822
 
313810
313823
  var DisableOptions = React.useMemo(function () {
313811
313824
  var newColumns = columns === null || columns === void 0 ? void 0 : columns.map(function (item) {
313812
- var _ref8 = item['componentProps'] || {},
313825
+ var _item$componentProps2;
313826
+
313827
+ 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;
313828
+
313829
+ var _ref8 = resultComponentProps || {},
313813
313830
  optionOnly = _ref8.optionOnly,
313814
- options = _ref8.options;
313831
+ options = _ref8.options; // const { optionOnly, options } = item['componentProps'] || {}
313832
+
313815
313833
 
313816
313834
  if (optionOnly && options) {
313817
313835
  var dataIndex = item.dataIndex;
@@ -313823,6 +313841,13 @@
313823
313841
  disabled: !!dataIndexData.includes(o === null || o === void 0 ? void 0 : o.value)
313824
313842
  });
313825
313843
  });
313844
+
313845
+ if (lodash.isFunction(item.componentProps)) {
313846
+ return _objectSpread(_objectSpread({}, item), {}, {
313847
+ newOptions: newOptions
313848
+ });
313849
+ }
313850
+
313826
313851
  return _objectSpread(_objectSpread({}, item), {}, {
313827
313852
  componentProps: _objectSpread(_objectSpread({}, item['componentProps']), {}, {
313828
313853
  options: newOptions
@@ -317205,7 +317230,8 @@
317205
317230
  className: 'lm_tree_select',
317206
317231
  value: resetValue,
317207
317232
  size: mergeSize,
317208
- disabled: mergedDisabled
317233
+ disabled: mergedDisabled,
317234
+ treeData: treeData
317209
317235
  }, resetProps), children);
317210
317236
  });
317211
317237
  var LMTreeSelect = CLMTreeSelect;