@luck-design-biz/luckda 1.0.1 → 1.0.2
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.less +3 -1
- package/es/components/LdAutoForm/index.js +2 -1
- package/es/components/LdCard/index.js +154 -67
- package/es/components/LdFormList/index.js +20 -6
- package/es/components/LdGridForm/index.js +40 -24
- package/es/components/LdTree/index.js +14 -8
- package/es/components/LdTree/index.less +4 -2
- package/es/helper/ldBuilder.js +1 -1
- package/es/locales/zh-CN.js +13 -4
- package/es/lowcode/constants/index.js +1 -1
- package/es/lowcode/engine/meta/cardlist.props.default.json +27 -6
- package/es/lowcode/engine/meta/cardlist.props.json +254 -72
- package/es/lowcode/engine/meta/components-list.json +6 -102
- package/es/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/es/lowcode/engine/meta/dialog.props.json +74 -18
- package/es/lowcode/engine/meta/drawer.props.default.json +15 -4
- package/es/lowcode/engine/meta/drawer.props.json +144 -24
- package/es/lowcode/engine/meta/form.props.default.json +14 -3
- package/es/lowcode/engine/meta/form.props.json +49 -9
- package/es/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/es/lowcode/engine/meta/grouptree.props.json +83 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +1 -1
- package/es/lowcode/engine/meta/iframe.props.json +3 -4
- package/es/lowcode/engine/meta/image.props.default.json +3 -2
- package/es/lowcode/engine/meta/image.props.json +51 -16
- package/es/lowcode/engine/meta/imex.props.json +1 -1
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +23 -5
- package/es/lowcode/engine/meta/link.props.default.json +1 -1
- package/es/lowcode/engine/meta/link.props.json +9 -9
- package/es/lowcode/engine/meta/table.props.json +1 -1
- package/es/lowcode/engine/meta/tabs.props.default.json +1 -1
- package/es/lowcode/engine/meta/tabs.props.json +1 -1
- package/es/lowcode/engine/meta/tree.props.json +2 -2
- package/es/lowcode/engine/provider/ContextProvider/index.js +6 -2
- package/es/lowcode/engine/provider/ContextProvider/usePageDataStore.js +82 -2
- package/es/lowcode/engine/tools/helper.js +21 -0
- package/es/lowcode/engine/tools/useCanvasRender.js +13 -1
- package/es/lowcode/painter/Components.js +6 -1
- package/es/lowcode/painter/Design.js +1 -0
- package/es/lowcode/painter/DesignOperator.js +25 -15
- package/es/lowcode/painter/DesignToolbar.js +78 -47
- package/es/lowcode/painter/Ribbon.js +14 -1
- package/es/lowcode/painter/components/ActionBindModal.js +3 -7
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +144 -37
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +29 -6
- package/es/lowcode/painter/components/DragDrop/Overlay.js +5 -2
- package/es/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +7 -4
- package/es/lowcode/painter/components/NumberInput.js +1 -1
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +2 -1
- package/es/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
- package/es/lowcode/painter/components/field-setting/SettingUI.js +30 -2
- package/es/lowcode/painter/components/field-setting/index.js +26 -12
- package/es/lowcode/painter/expect.js +27 -0
- package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +20 -2
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js +18 -3
- package/es/lowcode/painter/panel-section/ComplexPop.js +1 -1
- package/es/lowcode/painter/panel-section/DataSetSelector.js +14 -3
- package/es/lowcode/painter/panel-section/FieldsSetting.js +2 -2
- package/es/lowcode/painter/panel-section/GroupClassSelector.js +55 -0
- package/es/lowcode/painter/panel-section/PageVars.js +1 -1
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +1 -0
- package/es/lowcode/painter/panel-section/TabItems.js +1 -1
- package/es/lowcode/painter/panel-section/TableTopFilter.js +3 -3
- package/es/lowcode/painter/style/action-bind-modal.less +5 -3
- package/es/lowcode/painter/style/design.less +26 -7
- package/es/lowcode/painter/style/dragdrop.less +46 -0
- package/es/lowcode/painter/style/list-editor.less +5 -3
- package/es/lowcode/painter/style/number-input.less +3 -1
- package/es/lowcode/painter/style/outline.less +3 -1
- package/es/lowcode/painter/style/panel-attrs.less +7 -3
- package/es/lowcode/painter/style/panel.less +9 -7
- package/es/lowcode/painter/style/radio.less +1 -1
- package/es/lowcode/painter/style/ribbon.less +4 -2
- package/es/lowcode/painter/svg/code.svg +3 -0
- package/es/lowcode/painter/svg/expect.svg +9 -0
- package/es/lowcode/view/lc-components/CardList/index.js +481 -12
- package/es/lowcode/view/lc-components/CardList/meta.json +255 -73
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +14 -6
- package/es/lowcode/view/lc-components/Dialog/index.js +15 -5
- package/es/lowcode/view/lc-components/Dialog/index.less +4 -0
- package/es/lowcode/view/lc-components/Dialog/meta.json +72 -18
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +51 -8
- package/es/lowcode/view/lc-components/Drawer/index.js +139 -24
- package/es/lowcode/view/lc-components/Drawer/index.less +11 -8
- package/es/lowcode/view/lc-components/Drawer/meta.json +136 -25
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Form/index.js +45 -28
- package/es/lowcode/view/lc-components/Form/meta.json +44 -8
- package/es/lowcode/view/lc-components/GroupTree/FunctionDesign.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/FunctionLive.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/FunctionPreview.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/index.js +212 -0
- package/es/lowcode/view/lc-components/GroupTree/index.less +12 -0
- package/es/lowcode/view/lc-components/GroupTree/meta.json +83 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +57 -7
- package/es/lowcode/view/lc-components/Iframe/meta.json +3 -4
- package/es/lowcode/view/lc-components/ImEx/meta.json +1 -1
- package/es/lowcode/view/lc-components/Image/index.js +82 -6
- package/es/lowcode/view/lc-components/Image/index.less +27 -0
- package/es/lowcode/view/lc-components/Image/meta.json +51 -16
- package/es/lowcode/view/lc-components/Link/index.js +53 -5
- package/es/lowcode/view/lc-components/Link/index.less +15 -0
- package/es/lowcode/view/lc-components/Link/meta.json +9 -9
- package/es/lowcode/view/lc-components/Table/index.js +5 -6
- package/es/lowcode/view/lc-components/Table/meta.json +1 -1
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +40 -4
- package/es/lowcode/view/lc-components/Tabs/index.js +1 -1
- package/es/lowcode/view/lc-components/Tabs/meta.json +1 -1
- package/es/lowcode/view/lc-components/Tree/index.js +21 -19
- package/es/lowcode/view/lc-components/Tree/meta.json +2 -2
- package/es/utils/grid.js +3 -3
- package/lib/components/LDActions/index.less +3 -1
- package/lib/components/LdAutoForm/index.js +2 -1
- package/lib/components/LdCard/index.js +153 -66
- package/lib/components/LdFormList/index.js +19 -5
- package/lib/components/LdGridForm/index.js +40 -24
- package/lib/components/LdTree/index.js +14 -8
- package/lib/components/LdTree/index.less +4 -2
- package/lib/helper/ldBuilder.js +2 -2
- package/lib/locales/zh-CN.js +13 -4
- package/lib/lowcode/constants/index.js +1 -1
- package/lib/lowcode/engine/meta/cardlist.props.default.json +27 -6
- package/lib/lowcode/engine/meta/cardlist.props.json +254 -72
- package/lib/lowcode/engine/meta/components-list.json +6 -102
- package/lib/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/lib/lowcode/engine/meta/dialog.props.json +74 -18
- package/lib/lowcode/engine/meta/drawer.props.default.json +15 -4
- package/lib/lowcode/engine/meta/drawer.props.json +144 -24
- package/lib/lowcode/engine/meta/form.props.default.json +14 -3
- package/lib/lowcode/engine/meta/form.props.json +49 -9
- package/lib/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/lib/lowcode/engine/meta/grouptree.props.json +83 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +1 -1
- package/lib/lowcode/engine/meta/iframe.props.json +3 -4
- package/lib/lowcode/engine/meta/image.props.default.json +3 -2
- package/lib/lowcode/engine/meta/image.props.json +51 -16
- package/lib/lowcode/engine/meta/imex.props.json +1 -1
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +23 -5
- package/lib/lowcode/engine/meta/link.props.default.json +1 -1
- package/lib/lowcode/engine/meta/link.props.json +9 -9
- package/lib/lowcode/engine/meta/table.props.json +1 -1
- package/lib/lowcode/engine/meta/tabs.props.default.json +1 -1
- package/lib/lowcode/engine/meta/tabs.props.json +1 -1
- package/lib/lowcode/engine/meta/tree.props.json +2 -2
- package/lib/lowcode/engine/provider/ContextProvider/index.js +6 -2
- package/lib/lowcode/engine/provider/ContextProvider/usePageDataStore.js +83 -3
- package/lib/lowcode/engine/tools/helper.js +22 -0
- package/lib/lowcode/engine/tools/useCanvasRender.js +13 -1
- package/lib/lowcode/painter/Components.js +6 -1
- package/lib/lowcode/painter/Design.js +1 -0
- package/lib/lowcode/painter/DesignOperator.js +25 -15
- package/lib/lowcode/painter/DesignToolbar.js +78 -47
- package/lib/lowcode/painter/Ribbon.js +14 -1
- package/lib/lowcode/painter/components/ActionBindModal.js +3 -7
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +142 -35
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +27 -4
- package/lib/lowcode/painter/components/DragDrop/Overlay.js +5 -2
- package/lib/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +7 -4
- package/lib/lowcode/painter/components/NumberInput.js +1 -1
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +2 -1
- package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +29 -1
- package/lib/lowcode/painter/components/field-setting/index.js +26 -12
- package/lib/lowcode/painter/expect.js +34 -0
- package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +19 -1
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +18 -3
- package/lib/lowcode/painter/panel-section/ComplexPop.js +1 -1
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +14 -3
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +2 -2
- package/lib/lowcode/painter/panel-section/GroupClassSelector.js +63 -0
- package/lib/lowcode/painter/panel-section/PageVars.js +1 -1
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +1 -0
- package/lib/lowcode/painter/panel-section/TabItems.js +1 -1
- package/lib/lowcode/painter/panel-section/TableTopFilter.js +3 -3
- package/lib/lowcode/painter/style/action-bind-modal.less +5 -3
- package/lib/lowcode/painter/style/design.less +26 -7
- package/lib/lowcode/painter/style/dragdrop.less +46 -0
- package/lib/lowcode/painter/style/list-editor.less +5 -3
- package/lib/lowcode/painter/style/number-input.less +3 -1
- package/lib/lowcode/painter/style/outline.less +3 -1
- package/lib/lowcode/painter/style/panel-attrs.less +7 -3
- package/lib/lowcode/painter/style/panel.less +9 -7
- package/lib/lowcode/painter/style/radio.less +1 -1
- package/lib/lowcode/painter/style/ribbon.less +4 -2
- package/lib/lowcode/painter/svg/code.svg +3 -0
- package/lib/lowcode/painter/svg/expect.svg +9 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +480 -11
- package/lib/lowcode/view/lc-components/CardList/meta.json +255 -73
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +13 -5
- package/lib/lowcode/view/lc-components/Dialog/index.js +15 -5
- package/lib/lowcode/view/lc-components/Dialog/index.less +4 -0
- package/lib/lowcode/view/lc-components/Dialog/meta.json +72 -18
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +52 -8
- package/lib/lowcode/view/lc-components/Drawer/index.js +138 -23
- package/lib/lowcode/view/lc-components/Drawer/index.less +11 -8
- package/lib/lowcode/view/lc-components/Drawer/meta.json +136 -25
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Form/index.js +44 -27
- package/lib/lowcode/view/lc-components/Form/meta.json +44 -8
- package/lib/lowcode/view/lc-components/GroupTree/FunctionDesign.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/FunctionLive.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/FunctionPreview.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/index.js +220 -0
- package/lib/lowcode/view/lc-components/GroupTree/index.less +12 -0
- package/lib/lowcode/view/lc-components/GroupTree/meta.json +83 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +55 -5
- package/lib/lowcode/view/lc-components/Iframe/meta.json +3 -4
- package/lib/lowcode/view/lc-components/ImEx/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Image/index.js +80 -4
- package/lib/lowcode/view/lc-components/Image/index.less +27 -0
- package/lib/lowcode/view/lc-components/Image/meta.json +51 -16
- package/lib/lowcode/view/lc-components/Link/index.js +52 -4
- package/lib/lowcode/view/lc-components/Link/index.less +15 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +9 -9
- package/lib/lowcode/view/lc-components/Table/index.js +5 -6
- package/lib/lowcode/view/lc-components/Table/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +38 -2
- package/lib/lowcode/view/lc-components/Tabs/index.js +1 -1
- package/lib/lowcode/view/lc-components/Tabs/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Tree/index.js +20 -18
- package/lib/lowcode/view/lc-components/Tree/meta.json +2 -2
- package/lib/utils/grid.js +2 -2
- package/package.json +10 -9
- package/es/lowcode/painter/style/treedragdrop.less +0 -19
- package/es/lowcode/view/lc-components/Form/index.less +0 -5
- package/lib/lowcode/painter/style/treedragdrop.less +0 -19
- package/lib/lowcode/view/lc-components/Form/index.less +0 -5
|
@@ -5,7 +5,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
5
5
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
6
6
|
import React, { useState } from 'react';
|
|
7
7
|
import { useRequest, useMemoizedFn, useCreation } from 'ahooks';
|
|
8
|
-
import { Spin, Input, Segmented, Switch, Tooltip, Icon, Radio, Modal } from 'luck-design/antd';
|
|
8
|
+
import { Spin, Input, Segmented, Switch, Checkbox, Tooltip, Icon, Radio, Modal } from 'luck-design/antd';
|
|
9
9
|
import styled from 'styled-components';
|
|
10
10
|
import { isArray, keyBy, isNil, groupBy } from 'lodash';
|
|
11
11
|
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
@@ -58,6 +58,19 @@ var _PINNED_OPTIONS_ = [{
|
|
|
58
58
|
}),
|
|
59
59
|
value: 'right'
|
|
60
60
|
}];
|
|
61
|
+
var _FORM_MODE_OPTIONS_ = [{
|
|
62
|
+
label: formatMessage({
|
|
63
|
+
id: "".concat(_I18N_PREFIX_, ".formMode.single"),
|
|
64
|
+
label: '单行'
|
|
65
|
+
}),
|
|
66
|
+
value: 'single'
|
|
67
|
+
}, {
|
|
68
|
+
label: formatMessage({
|
|
69
|
+
id: "".concat(_I18N_PREFIX_, ".formMode.bulk"),
|
|
70
|
+
label: '批量'
|
|
71
|
+
}),
|
|
72
|
+
value: 'bulk'
|
|
73
|
+
}];
|
|
61
74
|
var _TRUE_FALSE_ = ['__TRUE__', '__FALSE__'];
|
|
62
75
|
var CoderWrapper = styled.div.withConfig({
|
|
63
76
|
displayName: "CoderWrapper",
|
|
@@ -71,6 +84,10 @@ var StyledRadio = styled(Radio.Group).withConfig({
|
|
|
71
84
|
displayName: "StyledRadio",
|
|
72
85
|
componentId: "luckda-6530__sc-1n41f3z-2"
|
|
73
86
|
})(["span.ant-radio + *{padding-left:4px;padding-right:4px;}"]);
|
|
87
|
+
var StyledCheckbox = styled(Checkbox.Group).withConfig({
|
|
88
|
+
displayName: "StyledCheckbox",
|
|
89
|
+
componentId: "luckda-6530__sc-1n41f3z-3"
|
|
90
|
+
})([".ant-checkbox-wrapper{font-size:12px;}"]);
|
|
74
91
|
var _DEFAULT_RENDER_CODE = "function render(value, data, rowIndex, params) { \n return value;\n}";
|
|
75
92
|
var SettingUI = function SettingUI(_ref) {
|
|
76
93
|
var loading = _ref.loading,
|
|
@@ -317,7 +334,18 @@ var SettingUI = function SettingUI(_ref) {
|
|
|
317
334
|
onChange: function onChange(val) {
|
|
318
335
|
return run('tip', val);
|
|
319
336
|
}
|
|
320
|
-
}))), component === '
|
|
337
|
+
}))), component === 'tableForm' && /*#__PURE__*/React.createElement(PanelItem, {
|
|
338
|
+
label: formatMessage({
|
|
339
|
+
id: "".concat(_I18N_PREFIX_, ".formMode"),
|
|
340
|
+
label: '修改方式'
|
|
341
|
+
})
|
|
342
|
+
}, /*#__PURE__*/React.createElement(StyledCheckbox, {
|
|
343
|
+
options: _FORM_MODE_OPTIONS_,
|
|
344
|
+
defaultValue: fieldData.formMode ? [fieldData.formMode] : ['single', 'bulk'],
|
|
345
|
+
onChange: function onChange(val) {
|
|
346
|
+
return run('formMode', val);
|
|
347
|
+
}
|
|
348
|
+
})), component === 'form' && /*#__PURE__*/React.createElement(PanelItem, {
|
|
321
349
|
label: formatMessage({
|
|
322
350
|
id: "".concat(_I18N_PREFIX_, ".fieldColumn"),
|
|
323
351
|
label: '占列数'
|
|
@@ -224,7 +224,7 @@ var FieldSetting = function FieldSetting(_ref) {
|
|
|
224
224
|
moduleUid: moduleId
|
|
225
225
|
}, val ? 'uniqueFieldUid' : 'noUniqueFieldUid', fieldData.uid));
|
|
226
226
|
case 3:
|
|
227
|
-
_context.next =
|
|
227
|
+
_context.next = 38;
|
|
228
228
|
break;
|
|
229
229
|
case 5:
|
|
230
230
|
if (!(key === 'align' || key === 'headerAlign' || key === 'pinned' || key === 'tip' || key === 'render')) {
|
|
@@ -232,22 +232,36 @@ var FieldSetting = function FieldSetting(_ref) {
|
|
|
232
232
|
break;
|
|
233
233
|
}
|
|
234
234
|
handleUIChange(key, val);
|
|
235
|
-
_context.next =
|
|
235
|
+
_context.next = 38;
|
|
236
236
|
break;
|
|
237
237
|
case 9:
|
|
238
|
-
if (!(key === '
|
|
238
|
+
if (!(key === 'formMode')) {
|
|
239
239
|
_context.next = 13;
|
|
240
240
|
break;
|
|
241
241
|
}
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
if (val.includes('single') && !val.includes('bulk')) {
|
|
243
|
+
handleUIChange(key, 'single');
|
|
244
|
+
} else if (!val.includes('single') && val.includes('bulk')) {
|
|
245
|
+
handleUIChange(key, 'bulk');
|
|
246
|
+
} else {
|
|
247
|
+
handleUIChange(key, void 0);
|
|
248
|
+
}
|
|
249
|
+
_context.next = 38;
|
|
244
250
|
break;
|
|
245
251
|
case 13:
|
|
252
|
+
if (!(key === 'col' || key === 'row')) {
|
|
253
|
+
_context.next = 17;
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
handleUIChange(key, val);
|
|
257
|
+
_context.next = 38;
|
|
258
|
+
break;
|
|
259
|
+
case 17:
|
|
246
260
|
if (!(key === 'delRule')) {
|
|
247
|
-
_context.next =
|
|
261
|
+
_context.next = 25;
|
|
248
262
|
break;
|
|
249
263
|
}
|
|
250
|
-
_context.next =
|
|
264
|
+
_context.next = 20;
|
|
251
265
|
return fetchDelAttrs({
|
|
252
266
|
moduleDatasetUid: fieldData.datasetFieldUid,
|
|
253
267
|
ccmModuleFieldVerifies: [{
|
|
@@ -255,11 +269,11 @@ var FieldSetting = function FieldSetting(_ref) {
|
|
|
255
269
|
}],
|
|
256
270
|
scope: FIELD_SCOPES.CHECK_RULES
|
|
257
271
|
});
|
|
258
|
-
case
|
|
272
|
+
case 20:
|
|
259
273
|
_yield$fetchDelAttrs = _context.sent;
|
|
260
274
|
code = _yield$fetchDelAttrs.code;
|
|
261
275
|
return _context.abrupt("return", code === 1);
|
|
262
|
-
case
|
|
276
|
+
case 25:
|
|
263
277
|
mapping = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, FIELD_SCOPES.FIELD_REQUIRED, {
|
|
264
278
|
key: 'fieldRequired',
|
|
265
279
|
refresh: requiredRefresh
|
|
@@ -295,15 +309,15 @@ var FieldSetting = function FieldSetting(_ref) {
|
|
|
295
309
|
if (!_stateItem) {
|
|
296
310
|
d.datasetBusinessUids = [fieldData.uid];
|
|
297
311
|
}
|
|
298
|
-
_context.next =
|
|
312
|
+
_context.next = 35;
|
|
299
313
|
return request(d);
|
|
300
|
-
case
|
|
314
|
+
case 35:
|
|
301
315
|
_yield$request = _context.sent;
|
|
302
316
|
_code = _yield$request.code;
|
|
303
317
|
if (_code === 1) {
|
|
304
318
|
mapping[key].refresh();
|
|
305
319
|
}
|
|
306
|
-
case
|
|
320
|
+
case 38:
|
|
307
321
|
case "end":
|
|
308
322
|
return _context.stop();
|
|
309
323
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Empty } from 'luck-design/antd';
|
|
4
|
+
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
5
|
+
var Expect = function Expect(_ref) {
|
|
6
|
+
var style = _ref.style;
|
|
7
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
8
|
+
style: _objectSpread({
|
|
9
|
+
height: '100%',
|
|
10
|
+
width: '100%',
|
|
11
|
+
display: 'flex',
|
|
12
|
+
justifyContent: 'center',
|
|
13
|
+
alignItems: 'center'
|
|
14
|
+
}, style)
|
|
15
|
+
}, /*#__PURE__*/React.createElement(Empty, {
|
|
16
|
+
image: require("./svg/expect.svg"),
|
|
17
|
+
imageStyle: {
|
|
18
|
+
height: '101px',
|
|
19
|
+
width: '129px'
|
|
20
|
+
},
|
|
21
|
+
description: formatMessage({
|
|
22
|
+
id: 'luckda.lowcode.painter.I18n.empty',
|
|
23
|
+
label: '敬请期待'
|
|
24
|
+
})
|
|
25
|
+
}));
|
|
26
|
+
};
|
|
27
|
+
export default Expect;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import { useMemoizedFn } from 'ahooks';
|
|
3
|
-
import { Input, Segmented } from 'luck-design/antd';
|
|
3
|
+
import { Input, Segmented, Popover } from 'luck-design/antd';
|
|
4
4
|
import { cloneDeep } from 'lodash';
|
|
5
5
|
import { PopForm, PopFormItem, PopFormItemLeft, PopFormItemRight } from "../../components/PopForm";
|
|
6
6
|
import SerialsSelector from "../SerialsSelector";
|
|
7
7
|
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
8
|
+
import IconChoice from "../Icon";
|
|
9
|
+
import IconSelector from "../IconSelector";
|
|
8
10
|
var _I18N_PREFIX_ = 'luckda.lowcode.painter.panel-section.actionEditor';
|
|
9
11
|
var _SERIAL_EFFECT_OPTIONS_ = [{
|
|
10
12
|
label: formatMessage({
|
|
@@ -48,6 +50,8 @@ var ActionEditor = function ActionEditor(_ref) {
|
|
|
48
50
|
var action = _ref.action,
|
|
49
51
|
onChange = _ref.onChange,
|
|
50
52
|
suppressName = _ref.suppressName,
|
|
53
|
+
_ref$suppressIcon = _ref.suppressIcon,
|
|
54
|
+
suppressIcon = _ref$suppressIcon === void 0 ? true : _ref$suppressIcon,
|
|
51
55
|
suppressRiskLevel = _ref.suppressRiskLevel;
|
|
52
56
|
var valueRef = useRef(cloneDeep(action));
|
|
53
57
|
var handleChange = useMemoizedFn(function (field, value) {
|
|
@@ -67,7 +71,21 @@ var ActionEditor = function ActionEditor(_ref) {
|
|
|
67
71
|
id: "".concat(_I18N_PREFIX_, ".name.placeholder"),
|
|
68
72
|
label: '请输入行为名称'
|
|
69
73
|
})
|
|
70
|
-
}))), /*#__PURE__*/React.createElement(PopFormItem, null, /*#__PURE__*/React.createElement(PopFormItemLeft, null, formatMessage({
|
|
74
|
+
}))), !suppressIcon && /*#__PURE__*/React.createElement(PopFormItem, null, /*#__PURE__*/React.createElement(PopFormItemLeft, null, formatMessage({
|
|
75
|
+
id: "".concat(_I18N_PREFIX_, ".icon"),
|
|
76
|
+
label: '图标'
|
|
77
|
+
})), /*#__PURE__*/React.createElement(PopFormItemRight, null, /*#__PURE__*/React.createElement(Popover, {
|
|
78
|
+
placement: "left",
|
|
79
|
+
content: /*#__PURE__*/React.createElement(IconSelector, {
|
|
80
|
+
value: action.icon,
|
|
81
|
+
onChange: function onChange(value) {
|
|
82
|
+
return handleChange('icon', value);
|
|
83
|
+
}
|
|
84
|
+
}),
|
|
85
|
+
trigger: "click"
|
|
86
|
+
}, /*#__PURE__*/React.createElement(IconChoice, {
|
|
87
|
+
value: action.icon
|
|
88
|
+
})))), /*#__PURE__*/React.createElement(PopFormItem, null, /*#__PURE__*/React.createElement(PopFormItemLeft, null, formatMessage({
|
|
71
89
|
id: "".concat(_I18N_PREFIX_, ".serial"),
|
|
72
90
|
label: '资源串'
|
|
73
91
|
})), /*#__PURE__*/React.createElement(PopFormItemRight, null, /*#__PURE__*/React.createElement(SerialsSelector, {
|
|
@@ -12,6 +12,7 @@ import PopConfirm from "../../components/PopConfirm";
|
|
|
12
12
|
import ActionBindModal from "../../components/ActionBindModal";
|
|
13
13
|
import { formatMessage, suid } from '@luck-design-biz/base/utils';
|
|
14
14
|
import { listReducer } from "../../../engine/tools/helper";
|
|
15
|
+
import IconFont from "../../../../components/IconFont";
|
|
15
16
|
import styles from "../../style/actions-editor.less";
|
|
16
17
|
var _I18N_PREFIX_ = 'luckda.lowcode.painter.panel-section.actionsEditor';
|
|
17
18
|
var _DISPLAY_OPTIONS_ = [{
|
|
@@ -32,6 +33,8 @@ var ActionsEditor = function ActionsEditor(_ref) {
|
|
|
32
33
|
defaultValue = _ref.defaultValue,
|
|
33
34
|
onChange = _ref.onChange,
|
|
34
35
|
suppressDisplay = _ref.suppressDisplay,
|
|
36
|
+
_ref$suppressIcon = _ref.suppressIcon,
|
|
37
|
+
suppressIcon = _ref$suppressIcon === void 0 ? true : _ref$suppressIcon,
|
|
35
38
|
suppressMax = _ref.suppressMax,
|
|
36
39
|
suppressMore = _ref.suppressMore,
|
|
37
40
|
defaultCode = _ref.defaultCode;
|
|
@@ -53,7 +56,8 @@ var ActionsEditor = function ActionsEditor(_ref) {
|
|
|
53
56
|
serial: void 0,
|
|
54
57
|
serialEffect: 'hidden',
|
|
55
58
|
riskLevel: 'default',
|
|
56
|
-
actionPool: []
|
|
59
|
+
actionPool: [],
|
|
60
|
+
icon: suppressIcon ? null : 'iconyingyongguanli'
|
|
57
61
|
},
|
|
58
62
|
callback: function callback(newActions) {
|
|
59
63
|
valueRef.current.todoList = newActions;
|
|
@@ -110,7 +114,8 @@ var ActionsEditor = function ActionsEditor(_ref) {
|
|
|
110
114
|
action: action,
|
|
111
115
|
onChange: function onChange(value) {
|
|
112
116
|
return handleValueChange('action', value);
|
|
113
|
-
}
|
|
117
|
+
},
|
|
118
|
+
suppressIcon: suppressIcon
|
|
114
119
|
})
|
|
115
120
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
116
121
|
type: "edit",
|
|
@@ -207,11 +212,21 @@ var ActionsEditor = function ActionsEditor(_ref) {
|
|
|
207
212
|
}),
|
|
208
213
|
handleAdd: handleAdd
|
|
209
214
|
}, todoList.map(function (action) {
|
|
215
|
+
var _action$icon;
|
|
210
216
|
return /*#__PURE__*/React.createElement(SortItem, {
|
|
211
217
|
key: action.id,
|
|
212
218
|
id: action.id
|
|
213
219
|
}, /*#__PURE__*/React.createElement(ListEditorItem, {
|
|
214
|
-
left: /*#__PURE__*/React.createElement("
|
|
220
|
+
left: /*#__PURE__*/React.createElement("p", {
|
|
221
|
+
style: {
|
|
222
|
+
margin: 0
|
|
223
|
+
}
|
|
224
|
+
}, suppressIcon ? null : /*#__PURE__*/React.createElement(IconFont, {
|
|
225
|
+
type: (_action$icon = action.icon) !== null && _action$icon !== void 0 ? _action$icon : 'iconyingyongguanli',
|
|
226
|
+
style: {
|
|
227
|
+
marginRight: '4px'
|
|
228
|
+
}
|
|
229
|
+
}), /*#__PURE__*/React.createElement("span", null, action.name)),
|
|
215
230
|
right: renderItemRight(action),
|
|
216
231
|
item: action,
|
|
217
232
|
dispatch: dispatch
|
|
@@ -18,7 +18,7 @@ var _I18N_PREFIX_ = 'luckda.lowcode.painter.panel-section.complexPop';
|
|
|
18
18
|
var DividerSpan = styled.span.withConfig({
|
|
19
19
|
displayName: "DividerSpan",
|
|
20
20
|
componentId: "luckda-6530__sc-lmsle1-0"
|
|
21
|
-
})(["font-size:12px;color
|
|
21
|
+
})(["font-size:12px;color:@text-color;"]);
|
|
22
22
|
var FieldKey = styled.div.withConfig({
|
|
23
23
|
displayName: "FieldKey",
|
|
24
24
|
componentId: "luckda-6530__sc-lmsle1-1"
|
|
@@ -9,6 +9,7 @@ import { Select, Button, Tooltip } from 'luck-design/antd';
|
|
|
9
9
|
import { useRemoteSource } from "../../engine/provider/ContextProvider";
|
|
10
10
|
import { fetchAddDataset } from "../../constants/api-url";
|
|
11
11
|
import { getLDMetaAttr } from "../../engine/tools/helper";
|
|
12
|
+
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
12
13
|
var Div = styled.div.withConfig({
|
|
13
14
|
displayName: "Div",
|
|
14
15
|
componentId: "luckda-6530__sc-onj9tc-0"
|
|
@@ -139,7 +140,12 @@ var DataSetSelector = function DataSetSelector(_ref) {
|
|
|
139
140
|
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
140
141
|
title: opt.name
|
|
141
142
|
}, opt.name));
|
|
142
|
-
})), /*#__PURE__*/React.createElement(
|
|
143
|
+
})), /*#__PURE__*/React.createElement(Tooltip, {
|
|
144
|
+
title: formatMessage({
|
|
145
|
+
id: 'luckda.lowcode.painter.dateSetSelector.setting',
|
|
146
|
+
label: '配置字段'
|
|
147
|
+
})
|
|
148
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
143
149
|
size: size,
|
|
144
150
|
icon: "setting",
|
|
145
151
|
style: {
|
|
@@ -154,7 +160,12 @@ var DataSetSelector = function DataSetSelector(_ref) {
|
|
|
154
160
|
component: component
|
|
155
161
|
});
|
|
156
162
|
}
|
|
157
|
-
}), /*#__PURE__*/React.createElement(
|
|
163
|
+
})), /*#__PURE__*/React.createElement(Tooltip, {
|
|
164
|
+
title: formatMessage({
|
|
165
|
+
id: 'luckda.lowcode.painter.dateSetSelector.sync',
|
|
166
|
+
label: '同步数据'
|
|
167
|
+
})
|
|
168
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
158
169
|
size: size,
|
|
159
170
|
icon: "cloud-sync",
|
|
160
171
|
loading: fetchAllDatasetLoading,
|
|
@@ -162,6 +173,6 @@ var DataSetSelector = function DataSetSelector(_ref) {
|
|
|
162
173
|
marginLeft: 4
|
|
163
174
|
},
|
|
164
175
|
onClick: refreshDataset
|
|
165
|
-
}));
|
|
176
|
+
})));
|
|
166
177
|
};
|
|
167
178
|
export default DataSetSelector;
|
|
@@ -16,7 +16,7 @@ import { fetchFieldsByDataset } from "../../constants/api-url";
|
|
|
16
16
|
import { listReducer, getLDMetaAttr } from "../../engine/tools/helper";
|
|
17
17
|
import styles from "../style/fields-setting.less";
|
|
18
18
|
var _I18N_PREFIX_ = 'luckda.lowcode.painter.panel-section.fieldsSetting';
|
|
19
|
-
var _PICK_KEYS_ = ['id', 'uid', 'field', 'width', 'align', 'headerAlign', 'pinned', 'tip', 'render', 'col', 'row', 'note', 'placeholder', 'fieldAliasName', 'complexConfig'];
|
|
19
|
+
var _PICK_KEYS_ = ['id', 'uid', 'field', 'width', 'align', 'headerAlign', 'pinned', 'tip', 'render', 'col', 'row', 'note', 'placeholder', 'fieldAliasName', 'complexConfig', 'formMode'];
|
|
20
20
|
var Header = styled.div.withConfig({
|
|
21
21
|
displayName: "Header",
|
|
22
22
|
componentId: "luckda-6530__sc-gcwvp1-0"
|
|
@@ -197,7 +197,7 @@ var FieldsSetting = function FieldsSetting(_ref) {
|
|
|
197
197
|
data: {
|
|
198
198
|
uid: groupId,
|
|
199
199
|
id: groupId,
|
|
200
|
-
field:
|
|
200
|
+
field: groupId,
|
|
201
201
|
fieldName: 'Group',
|
|
202
202
|
_type: 'divider'
|
|
203
203
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
|
+
import React, { useState } from 'react';
|
|
5
|
+
import { useAsyncEffect } from 'ahooks';
|
|
6
|
+
import { Select } from 'luck-design/antd';
|
|
7
|
+
import { readAllClass } from '@luck-design-biz/base/lib/sys/services';
|
|
8
|
+
var GroupClassSelector = function GroupClassSelector(_ref) {
|
|
9
|
+
var defaultValue = _ref.defaultValue,
|
|
10
|
+
_onChange = _ref.onChange;
|
|
11
|
+
var _useState = useState([]),
|
|
12
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
13
|
+
options = _useState2[0],
|
|
14
|
+
setOptions = _useState2[1];
|
|
15
|
+
useAsyncEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16
|
+
var _yield$readAllClass, code, list, detail, data;
|
|
17
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19
|
+
case 0:
|
|
20
|
+
_context.next = 2;
|
|
21
|
+
return readAllClass();
|
|
22
|
+
case 2:
|
|
23
|
+
_yield$readAllClass = _context.sent;
|
|
24
|
+
code = _yield$readAllClass.code;
|
|
25
|
+
list = _yield$readAllClass.list;
|
|
26
|
+
detail = _yield$readAllClass.detail;
|
|
27
|
+
if (code === 1) {
|
|
28
|
+
data = list.map(function (id) {
|
|
29
|
+
return {
|
|
30
|
+
key: detail[id].skey,
|
|
31
|
+
label: detail[id].sname
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
setOptions(data);
|
|
35
|
+
}
|
|
36
|
+
case 7:
|
|
37
|
+
case "end":
|
|
38
|
+
return _context.stop();
|
|
39
|
+
}
|
|
40
|
+
}, _callee);
|
|
41
|
+
})), []);
|
|
42
|
+
return /*#__PURE__*/React.createElement(Select, {
|
|
43
|
+
defaultValue: defaultValue,
|
|
44
|
+
onChange: function onChange(val) {
|
|
45
|
+
return _onChange(val);
|
|
46
|
+
},
|
|
47
|
+
size: "small"
|
|
48
|
+
}, options.map(function (item) {
|
|
49
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
50
|
+
key: item.key,
|
|
51
|
+
value: item.key
|
|
52
|
+
}, item.label);
|
|
53
|
+
}));
|
|
54
|
+
};
|
|
55
|
+
export default GroupClassSelector;
|
|
@@ -136,7 +136,7 @@ var PageVars = function PageVars(_ref) {
|
|
|
136
136
|
label: "\u786E\u8BA4\u5220\u9664\u5417\uFF1F"
|
|
137
137
|
}),
|
|
138
138
|
onOk: function onOk() {
|
|
139
|
-
if (currentItem.id === item.id) {
|
|
139
|
+
if ((currentItem === null || currentItem === void 0 ? void 0 : currentItem.id) === item.id) {
|
|
140
140
|
setCurrentItem(null);
|
|
141
141
|
}
|
|
142
142
|
dispatch({
|
|
@@ -160,9 +160,9 @@ var TableTopFilter = function TableTopFilter(_ref) {
|
|
|
160
160
|
id: "".concat(_I18N_PREFIX_, ".field.placeholder"),
|
|
161
161
|
label: '请选择过滤字段'
|
|
162
162
|
}),
|
|
163
|
-
onChange: function onChange(
|
|
163
|
+
onChange: function onChange(value) {
|
|
164
164
|
return handleChange(_objectSpread(_objectSpread({}, opt), {}, {
|
|
165
|
-
field:
|
|
165
|
+
field: value
|
|
166
166
|
}));
|
|
167
167
|
}
|
|
168
168
|
}))))
|
|
@@ -184,7 +184,7 @@ var TableTopFilter = function TableTopFilter(_ref) {
|
|
|
184
184
|
cursor: 'pointer'
|
|
185
185
|
},
|
|
186
186
|
onClick: function onClick() {
|
|
187
|
-
return handleDelete(
|
|
187
|
+
return handleDelete(opt);
|
|
188
188
|
}
|
|
189
189
|
})));
|
|
190
190
|
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import '~@luck-helper/ui-design/es/style/themes/default.less';
|
|
2
|
+
|
|
1
3
|
.lc-painter-panel-action-bind-modal {
|
|
2
4
|
&-body {
|
|
3
5
|
width: 100%;
|
|
@@ -11,7 +13,7 @@
|
|
|
11
13
|
.selector-box {
|
|
12
14
|
width: 100%;
|
|
13
15
|
height: 620px;
|
|
14
|
-
border: 1px solid
|
|
16
|
+
border: 1px solid @border-color-base;
|
|
15
17
|
border-radius: 6px;
|
|
16
18
|
display: flex;
|
|
17
19
|
|
|
@@ -46,7 +48,7 @@
|
|
|
46
48
|
}
|
|
47
49
|
.selector-box-ul.action-category {
|
|
48
50
|
width: 120px;
|
|
49
|
-
border-right: 1px solid
|
|
51
|
+
border-right: 1px solid @border-color-base;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
.selecter-items-box {
|
|
@@ -69,7 +71,7 @@
|
|
|
69
71
|
.code-box {
|
|
70
72
|
width: 100%;
|
|
71
73
|
height: 620px;
|
|
72
|
-
border: 1px solid
|
|
74
|
+
border: 1px solid @border-color-base;
|
|
73
75
|
border-radius: 6px;
|
|
74
76
|
overflow: hidden;
|
|
75
77
|
display: flex;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import '~@luck-helper/ui-design/es/style/themes/default.less';
|
|
2
|
+
|
|
1
3
|
.box {
|
|
2
4
|
position: absolute;
|
|
3
5
|
width: 0;
|
|
@@ -32,8 +34,8 @@
|
|
|
32
34
|
width: 100%;
|
|
33
35
|
height: 40px;
|
|
34
36
|
padding: 8px 16px;
|
|
35
|
-
border-bottom: 1px solid
|
|
36
|
-
background-color:
|
|
37
|
+
border-bottom: 1px solid @border-color-base;
|
|
38
|
+
background-color: @component-background;
|
|
37
39
|
display: flex;
|
|
38
40
|
align-items: center;
|
|
39
41
|
justify-content: flex-end;
|
|
@@ -52,16 +54,16 @@
|
|
|
52
54
|
margin: 0 2px;
|
|
53
55
|
cursor: pointer;
|
|
54
56
|
text-align: center;
|
|
55
|
-
color:
|
|
57
|
+
color: @text-color-secondary_luck;
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
.toolbar-item:hover {
|
|
59
|
-
color:
|
|
61
|
+
color: @text-color;
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
.toolbar-item.actived {
|
|
63
|
-
color:
|
|
64
|
-
background:
|
|
65
|
+
color: @text-color-secondary_luck;
|
|
66
|
+
background: @layout-body-background;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
.toolbar-item.disabled {
|
|
@@ -90,7 +92,14 @@
|
|
|
90
92
|
.ant-form-item,
|
|
91
93
|
.ant-collapse-header,
|
|
92
94
|
.resizer,
|
|
93
|
-
.
|
|
95
|
+
.formlist-affix-bar,
|
|
96
|
+
.ant-tree-node-content-wrapper,
|
|
97
|
+
.ant-modal-header,
|
|
98
|
+
.ant-modal-close,
|
|
99
|
+
.ant-modal-footer,
|
|
100
|
+
.ant-drawer-header,
|
|
101
|
+
.ant-drawer-footer,
|
|
102
|
+
.luck-card-list>* {
|
|
94
103
|
pointer-events: none;
|
|
95
104
|
}
|
|
96
105
|
.luck-grid-table {
|
|
@@ -114,6 +123,12 @@
|
|
|
114
123
|
line-height: 20px;
|
|
115
124
|
}
|
|
116
125
|
}
|
|
126
|
+
&-detector.sider-left {
|
|
127
|
+
border-left: 3px solid var(--ant-primary-6);
|
|
128
|
+
}
|
|
129
|
+
&-detector.sider-right {
|
|
130
|
+
border-right: 3px solid var(--ant-primary-6);
|
|
131
|
+
}
|
|
117
132
|
|
|
118
133
|
&-selector {
|
|
119
134
|
border: 2px solid var(--ant-primary-6);
|
|
@@ -158,3 +173,7 @@
|
|
|
158
173
|
}
|
|
159
174
|
}
|
|
160
175
|
}
|
|
176
|
+
|
|
177
|
+
.hoverPrimary:hover{
|
|
178
|
+
color: @primary-color;
|
|
179
|
+
}
|
|
@@ -7,4 +7,50 @@
|
|
|
7
7
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* 水平偏移0,垂直偏移4px,模糊半径8px,阴影颜色黑色且50%透明 */
|
|
8
8
|
font-size: 12px;
|
|
9
9
|
color: #ffffff;
|
|
10
|
+
|
|
11
|
+
&.no-drag{
|
|
12
|
+
background-color: #ff0000;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.lc-painter-components-treedragdrop {
|
|
18
|
+
|
|
19
|
+
user-select: none;
|
|
20
|
+
|
|
21
|
+
&.left-side {
|
|
22
|
+
border-top: 2px solid #1890ff;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.right-side {
|
|
26
|
+
border-bottom: 2px solid #1890ff;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.inside-side {
|
|
30
|
+
border: 2px solid #1890ff;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.ondrag{
|
|
34
|
+
font-weight: bold;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.lc-painter-components-dragdrop {
|
|
39
|
+
|
|
40
|
+
user-select: none;
|
|
41
|
+
|
|
42
|
+
&.left-side {
|
|
43
|
+
border-left: 2px solid #1890ff;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.right-side {
|
|
47
|
+
border-right: 2px solid #1890ff;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.inside-side {
|
|
51
|
+
border: 2px solid #1890ff;
|
|
52
|
+
}
|
|
53
|
+
&.ondrag{
|
|
54
|
+
font-weight: bold;
|
|
55
|
+
}
|
|
10
56
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import '~@luck-helper/ui-design/es/style/themes/default.less';
|
|
2
|
+
|
|
1
3
|
.lc-painter-panel-section-components-listeditor {
|
|
2
4
|
display: flex;
|
|
3
5
|
align-items: center;
|
|
@@ -8,8 +10,8 @@
|
|
|
8
10
|
.list-item {
|
|
9
11
|
height: 28px;
|
|
10
12
|
position: relative;
|
|
11
|
-
background:
|
|
12
|
-
border: 1px solid
|
|
13
|
+
background: @component-background;
|
|
14
|
+
border: 1px solid @border-color-base;
|
|
13
15
|
border-radius: 6px;
|
|
14
16
|
margin-bottom: 8px;
|
|
15
17
|
display: flex;
|
|
@@ -62,7 +64,7 @@
|
|
|
62
64
|
border-radius: 10px;
|
|
63
65
|
font-weight: bold;
|
|
64
66
|
font-size: 14px;
|
|
65
|
-
background-color:
|
|
67
|
+
background-color: @component-background;
|
|
66
68
|
padding: 0 8px;
|
|
67
69
|
display: flex;
|
|
68
70
|
align-items: center;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import '~@luck-helper/ui-design/es/style/themes/default.less';
|
|
2
|
+
|
|
1
3
|
.lc-painter-panel-section-components-number-input {
|
|
2
4
|
.num-input-wrap {
|
|
3
5
|
position: relative;
|
|
@@ -10,7 +12,7 @@
|
|
|
10
12
|
display: inline-block;
|
|
11
13
|
position: absolute;
|
|
12
14
|
right: 26px;
|
|
13
|
-
color:
|
|
15
|
+
color: @text-color;
|
|
14
16
|
cursor: pointer;
|
|
15
17
|
}
|
|
16
18
|
}
|