@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
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
"group": "basic",
|
|
6
6
|
"groupName": "基础",
|
|
7
7
|
"desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
|
|
8
|
-
"hidden": true,
|
|
9
8
|
"order": 1,
|
|
10
9
|
"props": [
|
|
11
10
|
{
|
|
@@ -18,7 +17,7 @@
|
|
|
18
17
|
"key": "src",
|
|
19
18
|
"name": "图片地址",
|
|
20
19
|
"desc": "图片地址",
|
|
21
|
-
"type": "
|
|
20
|
+
"type": "string"
|
|
22
21
|
},
|
|
23
22
|
{
|
|
24
23
|
"key": "width",
|
|
@@ -27,6 +26,13 @@
|
|
|
27
26
|
"type": "number",
|
|
28
27
|
"default": 350
|
|
29
28
|
},
|
|
29
|
+
{
|
|
30
|
+
"key": "autoWidth",
|
|
31
|
+
"name": "宽度自适应",
|
|
32
|
+
"desc": "是否图片宽度自适应",
|
|
33
|
+
"type": "switch",
|
|
34
|
+
"default": false
|
|
35
|
+
},
|
|
30
36
|
{
|
|
31
37
|
"key": "height",
|
|
32
38
|
"name": "高度",
|
|
@@ -35,10 +41,10 @@
|
|
|
35
41
|
"default": 200
|
|
36
42
|
},
|
|
37
43
|
{
|
|
38
|
-
"key": "
|
|
39
|
-
"name": "
|
|
40
|
-
"desc": "
|
|
41
|
-
"type": "
|
|
44
|
+
"key": "autoHeight",
|
|
45
|
+
"name": "高度自适应",
|
|
46
|
+
"desc": "是否图片高度自适应",
|
|
47
|
+
"type": "switch",
|
|
42
48
|
"default": false
|
|
43
49
|
},
|
|
44
50
|
{
|
|
@@ -48,16 +54,16 @@
|
|
|
48
54
|
"type": "select",
|
|
49
55
|
"options": [
|
|
50
56
|
{
|
|
51
|
-
"label": "
|
|
52
|
-
"value": "
|
|
57
|
+
"label": "铺满(Cover)",
|
|
58
|
+
"value": "cover"
|
|
53
59
|
},
|
|
54
60
|
{
|
|
55
|
-
"label": "
|
|
56
|
-
"value": "
|
|
61
|
+
"label": "适合(Contain)",
|
|
62
|
+
"value": "contain"
|
|
57
63
|
},
|
|
58
64
|
{
|
|
59
|
-
"label": "
|
|
60
|
-
"value": "
|
|
65
|
+
"label": "拉伸(Fill)",
|
|
66
|
+
"value": "fill"
|
|
61
67
|
}
|
|
62
68
|
],
|
|
63
69
|
"default": "fill"
|
|
@@ -66,8 +72,36 @@
|
|
|
66
72
|
"key": "roundRadios",
|
|
67
73
|
"name": "圆角",
|
|
68
74
|
"desc": "图片四周圆角大小,可设置“0 1px 2px 3px",
|
|
69
|
-
"type": "
|
|
70
|
-
"
|
|
75
|
+
"type": "select",
|
|
76
|
+
"options": [
|
|
77
|
+
{
|
|
78
|
+
"label": "大(16px)",
|
|
79
|
+
"value": "16px"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"label": "中(8px)",
|
|
83
|
+
"value": "8px"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"label": "小(4px)",
|
|
87
|
+
"value": "4px"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"label": "无(0px)",
|
|
91
|
+
"value": "0px"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"label": "自定义",
|
|
95
|
+
"value": ""
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"default": ""
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"key": "borderRadios",
|
|
102
|
+
"name": "圆角大小",
|
|
103
|
+
"desc": "自定义圆角大小",
|
|
104
|
+
"type": "string"
|
|
71
105
|
},
|
|
72
106
|
{
|
|
73
107
|
"key": "title",
|
|
@@ -85,7 +119,7 @@
|
|
|
85
119
|
"key": "preview",
|
|
86
120
|
"name": "开启图片预览",
|
|
87
121
|
"desc": "是否开启点击打开图片预览",
|
|
88
|
-
"type": "
|
|
122
|
+
"type": "switch",
|
|
89
123
|
"default": false
|
|
90
124
|
}
|
|
91
125
|
],
|
|
@@ -107,7 +141,7 @@
|
|
|
107
141
|
{
|
|
108
142
|
"key": "onClick",
|
|
109
143
|
"name": "点击事件",
|
|
110
|
-
"desc": "
|
|
144
|
+
"desc": "点击图片时,执行方法",
|
|
111
145
|
"func": "(e)=>{\n\t\n}"
|
|
112
146
|
}
|
|
113
147
|
]
|
|
@@ -6,17 +6,56 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
12
|
var _ahooks = require("ahooks");
|
|
12
13
|
var _helper = require("../../../engine/tools/helper");
|
|
13
14
|
var _linkPropsDefault = _interopRequireDefault(require("../../../engine/meta/link.props.default.json"));
|
|
14
15
|
var _Wrapper = _interopRequireDefault(require("../Wrapper"));
|
|
15
|
-
var
|
|
16
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
17
|
+
var _ContextProvider = require("../../../engine/provider/ContextProvider");
|
|
18
|
+
var _constants = require("../../../constants");
|
|
19
|
+
var _excluded = ["id", "css", "onClick", "advance"];
|
|
20
|
+
var StyledLink = _styledComponents.default.a.withConfig({
|
|
21
|
+
displayName: "StyledLink",
|
|
22
|
+
componentId: "luckda-6530__sc-13gzda1-0"
|
|
23
|
+
})(["display:", ";max-width:", ";white-space:", ";overflow:", ";text-overflow:", ";", ";"], function (props) {
|
|
24
|
+
return props.textOverflow && 'inline-block';
|
|
25
|
+
}, function (props) {
|
|
26
|
+
return props.textOverflow && '100%';
|
|
27
|
+
}, function (props) {
|
|
28
|
+
return props.textOverflow && 'nowrap';
|
|
29
|
+
}, function (props) {
|
|
30
|
+
return props.textOverflow && 'hidden';
|
|
31
|
+
}, function (props) {
|
|
32
|
+
return props.textOverflow && 'ellipsis';
|
|
33
|
+
}, function (props) {
|
|
34
|
+
return props.$css;
|
|
35
|
+
});
|
|
16
36
|
var LCLink = function LCLink(_ref) {
|
|
17
37
|
var id = _ref.id,
|
|
38
|
+
css = _ref.css,
|
|
39
|
+
onClick = _ref.onClick,
|
|
40
|
+
advance = _ref.advance,
|
|
18
41
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
19
42
|
var ref = (0, _react.useRef)();
|
|
43
|
+
var ctx = (0, _ContextProvider.useContext)();
|
|
44
|
+
(0, _react.useEffect)(function () {
|
|
45
|
+
ctx.doAction(advance.events.onMount);
|
|
46
|
+
return function () {
|
|
47
|
+
return ctx.doAction(advance.events.onUnmount);
|
|
48
|
+
};
|
|
49
|
+
}, []);
|
|
50
|
+
var handleClick = (0, _ahooks.useMemoizedFn)(function (e) {
|
|
51
|
+
if (onClick) {
|
|
52
|
+
onClick(e);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
ctx.doAction(advance.events.onClick, {
|
|
56
|
+
e: e
|
|
57
|
+
});
|
|
58
|
+
});
|
|
20
59
|
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|
|
21
60
|
return ref.current;
|
|
22
61
|
});
|
|
@@ -24,9 +63,18 @@ var LCLink = function LCLink(_ref) {
|
|
|
24
63
|
id: id,
|
|
25
64
|
displayName: "Link",
|
|
26
65
|
getTargetDom: getTargetDom
|
|
27
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
28
|
-
|
|
29
|
-
},
|
|
66
|
+
}, /*#__PURE__*/_react.default.createElement(StyledLink, (0, _extends2.default)({
|
|
67
|
+
$css: css
|
|
68
|
+
}, props, {
|
|
69
|
+
ref: ref,
|
|
70
|
+
href: "".concat(props.url, "?").concat(props.params),
|
|
71
|
+
target: props.isBlank ? '_blank' : '_self',
|
|
72
|
+
title: props.textOverflow && props.content,
|
|
73
|
+
onClick: function onClick(e) {
|
|
74
|
+
handleClick(e);
|
|
75
|
+
ctx.runtime === _constants.RUNTIME.DESIGN && e.preventDefault();
|
|
76
|
+
}
|
|
77
|
+
}), props.content));
|
|
30
78
|
};
|
|
31
79
|
LCLink.defaultProps = (0, _helper.omitBadProps)(_linkPropsDefault.default);
|
|
32
80
|
var _default = exports.default = LCLink;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.alink {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
max-width: 100%;
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
text-overflow: ellipsis;
|
|
7
|
+
|
|
8
|
+
a {
|
|
9
|
+
display: inline-block;
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
text-overflow: ellipsis;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
"group": "basic",
|
|
6
6
|
"groupName": "基础",
|
|
7
7
|
"desc": "用于创建可点击的链接,以便用户可以跳转到其他页面或访问相关内容。超链组件提供了简单而直观的方式来创建和管理链接。",
|
|
8
|
-
"hidden": true,
|
|
9
8
|
"order": 1,
|
|
10
9
|
"props": [
|
|
11
10
|
{
|
|
@@ -23,8 +22,8 @@
|
|
|
23
22
|
{
|
|
24
23
|
"key": "textOverflow",
|
|
25
24
|
"name": "单行截断",
|
|
26
|
-
"desc": "
|
|
27
|
-
"type": "
|
|
25
|
+
"desc": "文字超过一行,使用...显示;开后此项后,同时会显示html标签的title",
|
|
26
|
+
"type": "switch",
|
|
28
27
|
"default": false
|
|
29
28
|
},
|
|
30
29
|
{
|
|
@@ -51,16 +50,16 @@
|
|
|
51
50
|
"type": "string"
|
|
52
51
|
},
|
|
53
52
|
{
|
|
54
|
-
"key": "
|
|
55
|
-
"name": "
|
|
56
|
-
"desc": "
|
|
57
|
-
"type": "
|
|
58
|
-
"default":
|
|
53
|
+
"key": "isBlank",
|
|
54
|
+
"name": "新开页面",
|
|
55
|
+
"desc": "是否新开页面",
|
|
56
|
+
"type": "switch",
|
|
57
|
+
"default": true
|
|
59
58
|
},
|
|
60
59
|
{
|
|
61
60
|
"key": "params",
|
|
62
61
|
"name": "携带参数",
|
|
63
|
-
"desc": "
|
|
62
|
+
"desc": "超链的携带参数,key=value形式,多个参数中间用&拼接,例如:pageNo=1&pageSize=20",
|
|
64
63
|
"type": "string"
|
|
65
64
|
},
|
|
66
65
|
{
|
|
@@ -456,12 +456,12 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
456
456
|
}
|
|
457
457
|
return resultComp;
|
|
458
458
|
}, [topActionGroup, impexp]);
|
|
459
|
-
var renderFilterArea = (0,
|
|
459
|
+
var renderFilterArea = (0, _react.useCallback)(function () {
|
|
460
460
|
return topFilter ? /*#__PURE__*/_react.default.createElement(_TopFilter.default, {
|
|
461
461
|
filter: topFilter,
|
|
462
462
|
instance: instanceRef
|
|
463
463
|
}) : null;
|
|
464
|
-
});
|
|
464
|
+
}, [topFilter]);
|
|
465
465
|
var _wrapperProps = (0, _ahooks.useCreation)(function () {
|
|
466
466
|
return (0, _defineProperty2.default)({
|
|
467
467
|
id: id
|
|
@@ -472,9 +472,7 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
472
472
|
var condition = _zebra !== null && _zebra !== void 0 && _zebra.condition ? (0, _helper.executeCode)(ctx, _zebra.condition, ['params'], params) : _zebra && params.node.rowIndex % 2 === 0;
|
|
473
473
|
return condition ? {
|
|
474
474
|
'background-color': _zebra.color || _zebra
|
|
475
|
-
} : {
|
|
476
|
-
'background-color': '#fff'
|
|
477
|
-
};
|
|
475
|
+
} : {};
|
|
478
476
|
});
|
|
479
477
|
var _readFilter = (0, _ahooks.useMemoizedFn)(function (params, filters) {
|
|
480
478
|
ctx.doAction(advance.events.onFilterChanged, {
|
|
@@ -20,14 +20,15 @@ var _utils = require("@luck-design-biz/base/utils");
|
|
|
20
20
|
var _ContextProvider = require("../../../engine/provider/ContextProvider");
|
|
21
21
|
var _Wrapper = _interopRequireDefault(require("../Wrapper"));
|
|
22
22
|
var _index = require("../../../../index");
|
|
23
|
+
var _useCombinedRefs = _interopRequireDefault(require("../../../engine/tools/useCombinedRefs"));
|
|
23
24
|
var _helper = require("../../../engine/tools/helper");
|
|
24
25
|
var _treePropsDefault = _interopRequireDefault(require("../../../engine/meta/tree.props.default.json"));
|
|
26
|
+
var _constants = require("../../../constants");
|
|
25
27
|
var _index2 = _interopRequireDefault(require("./index.less"));
|
|
26
|
-
var _excluded = ["id", "
|
|
28
|
+
var _excluded = ["id", "className", "dataset", "width", "height", "showLine", "defaultExpandDeep", "actions", "editable", "showRootAdd", "onlyRoot", "rootAddSetting", "doubleClickExpand", "onDoubleClick", "treeNodeCheckable", "treeNodeDisableCheckbox", "treeNodeDisable", "onTreeNodeRender", "treeNodeIcon", "advance", "cancelSelect", "defaultSelect"];
|
|
27
29
|
var PRIMARY = window.appConfig.constraintKeys.PRIMARY;
|
|
28
|
-
var LCTree = function
|
|
30
|
+
var LCTree = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
29
31
|
var id = _ref.id,
|
|
30
|
-
wrapperRef = _ref.wrapperRef,
|
|
31
32
|
className = _ref.className,
|
|
32
33
|
dataset = _ref.dataset,
|
|
33
34
|
width = _ref.width,
|
|
@@ -51,20 +52,20 @@ var LCTree = function LCTree(_ref) {
|
|
|
51
52
|
defaultSelect = _ref.defaultSelect,
|
|
52
53
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
53
54
|
var ctx = (0, _ContextProvider.useContext)();
|
|
54
|
-
var ref = (0, _react.useRef)();
|
|
55
55
|
var apiRef = (0, _react.useRef)();
|
|
56
|
-
var
|
|
56
|
+
var wrapperRef = (0, _react.useRef)();
|
|
57
|
+
var instanceRef = (0, _useCombinedRefs.default)(ref);
|
|
57
58
|
var _useState = (0, _react.useState)([]),
|
|
58
59
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
59
60
|
selectedKeys = _useState2[0],
|
|
60
61
|
setSelectedKeys = _useState2[1];
|
|
61
62
|
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|
|
62
|
-
return
|
|
63
|
+
return wrapperRef.current;
|
|
63
64
|
});
|
|
64
65
|
(0, _react.useImperativeHandle)(apiRef, function () {
|
|
65
66
|
return {
|
|
66
67
|
getInstance: function getInstance() {
|
|
67
|
-
return
|
|
68
|
+
return instanceRef.current;
|
|
68
69
|
}
|
|
69
70
|
};
|
|
70
71
|
});
|
|
@@ -149,6 +150,11 @@ var LCTree = function LCTree(_ref) {
|
|
|
149
150
|
doAction();
|
|
150
151
|
}
|
|
151
152
|
};
|
|
153
|
+
var _wrapperProps = (0, _ahooks.useCreation)(function () {
|
|
154
|
+
return (0, _defineProperty2.default)({
|
|
155
|
+
id: id
|
|
156
|
+
}, _constants.LC_COMPONENT_UNIT_KEY, _constants.LC_COMPONENT_UNIT);
|
|
157
|
+
}, []);
|
|
152
158
|
return /*#__PURE__*/_react.default.createElement(_Wrapper.default, {
|
|
153
159
|
id: id,
|
|
154
160
|
displayName: "Tree",
|
|
@@ -159,8 +165,9 @@ var LCTree = function LCTree(_ref) {
|
|
|
159
165
|
height: height,
|
|
160
166
|
id: id,
|
|
161
167
|
ldId: id,
|
|
162
|
-
ref:
|
|
163
|
-
|
|
168
|
+
ref: instanceRef,
|
|
169
|
+
wrapper: wrapperRef,
|
|
170
|
+
wrapperProps: _wrapperProps,
|
|
164
171
|
className: (0, _classnames.default)(_index2.default['lc-component-tree'], (0, _defineProperty2.default)({}, className, !!className)),
|
|
165
172
|
dataSetKey: dataset === null || dataset === void 0 ? void 0 : dataset.code,
|
|
166
173
|
showLine: showLine,
|
|
@@ -226,7 +233,7 @@ var LCTree = function LCTree(_ref) {
|
|
|
226
233
|
onSelect: handleSelect,
|
|
227
234
|
afterInit: afterInit
|
|
228
235
|
}, events, props)));
|
|
229
|
-
};
|
|
236
|
+
});
|
|
230
237
|
LCTree.propTypes = {
|
|
231
238
|
/**
|
|
232
239
|
* @name 唯一标识
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luck-design-biz/luckda",
|
|
3
|
-
"version": "1.0.1-
|
|
3
|
+
"version": "1.0.1-14",
|
|
4
4
|
"description": "前端配置管理中心业务组件库",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"@babel/plugin-transform-strict-mode": "^7.18.6",
|
|
83
83
|
"@babel/polyfill": "^7.12.1",
|
|
84
84
|
"@babel/traverse": "^7.24.1",
|
|
85
|
-
"@luck-design-biz/base": "0.0.49-
|
|
86
|
-
"@luck-design-biz/bpm": "0.0.
|
|
87
|
-
"@luck-helper/ui-design": "0.0.6",
|
|
85
|
+
"@luck-design-biz/base": "0.0.49-14",
|
|
86
|
+
"@luck-design-biz/bpm": "0.0.7-1",
|
|
87
|
+
"@luck-helper/ui-design": "0.0.6-3",
|
|
88
88
|
"@types/classnames": "^2.3.1",
|
|
89
89
|
"@types/express": "^4.17.14",
|
|
90
90
|
"@types/history": "^4.7.11",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"js-cookie": "^2.2.1",
|
|
128
128
|
"jsdom-global": "^3.0.2",
|
|
129
129
|
"lint-staged": "^11.2.6",
|
|
130
|
-
"luck-design": "0.1.80",
|
|
130
|
+
"luck-design": "0.1.80-3",
|
|
131
131
|
"monaco-editor-webpack-plugin": "6.*.*",
|
|
132
132
|
"node-fetch": "^2.6.7",
|
|
133
133
|
"nprogress": "^0.2.0",
|