@luck-design-biz/luckda 1.0.1-12 → 1.0.1-14
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/LdCard/index.js +154 -67
- package/es/components/LdTree/index.js +14 -8
- package/es/components/LdTree/index.less +2 -0
- package/es/helper/ldBuilder.js +1 -1
- package/es/locales/zh-CN.js +4 -2
- package/es/lowcode/engine/meta/cardlist.props.default.json +27 -7
- package/es/lowcode/engine/meta/cardlist.props.json +252 -71
- package/es/lowcode/engine/meta/components-list.json +24 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +1 -2
- package/es/lowcode/engine/meta/iframe.props.json +2 -4
- package/es/lowcode/engine/meta/image.props.default.json +3 -3
- package/es/lowcode/engine/meta/image.props.json +50 -16
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +14 -1
- package/es/lowcode/engine/meta/link.props.default.json +1 -2
- package/es/lowcode/engine/meta/link.props.json +8 -9
- package/es/lowcode/painter/DesignToolbar.js +1 -1
- package/es/lowcode/painter/Ribbon.js +12 -0
- 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/panel-section/ActionsEditor/ActionEditor.js +20 -2
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js +18 -3
- package/es/lowcode/painter/panel-section/GroupClassSelector.js +1 -1
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +1 -0
- 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 +10 -7
- 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/view/lc-components/CardList/index.js +476 -12
- package/es/lowcode/view/lc-components/CardList/meta.json +253 -72
- package/es/lowcode/view/lc-components/GroupTree/index.js +24 -8
- package/es/lowcode/view/lc-components/Iframe/index.js +57 -7
- package/es/lowcode/view/lc-components/Iframe/meta.json +2 -4
- 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 +50 -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 +8 -9
- package/es/lowcode/view/lc-components/Table/index.js +3 -5
- package/es/lowcode/view/lc-components/Tree/index.js +18 -11
- package/lib/components/LDActions/index.less +3 -1
- package/lib/components/LdCard/index.js +153 -66
- package/lib/components/LdTree/index.js +14 -8
- package/lib/components/LdTree/index.less +2 -0
- package/lib/helper/ldBuilder.js +2 -2
- package/lib/locales/zh-CN.js +4 -2
- package/lib/lowcode/engine/meta/cardlist.props.default.json +27 -7
- package/lib/lowcode/engine/meta/cardlist.props.json +252 -71
- package/lib/lowcode/engine/meta/components-list.json +24 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +1 -2
- package/lib/lowcode/engine/meta/iframe.props.json +2 -4
- package/lib/lowcode/engine/meta/image.props.default.json +3 -3
- package/lib/lowcode/engine/meta/image.props.json +50 -16
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +14 -1
- package/lib/lowcode/engine/meta/link.props.default.json +1 -2
- package/lib/lowcode/engine/meta/link.props.json +8 -9
- package/lib/lowcode/painter/DesignToolbar.js +1 -1
- package/lib/lowcode/painter/Ribbon.js +12 -0
- 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/panel-section/ActionsEditor/ActionEditor.js +19 -1
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +18 -3
- package/lib/lowcode/painter/panel-section/GroupClassSelector.js +1 -1
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +1 -0
- 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 +10 -7
- 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/view/lc-components/CardList/index.js +475 -11
- package/lib/lowcode/view/lc-components/CardList/meta.json +253 -72
- package/lib/lowcode/view/lc-components/GroupTree/index.js +22 -6
- package/lib/lowcode/view/lc-components/Iframe/index.js +55 -5
- package/lib/lowcode/view/lc-components/Iframe/meta.json +2 -4
- 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 +50 -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 +8 -9
- package/lib/lowcode/view/lc-components/Table/index.js +3 -5
- package/lib/lowcode/view/lc-components/Tree/index.js +17 -10
- package/package.json +5 -5
|
@@ -418,7 +418,7 @@ var DesignToolbar = function DesignToolbar(_ref) {
|
|
|
418
418
|
},
|
|
419
419
|
bodyStyle: {
|
|
420
420
|
height: 'calc(100% - 54px)',
|
|
421
|
-
backgroundColor: '
|
|
421
|
+
backgroundColor: 'var(--ant-component-background,#F0F2F5)'
|
|
422
422
|
},
|
|
423
423
|
visible: showPreview,
|
|
424
424
|
destroyOnClose: true,
|
|
@@ -68,6 +68,10 @@ var Ribbon = function Ribbon() {
|
|
|
68
68
|
})
|
|
69
69
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
70
70
|
type: "apartment",
|
|
71
|
+
style: {
|
|
72
|
+
color: (drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_OUTLINE_.key && '#1d79f2',
|
|
73
|
+
fontSize: 20
|
|
74
|
+
},
|
|
71
75
|
onClick: function onClick() {
|
|
72
76
|
return setDrawer((drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_OUTLINE_.key ? null : _DRAWER_OUTLINE_);
|
|
73
77
|
}
|
|
@@ -79,6 +83,10 @@ var Ribbon = function Ribbon() {
|
|
|
79
83
|
})
|
|
80
84
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
81
85
|
type: "appstore",
|
|
86
|
+
style: {
|
|
87
|
+
color: (drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_COMPONENTS_.key && '#1d79f2',
|
|
88
|
+
fontSize: 20
|
|
89
|
+
},
|
|
82
90
|
onClick: function onClick() {
|
|
83
91
|
return setDrawer((drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_COMPONENTS_.key ? null : _DRAWER_COMPONENTS_);
|
|
84
92
|
}
|
|
@@ -90,6 +98,10 @@ var Ribbon = function Ribbon() {
|
|
|
90
98
|
})
|
|
91
99
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
92
100
|
type: "global",
|
|
101
|
+
style: {
|
|
102
|
+
color: (drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_I18N_.key && '#1d79f2',
|
|
103
|
+
fontSize: 20
|
|
104
|
+
},
|
|
93
105
|
onClick: function onClick() {
|
|
94
106
|
return setDrawer((drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_I18N_.key ? null : _DRAWER_I18N_);
|
|
95
107
|
}
|
|
@@ -76,7 +76,8 @@ var BaseEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
76
76
|
onDidChangeStorage: function onDidChangeStorage() {}
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
-
|
|
79
|
+
// 监听布局变化,重新赋值,解决编辑器全屏切换时,编辑器空白的问题
|
|
80
|
+
editorInstance.current.onDidLayoutChange(function (event) {
|
|
80
81
|
if (onChange) onChange(editorInstance.current.getValue(), event);
|
|
81
82
|
});
|
|
82
83
|
}
|
|
@@ -28,8 +28,8 @@ var LeftBox = styled.div.withConfig({
|
|
|
28
28
|
var Option = styled.div.withConfig({
|
|
29
29
|
displayName: "Option",
|
|
30
30
|
componentId: "luckda-6530__sc-rwt684-3"
|
|
31
|
-
})(["width:100%;height:32px;cursor:pointer;line-height:32px;padding:0 8px;display:flex;justify-content:space-between;align-items:center;", " &:hover{background-color
|
|
32
|
-
return props.actived ? 'background-color: #e8e8e8;' : void 0;
|
|
31
|
+
})(["width:100%;height:32px;cursor:pointer;line-height:32px;padding:0 8px;display:flex;justify-content:space-between;align-items:center;", " &:hover{background-color:var(--ant-border-color-base,#e8e8e8);}"], function (props) {
|
|
32
|
+
return props.actived ? 'background-color: var(--ant-border-color-base, #e8e8e8);' : void 0;
|
|
33
33
|
});
|
|
34
34
|
var RightBox = styled.div.withConfig({
|
|
35
35
|
displayName: "RightBox",
|
|
@@ -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
|
|
@@ -4,7 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
5
|
import { useAsyncEffect } from 'ahooks';
|
|
6
6
|
import { Select } from 'luck-design/antd';
|
|
7
|
-
import { readAllClass } from '@luck-design-biz/base/sys/services';
|
|
7
|
+
import { readAllClass } from '@luck-design-biz/base/lib/sys/services';
|
|
8
8
|
var GroupClassSelector = function GroupClassSelector(_ref) {
|
|
9
9
|
var defaultValue = _ref.defaultValue,
|
|
10
10
|
_onChange = _ref.onChange;
|
|
@@ -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 {
|
|
@@ -96,7 +98,8 @@
|
|
|
96
98
|
.ant-modal-close,
|
|
97
99
|
.ant-modal-footer,
|
|
98
100
|
.ant-drawer-header,
|
|
99
|
-
.ant-drawer-footer
|
|
101
|
+
.ant-drawer-footer,
|
|
102
|
+
.luck-card-list {
|
|
100
103
|
pointer-events: none;
|
|
101
104
|
}
|
|
102
105
|
.luck-grid-table {
|
|
@@ -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
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
@import '~@luck-helper/ui-design/es/style/themes/default.less';
|
|
2
|
+
|
|
3
|
+
@colorful-prefix: ~'@{luck-ant-prefix}-colorful';
|
|
4
|
+
|
|
1
5
|
.lc-painter-panel-attrs {
|
|
2
6
|
position: relative;
|
|
3
7
|
width: 100%;
|
|
@@ -13,7 +17,7 @@
|
|
|
13
17
|
|
|
14
18
|
&-header {
|
|
15
19
|
height: 28px;
|
|
16
|
-
background-color:
|
|
20
|
+
background-color: var(~'--@{colorful-prefix}-primary-dark-2',#e8e8e8);
|
|
17
21
|
display: flex;
|
|
18
22
|
align-items: center;
|
|
19
23
|
justify-content: space-between;
|
|
@@ -21,14 +25,14 @@
|
|
|
21
25
|
font-size: 12px;
|
|
22
26
|
}
|
|
23
27
|
&-header:hover {
|
|
24
|
-
background-color:
|
|
28
|
+
background-color: var(~'--@{colorful-prefix}-primary-dark-1',#e3e3e3);
|
|
25
29
|
cursor: pointer;
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
&-body {
|
|
29
33
|
flex: 1;
|
|
30
34
|
overflow-y: auto;
|
|
31
|
-
background-color:
|
|
35
|
+
background-color: @component-background;
|
|
32
36
|
padding: 16px 0 8px;
|
|
33
37
|
}
|
|
34
38
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
@import '~@luck-helper/ui-design/es/style/themes/default.less';
|
|
2
|
+
|
|
1
3
|
.lc-painter-panel {
|
|
2
4
|
position: relative;
|
|
3
5
|
width: 320px;
|
|
4
6
|
height: 100%;
|
|
5
|
-
border-left: 1px solid
|
|
7
|
+
border-left: 1px solid @border-color-base;
|
|
6
8
|
display: flex;
|
|
7
9
|
flex-direction: column;
|
|
8
|
-
background-color:
|
|
10
|
+
background-color: @component-background;
|
|
9
11
|
|
|
10
12
|
&-empty {
|
|
11
13
|
position: absolute;
|
|
@@ -25,8 +27,8 @@
|
|
|
25
27
|
width: 100%;
|
|
26
28
|
height: 40px;
|
|
27
29
|
padding: 8px 16px;
|
|
28
|
-
border-bottom: 1px solid
|
|
29
|
-
background-color:
|
|
30
|
+
border-bottom: 1px solid @border-color-base;
|
|
31
|
+
background-color: @component-background;
|
|
30
32
|
display: flex;
|
|
31
33
|
align-items: center;
|
|
32
34
|
.active-node-level:hover {
|
|
@@ -52,11 +54,11 @@
|
|
|
52
54
|
align-items: center;
|
|
53
55
|
|
|
54
56
|
&:hover {
|
|
55
|
-
color:
|
|
57
|
+
color: @text-color;
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
&.actived {
|
|
59
|
-
color:
|
|
61
|
+
color: @text-color;
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
& > i {
|
|
@@ -66,7 +68,7 @@
|
|
|
66
68
|
|
|
67
69
|
:global {
|
|
68
70
|
li#header-active {
|
|
69
|
-
color:
|
|
71
|
+
color: @text-color;
|
|
70
72
|
position: relative;
|
|
71
73
|
}
|
|
72
74
|
}
|