antd-management-fast-framework 1.11.33 → 1.11.34

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.
@@ -77,6 +77,7 @@ export function buildMenu({ handleData: r, handleMenuClick, menuItems, }: {
77
77
  menuItems?: any[] | undefined;
78
78
  }): JSX.Element;
79
79
  export function buildTree(props: any): JSX.Element;
80
+ export function buildAlert(props: any): JSX.Element;
80
81
  export function buildCustomGrid({ key, list, props }: {
81
82
  key?: any;
82
83
  list: any;
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.adjustTableExpandConfig = adjustTableExpandConfig;
7
+ exports.buildAlert = buildAlert;
7
8
  exports.buildButton = buildButton;
8
9
  exports.buildButtonGroup = buildButtonGroup;
9
10
  exports.buildColorText = buildColorText;
@@ -90,6 +91,10 @@ require("antd/es/col/style");
90
91
 
91
92
  var _col = _interopRequireDefault(require("antd/es/col"));
92
93
 
94
+ require("antd/es/alert/style");
95
+
96
+ var _alert = _interopRequireDefault(require("antd/es/alert"));
97
+
93
98
  require("antd/es/tree/style");
94
99
 
95
100
  var _tree = _interopRequireDefault(require("antd/es/tree"));
@@ -924,6 +929,10 @@ function buildTree(props) {
924
929
  return /*#__PURE__*/_react.default.createElement(_tree.default, props);
925
930
  }
926
931
 
932
+ function buildAlert(props) {
933
+ return /*#__PURE__*/_react.default.createElement(_alert.default, props);
934
+ }
935
+
927
936
  function buildCustomGrid(_ref7) {
928
937
  var _ref7$key = _ref7.key,
929
938
  key = _ref7$key === void 0 ? null : _ref7$key,
@@ -9,6 +9,7 @@ declare class ListBase extends AuthorizationWrapper {
9
9
  * 使用前台模拟分页,有助于优化长列表页面交互操作导致的延迟
10
10
  */
11
11
  useFrontendPagination: boolean;
12
+ showSearchForm: boolean;
12
13
  affixPaginationBar: boolean;
13
14
  formRef: React.RefObject<any>;
14
15
  pageSizeAdditional: number;
@@ -177,6 +177,7 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
177
177
  _this.useRemotePagination = true;
178
178
  _this.useFrontendPagination = false;
179
179
  _this.useFrontendPagination = false;
180
+ _this.showSearchForm = true;
180
181
  _this.affixPaginationBar = true;
181
182
  _this.formRef = /*#__PURE__*/_react.default.createRef();
182
183
  _this.pageSizeAdditional = 0;
@@ -1446,27 +1447,15 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
1446
1447
  };
1447
1448
 
1448
1449
  _this.renderContentArea = function () {
1449
- var _this$state10 = _this.state,
1450
- listTitle = _this$state10.listTitle,
1451
- renderSearchForm = _this$state10.renderSearchForm;
1450
+ var listTitle = _this.state.listTitle;
1452
1451
 
1453
1452
  var extraAction = _this.renderExtraActionView();
1454
1453
 
1455
1454
  var searchForm = _this.renderForm();
1456
1455
 
1457
1456
  var hasPagination = _this.renderPaginationView() != null;
1458
- return /*#__PURE__*/_react.default.createElement(_space.default, {
1459
- style: {
1460
- width: '100%'
1461
- },
1462
- direction: "vertical",
1463
- size: 24
1464
- }, renderSearchForm && (searchForm || null) != null ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_card.default, {
1465
- bordered: false,
1466
- className: _index.default.containorSearch
1467
- }, /*#__PURE__*/_react.default.createElement("div", {
1468
- className: _index.default.tableListForm
1469
- }, searchForm))) : null, /*#__PURE__*/_react.default.createElement(_card.default, {
1457
+
1458
+ var gridView = /*#__PURE__*/_react.default.createElement(_card.default, {
1470
1459
  title: listTitle,
1471
1460
  headStyle: {
1472
1461
  borderBottom: '0px'
@@ -1482,7 +1471,24 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
1482
1471
  }), _this.renderBatchAction(), _this.renderCardExtraAction())
1483
1472
  }, /*#__PURE__*/_react.default.createElement("div", {
1484
1473
  className: _index.default.tableList
1485
- }, _this.renderAboveTable(), _this.renderView())));
1474
+ }, _this.renderAboveTable(), _this.renderView()));
1475
+
1476
+ if (!_this.showSearchForm || (searchForm || null) == null) {
1477
+ return gridView;
1478
+ }
1479
+
1480
+ return /*#__PURE__*/_react.default.createElement(_space.default, {
1481
+ style: {
1482
+ width: '100%'
1483
+ },
1484
+ direction: "vertical",
1485
+ size: 24
1486
+ }, /*#__PURE__*/_react.default.createElement(_card.default, {
1487
+ bordered: false,
1488
+ className: _index.default.containorSearch
1489
+ }, /*#__PURE__*/_react.default.createElement("div", {
1490
+ className: _index.default.tableListForm
1491
+ }, searchForm)), gridView);
1486
1492
  };
1487
1493
 
1488
1494
  _this.establishPageContentLayoutSiderConfig = function () {
@@ -1560,7 +1566,6 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
1560
1566
  showPageHeaderAvatar: false,
1561
1567
  tableSize: _constants.listViewConfig.tableSize.middle,
1562
1568
  counterSetColumnsOtherConfig: 0,
1563
- renderSearchForm: true,
1564
1569
  showListViewItemActionSelect: false
1565
1570
  });
1566
1571
  return _this;
@@ -1571,13 +1576,13 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
1571
1576
  value: function renderFurther() {
1572
1577
  var _this2 = this;
1573
1578
 
1574
- var _this$state11 = this.state,
1575
- renderPageHeaderWrapper = _this$state11.renderPageHeaderWrapper,
1576
- showPageHeaderAvatar = _this$state11.showPageHeaderAvatar,
1577
- defaultAvatarIcon = _this$state11.defaultAvatarIcon,
1578
- dataLoading = _this$state11.dataLoading,
1579
- reloading = _this$state11.reloading,
1580
- avatarImageLoadResult = _this$state11.avatarImageLoadResult;
1579
+ var _this$state10 = this.state,
1580
+ renderPageHeaderWrapper = _this$state10.renderPageHeaderWrapper,
1581
+ showPageHeaderAvatar = _this$state10.showPageHeaderAvatar,
1582
+ defaultAvatarIcon = _this$state10.defaultAvatarIcon,
1583
+ dataLoading = _this$state10.dataLoading,
1584
+ reloading = _this$state10.reloading,
1585
+ avatarImageLoadResult = _this$state10.avatarImageLoadResult;
1581
1586
  var tabListAvailable = this.getTabListAvailable();
1582
1587
  var avatarProps = showPageHeaderAvatar ? (0, _DecorateAvatar.decorateAvatar)(this.establishPageHeaderAvatarConfig(), defaultAvatarIcon, showPageHeaderAvatar, dataLoading, reloading, avatarImageLoadResult, function () {
1583
1588
  _this2.onPageHeaderAvatarLoadErrorCallback();
@@ -226,8 +226,7 @@ var MultiPageDrawer = /*#__PURE__*/function (_MultiPage) {
226
226
  reloading = _this$state.reloading,
227
227
  processing = _this$state.processing,
228
228
  refreshing = _this$state.refreshing,
229
- listViewMode = _this$state.listViewMode,
230
- renderSearchForm = _this$state.renderSearchForm;
229
+ listViewMode = _this$state.listViewMode;
231
230
 
232
231
  var extraAction = _this.renderExtraActionView();
233
232
 
@@ -247,7 +246,7 @@ var MultiPageDrawer = /*#__PURE__*/function (_MultiPage) {
247
246
  display: 'flex',
248
247
  flexDirection: 'column'
249
248
  } : {}
250
- }, renderSearchForm && (searchForm || null) != null ? /*#__PURE__*/_react.default.createElement("div", {
249
+ }, _this.showSearchForm && (searchForm || null) != null ? /*#__PURE__*/_react.default.createElement("div", {
251
250
  style: listViewMode === _constants.listViewConfig.viewMode.list ? {
252
251
  flex: 0
253
252
  } : {}
@@ -353,9 +352,7 @@ var MultiPageDrawer = /*#__PURE__*/function (_MultiPage) {
353
352
  };
354
353
 
355
354
  _this.renderContentContainor = function () {
356
- var _this$state2 = _this.state,
357
- listViewMode = _this$state2.listViewMode,
358
- renderSearchForm = _this$state2.renderSearchForm;
355
+ var listViewMode = _this.state.listViewMode;
359
356
  return /*#__PURE__*/_react.default.createElement("div", {
360
357
  className: _index.default.contentContainor,
361
358
  style: _objectSpread(_objectSpread(_objectSpread({}, listViewMode === _constants.listViewConfig.viewMode.list ? {
@@ -364,7 +361,7 @@ var MultiPageDrawer = /*#__PURE__*/function (_MultiPage) {
364
361
  overflow: 'hidden'
365
362
  } : {
366
363
  paddingBottom: 0
367
- }), renderSearchForm ? {} : {
364
+ }), _this.showSearchForm ? {} : {
368
365
  paddingTop: 0
369
366
  }), {
370
367
  backgroundColor: '#fff'
@@ -466,9 +463,9 @@ var MultiPageDrawer = /*#__PURE__*/function (_MultiPage) {
466
463
  key: "renderFurther",
467
464
  value: function renderFurther() {
468
465
  var widthDrawer = this.props.width;
469
- var _this$state3 = this.state,
470
- visible = _this$state3.visible,
471
- listViewMode = _this$state3.listViewMode;
466
+ var _this$state2 = this.state,
467
+ visible = _this$state2.visible,
468
+ listViewMode = _this$state2.listViewMode;
472
469
  return /*#__PURE__*/_react.default.createElement(_drawer.default, {
473
470
  title: /*#__PURE__*/_react.default.createElement("span", null, this.renderTitleIcon(), this.getPageName()),
474
471
  destroyOnClose: false,
@@ -212,8 +212,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
212
212
  listTitle = _this$state.listTitle,
213
213
  tableSize = _this$state.tableSize,
214
214
  refreshing = _this$state.refreshing,
215
- listViewMode = _this$state.listViewMode,
216
- renderSearchForm = _this$state.renderSearchForm;
215
+ listViewMode = _this$state.listViewMode;
217
216
 
218
217
  var extraAction = _this.renderExtraActionView();
219
218
 
@@ -233,7 +232,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
233
232
  display: 'flex',
234
233
  flexDirection: 'column'
235
234
  } : {}
236
- }, renderSearchForm && (searchForm || null) != null ? /*#__PURE__*/_react.default.createElement("div", {
235
+ }, _this.showSearchForm && (searchForm || null) != null ? /*#__PURE__*/_react.default.createElement("div", {
237
236
  style: listViewMode === _constants.listViewConfig.viewMode.list ? {
238
237
  flex: 0
239
238
  } : {}
@@ -336,9 +335,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
336
335
  };
337
336
 
338
337
  _this.renderContentContainor = function () {
339
- var _this$state2 = _this.state,
340
- listViewMode = _this$state2.listViewMode,
341
- renderSearchForm = _this$state2.renderSearchForm;
338
+ var listViewMode = _this.state.listViewMode;
342
339
  return /*#__PURE__*/_react.default.createElement("div", {
343
340
  className: _index.default.contentContainor,
344
341
  style: _objectSpread(_objectSpread(_objectSpread({}, listViewMode === _constants.listViewConfig.viewMode.list ? {
@@ -347,7 +344,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
347
344
  overflow: 'hidden'
348
345
  } : {
349
346
  paddingBottom: 0
350
- }), renderSearchForm ? {} : {
347
+ }), _this.showSearchForm ? {} : {
351
348
  paddingTop: 0
352
349
  }), {
353
350
  backgroundColor: '#fff'
@@ -367,9 +364,9 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
367
364
  };
368
365
 
369
366
  _this.renderListView = function () {
370
- var _this$state3 = _this.state,
371
- dataLoading = _this$state3.dataLoading,
372
- listViewMode = _this$state3.listViewMode;
367
+ var _this$state2 = _this.state,
368
+ dataLoading = _this$state2.dataLoading,
369
+ listViewMode = _this$state2.listViewMode;
373
370
  var list = _this.getCanUseFrontendPagination() ? _this.adjustFrontendPaginationViewDataSource() : _this.adjustViewDataSource();
374
371
 
375
372
  var bottomBar = _this.renderPaginationView();
@@ -444,9 +441,9 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
444
441
  key: "renderFurther",
445
442
  value: function renderFurther() {
446
443
  var widthDrawer = this.props.width;
447
- var _this$state4 = this.state,
448
- visible = _this$state4.visible,
449
- listViewMode = _this$state4.listViewMode;
444
+ var _this$state3 = this.state,
445
+ visible = _this$state3.visible,
446
+ listViewMode = _this$state3.listViewMode;
450
447
  return /*#__PURE__*/_react.default.createElement(_drawer.default, {
451
448
  title: /*#__PURE__*/_react.default.createElement("span", null, this.renderTitleIcon(), this.getPageName()),
452
449
  destroyOnClose: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antd-management-fast-framework",
3
- "version": "1.11.33",
3
+ "version": "1.11.34",
4
4
  "description": "antd-management-fast-framework",
5
5
  "keywords": [
6
6
  "antd-management-fast-framework"