@luck-design-biz/luckda 0.0.25-13 → 0.0.25-15

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 (45) hide show
  1. package/es/components/LdFormList/index.js +7 -5
  2. package/es/locales/zh-CN.js +0 -1
  3. package/es/lowcode/engine/meta/components-list.json +2 -2
  4. package/es/lowcode/engine/meta/form.props.default.json +2 -2
  5. package/es/lowcode/engine/meta/form.props.json +2 -2
  6. package/es/lowcode/engine/meta/js-editor/auto-complete.json +58 -4
  7. package/es/lowcode/engine/meta/table.props.default.json +2 -1
  8. package/es/lowcode/engine/meta/table.props.json +2 -1
  9. package/es/lowcode/engine/provider/ContextProvider/index.js +59 -16
  10. package/es/lowcode/painter/DesignToolbar.js +3 -4
  11. package/es/lowcode/painter/components/PreviewIframe.js +55 -0
  12. package/es/lowcode/painter/panel-section/DataSetSelector.js +1 -1
  13. package/es/lowcode/painter/panel-section/ImpExp.js +64 -55
  14. package/es/lowcode/painter/panel-section/ImpExpAlone.js +38 -22
  15. package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +18 -1
  16. package/es/lowcode/view/lc-components/Box/FunctionDesign.js +1 -1
  17. package/es/lowcode/view/lc-components/Form/index.js +69 -65
  18. package/es/lowcode/view/lc-components/Form/meta.json +2 -2
  19. package/es/lowcode/view/lc-components/PageLayout/index.js +4 -2
  20. package/es/lowcode/view/lc-components/Table/components/TopImex.js +4 -1
  21. package/es/lowcode/view/lc-components/Table/index.js +158 -159
  22. package/es/lowcode/view/lc-components/Table/meta.json +56 -16
  23. package/lib/components/LdFormList/index.js +7 -5
  24. package/lib/locales/zh-CN.js +0 -1
  25. package/lib/lowcode/engine/meta/components-list.json +2 -2
  26. package/lib/lowcode/engine/meta/form.props.default.json +2 -2
  27. package/lib/lowcode/engine/meta/form.props.json +2 -2
  28. package/lib/lowcode/engine/meta/js-editor/auto-complete.json +58 -4
  29. package/lib/lowcode/engine/meta/table.props.default.json +2 -1
  30. package/lib/lowcode/engine/meta/table.props.json +2 -1
  31. package/lib/lowcode/engine/provider/ContextProvider/index.js +59 -16
  32. package/lib/lowcode/painter/DesignToolbar.js +3 -4
  33. package/lib/lowcode/painter/components/PreviewIframe.js +63 -0
  34. package/lib/lowcode/painter/panel-section/DataSetSelector.js +1 -1
  35. package/lib/lowcode/painter/panel-section/ImpExp.js +63 -54
  36. package/lib/lowcode/painter/panel-section/ImpExpAlone.js +37 -21
  37. package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +18 -1
  38. package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +1 -1
  39. package/lib/lowcode/view/lc-components/Form/index.js +69 -65
  40. package/lib/lowcode/view/lc-components/Form/meta.json +2 -2
  41. package/lib/lowcode/view/lc-components/PageLayout/index.js +4 -2
  42. package/lib/lowcode/view/lc-components/Table/components/TopImex.js +4 -1
  43. package/lib/lowcode/view/lc-components/Table/index.js +156 -157
  44. package/lib/lowcode/view/lc-components/Table/meta.json +56 -16
  45. package/package.json +5 -6
@@ -22,11 +22,12 @@ var _ContextProvider = require("../../../engine/provider/ContextProvider");
22
22
  var _Wrapper = _interopRequireDefault(require("../Wrapper"));
23
23
  var _index = require("../../../../index");
24
24
  var _TopFilter = _interopRequireDefault(require("./components/TopFilter"));
25
+ var _TopImex = require("./components/TopImex");
25
26
  var _helper = require("../../../engine/tools/helper");
26
27
  var _tablePropsDefault = _interopRequireDefault(require("../../../engine/meta/table.props.default.json"));
27
28
  var _constants = require("../../../constants");
28
29
  var _apiUrl2 = require("../../../constants/api-url");
29
- var _TopImex = require("./components/TopImex");
30
+ var moduleCode = (0, _helper.getLDMetaAttr)('moduleCode');
30
31
  var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
31
32
  var id = _ref.id,
32
33
  className = _ref.className,
@@ -69,8 +70,6 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
69
70
  _ref$autoRowClick = _ref.autoRowClick,
70
71
  autoRowClick = _ref$autoRowClick === void 0 ? true : _ref$autoRowClick;
71
72
  var ctx = (0, _ContextProvider.useContext)();
72
- var _useRemoteSource = (0, _ContextProvider.useRemoteSource)(),
73
- module = _useRemoteSource.module;
74
73
  var apiRef = (0, _react.useRef)();
75
74
  var wrapperRef = (0, _react.useRef)();
76
75
  var instanceRef = (0, _react.useRef)();
@@ -80,9 +79,9 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
80
79
  setClickedRow = _useSetState2[1];
81
80
  (0, _react.useImperativeHandle)(apiRef, function () {
82
81
  return {
83
- /**
84
- * 获取表格实例
85
- * @method
82
+ /**
83
+ * 获取表格实例
84
+ * @method
86
85
  */
87
86
  getInstance: function getInstance() {
88
87
  return instanceRef.current;
@@ -244,7 +243,7 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
244
243
  behaviorKey = impexp.export;
245
244
  strategy = 'behavior';
246
245
  _exportExcelParams = {
247
- moduleCode: module.moduleCode,
246
+ moduleCode: moduleCode,
248
247
  behaviorKey: behaviorKey,
249
248
  reportType: 'export'
250
249
  };
@@ -257,7 +256,7 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
257
256
  fecthExcelState({
258
257
  strategy: strategy,
259
258
  batchNo: exportExcelResponse.data,
260
- moduleCode: module.moduleCode,
259
+ moduleCode: moduleCode,
261
260
  behaviorKey: behaviorKey
262
261
  }, procress, resolve, reject);
263
262
  } else {
@@ -292,7 +291,7 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
292
291
  reqBody: null
293
292
  };
294
293
  _exportExcelParams2 = (0, _objectSpread2.default)({
295
- moduleCode: module.moduleCode,
294
+ moduleCode: moduleCode,
296
295
  reportType: 'export'
297
296
  }, defaultExcelParams);
298
297
  _exportExcelPrefix2 = "/".concat(_strategy);
@@ -304,7 +303,7 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
304
303
  fecthExcelState({
305
304
  strategy: _strategy,
306
305
  batchNo: _exportExcelResponse.data,
307
- moduleCode: module.moduleCode
306
+ moduleCode: moduleCode
308
307
  }, procress, resolve, reject);
309
308
  } else {
310
309
  reject();
@@ -386,7 +385,7 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
386
385
  }
387
386
  return temp;
388
387
  }, [fields, formatDataSource, getDataPath, columnsRewrite, columnsReset, modelParams, draggable]);
389
- var renderFunctionArea = (0, _ahooks.useMemoizedFn)(function () {
388
+ var renderFunctionArea = (0, _react.useCallback)(function () {
390
389
  var _topActionGroup$todoL;
391
390
  var resultComp = [];
392
391
  if (!!(topActionGroup !== null && topActionGroup !== void 0 && (_topActionGroup$todoL = topActionGroup.todoList) !== null && _topActionGroup$todoL !== void 0 && _topActionGroup$todoL.length)) {
@@ -404,24 +403,24 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
404
403
  apiUrl = _getProps2.apiUrl;
405
404
  resultComp.push( /*#__PURE__*/_react.default.createElement(_TopImex.TopUpload, {
406
405
  apiUrl: apiUrl,
407
- moduleCode: module.moduleCode,
406
+ moduleCode: moduleCode,
408
407
  options: impexp,
409
408
  tableRef: instanceRef.current || ref.current
410
409
  }));
411
410
  }
412
- if (impexp.export) {
411
+ if ((0, _lodash.isString)(impexp.export) || impexp.export) {
413
412
  var _ref8;
414
413
  var _getProps3 = (_ref8 = instanceRef.current || ref.current) === null || _ref8 === void 0 ? void 0 : _ref8.getProps(),
415
414
  _apiUrl = _getProps3.apiUrl;
416
415
  resultComp.push( /*#__PURE__*/_react.default.createElement(_TopImex.TopExport, {
417
416
  apiUrl: _apiUrl,
418
- moduleCode: module.moduleCode,
417
+ moduleCode: moduleCode,
419
418
  options: impexp,
420
419
  tableRef: instanceRef.current || ref.current
421
420
  }));
422
421
  }
423
422
  return resultComp;
424
- });
423
+ }, [topActionGroup, impexp]);
425
424
  var renderFilterArea = (0, _ahooks.useMemoizedFn)(function () {
426
425
  return topFilter ? /*#__PURE__*/_react.default.createElement(_TopFilter.default, {
427
426
  filter: topFilter,
@@ -487,7 +486,7 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
487
486
  category: 'page-action',
488
487
  code: "function onRowDragged(toId, fromId, params){return {data: { toId, fromId }};}",
489
488
  code1: JSON.stringify({
490
- moduleCode: module.moduleCode,
489
+ moduleCode: moduleCode,
491
490
  datasetCode: dataset.code,
492
491
  data: {
493
492
  toId: toId,
@@ -573,135 +572,135 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
573
572
  })));
574
573
  });
575
574
  LCTable.propTypes = {
576
- /**
577
- * @name 唯一标识
578
- * @type string
579
- * @disabled true
575
+ /**
576
+ * @name 唯一标识
577
+ * @type string
578
+ * @disabled true
580
579
  */
581
580
  id: _propTypes.default.string.isRequired,
582
- /**
583
- * @name 数据集
584
- * @type _DataSetSelector
581
+ /**
582
+ * @name 数据集
583
+ * @type _DataSetSelector
585
584
  */
586
585
  dataset: _propTypes.default.shape({
587
586
  code: _propTypes.default.string.isRequired,
588
587
  uid: _propTypes.default.string.isRequired
589
588
  }),
590
- /**
591
- * @name 自动加载
592
- * @desc 首次数据是否自动加载,若存在必须带搜索条件再加载的情况,需要关闭
593
- * @type switch
594
- * @default true
589
+ /**
590
+ * @name 自动加载
591
+ * @desc 首次数据是否自动加载,若存在必须带搜索条件再加载的情况,需要关闭
592
+ * @type switch
593
+ * @default true
595
594
  */
596
595
  autoLoad: _propTypes.default.bool,
597
- /**
598
- * @name 只读
599
- * @type switch
600
- * @default false
596
+ /**
597
+ * @name 只读
598
+ * @type switch
599
+ * @default false
601
600
  */
602
601
  readOnly: _propTypes.default.bool,
603
- /**
604
- * @name 关闭预设
605
- * @type switch
606
- * @default false
602
+ /**
603
+ * @name 关闭预设
604
+ * @type switch
605
+ * @default false
607
606
  */
608
607
  suppressPreset: _propTypes.default.bool,
609
- /**
610
- * @name 宽度
611
- * @type _WidthHeight
612
- * @default 100%
613
- * @group styleSetting
608
+ /**
609
+ * @name 宽度
610
+ * @type _WidthHeight
611
+ * @default 100%
612
+ * @group styleSetting
614
613
  */
615
614
  width: _propTypes.default.string,
616
- /**
617
- * @name 高度
618
- * @type _WidthHeight
619
- * @default 100%
620
- * @group styleSetting
615
+ /**
616
+ * @name 高度
617
+ * @type _WidthHeight
618
+ * @default 100%
619
+ * @group styleSetting
621
620
  */
622
621
  height: _propTypes.default.string,
623
- /**
624
- * @name 边框线
625
- * @type switch
626
- * @default false
627
- * @group styleSetting
622
+ /**
623
+ * @name 边框线
624
+ * @type switch
625
+ * @default false
626
+ * @group styleSetting
628
627
  */
629
628
  border: _propTypes.default.bool,
630
- /**
631
- * @name 斑马纹
632
- * @type switch
633
- * @default false
634
- * @group styleSetting
629
+ /**
630
+ * @name 斑马纹
631
+ * @type switch
632
+ * @default false
633
+ * @group styleSetting
635
634
  */
636
635
  zebra: _propTypes.default.oneOfType[(_propTypes.default.bool, _propTypes.default.string)],
637
- /**
638
- * @name 开启分页
639
- * @type switch
640
- * @default true
641
- * @group paginationSetting
636
+ /**
637
+ * @name 开启分页
638
+ * @type switch
639
+ * @default true
640
+ * @group paginationSetting
642
641
  */
643
642
  pagination: _propTypes.default.bool,
644
- /**
645
- * @name 每页条数
646
- * @type number
647
- * @default 30
648
- * @group paginationSetting
643
+ /**
644
+ * @name 每页条数
645
+ * @type number
646
+ * @default 30
647
+ * @group paginationSetting
649
648
  */
650
649
  pageSize: _propTypes.default.number,
651
- /**
652
- * @name 分页器
653
- * @type switch
654
- * @default true
655
- * @group paginationSetting
650
+ /**
651
+ * @name 分页器
652
+ * @type switch
653
+ * @default true
654
+ * @group paginationSetting
656
655
  */
657
656
  showSizeChanger: _propTypes.default.bool,
658
- /**
659
- * @name 快速跳转
660
- * @type switch
661
- * @default true
662
- * @group paginationSetting
657
+ /**
658
+ * @name 快速跳转
659
+ * @type switch
660
+ * @default true
661
+ * @group paginationSetting
663
662
  */
664
663
  showQuickJumper: _propTypes.default.bool,
665
- /**
666
- * @name 单页无分页器
667
- * @type switch
668
- * @default false
669
- * @group paginationSetting
664
+ /**
665
+ * @name 单页无分页器
666
+ * @type switch
667
+ * @default false
668
+ * @group paginationSetting
670
669
  */
671
670
  hideOnSinglePage: _propTypes.default.bool,
672
- /**
673
- * @name 简单模式
674
- * @type switch
675
- * @default false
676
- * @group paginationSetting
671
+ /**
672
+ * @name 简单模式
673
+ * @type switch
674
+ * @default false
675
+ * @group paginationSetting
677
676
  */
678
677
  paginationSimple: _propTypes.default.bool,
679
- /**
680
- * @name 隐藏操作列
681
- * @type switch
682
- * @default false
683
- * @groupNext actionsColumn
678
+ /**
679
+ * @name 隐藏操作列
680
+ * @type switch
681
+ * @default false
682
+ * @groupNext actionsColumn
684
683
  */
685
684
  suppressActions: _propTypes.default.bool,
686
- /**
687
- * @name 隐藏操作列
688
- * @type number
689
- * @default 160
690
- * @groupNext actionsColumn
685
+ /**
686
+ * @name 隐藏操作列
687
+ * @type number
688
+ * @default 160
689
+ * @groupNext actionsColumn
691
690
  */
692
691
  actionsColumnWidth: _propTypes.default.number,
693
- /**
694
- * @name 最大显示数
695
- * @type number
696
- * @default 2
697
- * @groupNext actionsColumn
692
+ /**
693
+ * @name 最大显示数
694
+ * @type number
695
+ * @default 2
696
+ * @groupNext actionsColumn
698
697
  */
699
698
  maxActionsCount: _propTypes.default.number,
700
- /**
701
- * @name 操作项
702
- * @type _TableActions
703
- * @groupNext actionsColumn
704
- * @default {"display": "text", "max": 2, "moreText": "更多行为", "todoList": []}
699
+ /**
700
+ * @name 操作项
701
+ * @type _TableActions
702
+ * @groupNext actionsColumn
703
+ * @default {"display": "text", "max": 2, "moreText": "更多行为", "todoList": []}
705
704
  */
706
705
  actions: _propTypes.default.shape({
707
706
  display: _propTypes.default.oneOf(['text', 'button']),
@@ -709,10 +708,10 @@ LCTable.propTypes = {
709
708
  moreText: _propTypes.default.string,
710
709
  todoList: _propTypes.default.array
711
710
  }),
712
- /**
713
- * @name 顶部操作
714
- * @type _ActionGroup
715
- * @default {"display": "button", "max": 2, "moreText": "操作", "todoList": []}
711
+ /**
712
+ * @name 顶部操作
713
+ * @type _ActionGroup
714
+ * @default {"display": "button", "max": 2, "moreText": "操作", "todoList": []}
716
715
  */
717
716
  topActionGroup: _propTypes.default.shape({
718
717
  display: _propTypes.default.oneOf(['text', 'button']),
@@ -720,86 +719,86 @@ LCTable.propTypes = {
720
719
  moreText: _propTypes.default.string,
721
720
  todoList: _propTypes.default.array
722
721
  }),
723
- /**
724
- * @name 顶部过滤器
725
- * @type _TableTopFilter
722
+ /**
723
+ * @name 顶部过滤器
724
+ * @type _TableTopFilter
726
725
  */
727
726
  topFilter: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.array, _propTypes.default.shape({
728
727
  options: _propTypes.default.array.isRequired,
729
728
  field: _propTypes.default.string.isRequired
730
729
  })]),
731
- /**
732
- * @name 开启行选择器
733
- * @type boolean
734
- * @default false
730
+ /**
731
+ * @name 开启行选择器
732
+ * @type boolean
733
+ * @default false
735
734
  */
736
735
  rowSelection: _propTypes.default.bool,
737
- /**
738
- * @name 停用分页多选
739
- * @type boolean
740
- * @default false
736
+ /**
737
+ * @name 停用分页多选
738
+ * @type boolean
739
+ * @default false
741
740
  */
742
741
  suppressRowSelectionPagination: _propTypes.default.bool,
743
- /**
744
- * @name 选择器模式
745
- * @type segmented
746
- * @options [{label: '复选', value: 'multiple'}, {label: '单选', value: 'single'}]
747
- * @default 'multiple'
742
+ /**
743
+ * @name 选择器模式
744
+ * @type segmented
745
+ * @options [{label: '复选', value: 'multiple'}, {label: '单选', value: 'single'}]
746
+ * @default 'multiple'
748
747
  */
749
748
  rowSelectionMode: _propTypes.default.oneOf(['single', 'multiple']),
750
- /**
751
- * @name 默认选中
752
- * @type _JSEditor
753
- * @default "function getDefaultRowSelected(data, node, ctx) { \n return false; \n}"
749
+ /**
750
+ * @name 默认选中
751
+ * @type _JSEditor
752
+ * @default "function getDefaultRowSelected(data, node, ctx) { \n return false; \n}"
754
753
  */
755
754
  defaultRowSelectedCode: _propTypes.default.string,
756
- /**
757
- * @name 行是否可选
758
- * @type _JSEditor
759
- * @default "function getRowSelectable(data, node, ctx) { \n return true; \n}"
755
+ /**
756
+ * @name 行是否可选
757
+ * @type _JSEditor
758
+ * @default "function getRowSelectable(data, node, ctx) { \n return true; \n}"
760
759
  */
761
760
  rowSelectableCode: _propTypes.default.string,
762
- /**
763
- * @name 导入导出
764
- * @type _ImpExp
765
- * @default { "export": true }
761
+ /**
762
+ * @name 导入导出
763
+ * @type _ImpExp
764
+ * @default { "export": true }
766
765
  */
767
766
  impexp: _propTypes.default.shape({
768
767
  import: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.string]),
769
768
  importType: _propTypes.default.bool,
770
769
  export: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.string])
771
770
  }),
772
- /**
773
- * @name 批量操作
774
- * @type _BatchActions
775
- * @default { "todoList": [] }
771
+ /**
772
+ * @name 批量操作
773
+ * @type _BatchActions
774
+ * @default { "todoList": [] }
776
775
  */
777
776
  bantchActions: _propTypes.default.shape({
778
777
  todoList: _propTypes.default.array
779
778
  }),
780
- /**
781
- * @name 格式化数据
782
- * @type _JSEditor
779
+ /**
780
+ * @name 格式化数据
781
+ * @type _JSEditor
783
782
  */
784
783
  formatDataSource: _propTypes.default.string,
785
- /**
786
- * @name 构建树层级
787
- * @type _JSEditor
784
+ /**
785
+ * @name 构建树层级
786
+ * @type _JSEditor
788
787
  */
789
788
  getDataPath: _propTypes.default.string,
790
- /**
791
- * @name 重写表格列
792
- * @type _JSEditor
789
+ /**
790
+ * @name 重写表格列
791
+ * @type _JSEditor
793
792
  */
794
793
  columnsRewrite: _propTypes.default.string,
795
- /**
796
- * @name 重置表格列
797
- * @type _JSEditor
794
+ /**
795
+ * @name 重置表格列
796
+ * @type _JSEditor
798
797
  */
799
798
  columnsReset: _propTypes.default.string,
800
- /**
801
- * @name model参数
802
- * @type _JSEditor
799
+ /**
800
+ * @name model参数
801
+ * @type _JSEditor
803
802
  */
804
803
  modelParams: _propTypes.default.string
805
804
  };
@@ -60,7 +60,12 @@
60
60
  "key": "topActionGroup",
61
61
  "name": "顶部按钮组",
62
62
  "type": "_ActionsEditor",
63
- "default": { "display": "button", "max": 2, "moreText": "操作", "todoList": [] },
63
+ "default": {
64
+ "display": "button",
65
+ "max": 2,
66
+ "moreText": "操作",
67
+ "todoList": []
68
+ },
64
69
  "defaultCode": "function todo() { \n \n}",
65
70
  "wrapper": "collapse"
66
71
  },
@@ -91,7 +96,12 @@
91
96
  "key": "actionsColumnWidth",
92
97
  "name": "列宽",
93
98
  "type": "_WidthHeight",
94
- "options": [{ "label": "px", "value": "px" }],
99
+ "options": [
100
+ {
101
+ "label": "px",
102
+ "value": "px"
103
+ }
104
+ ],
95
105
  "convertInt": true,
96
106
  "default": 160
97
107
  },
@@ -99,10 +109,17 @@
99
109
  "key": "actions",
100
110
  "name": "表格操作项",
101
111
  "type": "_ActionsEditor",
102
- "default": { "display": "text", "max": 2, "moreText": "更多操作", "todoList": [] },
112
+ "default": {
113
+ "display": "text",
114
+ "max": 2,
115
+ "moreText": "更多操作",
116
+ "todoList": []
117
+ },
103
118
  "defaultCode": "function onActionClick(data, rowIndex, params) {\n\n}",
104
119
  "wrapper": "collapse",
105
- "wrapperProps": { "suppressIcon": true }
120
+ "wrapperProps": {
121
+ "suppressIcon": true
122
+ }
106
123
  }
107
124
  ]
108
125
  }
@@ -148,13 +165,17 @@
148
165
  "key": "bantchActions",
149
166
  "name": "批量操作",
150
167
  "type": "_ActionsEditor",
151
- "default": { "todoList": [] },
168
+ "default": {
169
+ "todoList": []
170
+ },
152
171
  "defaultCode": "function onBatchOperationsClick(key, selectedRows) {\n\n}",
153
172
  "suppressDisplay": true,
154
173
  "suppressMax": true,
155
174
  "suppressMore": true,
156
175
  "wrapper": "collapse",
157
- "wrapperProps": { "suppressIcon": true }
176
+ "wrapperProps": {
177
+ "suppressIcon": true
178
+ }
158
179
  },
159
180
  {
160
181
  "key": "defaultRowSelectedCode",
@@ -163,7 +184,9 @@
163
184
  "defaultCode": "function getRowDefaultSelected(data, node) { \n return false; \n}",
164
185
  "mustConfirm": true,
165
186
  "wrapper": "collapse",
166
- "wrapperProps": { "suppressIcon": true }
187
+ "wrapperProps": {
188
+ "suppressIcon": true
189
+ }
167
190
  },
168
191
  {
169
192
  "key": "rowSelectableCode",
@@ -172,7 +195,9 @@
172
195
  "defaultCode": "function getRowSelectable(data, node) { \n return true; \n}",
173
196
  "mustConfirm": true,
174
197
  "wrapper": "collapse",
175
- "wrapperProps": { "suppressIcon": true }
198
+ "wrapperProps": {
199
+ "suppressIcon": true
200
+ }
176
201
  }
177
202
  ]
178
203
  }
@@ -186,8 +211,13 @@
186
211
  "key": "impexp",
187
212
  "name": "#导入导出",
188
213
  "type": "_ImpExp",
189
- "default": { "export": true },
190
- "wrapperProps": { "suppressIcon": true }
214
+ "default": {
215
+ "export": true,
216
+ "import": true
217
+ },
218
+ "wrapperProps": {
219
+ "suppressIcon": true
220
+ }
191
221
  }
192
222
  ]
193
223
  },
@@ -294,7 +324,9 @@
294
324
  "defaultCode": "function formatDataSource(list, detail) { \n return []; \n}",
295
325
  "mustConfirm": true,
296
326
  "wrapper": "collapse",
297
- "wrapperProps": { "suppressIcon": true }
327
+ "wrapperProps": {
328
+ "suppressIcon": true
329
+ }
298
330
  },
299
331
  {
300
332
  "key": "getDataPath",
@@ -303,7 +335,9 @@
303
335
  "defaultCode": "function getDataPath(data) { \n return []; \n}",
304
336
  "mustConfirm": true,
305
337
  "wrapper": "collapse",
306
- "wrapperProps": { "suppressIcon": true }
338
+ "wrapperProps": {
339
+ "suppressIcon": true
340
+ }
307
341
  },
308
342
  {
309
343
  "key": "columnsRewrite",
@@ -313,7 +347,9 @@
313
347
  "defaultCode": "function columnsRewrite(columns) { \n return columns; \n}",
314
348
  "mustConfirm": true,
315
349
  "wrapper": "collapse",
316
- "wrapperProps": { "suppressIcon": true }
350
+ "wrapperProps": {
351
+ "suppressIcon": true
352
+ }
317
353
  },
318
354
  {
319
355
  "key": "columnsReset",
@@ -323,7 +359,9 @@
323
359
  "defaultCode": "function columnsReset(columns) { \n return columns; \n}",
324
360
  "mustConfirm": true,
325
361
  "wrapper": "collapse",
326
- "wrapperProps": { "suppressIcon": true }
362
+ "wrapperProps": {
363
+ "suppressIcon": true
364
+ }
327
365
  },
328
366
  {
329
367
  "key": "modelParams",
@@ -332,7 +370,9 @@
332
370
  "defaultCode": "function getModelParams() { \n return {}; \n}",
333
371
  "mustConfirm": true,
334
372
  "wrapper": "collapse",
335
- "wrapperProps": { "suppressIcon": true }
373
+ "wrapperProps": {
374
+ "suppressIcon": true
375
+ }
336
376
  }
337
377
  ]
338
378
  }
@@ -402,4 +442,4 @@
402
442
  }
403
443
  ]
404
444
  }
405
- }
445
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luck-design-biz/luckda",
3
- "version": "0.0.25-13",
3
+ "version": "0.0.25-15",
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",
@@ -78,7 +78,7 @@
78
78
  "@babel/plugin-transform-strict-mode": "^7.18.6",
79
79
  "@babel/polyfill": "^7.12.1",
80
80
  "@babel/traverse": "^7.24.1",
81
- "@luck-design-biz/base": "0.0.47",
81
+ "@luck-design-biz/base": "0.0.47-6",
82
82
  "@luck-design-biz/bpm": "0.0.5",
83
83
  "@luck-helper/ui-design": "0.0.6",
84
84
  "@types/classnames": "^2.3.1",
@@ -136,8 +136,8 @@
136
136
  "raphael": "^2.3.0",
137
137
  "react-copy-to-clipboard": "^5.1.0",
138
138
  "react-device-detect": "^1.17.0",
139
- "react-dnd": "^9.5.1",
140
- "react-dnd-html5-backend": "^9.5.1",
139
+ "react-dnd": "16.0.1",
140
+ "react-dnd-html5-backend": "16.0.1",
141
141
  "react-dom": "^16.14.0",
142
142
  "react-helmet": "^5.2.1",
143
143
  "react-iframe": "^1.8.5",
@@ -158,8 +158,7 @@
158
158
  },
159
159
  "pnpm": {
160
160
  "overrides": {
161
- "immer": "^2.1.1",
162
- "lru-cache": "6.0.0"
161
+ "immer": "^2.1.1"
163
162
  }
164
163
  },
165
164
  "bugs": {