@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.
- package/es/locales/zh-CN.js +9 -0
- package/es/lowcode/constants/api-url.js +184 -100
- package/es/lowcode/constants/index.js +2 -1
- package/es/lowcode/engine/meta/box.props.default.json +1 -1
- package/es/lowcode/engine/meta/box.props.json +1 -1
- package/es/lowcode/engine/meta/button.props.json +1 -1
- package/es/lowcode/engine/meta/cardlist.props.json +1 -1
- package/es/lowcode/engine/meta/components-list.json +1 -1
- package/es/lowcode/engine/meta/dialog.props.json +1 -1
- package/es/lowcode/engine/meta/drawer.props.json +1 -1
- package/es/lowcode/engine/meta/form.props.default.json +4 -5
- package/es/lowcode/engine/meta/form.props.json +33 -30
- package/es/lowcode/engine/meta/image.props.json +2 -2
- package/es/lowcode/engine/meta/imex.props.json +1 -1
- package/es/lowcode/engine/meta/link.props.json +1 -1
- package/es/lowcode/engine/meta/section.props.default.json +4 -6
- package/es/lowcode/engine/meta/section.props.json +52 -49
- package/es/lowcode/engine/meta/text.props.json +2 -2
- package/es/lowcode/engine/meta/tree.props.json +2 -2
- package/es/lowcode/engine/provider/ContextProvider/index.js +10 -2
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +28 -15
- package/es/lowcode/engine/tools/helper.js +23 -21
- package/es/lowcode/engine/tools/useCanvasRender.js +5 -7
- package/es/lowcode/engine/tools/usePromiseState.js +23 -14
- package/es/lowcode/painter/Design.js +34 -2
- package/es/lowcode/painter/DesignOperator.js +6 -8
- package/es/lowcode/painter/DesignToolbar.js +258 -21
- package/es/lowcode/painter/Panel.js +8 -9
- package/es/lowcode/painter/components/AttrsPanel.js +6 -6
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +5 -2
- package/es/lowcode/painter/components/ListEditor.js +8 -2
- package/es/lowcode/painter/components/field-setting/BatchSetting.js +13 -3
- package/es/lowcode/painter/components/field-setting/SettingUI.js +26 -7
- package/es/lowcode/painter/components/field-setting/index.js +18 -8
- package/es/lowcode/painter/index.js +1 -28
- package/es/lowcode/painter/panel-section/ActionsColumnWidth.js +25 -0
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +7 -4
- package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +4 -3
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +48 -15
- package/es/lowcode/painter/panel-section/FieldsSetting.js +48 -27
- package/es/lowcode/painter/panel-section/I18nInput.js +20 -0
- package/es/lowcode/painter/style/design.less +6 -2
- package/es/lowcode/painter/style/list-editor.less +36 -0
- package/es/lowcode/preview/index.js +17 -4
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Box/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Box/meta.json +1 -1
- package/es/lowcode/view/lc-components/Button/meta.json +1 -1
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/CardList/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +1 -1
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -4
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Dialog/meta.json +1 -1
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Drawer/meta.json +1 -1
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +66 -4
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Form/index.js +232 -61
- package/es/lowcode/view/lc-components/Form/meta.json +33 -30
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +1 -1
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Image/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Image/meta.json +2 -2
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/JSX/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +6 -7
- package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Link/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Link/meta.json +1 -1
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +31 -2
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Section/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Section/index.js +114 -24
- package/es/lowcode/view/lc-components/Section/index.less +7 -0
- package/es/lowcode/view/lc-components/Section/meta.json +48 -49
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +4 -6
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Split/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Split/index.js +4 -4
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Table/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Table/index.js +7 -6
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +2 -4
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Text/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Text/meta.json +2 -2
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Tree/meta.json +2 -2
- package/es/upload/Form/gridForm.js +7 -3
- package/lib/locales/zh-CN.js +9 -0
- package/lib/lowcode/constants/api-url.js +183 -100
- package/lib/lowcode/constants/index.js +3 -2
- package/lib/lowcode/engine/meta/box.props.default.json +1 -1
- package/lib/lowcode/engine/meta/box.props.json +1 -1
- package/lib/lowcode/engine/meta/button.props.json +1 -1
- package/lib/lowcode/engine/meta/cardlist.props.json +1 -1
- package/lib/lowcode/engine/meta/components-list.json +1 -1
- package/lib/lowcode/engine/meta/dialog.props.json +1 -1
- package/lib/lowcode/engine/meta/drawer.props.json +1 -1
- package/lib/lowcode/engine/meta/form.props.default.json +4 -5
- package/lib/lowcode/engine/meta/form.props.json +33 -30
- package/lib/lowcode/engine/meta/image.props.json +2 -2
- package/lib/lowcode/engine/meta/imex.props.json +1 -1
- package/lib/lowcode/engine/meta/link.props.json +1 -1
- package/lib/lowcode/engine/meta/section.props.default.json +4 -6
- package/lib/lowcode/engine/meta/section.props.json +52 -49
- package/lib/lowcode/engine/meta/text.props.json +2 -2
- package/lib/lowcode/engine/meta/tree.props.json +2 -2
- package/lib/lowcode/engine/provider/ContextProvider/index.js +10 -2
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +24 -11
- package/lib/lowcode/engine/tools/helper.js +23 -21
- package/lib/lowcode/engine/tools/useCanvasRender.js +3 -5
- package/lib/lowcode/engine/tools/usePromiseState.js +22 -14
- package/lib/lowcode/painter/Design.js +32 -0
- package/lib/lowcode/painter/DesignOperator.js +5 -7
- package/lib/lowcode/painter/DesignToolbar.js +256 -19
- package/lib/lowcode/painter/Panel.js +7 -8
- package/lib/lowcode/painter/components/AttrsPanel.js +6 -6
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +5 -2
- package/lib/lowcode/painter/components/ListEditor.js +8 -2
- package/lib/lowcode/painter/components/field-setting/BatchSetting.js +13 -3
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +26 -7
- package/lib/lowcode/painter/components/field-setting/index.js +18 -8
- package/lib/lowcode/painter/index.js +1 -30
- package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js +32 -0
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +7 -4
- package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +4 -3
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +47 -13
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +46 -25
- package/lib/lowcode/painter/panel-section/I18nInput.js +27 -0
- package/lib/lowcode/painter/style/design.less +6 -2
- package/lib/lowcode/painter/style/list-editor.less +36 -0
- package/lib/lowcode/preview/index.js +18 -4
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Box/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Box/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Button/meta.json +1 -1
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -4
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Dialog/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +64 -2
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Form/index.js +230 -59
- package/lib/lowcode/view/lc-components/Form/meta.json +33 -30
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Iframe/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Image/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Image/meta.json +2 -2
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +5 -6
- package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Link/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Link/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +31 -2
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Section/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Section/index.js +113 -23
- package/lib/lowcode/view/lc-components/Section/index.less +7 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +48 -49
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +5 -7
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Split/index.js +4 -4
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Table/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Table/index.js +7 -6
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +4 -6
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Text/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Text/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Tree/meta.json +2 -2
- package/lib/upload/Form/gridForm.js +7 -3
- package/package.json +1 -1
- package/es/lowcode/painter/services/toolbar.js +0 -25
- 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__*/
|
|
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__*/
|
|
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)(
|
|
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(
|
|
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 =
|
|
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 =
|
|
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__*/
|
|
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__*/
|
|
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__*/
|
|
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": "
|
|
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": "
|
|
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__*/
|
|
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": "
|
|
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": "
|
|
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,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
|
-
}
|