@luck-design-biz/luckda 0.0.25-1 → 0.0.25-3

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 (215) hide show
  1. package/es/locales/zh-CN.js +9 -0
  2. package/es/lowcode/constants/api-url.js +184 -100
  3. package/es/lowcode/constants/index.js +2 -1
  4. package/es/lowcode/engine/meta/box.props.default.json +1 -1
  5. package/es/lowcode/engine/meta/box.props.json +1 -1
  6. package/es/lowcode/engine/meta/button.props.json +1 -1
  7. package/es/lowcode/engine/meta/cardlist.props.json +1 -1
  8. package/es/lowcode/engine/meta/components-list.json +1 -1
  9. package/es/lowcode/engine/meta/dialog.props.json +1 -1
  10. package/es/lowcode/engine/meta/drawer.props.json +1 -1
  11. package/es/lowcode/engine/meta/form.props.default.json +4 -5
  12. package/es/lowcode/engine/meta/form.props.json +33 -30
  13. package/es/lowcode/engine/meta/image.props.json +2 -2
  14. package/es/lowcode/engine/meta/imex.props.json +1 -1
  15. package/es/lowcode/engine/meta/link.props.json +1 -1
  16. package/es/lowcode/engine/meta/section.props.default.json +4 -6
  17. package/es/lowcode/engine/meta/section.props.json +52 -49
  18. package/es/lowcode/engine/meta/text.props.json +2 -2
  19. package/es/lowcode/engine/meta/tree.props.json +2 -2
  20. package/es/lowcode/engine/provider/ContextProvider/index.js +10 -2
  21. package/es/lowcode/engine/provider/RemoteSourceProvider.js +28 -15
  22. package/es/lowcode/engine/tools/helper.js +23 -21
  23. package/es/lowcode/engine/tools/useCanvasRender.js +5 -7
  24. package/es/lowcode/engine/tools/usePromiseState.js +23 -14
  25. package/es/lowcode/painter/Design.js +34 -2
  26. package/es/lowcode/painter/DesignOperator.js +6 -8
  27. package/es/lowcode/painter/DesignToolbar.js +258 -21
  28. package/es/lowcode/painter/Panel.js +8 -9
  29. package/es/lowcode/painter/components/AttrsPanel.js +6 -6
  30. package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +5 -2
  31. package/es/lowcode/painter/components/ListEditor.js +8 -2
  32. package/es/lowcode/painter/components/field-setting/BatchSetting.js +13 -3
  33. package/es/lowcode/painter/components/field-setting/SettingUI.js +26 -7
  34. package/es/lowcode/painter/components/field-setting/index.js +18 -8
  35. package/es/lowcode/painter/index.js +1 -28
  36. package/es/lowcode/painter/panel-section/ActionsColumnWidth.js +25 -0
  37. package/es/lowcode/painter/panel-section/BlockEditor/index.js +7 -4
  38. package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +4 -3
  39. package/es/lowcode/painter/panel-section/BlocksEditor/index.js +48 -15
  40. package/es/lowcode/painter/panel-section/FieldsSetting.js +48 -27
  41. package/es/lowcode/painter/panel-section/I18nInput.js +20 -0
  42. package/es/lowcode/painter/style/design.less +6 -2
  43. package/es/lowcode/painter/style/list-editor.less +36 -0
  44. package/es/lowcode/preview/index.js +17 -4
  45. package/es/lowcode/view/lc-components/Box/FunctionLive.js +1 -0
  46. package/es/lowcode/view/lc-components/Box/FunctionPreview.js +1 -0
  47. package/es/lowcode/view/lc-components/Box/meta.json +1 -1
  48. package/es/lowcode/view/lc-components/Button/meta.json +1 -1
  49. package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +1 -0
  50. package/es/lowcode/view/lc-components/CardList/FunctionLive.js +1 -0
  51. package/es/lowcode/view/lc-components/CardList/FunctionPreview.js +1 -0
  52. package/es/lowcode/view/lc-components/CardList/meta.json +1 -1
  53. package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -4
  54. package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +1 -0
  55. package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js +1 -0
  56. package/es/lowcode/view/lc-components/Dialog/meta.json +1 -1
  57. package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +1 -0
  58. package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +1 -0
  59. package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js +1 -0
  60. package/es/lowcode/view/lc-components/Drawer/meta.json +1 -1
  61. package/es/lowcode/view/lc-components/Form/FunctionDesign.js +66 -4
  62. package/es/lowcode/view/lc-components/Form/FunctionLive.js +1 -0
  63. package/es/lowcode/view/lc-components/Form/FunctionPreview.js +1 -0
  64. package/es/lowcode/view/lc-components/Form/index.js +232 -61
  65. package/es/lowcode/view/lc-components/Form/meta.json +33 -30
  66. package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +1 -0
  67. package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +1 -0
  68. package/es/lowcode/view/lc-components/Iframe/FunctionPreview.js +1 -0
  69. package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +1 -0
  70. package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +1 -0
  71. package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js +1 -0
  72. package/es/lowcode/view/lc-components/ImEx/meta.json +1 -1
  73. package/es/lowcode/view/lc-components/Image/FunctionDesign.js +1 -0
  74. package/es/lowcode/view/lc-components/Image/FunctionLive.js +1 -0
  75. package/es/lowcode/view/lc-components/Image/FunctionPreview.js +1 -0
  76. package/es/lowcode/view/lc-components/Image/meta.json +2 -2
  77. package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +1 -0
  78. package/es/lowcode/view/lc-components/JSX/FunctionLive.js +1 -0
  79. package/es/lowcode/view/lc-components/JSX/FunctionPreview.js +1 -0
  80. package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +6 -7
  81. package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +1 -0
  82. package/es/lowcode/view/lc-components/Link/FunctionDesign.js +1 -0
  83. package/es/lowcode/view/lc-components/Link/FunctionLive.js +1 -0
  84. package/es/lowcode/view/lc-components/Link/FunctionPreview.js +1 -0
  85. package/es/lowcode/view/lc-components/Link/meta.json +1 -1
  86. package/es/lowcode/view/lc-components/Section/FunctionDesign.js +31 -2
  87. package/es/lowcode/view/lc-components/Section/FunctionLive.js +1 -0
  88. package/es/lowcode/view/lc-components/Section/FunctionPreview.js +1 -0
  89. package/es/lowcode/view/lc-components/Section/index.js +114 -24
  90. package/es/lowcode/view/lc-components/Section/index.less +7 -0
  91. package/es/lowcode/view/lc-components/Section/meta.json +48 -49
  92. package/es/lowcode/view/lc-components/Split/FunctionDesign.js +4 -6
  93. package/es/lowcode/view/lc-components/Split/FunctionLive.js +1 -0
  94. package/es/lowcode/view/lc-components/Split/FunctionPreview.js +1 -0
  95. package/es/lowcode/view/lc-components/Split/index.js +4 -4
  96. package/es/lowcode/view/lc-components/Table/FunctionLive.js +1 -0
  97. package/es/lowcode/view/lc-components/Table/FunctionPreview.js +1 -0
  98. package/es/lowcode/view/lc-components/Table/index.js +7 -6
  99. package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +2 -4
  100. package/es/lowcode/view/lc-components/Text/FunctionDesign.js +1 -0
  101. package/es/lowcode/view/lc-components/Text/FunctionLive.js +1 -0
  102. package/es/lowcode/view/lc-components/Text/FunctionPreview.js +1 -0
  103. package/es/lowcode/view/lc-components/Text/meta.json +2 -2
  104. package/es/lowcode/view/lc-components/Tree/FunctionLive.js +1 -0
  105. package/es/lowcode/view/lc-components/Tree/meta.json +2 -2
  106. package/es/upload/Form/gridForm.js +7 -3
  107. package/lib/locales/zh-CN.js +9 -0
  108. package/lib/lowcode/constants/api-url.js +183 -100
  109. package/lib/lowcode/constants/index.js +3 -2
  110. package/lib/lowcode/engine/meta/box.props.default.json +1 -1
  111. package/lib/lowcode/engine/meta/box.props.json +1 -1
  112. package/lib/lowcode/engine/meta/button.props.json +1 -1
  113. package/lib/lowcode/engine/meta/cardlist.props.json +1 -1
  114. package/lib/lowcode/engine/meta/components-list.json +1 -1
  115. package/lib/lowcode/engine/meta/dialog.props.json +1 -1
  116. package/lib/lowcode/engine/meta/drawer.props.json +1 -1
  117. package/lib/lowcode/engine/meta/form.props.default.json +4 -5
  118. package/lib/lowcode/engine/meta/form.props.json +33 -30
  119. package/lib/lowcode/engine/meta/image.props.json +2 -2
  120. package/lib/lowcode/engine/meta/imex.props.json +1 -1
  121. package/lib/lowcode/engine/meta/link.props.json +1 -1
  122. package/lib/lowcode/engine/meta/section.props.default.json +4 -6
  123. package/lib/lowcode/engine/meta/section.props.json +52 -49
  124. package/lib/lowcode/engine/meta/text.props.json +2 -2
  125. package/lib/lowcode/engine/meta/tree.props.json +2 -2
  126. package/lib/lowcode/engine/provider/ContextProvider/index.js +10 -2
  127. package/lib/lowcode/engine/provider/RemoteSourceProvider.js +24 -11
  128. package/lib/lowcode/engine/tools/helper.js +23 -21
  129. package/lib/lowcode/engine/tools/useCanvasRender.js +3 -5
  130. package/lib/lowcode/engine/tools/usePromiseState.js +22 -14
  131. package/lib/lowcode/painter/Design.js +32 -0
  132. package/lib/lowcode/painter/DesignOperator.js +5 -7
  133. package/lib/lowcode/painter/DesignToolbar.js +256 -19
  134. package/lib/lowcode/painter/Panel.js +7 -8
  135. package/lib/lowcode/painter/components/AttrsPanel.js +6 -6
  136. package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +5 -2
  137. package/lib/lowcode/painter/components/ListEditor.js +8 -2
  138. package/lib/lowcode/painter/components/field-setting/BatchSetting.js +13 -3
  139. package/lib/lowcode/painter/components/field-setting/SettingUI.js +26 -7
  140. package/lib/lowcode/painter/components/field-setting/index.js +18 -8
  141. package/lib/lowcode/painter/index.js +1 -30
  142. package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js +32 -0
  143. package/lib/lowcode/painter/panel-section/BlockEditor/index.js +7 -4
  144. package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +4 -3
  145. package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +47 -13
  146. package/lib/lowcode/painter/panel-section/FieldsSetting.js +46 -25
  147. package/lib/lowcode/painter/panel-section/I18nInput.js +27 -0
  148. package/lib/lowcode/painter/style/design.less +6 -2
  149. package/lib/lowcode/painter/style/list-editor.less +36 -0
  150. package/lib/lowcode/preview/index.js +18 -4
  151. package/lib/lowcode/view/lc-components/Box/FunctionLive.js +2 -1
  152. package/lib/lowcode/view/lc-components/Box/FunctionPreview.js +2 -1
  153. package/lib/lowcode/view/lc-components/Box/meta.json +1 -1
  154. package/lib/lowcode/view/lc-components/Button/meta.json +1 -1
  155. package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +2 -1
  156. package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +2 -1
  157. package/lib/lowcode/view/lc-components/CardList/FunctionPreview.js +2 -1
  158. package/lib/lowcode/view/lc-components/CardList/meta.json +1 -1
  159. package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -4
  160. package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +2 -1
  161. package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js +2 -1
  162. package/lib/lowcode/view/lc-components/Dialog/meta.json +1 -1
  163. package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +2 -1
  164. package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +2 -1
  165. package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js +2 -1
  166. package/lib/lowcode/view/lc-components/Drawer/meta.json +1 -1
  167. package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +64 -2
  168. package/lib/lowcode/view/lc-components/Form/FunctionLive.js +2 -1
  169. package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +2 -1
  170. package/lib/lowcode/view/lc-components/Form/index.js +230 -59
  171. package/lib/lowcode/view/lc-components/Form/meta.json +33 -30
  172. package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +2 -1
  173. package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +2 -1
  174. package/lib/lowcode/view/lc-components/Iframe/FunctionPreview.js +2 -1
  175. package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +2 -1
  176. package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +2 -1
  177. package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js +2 -1
  178. package/lib/lowcode/view/lc-components/ImEx/meta.json +1 -1
  179. package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +2 -1
  180. package/lib/lowcode/view/lc-components/Image/FunctionLive.js +2 -1
  181. package/lib/lowcode/view/lc-components/Image/FunctionPreview.js +2 -1
  182. package/lib/lowcode/view/lc-components/Image/meta.json +2 -2
  183. package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +2 -1
  184. package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +2 -1
  185. package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js +2 -1
  186. package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +5 -6
  187. package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +2 -1
  188. package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +2 -1
  189. package/lib/lowcode/view/lc-components/Link/FunctionLive.js +2 -1
  190. package/lib/lowcode/view/lc-components/Link/FunctionPreview.js +2 -1
  191. package/lib/lowcode/view/lc-components/Link/meta.json +1 -1
  192. package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +31 -2
  193. package/lib/lowcode/view/lc-components/Section/FunctionLive.js +2 -1
  194. package/lib/lowcode/view/lc-components/Section/FunctionPreview.js +2 -1
  195. package/lib/lowcode/view/lc-components/Section/index.js +113 -23
  196. package/lib/lowcode/view/lc-components/Section/index.less +7 -0
  197. package/lib/lowcode/view/lc-components/Section/meta.json +48 -49
  198. package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +5 -7
  199. package/lib/lowcode/view/lc-components/Split/FunctionLive.js +2 -1
  200. package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +2 -1
  201. package/lib/lowcode/view/lc-components/Split/index.js +4 -4
  202. package/lib/lowcode/view/lc-components/Table/FunctionLive.js +2 -1
  203. package/lib/lowcode/view/lc-components/Table/FunctionPreview.js +2 -1
  204. package/lib/lowcode/view/lc-components/Table/index.js +7 -6
  205. package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +4 -6
  206. package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +2 -1
  207. package/lib/lowcode/view/lc-components/Text/FunctionLive.js +2 -1
  208. package/lib/lowcode/view/lc-components/Text/FunctionPreview.js +2 -1
  209. package/lib/lowcode/view/lc-components/Text/meta.json +2 -2
  210. package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +2 -1
  211. package/lib/lowcode/view/lc-components/Tree/meta.json +2 -2
  212. package/lib/upload/Form/gridForm.js +7 -3
  213. package/package.json +1 -1
  214. package/es/lowcode/painter/services/toolbar.js +0 -25
  215. package/lib/lowcode/painter/services/toolbar.js +0 -32
@@ -6,11 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
+ var _react = _interopRequireDefault(require("react"));
9
10
  var _index = _interopRequireDefault(require("./index"));
10
11
  var _excluded = ["children"];
11
12
  var FunctionLive = function FunctionLive(_ref) {
12
13
  var children = _ref.children,
13
14
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
14
- return /*#__PURE__*/React.createElement(_index.default, props, children);
15
+ return /*#__PURE__*/_react.default.createElement(_index.default, props, children);
15
16
  };
16
17
  var _default = exports.default = FunctionLive;
@@ -6,11 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
+ var _react = _interopRequireDefault(require("react"));
9
10
  var _index = _interopRequireDefault(require("./index"));
10
11
  var _excluded = ["children"];
11
12
  var FunctionPreview = function FunctionPreview(_ref) {
12
13
  var children = _ref.children,
13
14
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
14
- return /*#__PURE__*/React.createElement(_index.default, props, children);
15
+ return /*#__PURE__*/_react.default.createElement(_index.default, props, children);
15
16
  };
16
17
  var _default = exports.default = FunctionPreview;
@@ -171,7 +171,11 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
171
171
  };
172
172
  }, [bantchActions.todoList]);
173
173
  var _others = (0, _ahooks.useCreation)(function () {
174
- var temp = {};
174
+ var temp = {
175
+ defaultColDef: {
176
+ draggable: draggable
177
+ }
178
+ };
175
179
  if (!(0, _lodash.isNil)(formatDataSource)) {
176
180
  temp.formatDataSource = function (list, detail) {
177
181
  return (0, _helper.executeCode)(ctx, formatDataSource, ['list', 'detail'], list, detail);
@@ -200,7 +204,7 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
200
204
  temp.overModel = (0, _helper.executeCode)(ctx, modelParams);
201
205
  }
202
206
  return temp;
203
- }, [fields, formatDataSource, getDataPath, columnsRewrite, columnsReset, modelParams]);
207
+ }, [fields, formatDataSource, getDataPath, columnsRewrite, columnsReset, modelParams, draggable]);
204
208
  var renderFunctionArea = (0, _ahooks.useMemoizedFn)(function () {
205
209
  var _topActionGroup$todoL;
206
210
  return !!(topActionGroup !== null && topActionGroup !== void 0 && (_topActionGroup$todoL = topActionGroup.todoList) !== null && _topActionGroup$todoL !== void 0 && _topActionGroup$todoL.length) ? /*#__PURE__*/_react.default.createElement(_index.LDActions, (0, _extends2.default)({}, topActionGroup, {
@@ -317,10 +321,7 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
317
321
  renderIndex: renderIndex,
318
322
  suppressInit: !autoLoad,
319
323
  getRowStyle: _getRowStyle,
320
- suppressPreset: suppressPreset,
321
- defaultColDef: {
322
- draggable: draggable
323
- }
324
+ suppressPreset: suppressPreset
324
325
  }, _pagination, _actionsColumn, _rowSelection, _export, _batchActions, _others, {
325
326
  readFilter: _readFilter,
326
327
  renderFunctionArea: renderFunctionArea,
@@ -13,7 +13,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
13
13
  var _react = _interopRequireWildcard(require("react"));
14
14
  var _index = _interopRequireDefault(require("./index"));
15
15
  var _ahooks = require("ahooks");
16
- var _lodash = require("lodash");
17
16
  var _utils = require("@luck-design-biz/base/utils");
18
17
  var _ContextProvider = require("../../../engine/provider/ContextProvider");
19
18
  var _dataProcess = require("../../../engine/tools/dataProcess");
@@ -34,13 +33,12 @@ var FunctionDesign = function FunctionDesign(_ref) {
34
33
  var compId = _ref2.id,
35
34
  pageData = _ref2.pageData;
36
35
  if (compId !== id) return;
37
- var cloneData = (0, _lodash.cloneDeep)(pageData);
38
36
  var boxId = "box_".concat((0, _utils.suid)());
39
- (0, _dataProcess.add)(cloneData, id, boxId, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _boxPropsDefault.default), {}, {
37
+ (0, _dataProcess.add)(pageData, id, boxId, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _boxPropsDefault.default), {}, {
40
38
  buildIn: true,
41
39
  tabId: items[0].id
42
40
  }));
43
- setPageData(cloneData);
41
+ setPageData(pageData);
44
42
  }).watch();
45
43
  }, []);
46
44
  (0, _react.useEffect)(function () {
@@ -51,7 +49,7 @@ var FunctionDesign = function FunctionDesign(_ref) {
51
49
  oldValue = _ref3.oldValue;
52
50
  if (compId !== id || !newValue.hasOwnProperty('items')) return;
53
51
  if (newValue.items.length > oldValue.items.length) {
54
- var _differenceBy = (0, _lodash.differenceBy)(newValue.items, oldValue.items, 'id'),
52
+ var _differenceBy = differenceBy(newValue.items, oldValue.items, 'id'),
55
53
  _differenceBy2 = (0, _slicedToArray2.default)(_differenceBy, 1),
56
54
  newItem = _differenceBy2[0];
57
55
  var boxId = "box_".concat((0, _utils.suid)());
@@ -61,7 +59,7 @@ var FunctionDesign = function FunctionDesign(_ref) {
61
59
  }));
62
60
  setPageData(pageData);
63
61
  } else if (newValue.items.length < oldValue.items.length) {
64
- var _differenceBy3 = (0, _lodash.differenceBy)(oldValue.items, newValue.items, 'id'),
62
+ var _differenceBy3 = differenceBy(oldValue.items, newValue.items, 'id'),
65
63
  _differenceBy4 = (0, _slicedToArray2.default)(_differenceBy3, 1),
66
64
  removeItem = _differenceBy4[0];
67
65
  var _findNodeAndParent = (0, _dataProcess.findNodeAndParent)(id, pageData),
@@ -6,11 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
+ var _react = _interopRequireDefault(require("react"));
9
10
  var _index = _interopRequireDefault(require("./index"));
10
11
  var _excluded = ["children"];
11
12
  var FunctionDesign = function FunctionDesign(_ref) {
12
13
  var children = _ref.children,
13
14
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
14
- return /*#__PURE__*/React.createElement(_index.default, props, children);
15
+ return /*#__PURE__*/_react.default.createElement(_index.default, props, children);
15
16
  };
16
17
  var _default = exports.default = FunctionDesign;
@@ -6,11 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
+ var _react = _interopRequireDefault(require("react"));
9
10
  var _index = _interopRequireDefault(require("./index"));
10
11
  var _excluded = ["children"];
11
12
  var FunctionLive = function FunctionLive(_ref) {
12
13
  var children = _ref.children,
13
14
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
14
- return /*#__PURE__*/React.createElement(_index.default, props, children);
15
+ return /*#__PURE__*/_react.default.createElement(_index.default, props, children);
15
16
  };
16
17
  var _default = exports.default = FunctionLive;
@@ -6,11 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
+ var _react = _interopRequireDefault(require("react"));
9
10
  var _index = _interopRequireDefault(require("./index"));
10
11
  var _excluded = ["children"];
11
12
  var FunctionPreview = function FunctionPreview(_ref) {
12
13
  var children = _ref.children,
13
14
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
14
- return /*#__PURE__*/React.createElement(_index.default, props, children);
15
+ return /*#__PURE__*/_react.default.createElement(_index.default, props, children);
15
16
  };
16
17
  var _default = exports.default = FunctionPreview;
@@ -17,7 +17,7 @@
17
17
  "key": "content",
18
18
  "name": "内容",
19
19
  "desc": "文本内容设置",
20
- "type": "string"
20
+ "type": "_I18nInput"
21
21
  },
22
22
  {
23
23
  "key": "showTitle",
@@ -30,7 +30,7 @@
30
30
  "key": "title",
31
31
  "name": "自定义标题",
32
32
  "desc": "显示标题时配置。自定义标题内容",
33
- "type": "string"
33
+ "type": "_I18nInput"
34
34
  },
35
35
  {
36
36
  "key": "maxLine",
@@ -6,11 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
+ var _react = _interopRequireDefault(require("react"));
9
10
  var _index = _interopRequireDefault(require("./index"));
10
11
  var _excluded = ["children"];
11
12
  var FunctionLive = function FunctionLive(_ref) {
12
13
  var children = _ref.children,
13
14
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
14
- return /*#__PURE__*/React.createElement(_index.default, props, children);
15
+ return /*#__PURE__*/_react.default.createElement(_index.default, props, children);
15
16
  };
16
17
  var _default = exports.default = FunctionLive;
@@ -23,7 +23,7 @@
23
23
  "key": "title",
24
24
  "name": "标题",
25
25
  "desc": "头部标题",
26
- "type": "string"
26
+ "type": "_I18nInput"
27
27
  },
28
28
  {
29
29
  "key": "readOnly",
@@ -81,7 +81,7 @@
81
81
  "key": "treeNodeTitle",
82
82
  "name": "展示字段",
83
83
  "desc": "展示字段的key",
84
- "type": "string",
84
+ "type": "_I18nInput",
85
85
  "default": "sname"
86
86
  },
87
87
  {
@@ -278,9 +278,6 @@ var UploadGridForm = function UploadGridForm(_ref) {
278
278
 
279
279
  // 预览
280
280
  var resetActionsColumn = (0, _ahooks.useMemoizedFn)(function (data, index, _actions, params) {
281
- if (resetActions) {
282
- return resetActions(data, index, actionList, params);
283
- }
284
281
  var actions = _actions.filter(function (item) {
285
282
  return item.wanted !== 'update' && item.wanted !== 'add';
286
283
  });
@@ -321,6 +318,9 @@ var UploadGridForm = function UploadGridForm(_ref) {
321
318
  });
322
319
  }
323
320
  });
321
+ if (resetActions) {
322
+ return resetActions(data, index, actions, params);
323
+ }
324
324
  return actions;
325
325
  });
326
326
  var handleBatchOperationsClick = (0, _ahooks.useMemoizedFn)(function (key, selectedRows, cb) {
@@ -388,6 +388,10 @@ var UploadGridForm = function UploadGridForm(_ref) {
388
388
  supportUploadTypes: supportUploadTypes,
389
389
  beforeUpload: _beforeUpload
390
390
  });
391
+ },
392
+ onChange: function onChange(e) {
393
+ handleUploadChange(e);
394
+ rest.onChange && rest.onChange(e);
391
395
  }
392
396
  })
393
397
  }), /*#__PURE__*/_react.default.createElement(_luckDesign.BasicFormItem, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luck-design-biz/luckda",
3
- "version": "0.0.25-1",
3
+ "version": "0.0.25-3",
4
4
  "description": "前端配置管理中心业务组件库",
5
5
  "scripts": {
6
6
  "start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",
@@ -1,25 +0,0 @@
1
- import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
- import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
- import { stringify } from 'qs';
4
- import { request } from '@luck-design-biz/base/utils';
5
- import api from "@/services/ApiConfig";
6
- export function updatePageData(_x, _x2) {
7
- return _updatePageData.apply(this, arguments);
8
- }
9
- function _updatePageData() {
10
- _updatePageData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params, body) {
11
- return _regeneratorRuntime().wrap(function _callee$(_context) {
12
- while (1) switch (_context.prev = _context.next) {
13
- case 0:
14
- return _context.abrupt("return", request("".concat(api.BASE_HOST, "/page/data/update?").concat(stringify(params)), {
15
- method: 'POST',
16
- body: body
17
- }));
18
- case 1:
19
- case "end":
20
- return _context.stop();
21
- }
22
- }, _callee);
23
- }));
24
- return _updatePageData.apply(this, arguments);
25
- }
@@ -1,32 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.updatePageData = updatePageData;
8
- var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
9
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
- var _qs = require("qs");
11
- var _utils = require("@luck-design-biz/base/utils");
12
- var _ApiConfig = _interopRequireDefault(require("@/services/ApiConfig"));
13
- function updatePageData(_x, _x2) {
14
- return _updatePageData.apply(this, arguments);
15
- }
16
- function _updatePageData() {
17
- _updatePageData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(params, body) {
18
- return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
19
- while (1) switch (_context.prev = _context.next) {
20
- case 0:
21
- return _context.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.BASE_HOST, "/page/data/update?").concat((0, _qs.stringify)(params)), {
22
- method: 'POST',
23
- body: body
24
- }));
25
- case 1:
26
- case "end":
27
- return _context.stop();
28
- }
29
- }, _callee);
30
- }));
31
- return _updatePageData.apply(this, arguments);
32
- }