antd-management-fast-framework 1.11.57 → 1.11.58

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
4
4
 
5
+ ### [1.11.58](https://github.com/kityandhero/antd-management-fast-framework/compare/antd-management-fast-framework@1.11.57...antd-management-fast-framework@1.11.58) (2021-12-21)
6
+
7
+ ### Performance Improvements
8
+
9
+ - update ([05403da](https://github.com/kityandhero/antd-management-fast-framework/commit/05403da1c4e2f9423e32a8ad2f4b7a765465dd60))
10
+
5
11
  ### [1.11.57](https://github.com/kityandhero/antd-management-fast-framework/compare/antd-management-fast-framework@1.11.56...antd-management-fast-framework@1.11.57) (2021-12-21)
6
12
 
7
13
  ### Performance Improvements
@@ -1,6 +1,15 @@
1
1
  export default MobilePreviewDrawer;
2
2
  declare class MobilePreviewDrawer extends BaseNeedlessLoadDrawer {
3
3
  constructor(props: any);
4
+ establishExtraActionConfig: () => {
5
+ list: {
6
+ buildType: string;
7
+ label: string;
8
+ value: any;
9
+ renderItemFunction: () => any[] | null;
10
+ onChangeCallback: (v: any) => void;
11
+ }[];
12
+ };
4
13
  renderInnerView: () => null;
5
14
  }
6
15
  declare namespace MobilePreviewDrawer {
@@ -2,6 +2,7 @@ export default Common;
2
2
  declare class Common extends Core {
3
3
  static getDerivedStateFromProps(nextProps: any, prevState: any): any;
4
4
  constructor(props: any);
5
+ showExtraActionDivider: boolean;
5
6
  loadDataAfterMount: boolean;
6
7
  lastRequestingData: {
7
8
  type: string;
@@ -14,7 +15,6 @@ declare class Common extends Core {
14
15
  dataSuccess: boolean;
15
16
  };
16
17
  };
17
- getHtmlEditorContent: () => any;
18
18
  /**
19
19
  * 处理其他需要在组件挂在之后执行的流程
20
20
  *
@@ -175,13 +175,14 @@ declare class Common extends Core {
175
175
  items: any;
176
176
  index: any;
177
177
  }) => JSX.Element;
178
- buildEveryCardActionList: ({ keyPrefix, configList }: {
179
- keyPrefix?: string | undefined;
180
- configList: any;
181
- }) => any[];
182
- buildTabBarExtraContentItemsCore: ({ keyPrefix, configList }: {
178
+ buildByExtraBuildType: ({ keyPrefix, configList }: {
183
179
  keyPrefix?: string | undefined;
184
180
  configList: any;
185
181
  }) => any[];
182
+ establishExtraActionConfig: () => null;
183
+ establishExtraActionGroupConfig: () => null;
184
+ establishExtraActionEllipsisConfig: () => null;
185
+ buildExtraBackAction: () => null;
186
+ buildExtraAction: () => JSX.Element;
186
187
  }
187
188
  import Core from "../Core";
@@ -151,6 +151,7 @@ var Common = /*#__PURE__*/function (_Core) {
151
151
  _classCallCheck(this, Common);
152
152
 
153
153
  _this = _super.call(this, _props);
154
+ _this.showExtraActionDivider = false;
154
155
  _this.loadDataAfterMount = true;
155
156
  _this.lastRequestingData = {
156
157
  type: '',
@@ -193,11 +194,6 @@ var Common = /*#__PURE__*/function (_Core) {
193
194
  };
194
195
  };
195
196
 
196
- _this.getHtmlEditorContent = function () {
197
- var htmlEditor = _this.state.htmlEditor;
198
- return html == null ? '' : htmlEditor.toHTML();
199
- };
200
-
201
197
  _this.initOther = function () {};
202
198
 
203
199
  _this.init = function () {
@@ -1626,7 +1622,7 @@ var Common = /*#__PURE__*/function (_Core) {
1626
1622
  });
1627
1623
  }
1628
1624
 
1629
- var extraItems = _this.buildEveryCardActionList({
1625
+ var extraItems = _this.buildByExtraBuildType({
1630
1626
  keyPrefix: "formContent_key_".concat(cardItemKey, "_extra"),
1631
1627
  configList: extraListData
1632
1628
  });
@@ -2154,7 +2150,7 @@ var Common = /*#__PURE__*/function (_Core) {
2154
2150
  split: (0, _tools.isBoolean)(contentItem.split || false) ? contentItem.split || false ? /*#__PURE__*/_react.default.createElement(_divider.default, {
2155
2151
  type: "vertical"
2156
2152
  }) : null : contentItem.split
2157
- }, _this.buildEveryCardActionList({
2153
+ }, _this.buildByExtraBuildType({
2158
2154
  keyPrefix: "form_card_".concat(contentIndex, "_action_key"),
2159
2155
  configList: contentItem.config || []
2160
2156
  })) : null, type === _constants.cardConfig.contentItemType.component ? contentItem.component || null : null, type === _constants.cardConfig.contentItemType.jsonView ? _this.renderJsonView(contentItem.value) : null, type === _constants.cardConfig.contentItemType.nowTime ? _this.renderFormNowTimeField({
@@ -2163,7 +2159,7 @@ var Common = /*#__PURE__*/function (_Core) {
2163
2159
  }) : null);
2164
2160
  };
2165
2161
 
2166
- _this.buildEveryCardActionList = function (_ref9) {
2162
+ _this.buildByExtraBuildType = function (_ref9) {
2167
2163
  var _ref9$keyPrefix = _ref9.keyPrefix,
2168
2164
  keyPrefix = _ref9$keyPrefix === void 0 ? '' : _ref9$keyPrefix,
2169
2165
  configList = _ref9.configList;
@@ -2182,15 +2178,15 @@ var Common = /*#__PURE__*/function (_Core) {
2182
2178
  componentSource = _hidden$buildType$ico.component;
2183
2179
 
2184
2180
  if (!hidden) {
2185
- var itemKey = "".concat(keyPrefix || 'formAction', "_").concat(index);
2181
+ var itemKey = "".concat(keyPrefix, "_").concat(index);
2186
2182
  var itemAdjust = item;
2187
2183
 
2188
2184
  switch (buildType) {
2189
- case _constants.cardConfig.extraBuildType.refresh:
2185
+ case _constants.extraBuildType.refresh:
2190
2186
  itemAdjust = _this.renderRefreshButton(item);
2191
2187
  break;
2192
2188
 
2193
- case _constants.cardConfig.extraBuildType.save:
2189
+ case _constants.extraBuildType.save:
2194
2190
  itemAdjust = _this.renderSaveButton(item);
2195
2191
  break;
2196
2192
 
@@ -2198,35 +2194,43 @@ var Common = /*#__PURE__*/function (_Core) {
2198
2194
  itemAdjust = _this.renderGeneralButton(item);
2199
2195
  break;
2200
2196
 
2201
- case _constants.cardConfig.extraBuildType.flexSelect:
2197
+ case _constants.extraBuildType.flexSelect:
2202
2198
  itemAdjust = (0, _FunctionComponent.buildCustomSelect)(item);
2203
2199
  break;
2204
2200
 
2205
- case _constants.cardConfig.extraBuildType.button:
2201
+ case _constants.extraBuildType.button:
2206
2202
  itemAdjust = (0, _FunctionComponent.buildButton)(item);
2207
2203
  break;
2208
2204
 
2209
- case _constants.cardConfig.extraBuildType.dropdown:
2205
+ case _constants.extraBuildType.dropdown:
2210
2206
  itemAdjust = (0, _FunctionComponent.buildDropdown)(item);
2211
2207
  break;
2212
2208
 
2213
- case _constants.cardConfig.extraBuildType.dropdownButton:
2209
+ case _constants.extraBuildType.dropdownButton:
2214
2210
  itemAdjust = (0, _FunctionComponent.buildDropdownButton)(item);
2215
2211
  break;
2216
2212
 
2217
- case _constants.cardConfig.extraBuildType.dropdownEllipsis:
2213
+ case _constants.extraBuildType.dropdownEllipsis:
2218
2214
  itemAdjust = (0, _FunctionComponent.buildDropdownEllipsis)(item);
2219
2215
  break;
2220
2216
 
2221
- case _constants.cardConfig.extraBuildType.iconInfo:
2222
- itemAdjust = /*#__PURE__*/_react.default.createElement(_IconInfo.default, item);
2217
+ case _constants.extraBuildType.iconInfo:
2218
+ itemAdjust = /*#__PURE__*/_react.default.createElement("div", {
2219
+ style: {
2220
+ padding: '0 8px'
2221
+ }
2222
+ }, /*#__PURE__*/_react.default.createElement(_IconInfo.default, item));
2223
2223
  break;
2224
2224
 
2225
- case _constants.cardConfig.extraBuildType.colorText:
2226
- itemAdjust = /*#__PURE__*/_react.default.createElement(_ColorText.default, item);
2225
+ case _constants.extraBuildType.colorText:
2226
+ itemAdjust = /*#__PURE__*/_react.default.createElement("div", {
2227
+ style: {
2228
+ padding: '0 8px'
2229
+ }
2230
+ }, /*#__PURE__*/_react.default.createElement(_ColorText.default, item));
2227
2231
  break;
2228
2232
 
2229
- case _constants.cardConfig.extraBuildType.component:
2233
+ case _constants.extraBuildType.component:
2230
2234
  itemAdjust = componentSource || null;
2231
2235
  break;
2232
2236
 
@@ -2248,91 +2252,103 @@ var Common = /*#__PURE__*/function (_Core) {
2248
2252
  return list;
2249
2253
  };
2250
2254
 
2251
- _this.buildTabBarExtraContentItemsCore = function (_ref10) {
2252
- var _ref10$keyPrefix = _ref10.keyPrefix,
2253
- keyPrefix = _ref10$keyPrefix === void 0 ? '' : _ref10$keyPrefix,
2254
- configList = _ref10.configList;
2255
- var list = [];
2256
- ((0, _tools.isArray)(configList) ? configList : []).forEach(function (item, index) {
2257
- if ((item || null) != null) {
2258
- var _hidden$buildType$ico2 = _objectSpread(_objectSpread({}, {
2259
- hidden: false,
2260
- buildType: null,
2261
- icon: null,
2262
- text: '',
2263
- component: null
2264
- }), item),
2265
- hidden = _hidden$buildType$ico2.hidden,
2266
- buildType = _hidden$buildType$ico2.buildType,
2267
- componentSource = _hidden$buildType$ico2.component;
2255
+ _this.establishExtraActionConfig = function () {
2256
+ return null;
2257
+ };
2268
2258
 
2269
- if (!hidden) {
2270
- var itemKey = "".concat(keyPrefix || 'tabBarExtraContentItem', "_").concat(index);
2271
- var itemAdjust = item;
2259
+ _this.establishExtraActionGroupConfig = function () {
2260
+ return null;
2261
+ };
2272
2262
 
2273
- switch (buildType) {
2274
- case _constants.tabBarCollection.extraBuildType.flexSelect:
2275
- itemAdjust = (0, _FunctionComponent.buildCustomSelect)(item);
2276
- break;
2263
+ _this.establishExtraActionEllipsisConfig = function () {
2264
+ return null;
2265
+ };
2277
2266
 
2278
- case _constants.tabBarCollection.extraBuildType.button:
2279
- itemAdjust = (0, _FunctionComponent.buildButton)(item);
2280
- break;
2267
+ _this.buildExtraBackAction = function () {
2268
+ return null;
2269
+ };
2281
2270
 
2282
- case _constants.tabBarCollection.extraBuildType.dropdown:
2283
- itemAdjust = (0, _FunctionComponent.buildDropdown)(item);
2284
- break;
2271
+ _this.buildExtraAction = function () {
2272
+ var _this$state2 = _this.state,
2273
+ dataLoading = _this$state2.dataLoading,
2274
+ reloading = _this$state2.reloading,
2275
+ refreshing = _this$state2.refreshing,
2276
+ showReloadButton = _this$state2.showReloadButton;
2285
2277
 
2286
- case _constants.tabBarCollection.extraBuildType.dropdownButton:
2287
- itemAdjust = (0, _FunctionComponent.buildDropdownButton)(item);
2288
- break;
2278
+ var _keyPrefix$list$_this = _objectSpread(_objectSpread({}, {
2279
+ keyPrefix: '',
2280
+ list: []
2281
+ }), _this.establishExtraActionConfig()),
2282
+ keyPrefix = _keyPrefix$list$_this.keyPrefix,
2283
+ configList = _keyPrefix$list$_this.list;
2289
2284
 
2290
- case _constants.tabBarCollection.extraBuildType.dropdownEllipsis:
2291
- itemAdjust = (0, _FunctionComponent.buildDropdownEllipsis)(item);
2292
- break;
2285
+ var keyPrefixAdjust = keyPrefix || 'extraActionItem';
2293
2286
 
2294
- case _constants.tabBarCollection.extraBuildType.iconInfo:
2295
- itemAdjust = /*#__PURE__*/_react.default.createElement("div", {
2296
- style: {
2297
- padding: '0 8px'
2298
- }
2299
- }, /*#__PURE__*/_react.default.createElement(_IconInfo.default, item));
2300
- break;
2287
+ var listAction = _this.buildByExtraBuildType({
2288
+ keyPrefix: keyPrefixAdjust,
2289
+ configList: configList
2290
+ });
2301
2291
 
2302
- case _constants.tabBarCollection.extraBuildType.colorText:
2303
- itemAdjust = /*#__PURE__*/_react.default.createElement("div", {
2304
- style: {
2305
- padding: '0 8px'
2306
- }
2307
- }, /*#__PURE__*/_react.default.createElement(_ColorText.default, item));
2308
- break;
2292
+ var buttonGroupData = _this.establishExtraActionGroupConfig();
2309
2293
 
2310
- case _constants.tabBarCollection.extraBuildType.component:
2311
- itemAdjust = componentSource || null;
2312
- break;
2294
+ if ((buttonGroupData || null) != null) {
2295
+ var buttonGroup = (0, _FunctionComponent.buildButtonGroup)(buttonGroupData);
2313
2296
 
2314
- default:
2315
- (0, _tools.recordObject)({
2316
- message: '未找到匹配的构建模式',
2317
- config: item
2318
- });
2319
- itemAdjust = null;
2320
- break;
2321
- }
2297
+ if ((buttonGroup || null) != null) {
2298
+ listAction.push( /*#__PURE__*/_react.default.createElement(_react.Fragment, {
2299
+ key: "".concat(keyPrefixAdjust, "_buttonGroup")
2300
+ }, buttonGroup));
2301
+ }
2302
+ }
2322
2303
 
2323
- list.push( /*#__PURE__*/_react.default.createElement(_react.Fragment, {
2324
- key: itemKey
2325
- }, itemAdjust));
2326
- }
2304
+ var ellipsisActionData = _this.establishExtraActionEllipsisConfig();
2305
+
2306
+ if ((ellipsisActionData || null) != null) {
2307
+ var dropdownEllipsis = (0, _FunctionComponent.buildDropdownEllipsis)(ellipsisActionData);
2308
+
2309
+ if ((dropdownEllipsis || null) != null) {
2310
+ listAction.push( /*#__PURE__*/_react.default.createElement(_react.Fragment, {
2311
+ key: "".concat(keyPrefixAdjust, "_dropdownEllipsis")
2312
+ }, dropdownEllipsis));
2327
2313
  }
2328
- });
2329
- return list;
2314
+ }
2315
+
2316
+ var backAction = _this.buildExtraBackAction();
2317
+
2318
+ if ((backAction || null) != null) {
2319
+ listAction.push( /*#__PURE__*/_react.default.createElement(_react.Fragment, {
2320
+ key: "".concat(keyPrefixAdjust, "_dropdownEllipsis")
2321
+ }, backAction));
2322
+ }
2323
+
2324
+ if (showReloadButton) {
2325
+ listAction.push( /*#__PURE__*/_react.default.createElement(_react.Fragment, {
2326
+ key: "".concat(keyPrefixAdjust, "_dropdownEllipsis")
2327
+ }, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
2328
+ placement: "top",
2329
+ title: "\u5237\u65B0"
2330
+ }, /*#__PURE__*/_react.default.createElement(_button.default, {
2331
+ disabled: dataLoading || reloading || refreshing,
2332
+ type: "dashed",
2333
+ onClick: function onClick() {
2334
+ _this.reloadData();
2335
+ }
2336
+ }, reloading || refreshing ? /*#__PURE__*/_react.default.createElement(_icons.LoadingOutlined, null) : /*#__PURE__*/_react.default.createElement(_icons.ReloadOutlined, null)))));
2337
+ }
2338
+
2339
+ return /*#__PURE__*/_react.default.createElement(_space.default, {
2340
+ split: !!_this.showExtraActionDivider || false ? /*#__PURE__*/_react.default.createElement(_divider.default, {
2341
+ type: "vertical"
2342
+ }) : null
2343
+ }, listAction.map(function (o) {
2344
+ return o;
2345
+ }));
2330
2346
  };
2331
2347
 
2332
2348
  var defaultState = (0, _tools.defaultCommonState)();
2333
2349
  _this.state = _objectSpread(_objectSpread({}, defaultState), {
2334
2350
  backPath: '',
2335
- htmlEditor: null
2351
+ showReloadButton: false
2336
2352
  });
2337
2353
  return _this;
2338
2354
  }
@@ -2369,13 +2385,13 @@ var Common = /*#__PURE__*/function (_Core) {
2369
2385
  }, {
2370
2386
  key: "checkWorkDoing",
2371
2387
  value: function checkWorkDoing() {
2372
- var _this$state2 = this.state,
2373
- dataLoading = _this$state2.dataLoading,
2374
- reloading = _this$state2.reloading,
2375
- searching = _this$state2.searching,
2376
- refreshing = _this$state2.refreshing,
2377
- paging = _this$state2.paging,
2378
- processing = _this$state2.processing;
2388
+ var _this$state3 = this.state,
2389
+ dataLoading = _this$state3.dataLoading,
2390
+ reloading = _this$state3.reloading,
2391
+ searching = _this$state3.searching,
2392
+ refreshing = _this$state3.refreshing,
2393
+ paging = _this$state3.paging,
2394
+ processing = _this$state3.processing;
2379
2395
 
2380
2396
  if (dataLoading || reloading || searching || refreshing || paging || processing) {
2381
2397
  var text = '数据正在处理中,请稍等一下再点哦';
@@ -1,7 +1,6 @@
1
1
  export default Base;
2
2
  declare class Base extends BaseWindow {
3
3
  constructor(props: any);
4
- showExtraActionDivider: boolean;
5
4
  state: {
6
5
  title: string;
7
6
  width: number;
@@ -40,10 +39,6 @@ declare class Base extends BaseWindow {
40
39
  establishWrapperTypeConfig: () => {
41
40
  mode: string;
42
41
  };
43
- establishExtraActionConfig: () => null;
44
- establishExtraActionGroupConfig: () => null;
45
- establishExtraActionEllipsisConfig: () => null;
46
- buildExtraAction: () => JSX.Element;
47
42
  formContent: () => any;
48
43
  renderContentContainor: () => JSX.Element;
49
44
  renderCloseButton: (option: any) => any;
@@ -49,8 +49,6 @@ var _constants = require("../../../utils/constants");
49
49
 
50
50
  var _IconInfo = _interopRequireDefault(require("../../../customComponents/IconInfo"));
51
51
 
52
- var _ColorText = _interopRequireDefault(require("../../../customComponents/ColorText"));
53
-
54
52
  var _FunctionComponent = require("../../../customComponents/FunctionComponent");
55
53
 
56
54
  var _BaseWindow2 = _interopRequireDefault(require("../../DataOperation/BaseWindow"));
@@ -117,7 +115,6 @@ var Base = /*#__PURE__*/function (_BaseWindow) {
117
115
  _classCallCheck(this, Base);
118
116
 
119
117
  _this = _super.call(this, props);
120
- _this.showExtraActionDivider = true;
121
118
 
122
119
  _this.onClose = function () {
123
120
  var afterClose = _this.props.afterClose;
@@ -195,127 +192,6 @@ var Base = /*#__PURE__*/function (_BaseWindow) {
195
192
  };
196
193
  };
197
194
 
198
- _this.establishExtraActionConfig = function () {
199
- return null;
200
- };
201
-
202
- _this.establishExtraActionGroupConfig = function () {
203
- return null;
204
- };
205
-
206
- _this.establishExtraActionEllipsisConfig = function () {
207
- return null;
208
- };
209
-
210
- _this.buildExtraAction = function () {
211
- var listAction = [];
212
-
213
- var _keyPrefix$list$_this = _objectSpread(_objectSpread({}, {
214
- keyPrefix: '',
215
- list: []
216
- }), _this.establishExtraActionConfig()),
217
- keyPrefix = _keyPrefix$list$_this.keyPrefix,
218
- configList = _keyPrefix$list$_this.list;
219
-
220
- ((0, _tools.isArray)(configList) ? configList : []).forEach(function (item, index) {
221
- if ((item || null) != null) {
222
- var _hidden$buildType$ico = _objectSpread(_objectSpread({}, {
223
- hidden: false,
224
- buildType: null,
225
- icon: null,
226
- text: '',
227
- component: null
228
- }), item),
229
- hidden = _hidden$buildType$ico.hidden,
230
- buildType = _hidden$buildType$ico.buildType,
231
- componentSource = _hidden$buildType$ico.component;
232
-
233
- if (!hidden) {
234
- var itemKey = "".concat(keyPrefix || 'drawerExtraActionItem', "_").concat(index);
235
- var itemAdjust = item;
236
-
237
- switch (buildType) {
238
- case _constants.drawerConfig.extraBuildType.flexSelect:
239
- itemAdjust = (0, _FunctionComponent.buildCustomSelect)(item);
240
- break;
241
-
242
- case _constants.drawerConfig.extraBuildType.button:
243
- itemAdjust = (0, _FunctionComponent.buildButton)(item);
244
- break;
245
-
246
- case _constants.drawerConfig.extraBuildType.dropdown:
247
- itemAdjust = (0, _FunctionComponent.buildDropdown)(item);
248
- break;
249
-
250
- case _constants.drawerConfig.extraBuildType.dropdownButton:
251
- itemAdjust = (0, _FunctionComponent.buildDropdownButton)(item);
252
- break;
253
-
254
- case _constants.drawerConfig.extraBuildType.dropdownEllipsis:
255
- itemAdjust = (0, _FunctionComponent.buildDropdownEllipsis)(item);
256
- break;
257
-
258
- case _constants.drawerConfig.extraBuildType.iconInfo:
259
- itemAdjust = /*#__PURE__*/_react.default.createElement(_IconInfo.default, item);
260
- break;
261
-
262
- case _constants.drawerConfig.extraBuildType.colorText:
263
- itemAdjust = /*#__PURE__*/_react.default.createElement(_ColorText.default, item);
264
- break;
265
-
266
- case _constants.drawerConfig.extraBuildType.component:
267
- itemAdjust = componentSource || null;
268
- break;
269
-
270
- default:
271
- recordObject({
272
- message: '未找到匹配的构建模式',
273
- config: item
274
- });
275
- itemAdjust = null;
276
- break;
277
- }
278
-
279
- listAction.push( /*#__PURE__*/_react.default.createElement(_react.Fragment, {
280
- key: itemKey
281
- }, itemAdjust));
282
- }
283
- }
284
- });
285
-
286
- var buttonGroupData = _this.establishExtraActionGroupConfig();
287
-
288
- if ((buttonGroupData || null) != null) {
289
- var buttonGroup = (0, _FunctionComponent.buildButtonGroup)(buttonGroupData);
290
-
291
- if ((buttonGroup || null) != null) {
292
- listAction.push( /*#__PURE__*/_react.default.createElement(_react.Fragment, {
293
- key: "".concat(keyPrefix || 'drawerExtraActionItem', "_buttonGroup")
294
- }, buttonGroup));
295
- }
296
- }
297
-
298
- var ellipsisActionData = _this.establishExtraActionEllipsisConfig();
299
-
300
- if ((ellipsisActionData || null) != null) {
301
- var dropdownEllipsis = (0, _FunctionComponent.buildDropdownEllipsis)(ellipsisActionData);
302
-
303
- if ((dropdownEllipsis || null) != null) {
304
- listAction.push( /*#__PURE__*/_react.default.createElement(_react.Fragment, {
305
- key: "".concat(keyPrefix || 'drawerExtraActionItem', "_dropdownEllipsis")
306
- }, dropdownEllipsis));
307
- }
308
- }
309
-
310
- return /*#__PURE__*/_react.default.createElement(_space.default, {
311
- split: !!_this.showExtraActionDivider || false ? /*#__PURE__*/_react.default.createElement(_divider.default, {
312
- type: "vertical"
313
- }) : null
314
- }, listAction.map(function (o) {
315
- return o;
316
- }));
317
- };
318
-
319
195
  _this.formContent = function () {
320
196
  return _this.buildCardCollection(_this.establishCardCollectionConfig());
321
197
  };
@@ -367,18 +243,18 @@ var Base = /*#__PURE__*/function (_BaseWindow) {
367
243
 
368
244
  configList.forEach(function (item, index) {
369
245
  if ((item || null) != null) {
370
- var _hidden$buildType$ico2 = _objectSpread(_objectSpread({}, {
246
+ var _hidden$buildType$ico = _objectSpread(_objectSpread({}, {
371
247
  hidden: false,
372
248
  buildType: null,
373
249
  icon: null,
374
250
  text: '',
375
251
  component: null
376
252
  }), item),
377
- hidden = _hidden$buildType$ico2.hidden,
378
- itemBuildType = _hidden$buildType$ico2.buildType,
379
- itemIcon = _hidden$buildType$ico2.icon,
380
- itemText = _hidden$buildType$ico2.text,
381
- itemComponent = _hidden$buildType$ico2.component;
253
+ hidden = _hidden$buildType$ico.hidden,
254
+ itemBuildType = _hidden$buildType$ico.buildType,
255
+ itemIcon = _hidden$buildType$ico.icon,
256
+ itemText = _hidden$buildType$ico.text,
257
+ itemComponent = _hidden$buildType$ico.component;
382
258
 
383
259
  var itemHidden = hidden;
384
260
 
@@ -311,7 +311,7 @@ var BaseAddForm = /*#__PURE__*/function (_DataCore) {
311
311
  title: (0, _FunctionComponent.buildPageHeaderTitle)(this.getPageName(), this.establishPageHeaderTitlePrefix()),
312
312
  subTitle: this.buildPageHeaderSubTitle(),
313
313
  tags: (0, _FunctionComponent.buildPageHeaderTagWrapper)(this.establishPageHeaderTagConfig()),
314
- extra: this.pageHeaderAction(),
314
+ extra: this.buildExtraAction(),
315
315
  content: (0, _FunctionComponent.buildPageHeaderContent)(pageHeaderContentConfig),
316
316
  extraContent: (0, _FunctionComponent.pageHeaderExtraContent)(this.establishPageHeaderExtraContentConfig()) // onBack={() => {
317
317
  // this.backToList();
@@ -90,7 +90,7 @@ declare class ListBase extends AuthorizationWrapper {
90
90
  renderAlertOption: () => void;
91
91
  renderAboveTable: () => JSX.Element | null;
92
92
  establishDataContainerExtraActionCollectionConfig: () => never[];
93
- buildDataContainerExtraActionCollection: () => any[];
93
+ buildDataContainerExtraActionCollection: () => any;
94
94
  renderExtraActionView: () => JSX.Element | null;
95
95
  renderBatchActionMenu: () => never[];
96
96
  renderBatchAction: () => JSX.Element | null;
@@ -124,9 +124,6 @@ declare class ListBase extends AuthorizationWrapper {
124
124
  * 不要在框架之外重载或覆盖该该函数,否则分页视图将功能异常
125
125
  */
126
126
  supplementPaginationConfig: () => any;
127
- establishPageHeaderActionExtraGroupConfig: () => null;
128
- establishPageHeaderActionExtraEllipsisConfig: () => null;
129
- buildPageHeaderAction: () => JSX.Element;
130
127
  establishPageHeaderTagCollectionConfig: () => never[];
131
128
  establishPageHeaderTagConfig: () => JSX.Element | null;
132
129
  establishPageHeaderAvatarConfig: () => null;
@@ -75,7 +75,7 @@ require("antd/es/layout/style");
75
75
 
76
76
  var _layout = _interopRequireDefault(require("antd/es/layout"));
77
77
 
78
- var _react = _interopRequireWildcard(require("react"));
78
+ var _react = _interopRequireDefault(require("react"));
79
79
 
80
80
  var _icons = require("@ant-design/icons");
81
81
 
@@ -85,8 +85,6 @@ var _tools = require("../../../utils/tools");
85
85
 
86
86
  var _constants = require("../../../utils/constants");
87
87
 
88
- var _IconInfo = _interopRequireDefault(require("../../../customComponents/IconInfo"));
89
-
90
88
  var _FunctionComponent = require("../../../customComponents/FunctionComponent");
91
89
 
92
90
  var _DecorateAvatar = require("../../../customComponents/DecorateAvatar");
@@ -105,10 +103,6 @@ var _BatchAction = _interopRequireDefault(require("../BatchAction"));
105
103
 
106
104
  var _index = _interopRequireDefault(require("./index.less"));
107
105
 
108
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
109
-
110
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
111
-
112
106
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
113
107
 
114
108
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -741,80 +735,10 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
741
735
  return [];
742
736
  }
743
737
 
744
- var components = [];
745
- configList.forEach(function (item, index) {
746
- if ((item || null) != null) {
747
- var _buildType$hidden$ico = _objectSpread(_objectSpread({}, {
748
- buildType: _constants.listViewConfig.dataContainerExtraActionBuildType.button,
749
- hidden: false,
750
- icon: null,
751
- text: '',
752
- component: null
753
- }), item),
754
- hidden = _buildType$hidden$ico.hidden,
755
- itemBuildType = _buildType$hidden$ico.buildType,
756
- itemIcon = _buildType$hidden$ico.icon,
757
- itemText = _buildType$hidden$ico.text,
758
- itemComponent = _buildType$hidden$ico.component;
759
-
760
- var itemHidden = hidden;
761
-
762
- if (!hidden && itemBuildType === _constants.listViewConfig.dataContainerExtraActionBuildType.component && (itemComponent || null) == null) {
763
- itemHidden = true;
764
- }
765
-
766
- if (!itemHidden) {
767
- var itemKey = "listView_dataContainerExtraAction_key_".concat(index);
768
- var itemAdjust = item;
769
-
770
- switch (itemBuildType) {
771
- case _constants.listViewConfig.dataContainerExtraActionBuildType.generalButton:
772
- itemAdjust = _this.renderGeneralButton(item);
773
- break;
774
-
775
- case _constants.cardConfig.extraBuildType.flexSelect:
776
- itemAdjust = (0, _FunctionComponent.buildCustomSelect)(item);
777
- break;
778
-
779
- case _constants.listViewConfig.dataContainerExtraActionBuildType.button:
780
- itemAdjust = (0, _FunctionComponent.buildButton)(item);
781
- break;
782
-
783
- case _constants.listViewConfig.dataContainerExtraActionBuildType.dropdown:
784
- itemAdjust = (0, _FunctionComponent.buildDropdown)(item);
785
- break;
786
-
787
- case _constants.listViewConfig.dataContainerExtraActionBuildType.dropdownButton:
788
- itemAdjust = (0, _FunctionComponent.buildDropdownButton)(item);
789
- break;
790
-
791
- case _constants.listViewConfig.dataContainerExtraActionBuildType.dropdownEllipsis:
792
- itemAdjust = (0, _FunctionComponent.buildDropdownEllipsis)(item);
793
- break;
794
-
795
- case _constants.listViewConfig.dataContainerExtraActionBuildType.iconInfo:
796
- itemAdjust = /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
797
- icon: itemIcon,
798
- text: itemText
799
- });
800
- break;
801
-
802
- case _constants.listViewConfig.dataContainerExtraActionBuildType.component:
803
- itemAdjust = itemComponent || null;
804
- break;
805
-
806
- default:
807
- itemAdjust = item;
808
- break;
809
- }
810
-
811
- components.push( /*#__PURE__*/_react.default.createElement(_react.Fragment, {
812
- key: itemKey
813
- }, itemAdjust));
814
- }
815
- }
738
+ return _this.buildByExtraBuildType({
739
+ keyPrefix: 'listView_dataContainerExtraActionItem_',
740
+ configList: configList
816
741
  });
817
- return components;
818
742
  };
819
743
 
820
744
  _this.renderExtraActionView = function () {
@@ -968,26 +892,6 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
968
892
  return config;
969
893
  };
970
894
 
971
- _this.establishPageHeaderActionExtraGroupConfig = function () {
972
- return null;
973
- };
974
-
975
- _this.establishPageHeaderActionExtraEllipsisConfig = function () {
976
- return null;
977
- };
978
-
979
- _this.buildPageHeaderAction = function () {
980
- var buttonGroupData = _this.establishPageHeaderActionExtraGroupConfig();
981
-
982
- var ellipsisActionData = _this.establishPageHeaderActionExtraEllipsisConfig();
983
-
984
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
985
- className: _index.default.buttonBox
986
- }, (buttonGroupData || null) == null ? null : (0, _FunctionComponent.buildButtonGroup)(buttonGroupData), (ellipsisActionData || null) == null ? null : /*#__PURE__*/_react.default.createElement(_divider.default, {
987
- type: "vertical"
988
- }), (ellipsisActionData || null) == null ? null : (0, _FunctionComponent.buildDropdownEllipsis)(ellipsisActionData)));
989
- };
990
-
991
895
  _this.establishPageHeaderTagCollectionConfig = function () {
992
896
  return [];
993
897
  };
@@ -1579,7 +1483,7 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
1579
1483
  title: (0, _FunctionComponent.buildPageHeaderTitle)(this.getPageName(), this.establishPageHeaderTitlePrefix()),
1580
1484
  subTitle: this.buildPageHeaderSubTitle(),
1581
1485
  tags: (0, _FunctionComponent.buildPageHeaderTagWrapper)(this.establishPageHeaderTagConfig()),
1582
- extra: this.buildPageHeaderAction(),
1486
+ extra: this.buildExtraAction(),
1583
1487
  tabActiveKey: this.getTabActiveKey(),
1584
1488
  content: this.renderPageHeaderContent(),
1585
1489
  extraContent: this.renderPageHeaderExtraContent(),
@@ -36,13 +36,10 @@ declare class DataCore extends BaseView {
36
36
  establishPageHeaderExtraContentConfig: () => null;
37
37
  establishPageHeaderTitlePrefix: () => string;
38
38
  establishPageHeaderTagConfig: () => JSX.Element | null;
39
- establishPageHeaderActionExtraGroupConfig: () => null;
40
- establishPageHeaderActionExtraEllipsisConfig: () => null;
41
39
  buildPageHeaderSubTitle: () => null;
42
40
  pageHeaderLogo: () => JSX.Element;
43
41
  getPageName: () => any;
44
- buildPageHeaderActionBack: () => JSX.Element | null;
45
- pageHeaderAction: () => JSX.Element;
42
+ buildExtraBackAction: () => JSX.Element | null;
46
43
  buildFormLayout: () => string;
47
44
  getFormClassName: () => null;
48
45
  renderMainTitleIcon: () => JSX.Element;
@@ -15,10 +15,6 @@ require("antd/es/form/style");
15
15
 
16
16
  var _form = _interopRequireDefault(require("antd/es/form"));
17
17
 
18
- require("antd/es/space/style");
19
-
20
- var _space = _interopRequireDefault(require("antd/es/space"));
21
-
22
18
  require("antd/es/tooltip/style");
23
19
 
24
20
  var _tooltip = _interopRequireDefault(require("antd/es/tooltip"));
@@ -178,14 +174,6 @@ var DataCore = /*#__PURE__*/function (_BaseView) {
178
174
  });
179
175
  };
180
176
 
181
- _this.establishPageHeaderActionExtraGroupConfig = function () {
182
- return null;
183
- };
184
-
185
- _this.establishPageHeaderActionExtraEllipsisConfig = function () {
186
- return null;
187
- };
188
-
189
177
  _this.buildPageHeaderSubTitle = function () {
190
178
  return null;
191
179
  };
@@ -202,7 +190,7 @@ var DataCore = /*#__PURE__*/function (_BaseView) {
202
190
  return pageName;
203
191
  };
204
192
 
205
- _this.buildPageHeaderActionBack = function () {
193
+ _this.buildExtraBackAction = function () {
206
194
  var backPath = _this.state.backPath;
207
195
 
208
196
  if (!_this.enableActionBack) {
@@ -228,29 +216,6 @@ var DataCore = /*#__PURE__*/function (_BaseView) {
228
216
  }), "\u5217\u8868\u9875"));
229
217
  };
230
218
 
231
- _this.pageHeaderAction = function () {
232
- var _this$state = _this.state,
233
- dataLoading = _this$state.dataLoading,
234
- reloading = _this$state.reloading,
235
- refreshing = _this$state.refreshing,
236
- showReloadButton = _this$state.showReloadButton;
237
-
238
- var actionExtraGroupConfig = _this.establishExtraActionConfig();
239
-
240
- var actionExtraEllipsisConfig = _this.establishPageHeaderActionExtraEllipsisConfig();
241
-
242
- return /*#__PURE__*/_react.default.createElement(_space.default, null, (actionExtraGroupConfig || null) != null ? (0, _FunctionComponent.buildButtonGroup)(actionExtraGroupConfig) : null, (actionExtraEllipsisConfig || null) != null ? (0, _FunctionComponent.buildDropdownEllipsis)(actionExtraEllipsisConfig) : null, _this.buildPageHeaderActionBack(), showReloadButton ? /*#__PURE__*/_react.default.createElement(_tooltip.default, {
243
- placement: "top",
244
- title: "\u5237\u65B0"
245
- }, /*#__PURE__*/_react.default.createElement(_button.default, {
246
- disabled: dataLoading || reloading || refreshing,
247
- type: "dashed",
248
- onClick: function onClick() {
249
- _this.reloadData();
250
- }
251
- }, reloading || refreshing ? /*#__PURE__*/_react.default.createElement(_icons.LoadingOutlined, null) : /*#__PURE__*/_react.default.createElement(_icons.ReloadOutlined, null))) : null);
252
- };
253
-
254
219
  _this.buildFormLayout = function () {
255
220
  return 'vertical';
256
221
  };
@@ -278,11 +243,11 @@ var DataCore = /*#__PURE__*/function (_BaseView) {
278
243
  };
279
244
 
280
245
  _this.renderForm = function () {
281
- var _this$state2 = _this.state,
282
- metaData = _this$state2.metaData,
283
- metaListData = _this$state2.metaListData,
284
- metaExtra = _this$state2.metaExtra,
285
- metaOriginalData = _this$state2.metaOriginalData;
246
+ var _this$state = _this.state,
247
+ metaData = _this$state.metaData,
248
+ metaListData = _this$state.metaListData,
249
+ metaExtra = _this$state.metaExtra,
250
+ metaOriginalData = _this$state.metaOriginalData;
286
251
 
287
252
  var initialValues = _this.buildInitialValues({
288
253
  metaData: metaData,
@@ -192,8 +192,8 @@ var DataTabContainer = /*#__PURE__*/function (_DataSingleView) {
192
192
  return null;
193
193
  }
194
194
 
195
- var listItem = _this.buildTabBarExtraContentItemsCore({
196
- keyPrefix: keyPrefix,
195
+ var listItem = _this.buildByExtraBuildType({
196
+ keyPrefix: keyPrefix || 'tabBarExtraContentItem',
197
197
  configList: configList
198
198
  });
199
199
 
@@ -252,7 +252,7 @@ var DataTabContainer = /*#__PURE__*/function (_DataSingleView) {
252
252
  title: (0, _FunctionComponent.buildPageHeaderTitle)(this.getPageName(), this.establishPageHeaderTitlePrefix()),
253
253
  subTitle: this.buildPageHeaderSubTitle(),
254
254
  tags: (0, _FunctionComponent.buildPageHeaderTagWrapper)(this.establishPageHeaderTagConfig()),
255
- extra: this.pageHeaderAction(),
255
+ extra: this.buildExtraAction(),
256
256
  tabActiveKey: this.getTabActiveKey(),
257
257
  content: (0, _FunctionComponent.buildPageHeaderContent)(pageHeaderContentConfig),
258
258
  extraContent: (0, _FunctionComponent.pageHeaderExtraContent)(this.establishPageHeaderExtraContentConfig()),
@@ -205,29 +205,36 @@ export namespace sortOperate {
205
205
  export const moveUp: string;
206
206
  export const moveDown: string;
207
207
  }
208
+ export namespace extraBuildType {
209
+ export const refresh: string;
210
+ export const save: string;
211
+ const generalButton_1: string;
212
+ export { generalButton_1 as generalButton };
213
+ const iconInfo_1: string;
214
+ export { iconInfo_1 as iconInfo };
215
+ export const colorText: string;
216
+ export const flexSelect: string;
217
+ const button_1: string;
218
+ export { button_1 as button };
219
+ const dropdownButton_1: string;
220
+ export { dropdownButton_1 as dropdownButton };
221
+ const dropdownEllipsis_1: string;
222
+ export { dropdownEllipsis_1 as dropdownEllipsis };
223
+ const dropdown_2: string;
224
+ export { dropdown_2 as dropdown };
225
+ const component_1: string;
226
+ export { component_1 as component };
227
+ }
208
228
  export namespace drawerConfig {
209
- export namespace extraBuildType {
210
- const iconInfo_1: string;
211
- export { iconInfo_1 as iconInfo };
212
- export const colorText: string;
213
- export const flexSelect: string;
214
- const button_1: string;
215
- export { button_1 as button };
216
- const dropdownButton_1: string;
217
- export { dropdownButton_1 as dropdownButton };
218
- const dropdownEllipsis_1: string;
219
- export { dropdownEllipsis_1 as dropdownEllipsis };
220
- const dropdown_2: string;
221
- export { dropdown_2 as dropdown };
222
- const component_1: string;
223
- export { component_1 as component };
224
- }
229
+ export { extraBuildType };
225
230
  export namespace bottomBarBuildType {
226
231
  export const close: string;
227
- export const refresh: string;
228
- export const save: string;
229
- const generalButton_1: string;
230
- export { generalButton_1 as generalButton };
232
+ const refresh_1: string;
233
+ export { refresh_1 as refresh };
234
+ const save_1: string;
235
+ export { save_1 as save };
236
+ const generalButton_2: string;
237
+ export { generalButton_2 as generalButton };
231
238
  const iconInfo_2: string;
232
239
  export { iconInfo_2 as iconInfo };
233
240
  const button_2: string;
@@ -256,30 +263,7 @@ export namespace cardConfig {
256
263
  export { queue_1 as queue };
257
264
  }
258
265
  export { animalType_1 as animalType };
259
- export namespace extraBuildType_1 {
260
- const refresh_1: string;
261
- export { refresh_1 as refresh };
262
- const save_1: string;
263
- export { save_1 as save };
264
- const generalButton_2: string;
265
- export { generalButton_2 as generalButton };
266
- const iconInfo_3: string;
267
- export { iconInfo_3 as iconInfo };
268
- const colorText_1: string;
269
- export { colorText_1 as colorText };
270
- const button_3: string;
271
- export { button_3 as button };
272
- const dropdownButton_3: string;
273
- export { dropdownButton_3 as dropdownButton };
274
- const dropdownEllipsis_3: string;
275
- export { dropdownEllipsis_3 as dropdownEllipsis };
276
- const dropdown_4: string;
277
- export { dropdown_4 as dropdown };
278
- const flexSelect_1: string;
279
- export { flexSelect_1 as flexSelect };
280
- const component_3: string;
281
- export { component_3 as component };
282
- }
266
+ export namespace extraBuildType_1 { }
283
267
  export { extraBuildType_1 as extraBuildType };
284
268
  export const contentItemType: {
285
269
  /**
@@ -449,13 +433,13 @@ export namespace searchCardConfig {
449
433
  export const input: string;
450
434
  export const inputNumber: string;
451
435
  export const customSelect: string;
452
- const flexSelect_2: string;
453
- export { flexSelect_2 as flexSelect };
436
+ const flexSelect_1: string;
437
+ export { flexSelect_1 as flexSelect };
454
438
  export const customRadio: string;
455
439
  export const onlyShowInput: string;
456
440
  export const innerComponent: string;
457
- const component_4: string;
458
- export { component_4 as component };
441
+ const component_3: string;
442
+ export { component_3 as component };
459
443
  export const datePicker: string;
460
444
  export const customRangePicker: string;
461
445
  const divider_1: string;
@@ -569,25 +553,7 @@ export namespace messageTypeCollection {
569
553
  export { open_1 as open };
570
554
  }
571
555
  export namespace tabBarCollection {
572
- export namespace extraBuildType_2 {
573
- const iconInfo_4: string;
574
- export { iconInfo_4 as iconInfo };
575
- const colorText_2: string;
576
- export { colorText_2 as colorText };
577
- const flexSelect_3: string;
578
- export { flexSelect_3 as flexSelect };
579
- const button_4: string;
580
- export { button_4 as button };
581
- const dropdownButton_4: string;
582
- export { dropdownButton_4 as dropdownButton };
583
- const dropdownEllipsis_4: string;
584
- export { dropdownEllipsis_4 as dropdownEllipsis };
585
- const dropdown_5: string;
586
- export { dropdown_5 as dropdown };
587
- const component_5: string;
588
- export { component_5 as component };
589
- }
590
- export { extraBuildType_2 as extraBuildType };
556
+ export { extraBuildType };
591
557
  }
592
558
  export namespace mobileTypeCollection {
593
559
  export namespace roughSketch {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.drawerConfig = exports.defaultUserAvatar = exports.defaultEmptyImage = exports.datetimeFormat = exports.dataTypeCollection = exports.convertCollection = exports.contentConfig = exports.columnPlaceholder = exports.columnFacadeMode = exports.cardConfig = exports.authenticationFailCode = exports.appInitDefault = exports.apiSuccessCode = exports.accessWaySpecialCollection = void 0;
7
7
  exports.empty = empty;
8
- exports.zeroString = exports.zeroInt = exports.whetherString = exports.whetherNumber = exports.unlimitedWithStringFlag = exports.unlimitedWithNumberFlag = exports.tabBarCollection = exports.sortOperate = exports.selectModeCollection = exports.searchCardConfig = exports.pageHeaderRenderType = exports.notificationTypeCollection = exports.mobileTypeCollection = exports.messageTypeCollection = exports.menuType = exports.logShowMode = exports.logLevel = exports.listViewConfig = exports.imageContentPreviewMode = exports.formatCollection = exports.formNameCollection = exports.emptyLogo = exports.emptyDatetime = void 0;
8
+ exports.zeroString = exports.zeroInt = exports.whetherString = exports.whetherNumber = exports.unlimitedWithStringFlag = exports.unlimitedWithNumberFlag = exports.tabBarCollection = exports.sortOperate = exports.selectModeCollection = exports.searchCardConfig = exports.pageHeaderRenderType = exports.notificationTypeCollection = exports.mobileTypeCollection = exports.messageTypeCollection = exports.menuType = exports.logShowMode = exports.logLevel = exports.listViewConfig = exports.imageContentPreviewMode = exports.formatCollection = exports.formNameCollection = exports.extraBuildType = exports.emptyLogo = exports.emptyDatetime = void 0;
9
9
 
10
10
  var _mediaDefault = require("./mediaDefault");
11
11
 
@@ -326,52 +326,73 @@ var sortOperate = {
326
326
  moveUp: 'moveUp',
327
327
  moveDown: 'moveDown'
328
328
  };
329
+ /**
330
+ * 扩展区构建模式
331
+ */
332
+
329
333
  exports.sortOperate = sortOperate;
330
- var drawerConfig = {
334
+ var extraBuildType = {
331
335
  /**
332
- * 扩展区构建模式
336
+ * 内置的刷新按钮,根据请求配置触发重新加载,一般用于详情类展示或表单初始加载
333
337
  */
334
- extraBuildType: {
335
- /**
336
- * 带图标文字,图标为空或者文字为空情况下渲染方式有差异
337
- */
338
- iconInfo: 'iconInfo',
338
+ refresh: 'refresh',
339
339
 
340
- /**
341
- * 彩色文字
342
- */
343
- colorText: 'colorText',
340
+ /**
341
+ * 内置的保存按钮,表单上下文中将根据提交配置触发提交操作,非表单环境不要使用
342
+ */
343
+ save: 'save',
344
344
 
345
- /**
346
- * 自定义选择框
347
- */
348
- flexSelect: 'flexSelect',
345
+ /**
346
+ * 根据配置项渲染按钮,事件触发需要自定义指定
347
+ */
348
+ generalButton: 'generalButton',
349
349
 
350
- /**
351
- * 根据配置项渲染按钮,事件触发需要自定义指定,配置项与generalButton相仿,配置模式有所不同,最终效果类似
352
- */
353
- button: 'button',
350
+ /**
351
+ * 带图标文字,图标为空或者文字为空情况下渲染方式有差异
352
+ */
353
+ iconInfo: 'iconInfo',
354
354
 
355
- /**
356
- * 带扩展操作的按钮
357
- */
358
- dropdownButton: 'dropdownButton',
355
+ /**
356
+ * 彩色文字
357
+ */
358
+ colorText: 'colorText',
359
359
 
360
- /**
361
- * 带扩展操作的省略按钮,省略占位符本身不具有操作
362
- */
363
- dropdownEllipsis: 'dropdownEllipsis',
360
+ /**
361
+ * 自定义选择框
362
+ */
363
+ flexSelect: 'flexSelect',
364
364
 
365
- /**
366
- * dropdown
367
- */
368
- dropdown: 'dropdown',
365
+ /**
366
+ * 根据配置项渲染按钮,事件触发需要自定义指定,配置项与generalButton相仿,配置模式有所不同,最终效果类似
367
+ */
368
+ button: 'button',
369
369
 
370
- /**
371
- * 指定渲染自定义组件,组件由配置传入
372
- */
373
- component: 'component'
374
- },
370
+ /**
371
+ * 带扩展操作的按钮
372
+ */
373
+ dropdownButton: 'dropdownButton',
374
+
375
+ /**
376
+ * 带扩展操作的省略按钮,省略占位符本身不具有操作
377
+ */
378
+ dropdownEllipsis: 'dropdownEllipsis',
379
+
380
+ /**
381
+ * dropdown
382
+ */
383
+ dropdown: 'dropdown',
384
+
385
+ /**
386
+ * 指定渲染自定义组件,组件由配置传入
387
+ */
388
+ component: 'component'
389
+ };
390
+ exports.extraBuildType = extraBuildType;
391
+ var drawerConfig = {
392
+ /**
393
+ * 扩展区构建模式
394
+ */
395
+ extraBuildType: extraBuildType,
375
396
  bottomBarBuildType: {
376
397
  close: 'close',
377
398
  refresh: 'refresh',
@@ -413,62 +434,7 @@ var cardConfig = _objectSpread(_objectSpread({}, contentConfig), {}, {
413
434
  /**
414
435
  * 扩展区构建模式
415
436
  */
416
- extraBuildType: {
417
- /**
418
- * 内置的刷新按钮,根据请求配置触发重新加载,一般用于详情类展示或表单初始加载
419
- */
420
- refresh: 'refresh',
421
-
422
- /**
423
- * 内置的保存按钮,表单上下文中将根据提交配置触发提交操作,非表单环境不要使用
424
- */
425
- save: 'save',
426
-
427
- /**
428
- * 根据配置项渲染按钮,事件触发需要自定义指定
429
- */
430
- generalButton: 'generalButton',
431
-
432
- /**
433
- * 带图标文字,图标为空或者文字为空情况下渲染方式有差异
434
- */
435
- iconInfo: 'iconInfo',
436
-
437
- /**
438
- * 彩色文字
439
- */
440
- colorText: 'colorText',
441
-
442
- /**
443
- * 根据配置项渲染按钮,事件触发需要自定义指定,配置项与generalButton相仿,配置模式有所不同,最终效果类似
444
- */
445
- button: 'button',
446
-
447
- /**
448
- * 带扩展操作的按钮
449
- */
450
- dropdownButton: 'dropdownButton',
451
-
452
- /**
453
- * 带扩展操作的省略按钮,省略占位符本身不具有操作
454
- */
455
- dropdownEllipsis: 'dropdownEllipsis',
456
-
457
- /**
458
- * dropdown
459
- */
460
- dropdown: 'dropdown',
461
-
462
- /**
463
- * 自定义选择框
464
- */
465
- flexSelect: 'flexSelect',
466
-
467
- /**
468
- * 指定渲染自定义组件,组件由配置传入
469
- */
470
- component: 'component'
471
- },
437
+ extraBuildType: _objectSpread({}, extraBuildType),
472
438
  contentItemType: {
473
439
  /**
474
440
  * Col占位符,自由指定占用大小
@@ -873,47 +839,7 @@ var tabBarCollection = {
873
839
  /**
874
840
  * 扩展区构建模式
875
841
  */
876
- extraBuildType: {
877
- /**
878
- * 带图标文字,图标为空或者文字为空情况下渲染方式有差异
879
- */
880
- iconInfo: 'iconInfo',
881
-
882
- /**
883
- * 彩色文字
884
- */
885
- colorText: 'colorText',
886
-
887
- /**
888
- * 自定义选择框
889
- */
890
- flexSelect: 'flexSelect',
891
-
892
- /**
893
- * 根据配置项渲染按钮,事件触发需要自定义指定,配置项与generalButton相仿,配置模式有所不同,最终效果类似
894
- */
895
- button: 'button',
896
-
897
- /**
898
- * 带扩展操作的按钮
899
- */
900
- dropdownButton: 'dropdownButton',
901
-
902
- /**
903
- * 带扩展操作的省略按钮,省略占位符本身不具有操作
904
- */
905
- dropdownEllipsis: 'dropdownEllipsis',
906
-
907
- /**
908
- * dropdown
909
- */
910
- dropdown: 'dropdown',
911
-
912
- /**
913
- * 指定渲染自定义组件,组件由配置传入
914
- */
915
- component: 'component'
916
- }
842
+ extraBuildType: extraBuildType
917
843
  };
918
844
  /**
919
845
  *设备模拟集合
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antd-management-fast-framework",
3
- "version": "1.11.57",
3
+ "version": "1.11.58",
4
4
  "description": "antd-management-fast-framework",
5
5
  "keywords": [
6
6
  "antd-management-fast-framework"