@luck-design-biz/luckda 0.0.25-6 → 0.0.25-8
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/es/components/LDActions/index.js +8 -10
- package/es/components/LDActions/index.less +7 -4
- package/es/components/LdAutoForm/index.js +26 -8
- package/es/components/LdFormList/index.js +37 -22
- package/es/components/LdGrid/index.js +14 -7
- package/es/components/LdGridForm/index.js +18 -6
- package/es/components/LdTree/index.js +33 -15
- package/es/helper/form.js +15 -8
- package/es/locales/zh-CN.js +16 -10
- package/es/lowcode/constants/api-url.js +120 -32
- package/es/lowcode/constants/event-topics.js +2 -0
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +4 -2
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +4 -2
- package/es/lowcode/engine/meta/box.props.json +3 -3
- package/es/lowcode/engine/meta/button.props.json +3 -3
- package/es/lowcode/engine/meta/components-list.json +6 -0
- package/es/lowcode/engine/meta/dialog.props.default.json +10 -5
- package/es/lowcode/engine/meta/dialog.props.json +72 -42
- package/es/lowcode/engine/meta/drawer.props.json +8 -20
- package/es/lowcode/engine/meta/form.props.json +16 -10
- package/es/lowcode/engine/meta/imex.props.default.json +8 -1
- package/es/lowcode/engine/meta/imex.props.json +54 -22
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +53 -3
- package/es/lowcode/engine/meta/layout.props.json +2 -2
- package/es/lowcode/engine/meta/page.props.json +2 -2
- package/es/lowcode/engine/meta/pagelayout.props.default.json +14 -0
- package/es/lowcode/engine/meta/pagelayout.props.json +47 -0
- package/es/lowcode/engine/meta/section.props.json +2 -2
- package/es/lowcode/engine/meta/split.props.default.json +1 -1
- package/es/lowcode/engine/meta/split.props.json +4 -4
- package/es/lowcode/engine/meta/table.props.json +17 -11
- package/es/lowcode/engine/meta/tabs.props.json +3 -3
- package/es/lowcode/engine/meta/tree.props.default.json +2 -0
- package/es/lowcode/engine/meta/tree.props.json +62 -6
- package/es/lowcode/engine/provider/ContextProvider/index.js +20 -43
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +69 -24
- package/es/lowcode/engine/tools/dataProcess.js +4 -0
- package/es/lowcode/engine/tools/helper.js +2 -3
- package/es/lowcode/engine/tools/useCanvasRender.js +3 -2
- package/es/lowcode/engine/tools/usePageDataStore.js +176 -0
- package/es/lowcode/engine/tools/usePromiseState.js +12 -23
- package/es/lowcode/engine/tools/useTodo.js +20 -10
- package/es/lowcode/painter/DesignOperator.js +12 -23
- package/es/lowcode/painter/DesignToolbar.js +10 -45
- package/es/lowcode/painter/Outline.js +2 -4
- package/es/lowcode/painter/Panel.js +29 -28
- package/es/lowcode/painter/components/ActionBindModal.js +30 -24
- package/es/lowcode/painter/components/AdvancePanel.js +6 -1
- package/es/lowcode/painter/components/AttrsPanel.js +38 -29
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +3 -2
- package/es/lowcode/painter/components/field-setting/CheckFrontRules.js +108 -0
- package/es/lowcode/painter/components/field-setting/CheckRules.js +1 -26
- package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +33 -13
- package/es/lowcode/painter/components/field-setting/SettingUI.js +162 -30
- package/es/lowcode/painter/components/field-setting/index.js +32 -63
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +53 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +14 -17
- package/es/lowcode/painter/panel-section/ButtonType.js +4 -2
- package/es/lowcode/painter/panel-section/DataSetSelector.js +4 -1
- package/es/lowcode/painter/panel-section/FieldsSetting.js +53 -8
- package/es/lowcode/painter/panel-section/ImpExp.js +93 -6
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +109 -0
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +95 -0
- package/es/lowcode/painter/panel-section/SerialsSelector.js +4 -2
- package/es/lowcode/painter/panel-section/SplitDisplay.js +25 -110
- package/es/lowcode/painter/panel-section/StylePanel/index.js +10 -4
- package/es/lowcode/painter/panel-section/TreeRootEditor.js +2 -2
- package/es/lowcode/painter/style/action-bind-modal.less +3 -3
- package/es/lowcode/painter/style/design.less +1 -1
- package/es/lowcode/painter/style/page-layout-display.less +28 -0
- package/es/lowcode/painter/style/panel-item.less +1 -1
- package/es/lowcode/painter/style/split-display.less +0 -9
- package/es/lowcode/preview/index.js +4 -2
- package/es/lowcode/view/Canvas.js +6 -7
- package/es/lowcode/view/Page.js +2 -3
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +3 -2
- package/es/lowcode/view/lc-components/Box/meta.json +3 -3
- package/es/lowcode/view/lc-components/Button/index.js +2 -6
- package/es/lowcode/view/lc-components/Button/meta.json +3 -3
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +3 -10
- package/es/lowcode/view/lc-components/Dialog/index.js +114 -19
- package/es/lowcode/view/lc-components/Dialog/meta.json +65 -42
- package/es/lowcode/view/lc-components/Drawer/meta.json +8 -20
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +23 -33
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +8 -1
- package/es/lowcode/view/lc-components/Form/index.js +113 -21
- package/es/lowcode/view/lc-components/Form/meta.json +16 -10
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +8 -3
- package/es/lowcode/view/lc-components/ImEx/index.js +260 -10
- package/es/lowcode/view/lc-components/ImEx/index.less +7 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +55 -23
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +12 -19
- package/es/lowcode/view/lc-components/Layout/meta.json +2 -2
- package/es/lowcode/view/lc-components/Page/meta.json +2 -2
- package/es/lowcode/view/lc-components/PageContent/index.js +8 -9
- package/es/lowcode/view/lc-components/PageFooter/index.js +2 -5
- package/es/lowcode/view/lc-components/PageHeader/index.js +5 -6
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +63 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js +10 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js +10 -0
- package/es/lowcode/view/lc-components/PageLayout/index.js +32 -0
- package/es/lowcode/view/lc-components/PageLayout/meta.json +47 -0
- package/es/lowcode/view/lc-components/PageModal/index.js +12 -15
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +3 -9
- package/es/lowcode/view/lc-components/Section/meta.json +2 -2
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +19 -20
- package/es/lowcode/view/lc-components/Split/index.js +5 -9
- package/es/lowcode/view/lc-components/Split/meta.json +4 -4
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +138 -0
- package/es/lowcode/view/lc-components/Table/index.js +124 -39
- package/es/lowcode/view/lc-components/Table/meta.json +17 -11
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +10 -17
- package/es/lowcode/view/lc-components/Tabs/index.js +3 -1
- package/es/lowcode/view/lc-components/Tabs/meta.json +3 -3
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Tree/index.js +67 -18
- package/es/lowcode/view/lc-components/Tree/meta.json +62 -7
- package/es/lowcode/view/lc-components/Wrapper.js +9 -11
- package/es/services.js +0 -24
- package/es/upload/FilesWall/file.png +0 -0
- package/es/upload/FilesWall/index.js +422 -0
- package/es/upload/FilesWall/index.less +74 -0
- package/es/upload/Form/index.js +2 -1
- package/es/upload/FormItem/index.js +3 -5
- package/es/upload/index.js +2 -1
- package/es/utils/action.js +2 -2
- package/lib/components/LDActions/index.js +7 -9
- package/lib/components/LDActions/index.less +7 -4
- package/lib/components/LdAutoForm/index.js +25 -7
- package/lib/components/LdFormList/index.js +36 -21
- package/lib/components/LdGrid/index.js +14 -7
- package/lib/components/LdGridForm/index.js +16 -4
- package/lib/components/LdTree/index.js +33 -15
- package/lib/helper/form.js +14 -7
- package/lib/locales/zh-CN.js +16 -10
- package/lib/lowcode/constants/api-url.js +123 -32
- package/lib/lowcode/constants/event-topics.js +3 -1
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +4 -2
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +4 -2
- package/lib/lowcode/engine/meta/box.props.json +3 -3
- package/lib/lowcode/engine/meta/button.props.json +3 -3
- package/lib/lowcode/engine/meta/components-list.json +6 -0
- package/lib/lowcode/engine/meta/dialog.props.default.json +10 -5
- package/lib/lowcode/engine/meta/dialog.props.json +72 -42
- package/lib/lowcode/engine/meta/drawer.props.json +8 -20
- package/lib/lowcode/engine/meta/form.props.json +16 -10
- package/lib/lowcode/engine/meta/imex.props.default.json +8 -1
- package/lib/lowcode/engine/meta/imex.props.json +54 -22
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +53 -3
- package/lib/lowcode/engine/meta/layout.props.json +2 -2
- package/lib/lowcode/engine/meta/page.props.json +2 -2
- package/lib/lowcode/engine/meta/pagelayout.props.default.json +14 -0
- package/lib/lowcode/engine/meta/pagelayout.props.json +47 -0
- package/lib/lowcode/engine/meta/section.props.json +2 -2
- package/lib/lowcode/engine/meta/split.props.default.json +1 -1
- package/lib/lowcode/engine/meta/split.props.json +4 -4
- package/lib/lowcode/engine/meta/table.props.json +17 -11
- package/lib/lowcode/engine/meta/tabs.props.json +3 -3
- package/lib/lowcode/engine/meta/tree.props.default.json +2 -0
- package/lib/lowcode/engine/meta/tree.props.json +62 -6
- package/lib/lowcode/engine/provider/ContextProvider/index.js +36 -43
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +68 -23
- package/lib/lowcode/engine/tools/dataProcess.js +4 -0
- package/lib/lowcode/engine/tools/helper.js +2 -3
- package/lib/lowcode/engine/tools/useCanvasRender.js +3 -2
- package/lib/lowcode/engine/tools/usePageDataStore.js +183 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +11 -21
- package/lib/lowcode/engine/tools/useTodo.js +19 -9
- package/lib/lowcode/painter/DesignOperator.js +11 -22
- package/lib/lowcode/painter/DesignToolbar.js +9 -44
- package/lib/lowcode/painter/Outline.js +1 -3
- package/lib/lowcode/painter/Panel.js +28 -27
- package/lib/lowcode/painter/components/ActionBindModal.js +28 -22
- package/lib/lowcode/painter/components/AdvancePanel.js +6 -1
- package/lib/lowcode/painter/components/AttrsPanel.js +37 -28
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +3 -2
- package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js +116 -0
- package/lib/lowcode/painter/components/field-setting/CheckRules.js +1 -26
- package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +34 -13
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +159 -27
- package/lib/lowcode/painter/components/field-setting/index.js +32 -63
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +59 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +13 -16
- package/lib/lowcode/painter/panel-section/ButtonType.js +4 -2
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +4 -1
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +53 -8
- package/lib/lowcode/painter/panel-section/ImpExp.js +92 -5
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +115 -0
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +103 -0
- package/lib/lowcode/painter/panel-section/SerialsSelector.js +4 -2
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +24 -109
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +10 -4
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js +2 -2
- package/lib/lowcode/painter/style/action-bind-modal.less +3 -3
- package/lib/lowcode/painter/style/design.less +1 -1
- package/lib/lowcode/painter/style/page-layout-display.less +28 -0
- package/lib/lowcode/painter/style/panel-item.less +1 -1
- package/lib/lowcode/painter/style/split-display.less +0 -9
- package/lib/lowcode/preview/index.js +4 -2
- package/lib/lowcode/view/Canvas.js +5 -6
- package/lib/lowcode/view/Page.js +2 -3
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +3 -2
- package/lib/lowcode/view/lc-components/Box/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Button/index.js +2 -6
- package/lib/lowcode/view/lc-components/Button/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -9
- package/lib/lowcode/view/lc-components/Dialog/index.js +114 -19
- package/lib/lowcode/view/lc-components/Dialog/meta.json +65 -42
- package/lib/lowcode/view/lc-components/Drawer/meta.json +8 -20
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +20 -31
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +8 -1
- package/lib/lowcode/view/lc-components/Form/index.js +110 -18
- package/lib/lowcode/view/lc-components/Form/meta.json +16 -10
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +8 -3
- package/lib/lowcode/view/lc-components/ImEx/index.js +257 -8
- package/lib/lowcode/view/lc-components/ImEx/index.less +7 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +55 -23
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +11 -18
- package/lib/lowcode/view/lc-components/Layout/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Page/meta.json +2 -2
- package/lib/lowcode/view/lc-components/PageContent/index.js +7 -8
- package/lib/lowcode/view/lc-components/PageFooter/index.js +2 -5
- package/lib/lowcode/view/lc-components/PageHeader/index.js +4 -5
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +71 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js +17 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js +17 -0
- package/lib/lowcode/view/lc-components/PageLayout/index.js +40 -0
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +47 -0
- package/lib/lowcode/view/lc-components/PageModal/index.js +11 -14
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +2 -8
- package/lib/lowcode/view/lc-components/Section/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +19 -20
- package/lib/lowcode/view/lc-components/Split/index.js +2 -6
- package/lib/lowcode/view/lc-components/Split/meta.json +4 -4
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +145 -0
- package/lib/lowcode/view/lc-components/Table/index.js +123 -38
- package/lib/lowcode/view/lc-components/Table/meta.json +17 -11
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +11 -18
- package/lib/lowcode/view/lc-components/Tabs/index.js +3 -1
- package/lib/lowcode/view/lc-components/Tabs/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Tree/index.js +65 -16
- package/lib/lowcode/view/lc-components/Tree/meta.json +62 -7
- package/lib/lowcode/view/lc-components/Wrapper.js +8 -10
- package/lib/services.js +0 -25
- package/lib/upload/FilesWall/file.png +0 -0
- package/lib/upload/FilesWall/index.js +429 -0
- package/lib/upload/FilesWall/index.less +74 -0
- package/lib/upload/Form/index.js +2 -1
- package/lib/upload/FormItem/index.js +3 -5
- package/lib/upload/index.js +8 -1
- package/lib/utils/action.js +2 -2
- package/package.json +5 -4
|
@@ -5,9 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ICONLIST_URL = exports.ICONLIST_JS = void 0;
|
|
8
|
+
exports.exportExcel = exportExcel;
|
|
8
9
|
exports.fetchAddDataset = fetchAddDataset;
|
|
9
10
|
exports.fetchAddFieldAttrs = fetchAddFieldAttrs;
|
|
10
11
|
exports.fetchAllBehavior = fetchAllBehavior;
|
|
12
|
+
exports.fetchAllBehaviorEx = fetchAllBehaviorEx;
|
|
11
13
|
exports.fetchAllDataset = fetchAllDataset;
|
|
12
14
|
exports.fetchAllSerials = fetchAllSerials;
|
|
13
15
|
exports.fetchAttrs = fetchAttrs;
|
|
@@ -24,6 +26,8 @@ exports.fetchUpdateFieldAttrs = fetchUpdateFieldAttrs;
|
|
|
24
26
|
exports.fetchUpdatePageData = fetchUpdatePageData;
|
|
25
27
|
exports.fetchUpdateTitleField = fetchUpdateTitleField;
|
|
26
28
|
exports.fetchUpdateUniqueField = fetchUpdateUniqueField;
|
|
29
|
+
exports.getBehaviorUrl = getBehaviorUrl;
|
|
30
|
+
exports.readExportExcelState = readExportExcelState;
|
|
27
31
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
28
32
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
29
33
|
var _utils = require("@luck-design-biz/base/utils");
|
|
@@ -70,9 +74,9 @@ function fetchDesignModlueData(_x2, _x3) {
|
|
|
70
74
|
}
|
|
71
75
|
/**
|
|
72
76
|
* 获取preview时模块数据
|
|
73
|
-
* @param {*} dmCode
|
|
74
|
-
* @param {*} params
|
|
75
|
-
* @returns
|
|
77
|
+
* @param {*} dmCode
|
|
78
|
+
* @param {*} params
|
|
79
|
+
* @returns
|
|
76
80
|
*/
|
|
77
81
|
function _fetchDesignModlueData() {
|
|
78
82
|
_fetchDesignModlueData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(_, params) {
|
|
@@ -404,9 +408,8 @@ function fetchAllSerials(_x19) {
|
|
|
404
408
|
return _fetchAllSerials.apply(this, arguments);
|
|
405
409
|
}
|
|
406
410
|
/**
|
|
407
|
-
*
|
|
408
|
-
* @param {
|
|
409
|
-
* @param {*} data
|
|
411
|
+
* 读取导入导出数据源
|
|
412
|
+
* @param {{moduleCode, behaviorMode:[IMPORT, EXPORT]}} params
|
|
410
413
|
* @returns
|
|
411
414
|
*/
|
|
412
415
|
function _fetchAllSerials() {
|
|
@@ -425,7 +428,37 @@ function _fetchAllSerials() {
|
|
|
425
428
|
}));
|
|
426
429
|
return _fetchAllSerials.apply(this, arguments);
|
|
427
430
|
}
|
|
428
|
-
function
|
|
431
|
+
function fetchAllBehaviorEx(_x20) {
|
|
432
|
+
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
433
|
+
}
|
|
434
|
+
function _fetchAllBehaviorEx() {
|
|
435
|
+
_fetchAllBehaviorEx = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee17(params) {
|
|
436
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee17$(_context17) {
|
|
437
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
438
|
+
case 0:
|
|
439
|
+
return _context17.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_PAGE, "/option/noAuthGetBehavior"), {
|
|
440
|
+
params: params
|
|
441
|
+
}));
|
|
442
|
+
case 1:
|
|
443
|
+
case "end":
|
|
444
|
+
return _context17.stop();
|
|
445
|
+
}
|
|
446
|
+
}, _callee17);
|
|
447
|
+
}));
|
|
448
|
+
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
449
|
+
}
|
|
450
|
+
function getBehaviorUrl() {
|
|
451
|
+
var mdCode = window[_constants.DATA_MODEL_CODE_KEY];
|
|
452
|
+
return "".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/to/behavior/call");
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* 执行行为
|
|
457
|
+
* @param {*} params
|
|
458
|
+
* @param {*} data
|
|
459
|
+
* @returns
|
|
460
|
+
*/
|
|
461
|
+
function fetchCallBehavior(_x21, _x22) {
|
|
429
462
|
return _fetchCallBehavior.apply(this, arguments);
|
|
430
463
|
}
|
|
431
464
|
/**
|
|
@@ -434,13 +467,11 @@ function fetchCallBehavior(_x20, _x21) {
|
|
|
434
467
|
* @returns
|
|
435
468
|
*/
|
|
436
469
|
function _fetchCallBehavior() {
|
|
437
|
-
_fetchCallBehavior = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
while (1) switch (_context17.prev = _context17.next) {
|
|
470
|
+
_fetchCallBehavior = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee18(params, data) {
|
|
471
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee18$(_context18) {
|
|
472
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
441
473
|
case 0:
|
|
442
|
-
|
|
443
|
-
return _context17.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/to/behavior/call"), {
|
|
474
|
+
return _context18.abrupt("return", (0, _utils.request)(getBehaviorUrl(), {
|
|
444
475
|
method: 'POST',
|
|
445
476
|
data: data,
|
|
446
477
|
params: params,
|
|
@@ -448,55 +479,115 @@ function _fetchCallBehavior() {
|
|
|
448
479
|
'Content-Type': 'application/json;charset=UTF-8'
|
|
449
480
|
}
|
|
450
481
|
}));
|
|
451
|
-
case
|
|
482
|
+
case 1:
|
|
452
483
|
case "end":
|
|
453
|
-
return
|
|
484
|
+
return _context18.stop();
|
|
454
485
|
}
|
|
455
|
-
},
|
|
486
|
+
}, _callee18);
|
|
456
487
|
}));
|
|
457
488
|
return _fetchCallBehavior.apply(this, arguments);
|
|
458
489
|
}
|
|
459
|
-
function fetchClearCache(
|
|
490
|
+
function fetchClearCache(_x23) {
|
|
460
491
|
return _fetchClearCache.apply(this, arguments);
|
|
461
492
|
}
|
|
462
493
|
/**
|
|
463
494
|
* 更新页面配置数据
|
|
464
|
-
* @param {*} data
|
|
465
|
-
* @returns
|
|
495
|
+
* @param {*} data
|
|
496
|
+
* @returns
|
|
466
497
|
*/
|
|
467
498
|
function _fetchClearCache() {
|
|
468
|
-
_fetchClearCache = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
469
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
470
|
-
while (1) switch (
|
|
499
|
+
_fetchClearCache = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee19(params) {
|
|
500
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee19$(_context19) {
|
|
501
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
471
502
|
case 0:
|
|
472
|
-
return
|
|
503
|
+
return _context19.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.LUCKDA_HOST, "/cache/manage/noAuthModuleConfigClear"), {
|
|
473
504
|
params: params
|
|
474
505
|
}));
|
|
475
506
|
case 1:
|
|
476
507
|
case "end":
|
|
477
|
-
return
|
|
508
|
+
return _context19.stop();
|
|
478
509
|
}
|
|
479
|
-
},
|
|
510
|
+
}, _callee19);
|
|
480
511
|
}));
|
|
481
512
|
return _fetchClearCache.apply(this, arguments);
|
|
482
513
|
}
|
|
483
|
-
function fetchUpdatePageData(
|
|
514
|
+
function fetchUpdatePageData(_x24) {
|
|
484
515
|
return _fetchUpdatePageData.apply(this, arguments);
|
|
485
516
|
}
|
|
517
|
+
/**
|
|
518
|
+
* 导出excel
|
|
519
|
+
* @param {*} data
|
|
520
|
+
* @returns
|
|
521
|
+
*/
|
|
486
522
|
function _fetchUpdatePageData() {
|
|
487
|
-
_fetchUpdatePageData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
488
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
489
|
-
while (1) switch (
|
|
523
|
+
_fetchUpdatePageData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee20(data) {
|
|
524
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee20$(_context20) {
|
|
525
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
490
526
|
case 0:
|
|
491
|
-
return
|
|
527
|
+
return _context20.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_PAGE, "/data/update"), {
|
|
492
528
|
method: 'POST',
|
|
493
529
|
data: data
|
|
494
530
|
}));
|
|
495
531
|
case 1:
|
|
496
532
|
case "end":
|
|
497
|
-
return
|
|
533
|
+
return _context20.stop();
|
|
498
534
|
}
|
|
499
|
-
},
|
|
535
|
+
}, _callee20);
|
|
500
536
|
}));
|
|
501
537
|
return _fetchUpdatePageData.apply(this, arguments);
|
|
538
|
+
}
|
|
539
|
+
function exportExcel(_x25) {
|
|
540
|
+
return _exportExcel.apply(this, arguments);
|
|
541
|
+
}
|
|
542
|
+
function _exportExcel() {
|
|
543
|
+
_exportExcel = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee21(data) {
|
|
544
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee21$(_context21) {
|
|
545
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
546
|
+
case 0:
|
|
547
|
+
return _context21.abrupt("return", new Promise(function (resolve, reject) {
|
|
548
|
+
resolve('getexportExcel-res');
|
|
549
|
+
}));
|
|
550
|
+
case 1:
|
|
551
|
+
case "end":
|
|
552
|
+
return _context21.stop();
|
|
553
|
+
}
|
|
554
|
+
}, _callee21);
|
|
555
|
+
}));
|
|
556
|
+
return _exportExcel.apply(this, arguments);
|
|
557
|
+
}
|
|
558
|
+
var cpage = 0,
|
|
559
|
+
total = 100;
|
|
560
|
+
/**
|
|
561
|
+
* 导出excel
|
|
562
|
+
* @param {*} data
|
|
563
|
+
* @returns
|
|
564
|
+
*/
|
|
565
|
+
function readExportExcelState(_x26) {
|
|
566
|
+
return _readExportExcelState.apply(this, arguments);
|
|
567
|
+
}
|
|
568
|
+
function _readExportExcelState() {
|
|
569
|
+
_readExportExcelState = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee22(url) {
|
|
570
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee22$(_context22) {
|
|
571
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
572
|
+
case 0:
|
|
573
|
+
// return request(`${api.API_HOST}${url}`);
|
|
574
|
+
console.log('readExportExcelState', url);
|
|
575
|
+
cpage += 10;
|
|
576
|
+
return _context22.abrupt("return", new Promise(function (resolve, reject) {
|
|
577
|
+
setTimeout(function () {
|
|
578
|
+
// resolve({
|
|
579
|
+
// cpage, total, downloadUrl: '/api'
|
|
580
|
+
// })
|
|
581
|
+
reject({
|
|
582
|
+
message: 'XXX'
|
|
583
|
+
});
|
|
584
|
+
}, 1000);
|
|
585
|
+
}));
|
|
586
|
+
case 3:
|
|
587
|
+
case "end":
|
|
588
|
+
return _context22.stop();
|
|
589
|
+
}
|
|
590
|
+
}, _callee22);
|
|
591
|
+
}));
|
|
592
|
+
return _readExportExcelState.apply(this, arguments);
|
|
502
593
|
}
|
|
@@ -3,13 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.LANG_SETTING_SELECT = exports.COMPONENT_UNMOUNT = exports.COMPONENT_SETTING_CLICK = exports.COMPONENT_REPOSITIONING = exports.COMPONENT_MOUNT = exports.COMPONENT_MODIFY = exports.COMPONENT_MODAL_TOGGLE = exports.COMPONENT_HOVER = exports.COMPONENT_DRAG_OVER = exports.COMPONENT_DRAG_END = exports.COMPONENT_DELETE = exports.COMPONENT_APPEND = exports.COMPONENT_ACTIVE = void 0;
|
|
6
|
+
exports.PAGE_PUBLIC_RESOURCE_CHANGED = exports.LANG_SETTING_SELECT = exports.COMPONENT_UNMOUNT = exports.COMPONENT_SETTING_CLICK = exports.COMPONENT_REPOSITIONING = exports.COMPONENT_MOUNT = exports.COMPONENT_MODIFY = exports.COMPONENT_MODAL_TOGGLE = exports.COMPONENT_HOVER = exports.COMPONENT_DRAG_OVER = exports.COMPONENT_DRAG_END = exports.COMPONENT_DELETE = exports.COMPONENT_APPEND = exports.COMPONENT_ACTIVE = void 0;
|
|
7
7
|
/******************************** 通用Topic开始 ********************************/
|
|
8
8
|
|
|
9
9
|
// 组件的加载完成事件
|
|
10
10
|
var COMPONENT_MOUNT = exports.COMPONENT_MOUNT = 'component-mount';
|
|
11
11
|
// 组件的卸载事件
|
|
12
12
|
var COMPONENT_UNMOUNT = exports.COMPONENT_UNMOUNT = 'component-unmount';
|
|
13
|
+
// 页面公共资源变化事件
|
|
14
|
+
var PAGE_PUBLIC_RESOURCE_CHANGED = exports.PAGE_PUBLIC_RESOURCE_CHANGED = 'page-pubilc-resource-changed';
|
|
13
15
|
|
|
14
16
|
/******************************** 通用Topic结束 ********************************/
|
|
15
17
|
|
|
@@ -19,10 +19,12 @@ var _excluded = ["options", "onChange"];
|
|
|
19
19
|
var _TYPE_ = 'select';
|
|
20
20
|
var SelectComp = function SelectComp(_ref) {
|
|
21
21
|
var options = _ref.options,
|
|
22
|
-
|
|
22
|
+
_onChange = _ref.onChange,
|
|
23
23
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
24
24
|
return /*#__PURE__*/_react.default.createElement(_antd.Select, (0, _extends2.default)({
|
|
25
|
-
onChange: onChange
|
|
25
|
+
onChange: function onChange(val) {
|
|
26
|
+
return _onChange(val);
|
|
27
|
+
},
|
|
26
28
|
getPopupContainer: function getPopupContainer() {
|
|
27
29
|
return document.getElementById('lc-design-workspace');
|
|
28
30
|
}
|
|
@@ -16,12 +16,14 @@ var _Strategy2 = _interopRequireDefault(require("./Strategy"));
|
|
|
16
16
|
var _TYPE_ = 'switch';
|
|
17
17
|
var SwitchComp = function SwitchComp(_ref) {
|
|
18
18
|
var defaultValue = _ref.defaultValue,
|
|
19
|
-
|
|
19
|
+
_onChange = _ref.onChange,
|
|
20
20
|
size = _ref.size;
|
|
21
21
|
return /*#__PURE__*/_react.default.createElement(_antd.Switch, {
|
|
22
22
|
defaultChecked: defaultValue,
|
|
23
23
|
size: size,
|
|
24
|
-
onChange: onChange
|
|
24
|
+
onChange: function onChange(val) {
|
|
25
|
+
return _onChange(val);
|
|
26
|
+
}
|
|
25
27
|
});
|
|
26
28
|
};
|
|
27
29
|
var SelectStrategy = exports.default = /*#__PURE__*/function (_Strategy) {
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
"key": "onMount",
|
|
22
22
|
"name": "组件首次渲染时",
|
|
23
23
|
"desc": "在组件首次渲染时,执行方法",
|
|
24
|
-
"func": "(params)
|
|
24
|
+
"func": "function onMount(params) {\n\t\n}"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"key": "onUnmount",
|
|
28
28
|
"name": "组件卸载时",
|
|
29
29
|
"desc": "在组件卸载时,执行方法。",
|
|
30
|
-
"func": "(params)
|
|
30
|
+
"func": "function onUnmount(params) {\n\t\n}"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"key": "onClick",
|
|
34
34
|
"name": "点击事件",
|
|
35
35
|
"desc": "点击文本时,执行方法",
|
|
36
|
-
"func": "(e)
|
|
36
|
+
"func": "function onClick(e) {\n\t\n}"
|
|
37
37
|
}
|
|
38
38
|
]
|
|
39
39
|
}
|
|
@@ -108,19 +108,19 @@
|
|
|
108
108
|
"key": "onMount",
|
|
109
109
|
"name": "组件首次渲染时",
|
|
110
110
|
"desc": "在组件首次渲染时,执行方法",
|
|
111
|
-
"func": "(
|
|
111
|
+
"func": "function onMount() {\n\t\n}"
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
"key": "onUnmount",
|
|
115
115
|
"name": "组件卸载时",
|
|
116
116
|
"desc": "在组件卸载时,执行方法。",
|
|
117
|
-
"func": "(
|
|
117
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"key": "onClick",
|
|
121
121
|
"name": "点击事件",
|
|
122
122
|
"desc": "点击文本时,执行方法",
|
|
123
|
-
"func": "(e)
|
|
123
|
+
"func": "function onClick(e) {\n\t\n}"
|
|
124
124
|
}
|
|
125
125
|
]
|
|
126
126
|
}
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
"desc": "布局容器是一种提供列比例、列间距、行间距和样式等配置选项的元素,用于创建灵活的页面布局。它使用户能够轻松组织和排列组件,并实现各种复杂的布局需求。",
|
|
16
16
|
"icon": "icon-layout"
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
"component": "PageLayout",
|
|
20
|
+
"name": "页面布局容器",
|
|
21
|
+
"desc": "页面布局容器一般用于构建页面时根节点的基础布局,分为左右布局、左上下布局以及左中右布局。",
|
|
22
|
+
"icon": "icon-pagelayout"
|
|
23
|
+
},
|
|
18
24
|
{
|
|
19
25
|
"component": "Section",
|
|
20
26
|
"name": "分组",
|
|
@@ -8,13 +8,18 @@
|
|
|
8
8
|
"order": 1,
|
|
9
9
|
"title": "对话框",
|
|
10
10
|
"width": "700px",
|
|
11
|
-
"height": "
|
|
12
|
-
"fullScreen": false,
|
|
13
|
-
"fullable": true,
|
|
11
|
+
"height": "50vh",
|
|
14
12
|
"defaultOpen": false,
|
|
15
|
-
"mask":
|
|
16
|
-
"
|
|
13
|
+
"mask": true,
|
|
14
|
+
"okText": "确定",
|
|
15
|
+
"cancelText": "取消",
|
|
17
16
|
"footer": true,
|
|
17
|
+
"btnGroup": {
|
|
18
|
+
"display": "button",
|
|
19
|
+
"max": 2,
|
|
20
|
+
"moreText": "操作",
|
|
21
|
+
"todoList": []
|
|
22
|
+
},
|
|
18
23
|
"advance": {
|
|
19
24
|
"events": {}
|
|
20
25
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"props": [
|
|
10
10
|
{
|
|
11
11
|
"key": "id",
|
|
12
|
-
"
|
|
12
|
+
"name": "唯一标识",
|
|
13
13
|
"type": "string",
|
|
14
14
|
"disabled": true
|
|
15
15
|
},
|
|
@@ -22,65 +22,95 @@
|
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"key": "width",
|
|
25
|
-
"name": "
|
|
26
|
-
"
|
|
27
|
-
"
|
|
25
|
+
"name": "对话框宽度",
|
|
26
|
+
"type": "_WidthHeight",
|
|
27
|
+
"options": [
|
|
28
|
+
{
|
|
29
|
+
"label": "px",
|
|
30
|
+
"value": "px"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"label": "%",
|
|
34
|
+
"value": "%"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"label": "vw",
|
|
38
|
+
"value": "vw"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"label": "A",
|
|
42
|
+
"value": "auto"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
28
45
|
"default": "700px"
|
|
29
46
|
},
|
|
30
47
|
{
|
|
31
48
|
"key": "height",
|
|
32
|
-
"name": "
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
"default": true
|
|
49
|
+
"name": "内容区高度",
|
|
50
|
+
"type": "_WidthHeight",
|
|
51
|
+
"options": [
|
|
52
|
+
{
|
|
53
|
+
"label": "px",
|
|
54
|
+
"value": "px"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"label": "vh",
|
|
58
|
+
"value": "vh"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"label": "A",
|
|
62
|
+
"value": "auto"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"default": "50vh"
|
|
50
66
|
},
|
|
51
67
|
{
|
|
52
68
|
"key": "defaultOpen",
|
|
53
69
|
"name": "默认显示",
|
|
54
70
|
"desc": "默认是否显示",
|
|
55
|
-
"type": "
|
|
71
|
+
"type": "switch",
|
|
56
72
|
"default": false
|
|
57
73
|
},
|
|
58
74
|
{
|
|
59
75
|
"key": "mask",
|
|
60
76
|
"name": "显示遮罩",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"default": false
|
|
77
|
+
"type": "switch",
|
|
78
|
+
"default": true
|
|
64
79
|
},
|
|
65
80
|
{
|
|
66
|
-
"key": "
|
|
67
|
-
"name": "
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
|
|
81
|
+
"key": "okText",
|
|
82
|
+
"name": "确认文字",
|
|
83
|
+
"type": "_I18nInput",
|
|
84
|
+
"default": "确定"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"key": "cancelText",
|
|
88
|
+
"name": "取消文字",
|
|
89
|
+
"type": "_I18nInput",
|
|
90
|
+
"default": "取消"
|
|
71
91
|
},
|
|
72
92
|
{
|
|
73
93
|
"key": "footer",
|
|
74
|
-
"name": "
|
|
94
|
+
"name": "显示footer",
|
|
75
95
|
"desc": "是否显示底部按钮区域",
|
|
76
|
-
"type": "
|
|
96
|
+
"type": "switch",
|
|
77
97
|
"default": true
|
|
78
98
|
},
|
|
79
99
|
{
|
|
80
100
|
"key": "btnGroup",
|
|
81
101
|
"name": "按钮组",
|
|
82
102
|
"desc": "底部按钮区域的按钮组(参考按钮配置)",
|
|
83
|
-
"type": "
|
|
103
|
+
"type": "_ActionsEditor",
|
|
104
|
+
"default": {
|
|
105
|
+
"display": "button",
|
|
106
|
+
"max": 2,
|
|
107
|
+
"moreText": "操作",
|
|
108
|
+
"todoList": []
|
|
109
|
+
},
|
|
110
|
+
"wrapper": "collapse",
|
|
111
|
+
"wrapperProps": {
|
|
112
|
+
"suppressIcon": true
|
|
113
|
+
}
|
|
84
114
|
}
|
|
85
115
|
],
|
|
86
116
|
"advance": {
|
|
@@ -89,31 +119,31 @@
|
|
|
89
119
|
"key": "onMount",
|
|
90
120
|
"name": "组件首次渲染时",
|
|
91
121
|
"desc": "在组件首次渲染时,执行方法",
|
|
92
|
-
"func": "(
|
|
122
|
+
"func": "function onMount() {\n\t\n}"
|
|
93
123
|
},
|
|
94
124
|
{
|
|
95
125
|
"key": "onUnmount",
|
|
96
126
|
"name": "组件卸载时",
|
|
97
127
|
"desc": "在组件卸载时,执行方法。",
|
|
98
|
-
"func": "(
|
|
128
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
99
129
|
},
|
|
100
130
|
{
|
|
101
131
|
"key": "onOpen",
|
|
102
132
|
"name": "对话框打开时",
|
|
103
133
|
"desc": "在对话框打开时,执行方法",
|
|
104
|
-
"func": "(
|
|
134
|
+
"func": "function onOpen() {\n\t\n}"
|
|
105
135
|
},
|
|
106
136
|
{
|
|
107
137
|
"key": "onClose",
|
|
108
138
|
"name": "对话框关闭时",
|
|
109
139
|
"desc": "在对话框打开时,执行方法,promise反馈false无法截断关闭",
|
|
110
|
-
"func": "(
|
|
140
|
+
"func": "function onClose() {\n\t\n}"
|
|
111
141
|
},
|
|
112
142
|
{
|
|
113
|
-
"key": "
|
|
114
|
-
"name": "
|
|
115
|
-
"desc": "
|
|
116
|
-
"func": "(
|
|
143
|
+
"key": "onOk",
|
|
144
|
+
"name": "确定按钮点击",
|
|
145
|
+
"desc": "点击确定按钮时,执行方法",
|
|
146
|
+
"func": "function onOk() {\n\t\n}"
|
|
117
147
|
}
|
|
118
148
|
]
|
|
119
149
|
}
|
|
@@ -100,43 +100,31 @@
|
|
|
100
100
|
"key": "onMount",
|
|
101
101
|
"name": "组件首次渲染时",
|
|
102
102
|
"desc": "在组件首次渲染时,执行方法",
|
|
103
|
-
"func": "(
|
|
103
|
+
"func": "function onMount() {\n\t\n}"
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
"key": "onUnmount",
|
|
107
107
|
"name": "组件卸载时",
|
|
108
108
|
"desc": "在组件卸载时,执行方法。",
|
|
109
|
-
"func": "(
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"key": "onMount",
|
|
113
|
-
"name": "组件首次渲染时",
|
|
114
|
-
"desc": "在组件首次渲染时,执行方法",
|
|
115
|
-
"func": "(params)=>{\n\t\n}"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"key": "onUnmount",
|
|
119
|
-
"name": "组件卸载时",
|
|
120
|
-
"desc": "在组件卸载时,执行方法。",
|
|
121
|
-
"func": "(params)=>{\n\t\n}"
|
|
109
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
122
110
|
},
|
|
123
111
|
{
|
|
124
112
|
"key": "onOpen",
|
|
125
113
|
"name": "抽屉打开时",
|
|
126
114
|
"desc": "在抽屉打开时,执行方法",
|
|
127
|
-
"func": "(
|
|
115
|
+
"func": "function onOpen() {\n\t\n}"
|
|
128
116
|
},
|
|
129
117
|
{
|
|
130
118
|
"key": "onClose",
|
|
131
119
|
"name": "抽屉关闭时",
|
|
132
120
|
"desc": "在抽屉打开时,执行方法,promise反馈false无法截断关闭",
|
|
133
|
-
"func": "(
|
|
121
|
+
"func": "function onClose() {\n\t\n}"
|
|
134
122
|
},
|
|
135
123
|
{
|
|
136
|
-
"key": "
|
|
137
|
-
"name": "
|
|
138
|
-
"desc": "
|
|
139
|
-
"func": "(
|
|
124
|
+
"key": "onOk",
|
|
125
|
+
"name": "确定按钮点击",
|
|
126
|
+
"desc": "点击确定按钮时,执行方法",
|
|
127
|
+
"func": "function onOk() {\n\t\n}"
|
|
140
128
|
}
|
|
141
129
|
]
|
|
142
130
|
}
|