fan-standard-comp 3.1.0 → 3.1.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/dist/fan-standard-comp.umd.js +293 -285
- package/es/ButtonGroup/ButtonList.js +18 -36
- package/es/ButtonGroup/ButtonMenu.js +14 -27
- package/es/ButtonGroup/PopConfirmTitle.js +5 -16
- package/es/ButtonGroup/index.js +76 -107
- package/es/DragContent/DragBar.js +6 -18
- package/es/DragContent/index.js +12 -30
- package/es/FormComp/ChunkUploader/api.js +8 -21
- package/es/FormComp/ChunkUploader/index.js +27 -46
- package/es/FormComp/ChunkUploader/lib.js +9 -26
- package/es/FormComp/ChunkUploader/upload-queue.class.js +5 -12
- package/es/FormComp/ChunkUploader/worker.js +2 -7
- package/es/FormComp/EditButton/index.js +16 -35
- package/es/FormComp/FieldComponent/ReUpload.js +18 -38
- package/es/FormComp/FieldComponent/RefactorTreeSelect.js +26 -49
- package/es/FormComp/FieldComponent/TitleNode.js +3 -13
- package/es/FormComp/FieldComponent/index.js +87 -131
- package/es/FormComp/FieldComponent/setReadonlyValues.js +34 -61
- package/es/FormComp/RenderItemGroup/index.js +34 -56
- package/es/FormComp/Uploader/index.js +38 -64
- package/es/FormComp/Uploader/util.js +2 -11
- package/es/FormComp/VarTemplate/index.js +31 -44
- package/es/FormComp/index.js +1 -15
- package/es/NavLeafScroll/index.js +35 -53
- package/es/RefactorTree/index.js +29 -52
- package/es/RefactorTree/indexTreeNode.js +31 -54
- package/es/RefactorTree/style/index.js +1 -3
- package/es/RefactorTree/util.js +10 -18
- package/es/SpecIcon/fonts/iconfont.js +0 -2
- package/es/SpecIcon/index.js +17 -30
- package/es/SplitterLayout/Pane.js +5 -17
- package/es/SplitterLayout/index.js +13 -24
- package/es/StandardContent/SplitterLayout/Pane.js +13 -25
- package/es/StandardContent/SplitterLayout/index.js +30 -43
- package/es/StandardContent/SubfieldContent.js +13 -28
- package/es/StandardContent/WrapperContent.js +10 -24
- package/es/StandardDragModal/index.d.ts +11 -0
- package/es/StandardDragModal/index.js +30 -0
- package/es/StandardFilter/index.js +27 -46
- package/es/StandardForm/ActionList.js +8 -21
- package/es/StandardForm/StepForm.js +40 -68
- package/es/StandardForm/TabForm.js +26 -52
- package/es/StandardForm/index.js +28 -55
- package/es/StandardModal/UpdateFormRef.js +4 -18
- package/es/StandardModal/index.d.ts +3 -0
- package/es/StandardModal/index.js +118 -119
- package/es/StandardPanel/index.js +32 -53
- package/es/StandardTable/index.js +17 -44
- package/es/StandardTable/style/index.js +1 -3
- package/es/components/IconNode/index.js +6 -17
- package/es/components/index.js +2 -15
- package/es/data/func.code.js +2 -9
- package/es/data/general.config.js +2 -9
- package/es/data/index.js +3 -23
- package/es/index.d.ts +0 -1
- package/es/index.js +24 -238
- package/es/utils/ValueFormat.js +1 -9
- package/es/utils/filterPermission.js +4 -20
- package/es/utils/getParentNodes.js +1 -12
- package/es/utils/index.js +3 -35
- package/lib/ButtonGroup/ButtonList.js +9 -9
- package/lib/ButtonGroup/ButtonMenu.js +11 -11
- package/lib/ButtonGroup/PopConfirmTitle.js +5 -5
- package/lib/ButtonGroup/index.js +47 -47
- package/lib/DragContent/DragBar.js +5 -5
- package/lib/DragContent/index.js +7 -7
- package/lib/FormComp/ChunkUploader/api.js +4 -4
- package/lib/FormComp/ChunkUploader/index.js +10 -10
- package/lib/FormComp/ChunkUploader/lib.js +2 -2
- package/lib/FormComp/ChunkUploader/upload-queue.class.js +2 -2
- package/lib/FormComp/ChunkUploader/worker.js +2 -2
- package/lib/FormComp/EditButton/index.js +10 -10
- package/lib/FormComp/FieldComponent/ReUpload.js +9 -9
- package/lib/FormComp/FieldComponent/RefactorTreeSelect.js +16 -16
- package/lib/FormComp/FieldComponent/TitleNode.js +4 -4
- package/lib/FormComp/FieldComponent/index.js +47 -47
- package/lib/FormComp/FieldComponent/setReadonlyValues.js +23 -23
- package/lib/FormComp/RenderItemGroup/index.js +20 -21
- package/lib/FormComp/Uploader/index.js +16 -16
- package/lib/FormComp/VarTemplate/index.js +25 -23
- package/lib/FormComp/index.js +2 -2
- package/lib/NavLeafScroll/index.js +28 -28
- package/lib/RefactorTree/index.js +14 -14
- package/lib/RefactorTree/indexTreeNode.js +19 -19
- package/lib/SpecIcon/index.js +13 -13
- package/lib/SplitterLayout/Pane.js +4 -4
- package/lib/SplitterLayout/index.js +10 -10
- package/lib/StandardContent/SplitterLayout/Pane.js +11 -11
- package/lib/StandardContent/SplitterLayout/index.js +27 -27
- package/lib/StandardContent/SubfieldContent.js +9 -9
- package/lib/StandardContent/WrapperContent.js +7 -7
- package/lib/StandardDragModal/index.d.ts +11 -0
- package/lib/StandardDragModal/index.js +43 -0
- package/lib/StandardFilter/index.js +18 -18
- package/lib/StandardForm/ActionList.js +6 -6
- package/lib/StandardForm/StepForm.js +26 -26
- package/lib/StandardForm/TabForm.js +13 -13
- package/lib/StandardForm/index.js +14 -14
- package/lib/StandardModal/UpdateFormRef.js +4 -4
- package/lib/StandardModal/index.d.ts +3 -0
- package/lib/StandardModal/index.js +99 -70
- package/lib/StandardPanel/index.js +23 -23
- package/lib/StandardTable/index.js +9 -19
- package/lib/components/IconNode/index.js +6 -6
- package/lib/components/index.js +2 -2
- package/lib/data/func.code.js +2 -2
- package/lib/data/general.config.js +2 -2
- package/lib/data/index.js +3 -3
- package/lib/index.d.ts +0 -1
- package/lib/index.js +23 -32
- package/lib/utils/ValueFormat.js +2 -2
- package/lib/utils/filterPermission.js +2 -2
- package/lib/utils/index.js +2 -2
- package/package.json +4 -3
- package/es/ConfigContext/index.d.ts +0 -7
- package/es/ConfigContext/index.js +0 -12
- package/es/locale/index.d.ts +0 -12
- package/es/locale/index.js +0 -5
- package/es/locale/zh_CN.d.ts +0 -4
- package/es/locale/zh_CN.js +0 -34
- package/lib/ConfigContext/index.d.ts +0 -7
- package/lib/ConfigContext/index.js +0 -12
- package/lib/locale/index.d.ts +0 -12
- package/lib/locale/index.js +0 -5
- package/lib/locale/zh_CN.d.ts +0 -4
- package/lib/locale/zh_CN.js +0 -34
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _index = _interopRequireDefault(require("../../SpecIcon/index"));
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
1
|
+
import SpecIcon from "../../SpecIcon/index";
|
|
2
|
+
import React from "react";
|
|
13
3
|
|
|
14
4
|
var IconNode = function IconNode(props) {
|
|
15
5
|
var icon = props.icon;
|
|
@@ -17,7 +7,7 @@ var IconNode = function IconNode(props) {
|
|
|
17
7
|
|
|
18
8
|
if (typeof icon === 'string') {
|
|
19
9
|
var iconArr = icon.split(',');
|
|
20
|
-
return /*#__PURE__*/
|
|
10
|
+
return /*#__PURE__*/React.createElement(SpecIcon, {
|
|
21
11
|
prefix: iconArr.length > 1 ? iconArr[0] : 'speci',
|
|
22
12
|
noPrefix: !iconArr[0] || iconArr[0] === 'noPrefix',
|
|
23
13
|
name: iconArr.length > 1 ? iconArr[1] : icon
|
|
@@ -26,14 +16,13 @@ var IconNode = function IconNode(props) {
|
|
|
26
16
|
|
|
27
17
|
if (Array.isArray(icon) && icon.length > 1) {
|
|
28
18
|
// @ts-ignore
|
|
29
|
-
return /*#__PURE__*/
|
|
19
|
+
return /*#__PURE__*/React.createElement(SpecIcon, {
|
|
30
20
|
prefix: icon[0],
|
|
31
21
|
name: icon[1]
|
|
32
22
|
}); // 预留 Array ['speci','plus']
|
|
33
23
|
}
|
|
34
24
|
|
|
35
|
-
return /*#__PURE__*/
|
|
25
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, icon);
|
|
36
26
|
};
|
|
37
27
|
|
|
38
|
-
|
|
39
|
-
exports["default"] = _default;
|
|
28
|
+
export default IconNode;
|
package/es/components/index.js
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "IconNode", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _index["default"];
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
var _index = _interopRequireDefault(require("./IconNode/index"));
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
1
|
+
import IconNode from './IconNode/index';
|
|
2
|
+
export { IconNode };
|
package/es/data/func.code.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
1
|
// 存储当前页面中所有菜单的涉及的功能代码,包括页面及按钮
|
|
8
|
-
|
|
2
|
+
export default {
|
|
9
3
|
btnFuncCodes: [{
|
|
10
4
|
name: '详情',
|
|
11
5
|
code: 'codeBtnDetail',
|
|
@@ -115,5 +109,4 @@ var _default = {
|
|
|
115
109
|
name: '详情',
|
|
116
110
|
code: 'codePageDetail'
|
|
117
111
|
}]
|
|
118
|
-
};
|
|
119
|
-
exports["default"] = _default;
|
|
112
|
+
};
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
1
|
// 一些排版等基本配置值项 (后期可参考是否放入 locales内)
|
|
8
|
-
|
|
2
|
+
export default {
|
|
9
3
|
// 表单 响应式排版
|
|
10
4
|
formLayout: {
|
|
11
5
|
labelCol: {
|
|
@@ -175,5 +169,4 @@ var _default = {
|
|
|
175
169
|
}
|
|
176
170
|
}
|
|
177
171
|
}
|
|
178
|
-
};
|
|
179
|
-
exports["default"] = _default;
|
|
172
|
+
};
|
package/es/data/index.js
CHANGED
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "general", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _general["default"];
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "funcCode", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _func["default"];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
var _general = _interopRequireDefault(require("./general.config"));
|
|
20
|
-
|
|
21
|
-
var _func = _interopRequireDefault(require("./func.code"));
|
|
22
|
-
|
|
23
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
1
|
+
import general from './general.config';
|
|
2
|
+
import funcCode from './func.code';
|
|
3
|
+
export { general, funcCode };
|
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
|
@@ -1,245 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
export { default as SpecIcon } from './SpecIcon';
|
|
2
|
+
export { default as ButtonGroup } from './ButtonGroup';
|
|
3
|
+
export { default as RefactorTree } from './RefactorTree'; // 通用组件
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
StandardForm: true,
|
|
13
|
-
StepForm: true,
|
|
14
|
-
TabForm: true,
|
|
15
|
-
StandardFilter: true,
|
|
16
|
-
StandardModal: true,
|
|
17
|
-
Uploader: true,
|
|
18
|
-
EditButton: true,
|
|
19
|
-
FieldComponent: true,
|
|
20
|
-
Field: true,
|
|
21
|
-
RenderItemGroup: true,
|
|
22
|
-
ItemGroup: true,
|
|
23
|
-
SubfieldContent: true,
|
|
24
|
-
WrapperContent: true,
|
|
25
|
-
DragContent: true,
|
|
26
|
-
SplitterLayout: true,
|
|
27
|
-
NavLeafScroll: true,
|
|
28
|
-
FanLocaleContext: true
|
|
29
|
-
};
|
|
30
|
-
Object.defineProperty(exports, "SpecIcon", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _SpecIcon["default"];
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "ButtonGroup", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function get() {
|
|
39
|
-
return _ButtonGroup["default"];
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "RefactorTree", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function get() {
|
|
45
|
-
return _RefactorTree["default"];
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "StandardPanel", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function get() {
|
|
51
|
-
return _StandardPanel["default"];
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "StandardTable", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function get() {
|
|
57
|
-
return _StandardTable["default"];
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "StandardForm", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function get() {
|
|
63
|
-
return _StandardForm["default"];
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "StepForm", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function get() {
|
|
69
|
-
return _StepForm["default"];
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "TabForm", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function get() {
|
|
75
|
-
return _TabForm["default"];
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(exports, "StandardFilter", {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
get: function get() {
|
|
81
|
-
return _StandardFilter["default"];
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(exports, "StandardModal", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
get: function get() {
|
|
87
|
-
return _StandardModal["default"];
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
Object.defineProperty(exports, "Uploader", {
|
|
91
|
-
enumerable: true,
|
|
92
|
-
get: function get() {
|
|
93
|
-
return _Uploader["default"];
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
Object.defineProperty(exports, "EditButton", {
|
|
97
|
-
enumerable: true,
|
|
98
|
-
get: function get() {
|
|
99
|
-
return _EditButton["default"];
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
Object.defineProperty(exports, "FieldComponent", {
|
|
103
|
-
enumerable: true,
|
|
104
|
-
get: function get() {
|
|
105
|
-
return _FieldComponent["default"];
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
Object.defineProperty(exports, "Field", {
|
|
109
|
-
enumerable: true,
|
|
110
|
-
get: function get() {
|
|
111
|
-
return _FieldComponent["default"];
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
Object.defineProperty(exports, "RenderItemGroup", {
|
|
115
|
-
enumerable: true,
|
|
116
|
-
get: function get() {
|
|
117
|
-
return _RenderItemGroup["default"];
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
Object.defineProperty(exports, "ItemGroup", {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function get() {
|
|
123
|
-
return _RenderItemGroup["default"];
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
Object.defineProperty(exports, "SubfieldContent", {
|
|
127
|
-
enumerable: true,
|
|
128
|
-
get: function get() {
|
|
129
|
-
return _SubfieldContent["default"];
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
Object.defineProperty(exports, "WrapperContent", {
|
|
133
|
-
enumerable: true,
|
|
134
|
-
get: function get() {
|
|
135
|
-
return _WrapperContent["default"];
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
Object.defineProperty(exports, "DragContent", {
|
|
139
|
-
enumerable: true,
|
|
140
|
-
get: function get() {
|
|
141
|
-
return _DragContent["default"];
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
Object.defineProperty(exports, "SplitterLayout", {
|
|
145
|
-
enumerable: true,
|
|
146
|
-
get: function get() {
|
|
147
|
-
return _SplitterLayout["default"];
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
Object.defineProperty(exports, "NavLeafScroll", {
|
|
151
|
-
enumerable: true,
|
|
152
|
-
get: function get() {
|
|
153
|
-
return _NavLeafScroll["default"];
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
Object.defineProperty(exports, "FanLocaleContext", {
|
|
157
|
-
enumerable: true,
|
|
158
|
-
get: function get() {
|
|
159
|
-
return _ConfigContext["default"];
|
|
160
|
-
}
|
|
161
|
-
});
|
|
5
|
+
export { default as StandardPanel } from './StandardPanel';
|
|
6
|
+
export { default as StandardTable } from './StandardTable';
|
|
7
|
+
export { default as StandardForm } from './StandardForm';
|
|
8
|
+
export { default as StepForm } from './StandardForm/StepForm';
|
|
9
|
+
export { default as TabForm } from './StandardForm/TabForm';
|
|
10
|
+
export { default as StandardFilter } from './StandardFilter';
|
|
11
|
+
export { default as StandardModal } from './StandardModal';
|
|
12
|
+
export { default as Uploader } from './FormComp/Uploader';
|
|
13
|
+
export { default as EditButton } from './FormComp/EditButton'; // 基础控件
|
|
162
14
|
|
|
163
|
-
|
|
15
|
+
export { default as FieldComponent } from './FormComp/FieldComponent';
|
|
16
|
+
export { default as Field } from './FormComp/FieldComponent'; // 表单组
|
|
164
17
|
|
|
165
|
-
|
|
18
|
+
export { default as RenderItemGroup } from './FormComp/RenderItemGroup';
|
|
19
|
+
export { default as ItemGroup } from './FormComp/RenderItemGroup'; // 页面内容结构
|
|
166
20
|
|
|
167
|
-
|
|
21
|
+
export { default as SubfieldContent } from './StandardContent/SubfieldContent';
|
|
22
|
+
export { default as WrapperContent } from './StandardContent/WrapperContent';
|
|
23
|
+
export { default as DragContent } from './DragContent';
|
|
24
|
+
export { default as SplitterLayout } from './StandardContent/SplitterLayout'; // 其他
|
|
168
25
|
|
|
169
|
-
|
|
26
|
+
export { default as NavLeafScroll } from './NavLeafScroll';
|
|
27
|
+
export * from './components'; // 工具类
|
|
170
28
|
|
|
171
|
-
|
|
29
|
+
export * from './utils'; // 数据类
|
|
172
30
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
var _StepForm = _interopRequireDefault(require("./StandardForm/StepForm"));
|
|
176
|
-
|
|
177
|
-
var _TabForm = _interopRequireDefault(require("./StandardForm/TabForm"));
|
|
178
|
-
|
|
179
|
-
var _StandardFilter = _interopRequireDefault(require("./StandardFilter"));
|
|
180
|
-
|
|
181
|
-
var _StandardModal = _interopRequireDefault(require("./StandardModal"));
|
|
182
|
-
|
|
183
|
-
var _Uploader = _interopRequireDefault(require("./FormComp/Uploader"));
|
|
184
|
-
|
|
185
|
-
var _EditButton = _interopRequireDefault(require("./FormComp/EditButton"));
|
|
186
|
-
|
|
187
|
-
var _FieldComponent = _interopRequireDefault(require("./FormComp/FieldComponent"));
|
|
188
|
-
|
|
189
|
-
var _RenderItemGroup = _interopRequireDefault(require("./FormComp/RenderItemGroup"));
|
|
190
|
-
|
|
191
|
-
var _SubfieldContent = _interopRequireDefault(require("./StandardContent/SubfieldContent"));
|
|
192
|
-
|
|
193
|
-
var _WrapperContent = _interopRequireDefault(require("./StandardContent/WrapperContent"));
|
|
194
|
-
|
|
195
|
-
var _DragContent = _interopRequireDefault(require("./DragContent"));
|
|
196
|
-
|
|
197
|
-
var _SplitterLayout = _interopRequireDefault(require("./StandardContent/SplitterLayout"));
|
|
198
|
-
|
|
199
|
-
var _NavLeafScroll = _interopRequireDefault(require("./NavLeafScroll"));
|
|
200
|
-
|
|
201
|
-
var _components = require("./components");
|
|
202
|
-
|
|
203
|
-
Object.keys(_components).forEach(function (key) {
|
|
204
|
-
if (key === "default" || key === "__esModule") return;
|
|
205
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
206
|
-
if (key in exports && exports[key] === _components[key]) return;
|
|
207
|
-
Object.defineProperty(exports, key, {
|
|
208
|
-
enumerable: true,
|
|
209
|
-
get: function get() {
|
|
210
|
-
return _components[key];
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
});
|
|
214
|
-
|
|
215
|
-
var _utils = require("./utils");
|
|
216
|
-
|
|
217
|
-
Object.keys(_utils).forEach(function (key) {
|
|
218
|
-
if (key === "default" || key === "__esModule") return;
|
|
219
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
220
|
-
if (key in exports && exports[key] === _utils[key]) return;
|
|
221
|
-
Object.defineProperty(exports, key, {
|
|
222
|
-
enumerable: true,
|
|
223
|
-
get: function get() {
|
|
224
|
-
return _utils[key];
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
});
|
|
228
|
-
|
|
229
|
-
var _data = require("./data");
|
|
230
|
-
|
|
231
|
-
Object.keys(_data).forEach(function (key) {
|
|
232
|
-
if (key === "default" || key === "__esModule") return;
|
|
233
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
234
|
-
if (key in exports && exports[key] === _data[key]) return;
|
|
235
|
-
Object.defineProperty(exports, key, {
|
|
236
|
-
enumerable: true,
|
|
237
|
-
get: function get() {
|
|
238
|
-
return _data[key];
|
|
239
|
-
}
|
|
240
|
-
});
|
|
241
|
-
});
|
|
242
|
-
|
|
243
|
-
var _ConfigContext = _interopRequireDefault(require("./ConfigContext"));
|
|
244
|
-
|
|
245
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
|
+
export * from './data';
|
package/es/utils/ValueFormat.js
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
1
|
/*
|
|
9
2
|
* 工具类: 表单组控件值格式转换工具
|
|
10
3
|
* @params {Object} fieldsValue: 表单组内的控件值
|
|
@@ -54,5 +47,4 @@ var UtilValueFormat = function UtilValueFormat(fieldsValue, formItemGroup) {
|
|
|
54
47
|
return fieldsValue;
|
|
55
48
|
};
|
|
56
49
|
|
|
57
|
-
|
|
58
|
-
exports["default"] = _default;
|
|
50
|
+
export default UtilValueFormat;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.btnClickFunc = exports.btnIsDisabled = exports.btnIsHide = exports.removeNoPermission = void 0;
|
|
7
|
-
|
|
8
|
-
var _lodash = _interopRequireDefault(require("lodash"));
|
|
9
|
-
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
1
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
13
2
|
|
|
14
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
@@ -17,7 +6,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
17
6
|
|
|
18
7
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
19
8
|
|
|
20
|
-
// 按钮方法
|
|
9
|
+
import _ from "lodash"; // 按钮方法
|
|
10
|
+
|
|
21
11
|
var btnClickFunc = function btnClickFunc(fn) {
|
|
22
12
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
23
13
|
if (!fn) return null;
|
|
@@ -37,8 +27,6 @@ var btnClickFunc = function btnClickFunc(fn) {
|
|
|
37
27
|
}; // 按钮是否禁用
|
|
38
28
|
|
|
39
29
|
|
|
40
|
-
exports.btnClickFunc = btnClickFunc;
|
|
41
|
-
|
|
42
30
|
var btnIsDisabled = function btnIsDisabled(isDisabled) {
|
|
43
31
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
44
32
|
if (!isDisabled) return false;
|
|
@@ -58,8 +46,6 @@ var btnIsDisabled = function btnIsDisabled(isDisabled) {
|
|
|
58
46
|
}; // 按钮是否隐藏
|
|
59
47
|
|
|
60
48
|
|
|
61
|
-
exports.btnIsDisabled = btnIsDisabled;
|
|
62
|
-
|
|
63
49
|
var btnIsHide = function btnIsHide(isHide) {
|
|
64
50
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
65
51
|
if (!isHide) return false;
|
|
@@ -79,8 +65,6 @@ var btnIsHide = function btnIsHide(isHide) {
|
|
|
79
65
|
}; // 重新组合数据(排除不包含在permissionCodes内及isHide数据
|
|
80
66
|
|
|
81
67
|
|
|
82
|
-
exports.btnIsHide = btnIsHide;
|
|
83
|
-
|
|
84
68
|
var removeNoPermission = function removeNoPermission(array, permissionCodes, codes, params) {
|
|
85
69
|
return Array.isArray(array) && array.filter(function (item) {
|
|
86
70
|
if (item.children) {
|
|
@@ -106,7 +90,7 @@ var removeNoPermission = function removeNoPermission(array, permissionCodes, cod
|
|
|
106
90
|
// 与codes进行对比,相应的 code匹配以对应的name,icon,code返回
|
|
107
91
|
// 如果有配置code,则使用func.code.js里面配置的名称
|
|
108
92
|
if (codes && resultItem.code) {
|
|
109
|
-
var matchIndex =
|
|
93
|
+
var matchIndex = _.findIndex(codes, function (btnItem) {
|
|
110
94
|
return btnItem.code === resultItem.code;
|
|
111
95
|
});
|
|
112
96
|
|
|
@@ -124,4 +108,4 @@ var removeNoPermission = function removeNoPermission(array, permissionCodes, cod
|
|
|
124
108
|
});
|
|
125
109
|
};
|
|
126
110
|
|
|
127
|
-
|
|
111
|
+
export { removeNoPermission, btnIsHide, btnIsDisabled, btnClickFunc };
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getNodePaths = exports.getChildrenNodes = exports.getParentNodes = void 0;
|
|
7
|
-
|
|
8
1
|
/**
|
|
9
2
|
* @description 递归查看父级节点数据集合及当前节点数据
|
|
10
3
|
* @params {Array} list 当前需要过滤查看的数据集合、
|
|
@@ -140,8 +133,6 @@ var getParentNodes = function getParentNodes(list, nodeKey) {
|
|
|
140
133
|
}; // 递归查找指定ID所有的子菜单与子功能集合
|
|
141
134
|
|
|
142
135
|
|
|
143
|
-
exports.getParentNodes = getParentNodes;
|
|
144
|
-
|
|
145
136
|
var getChildrenNodes = function getChildrenNodes(childNode) {
|
|
146
137
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
147
138
|
childrenParam: 'children',
|
|
@@ -166,8 +157,6 @@ var getChildrenNodes = function getChildrenNodes(childNode) {
|
|
|
166
157
|
}; // 查找节点路径
|
|
167
158
|
|
|
168
159
|
|
|
169
|
-
exports.getChildrenNodes = getChildrenNodes;
|
|
170
|
-
|
|
171
160
|
var getNodePaths = function getNodePaths(list, nodeKey) {
|
|
172
161
|
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
173
162
|
childrenParam: 'children',
|
|
@@ -223,4 +212,4 @@ var getNodePaths = function getNodePaths(list, nodeKey) {
|
|
|
223
212
|
return pathNode;
|
|
224
213
|
};
|
|
225
214
|
|
|
226
|
-
|
|
215
|
+
export { getParentNodes, getChildrenNodes, getNodePaths };
|
package/es/utils/index.js
CHANGED
|
@@ -1,35 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "UtilValueFormat", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _ValueFormat["default"];
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "getParentNodes", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _getParentNodes.getParentNodes;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "getChildrenNodes", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _getParentNodes.getChildrenNodes;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "getNodePaths", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _getParentNodes.getNodePaths;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
var _ValueFormat = _interopRequireDefault(require("./ValueFormat"));
|
|
32
|
-
|
|
33
|
-
var _getParentNodes = require("./getParentNodes");
|
|
34
|
-
|
|
35
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
1
|
+
import UtilValueFormat from './ValueFormat';
|
|
2
|
+
import { getParentNodes, getChildrenNodes, getNodePaths } from './getParentNodes';
|
|
3
|
+
export { UtilValueFormat, getParentNodes, getChildrenNodes, getNodePaths };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
|
|
8
8
|
require("antd/es/button/style");
|
|
9
9
|
|
|
@@ -23,25 +23,25 @@ var _IconNode = _interopRequireDefault(require("@/components/IconNode"));
|
|
|
23
23
|
|
|
24
24
|
var _filterPermission = require("@/utils/filterPermission");
|
|
25
25
|
|
|
26
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
27
|
|
|
28
28
|
// 渲染按钮形式 (用于筛选)
|
|
29
29
|
var RenderButtonList = function RenderButtonList(item) {
|
|
30
30
|
if (Array.isArray(item.children) && item.children.length > 0) {
|
|
31
|
-
return /*#__PURE__*/_react
|
|
32
|
-
overlay: (0, _ButtonMenu
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_dropdown.default, {
|
|
32
|
+
overlay: (0, _ButtonMenu.default)(item.children),
|
|
33
33
|
placement: "bottomRight"
|
|
34
|
-
}, /*#__PURE__*/_react
|
|
34
|
+
}, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
35
35
|
type: "primary"
|
|
36
|
-
}, item.exName || item.name, " ", /*#__PURE__*/_react
|
|
36
|
+
}, item.exName || item.name, " ", /*#__PURE__*/_react.default.createElement(_SpecIcon.default, {
|
|
37
37
|
name: "down"
|
|
38
38
|
})));
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
return /*#__PURE__*/_react
|
|
41
|
+
return /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
42
42
|
type: item.type ? item.type : 'primary',
|
|
43
43
|
danger: item.danger,
|
|
44
|
-
icon: /*#__PURE__*/_react
|
|
44
|
+
icon: /*#__PURE__*/_react.default.createElement(_IconNode.default, {
|
|
45
45
|
icon: item.icon
|
|
46
46
|
}),
|
|
47
47
|
disabled: (0, _filterPermission.btnIsDisabled)(item.disabled, item.rowParams),
|
|
@@ -52,4 +52,4 @@ var RenderButtonList = function RenderButtonList(item) {
|
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
var _default = RenderButtonList;
|
|
55
|
-
exports
|
|
55
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
|
|
8
8
|
require("antd/es/menu/style");
|
|
9
9
|
|
|
@@ -13,39 +13,39 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
13
13
|
|
|
14
14
|
var _IconNode = _interopRequireDefault(require("@/components/IconNode"));
|
|
15
15
|
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
18
|
// 渲染按钮多层级形式 (用于筛选)
|
|
19
19
|
var RenderButtonList = function RenderButtonList(group) {
|
|
20
|
-
return /*#__PURE__*/_react
|
|
20
|
+
return /*#__PURE__*/_react.default.createElement(_menu.default, null, group.map(function (item, index) {
|
|
21
21
|
if (item.children) {
|
|
22
|
-
return /*#__PURE__*/_react
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement(_menu.default.SubMenu, {
|
|
23
23
|
title: item.exName || item.name,
|
|
24
24
|
key: index
|
|
25
25
|
}, item.children.map(function (child, childIndex) {
|
|
26
|
-
return /*#__PURE__*/_react
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement(_menu.default.Item, {
|
|
27
27
|
key: childIndex
|
|
28
|
-
}, /*#__PURE__*/_react
|
|
28
|
+
}, /*#__PURE__*/_react.default.createElement("a", {
|
|
29
29
|
onClick: child.fn ? function () {
|
|
30
30
|
return child.fn(child);
|
|
31
31
|
} : null
|
|
32
|
-
}, /*#__PURE__*/_react
|
|
32
|
+
}, /*#__PURE__*/_react.default.createElement(_IconNode.default, {
|
|
33
33
|
icon: child.icon
|
|
34
34
|
}), " ", child.exName || child.name));
|
|
35
35
|
}));
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
return /*#__PURE__*/_react
|
|
38
|
+
return /*#__PURE__*/_react.default.createElement(_menu.default.Item, {
|
|
39
39
|
key: index
|
|
40
|
-
}, /*#__PURE__*/_react
|
|
40
|
+
}, /*#__PURE__*/_react.default.createElement("a", {
|
|
41
41
|
onClick: item.fn ? function () {
|
|
42
42
|
return item.fn(item);
|
|
43
43
|
} : null
|
|
44
|
-
}, /*#__PURE__*/_react
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement(_IconNode.default, {
|
|
45
45
|
icon: item.icon
|
|
46
46
|
}), " ", item.exName || item.name));
|
|
47
47
|
}));
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
var _default = RenderButtonList;
|
|
51
|
-
exports
|
|
51
|
+
exports.default = _default;
|