fan-standard-comp 3.0.13 → 3.0.16
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/Readme.md +0 -2
- package/dist/{f26952c118ab6cdcd23dc0028ee98c11.svg → e8686421bcdc3738ee1c41da9fa770d7.svg} +0 -0
- package/dist/fan-standard-comp.umd.js +16 -16
- package/es/ButtonGroup/ButtonList.js +36 -18
- package/es/ButtonGroup/ButtonMenu.js +27 -14
- package/es/ButtonGroup/PopConfirmTitle.js +16 -5
- package/es/ButtonGroup/index.js +131 -82
- package/es/DragContent/DragBar.js +18 -6
- package/es/DragContent/index.js +30 -12
- package/es/FormComp/ChunkUploader/api.js +21 -8
- package/es/FormComp/ChunkUploader/index.js +46 -27
- package/es/FormComp/ChunkUploader/lib.js +26 -9
- package/es/FormComp/ChunkUploader/upload-queue.class.js +12 -5
- package/es/FormComp/ChunkUploader/worker.js +7 -2
- package/es/FormComp/EditButton/index.js +35 -16
- package/es/FormComp/FieldComponent/ReUpload.js +38 -18
- package/es/FormComp/FieldComponent/RefactorTreeSelect.js +49 -26
- package/es/FormComp/FieldComponent/TitleNode.js +13 -3
- package/es/FormComp/FieldComponent/index.js +112 -72
- package/es/FormComp/FieldComponent/setReadonlyValues.js +55 -28
- package/es/FormComp/RenderItemGroup/index.d.ts +9 -1
- package/es/FormComp/RenderItemGroup/index.js +63 -36
- package/es/FormComp/Uploader/index.js +64 -38
- package/es/FormComp/Uploader/util.js +11 -2
- package/es/FormComp/VarTemplate/index.js +44 -31
- package/es/FormComp/index.js +15 -1
- package/es/NavLeafScroll/index.js +53 -35
- package/es/RefactorTree/index.js +52 -29
- package/es/RefactorTree/indexTreeNode.js +54 -31
- package/es/RefactorTree/style/index.js +3 -1
- package/es/RefactorTree/util.js +18 -10
- package/es/SpecIcon/fonts/iconfont.js +2 -0
- package/es/SpecIcon/index.js +30 -17
- package/es/SplitterLayout/Pane.js +17 -5
- package/es/SplitterLayout/index.js +24 -13
- package/es/StandardContent/SplitterLayout/Pane.js +25 -13
- package/es/StandardContent/SplitterLayout/index.js +43 -30
- package/es/StandardContent/SubfieldContent.js +28 -13
- package/es/StandardContent/WrapperContent.js +24 -10
- package/es/StandardFilter/index.js +46 -27
- package/es/StandardForm/ActionList.js +21 -8
- package/es/StandardForm/StepForm.d.ts +1 -1
- package/es/StandardForm/StepForm.js +72 -41
- package/es/StandardForm/TabForm.d.ts +1 -1
- package/es/StandardForm/TabForm.js +56 -27
- package/es/StandardForm/index.d.ts +3 -1
- package/es/StandardForm/index.js +57 -28
- package/es/StandardModal/UpdateFormRef.js +18 -4
- package/es/StandardModal/index.d.ts +1 -1
- package/es/StandardModal/index.js +106 -62
- package/es/StandardPanel/index.js +53 -32
- package/es/StandardTable/index.js +34 -17
- package/es/StandardTable/style/index.js +3 -1
- package/es/components/IconNode/index.js +17 -6
- package/es/components/index.js +15 -2
- package/es/data/func.code.js +9 -2
- package/es/data/general.config.js +9 -2
- package/es/data/index.js +23 -3
- package/es/index.js +229 -24
- package/es/utils/ValueFormat.js +9 -1
- package/es/utils/filterPermission.js +20 -4
- package/es/utils/getParentNodes.js +12 -1
- package/es/utils/index.js +35 -3
- 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 +75 -56
- 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 +36 -36
- package/lib/FormComp/FieldComponent/setReadonlyValues.js +17 -17
- package/lib/FormComp/RenderItemGroup/index.d.ts +9 -1
- package/lib/FormComp/RenderItemGroup/index.js +30 -24
- package/lib/FormComp/Uploader/index.js +16 -16
- package/lib/FormComp/VarTemplate/index.js +23 -25
- 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/StandardFilter/index.js +18 -18
- package/lib/StandardForm/ActionList.js +6 -6
- package/lib/StandardForm/StepForm.d.ts +1 -1
- package/lib/StandardForm/StepForm.js +30 -27
- package/lib/StandardForm/TabForm.d.ts +1 -1
- package/lib/StandardForm/TabForm.js +17 -14
- package/lib/StandardForm/index.d.ts +3 -1
- package/lib/StandardForm/index.js +17 -15
- package/lib/StandardModal/UpdateFormRef.js +4 -4
- package/lib/StandardModal/index.d.ts +1 -1
- package/lib/StandardModal/index.js +53 -39
- package/lib/StandardPanel/index.js +23 -23
- package/lib/StandardTable/index.js +8 -8
- 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.js +22 -22
- package/lib/utils/ValueFormat.js +2 -2
- package/lib/utils/filterPermission.js +2 -2
- package/lib/utils/index.js +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -29,127 +29,127 @@ var _exportNames = {
|
|
|
29
29
|
Object.defineProperty(exports, "SpecIcon", {
|
|
30
30
|
enumerable: true,
|
|
31
31
|
get: function get() {
|
|
32
|
-
return _SpecIcon
|
|
32
|
+
return _SpecIcon["default"];
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "ButtonGroup", {
|
|
36
36
|
enumerable: true,
|
|
37
37
|
get: function get() {
|
|
38
|
-
return _ButtonGroup
|
|
38
|
+
return _ButtonGroup["default"];
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "RefactorTree", {
|
|
42
42
|
enumerable: true,
|
|
43
43
|
get: function get() {
|
|
44
|
-
return _RefactorTree
|
|
44
|
+
return _RefactorTree["default"];
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "StandardPanel", {
|
|
48
48
|
enumerable: true,
|
|
49
49
|
get: function get() {
|
|
50
|
-
return _StandardPanel
|
|
50
|
+
return _StandardPanel["default"];
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "StandardTable", {
|
|
54
54
|
enumerable: true,
|
|
55
55
|
get: function get() {
|
|
56
|
-
return _StandardTable
|
|
56
|
+
return _StandardTable["default"];
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "StandardForm", {
|
|
60
60
|
enumerable: true,
|
|
61
61
|
get: function get() {
|
|
62
|
-
return _StandardForm
|
|
62
|
+
return _StandardForm["default"];
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "StepForm", {
|
|
66
66
|
enumerable: true,
|
|
67
67
|
get: function get() {
|
|
68
|
-
return _StepForm
|
|
68
|
+
return _StepForm["default"];
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "TabForm", {
|
|
72
72
|
enumerable: true,
|
|
73
73
|
get: function get() {
|
|
74
|
-
return _TabForm
|
|
74
|
+
return _TabForm["default"];
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "StandardFilter", {
|
|
78
78
|
enumerable: true,
|
|
79
79
|
get: function get() {
|
|
80
|
-
return _StandardFilter
|
|
80
|
+
return _StandardFilter["default"];
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "StandardModal", {
|
|
84
84
|
enumerable: true,
|
|
85
85
|
get: function get() {
|
|
86
|
-
return _StandardModal
|
|
86
|
+
return _StandardModal["default"];
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "Uploader", {
|
|
90
90
|
enumerable: true,
|
|
91
91
|
get: function get() {
|
|
92
|
-
return _Uploader
|
|
92
|
+
return _Uploader["default"];
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "EditButton", {
|
|
96
96
|
enumerable: true,
|
|
97
97
|
get: function get() {
|
|
98
|
-
return _EditButton
|
|
98
|
+
return _EditButton["default"];
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "FieldComponent", {
|
|
102
102
|
enumerable: true,
|
|
103
103
|
get: function get() {
|
|
104
|
-
return _FieldComponent
|
|
104
|
+
return _FieldComponent["default"];
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "Field", {
|
|
108
108
|
enumerable: true,
|
|
109
109
|
get: function get() {
|
|
110
|
-
return _FieldComponent
|
|
110
|
+
return _FieldComponent["default"];
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "RenderItemGroup", {
|
|
114
114
|
enumerable: true,
|
|
115
115
|
get: function get() {
|
|
116
|
-
return _RenderItemGroup
|
|
116
|
+
return _RenderItemGroup["default"];
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "ItemGroup", {
|
|
120
120
|
enumerable: true,
|
|
121
121
|
get: function get() {
|
|
122
|
-
return _RenderItemGroup
|
|
122
|
+
return _RenderItemGroup["default"];
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "SubfieldContent", {
|
|
126
126
|
enumerable: true,
|
|
127
127
|
get: function get() {
|
|
128
|
-
return _SubfieldContent
|
|
128
|
+
return _SubfieldContent["default"];
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "WrapperContent", {
|
|
132
132
|
enumerable: true,
|
|
133
133
|
get: function get() {
|
|
134
|
-
return _WrapperContent
|
|
134
|
+
return _WrapperContent["default"];
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "DragContent", {
|
|
138
138
|
enumerable: true,
|
|
139
139
|
get: function get() {
|
|
140
|
-
return _DragContent
|
|
140
|
+
return _DragContent["default"];
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "SplitterLayout", {
|
|
144
144
|
enumerable: true,
|
|
145
145
|
get: function get() {
|
|
146
|
-
return _SplitterLayout
|
|
146
|
+
return _SplitterLayout["default"];
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "NavLeafScroll", {
|
|
150
150
|
enumerable: true,
|
|
151
151
|
get: function get() {
|
|
152
|
-
return _NavLeafScroll
|
|
152
|
+
return _NavLeafScroll["default"];
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
155
|
|
|
@@ -233,4 +233,4 @@ Object.keys(_data).forEach(function (key) {
|
|
|
233
233
|
});
|
|
234
234
|
});
|
|
235
235
|
|
|
236
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
236
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
package/lib/utils/ValueFormat.js
CHANGED
|
@@ -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
|
/*
|
|
9
9
|
* 工具类: 表单组控件值格式转换工具
|
|
@@ -55,4 +55,4 @@ var UtilValueFormat = function UtilValueFormat(fieldsValue, formItemGroup) {
|
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
var _default = UtilValueFormat;
|
|
58
|
-
exports
|
|
58
|
+
exports["default"] = _default;
|
|
@@ -7,7 +7,7 @@ exports.btnClickFunc = exports.btnIsDisabled = exports.btnIsHide = exports.remov
|
|
|
7
7
|
|
|
8
8
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
9
9
|
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
11
|
|
|
12
12
|
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
13
|
|
|
@@ -106,7 +106,7 @@ var removeNoPermission = function removeNoPermission(array, permissionCodes, cod
|
|
|
106
106
|
// 与codes进行对比,相应的 code匹配以对应的name,icon,code返回
|
|
107
107
|
// 如果有配置code,则使用func.code.js里面配置的名称
|
|
108
108
|
if (codes && resultItem.code) {
|
|
109
|
-
var matchIndex = _lodash
|
|
109
|
+
var matchIndex = _lodash["default"].findIndex(codes, function (btnItem) {
|
|
110
110
|
return btnItem.code === resultItem.code;
|
|
111
111
|
});
|
|
112
112
|
|
package/lib/utils/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "UtilValueFormat", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return _ValueFormat
|
|
9
|
+
return _ValueFormat["default"];
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "getParentNodes", {
|
|
@@ -32,4 +32,4 @@ var _ValueFormat = _interopRequireDefault(require("./ValueFormat"));
|
|
|
32
32
|
|
|
33
33
|
var _getParentNodes = require("./getParentNodes");
|
|
34
34
|
|
|
35
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|