@teamix/pro 1.2.29 → 1.2.30

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/pro.js CHANGED
@@ -66278,7 +66278,7 @@ _teamix_icon__WEBPACK_IMPORTED_MODULE_14__/* ["default"].setConfig */ .Z.setConf
66278
66278
  // export * from './sidebar';
66279
66279
 
66280
66280
 
66281
- var version = '1.2.29';
66281
+ var version = '1.2.30';
66282
66282
 
66283
66283
 
66284
66284
  /***/ }),
@@ -70423,8 +70423,10 @@ var Layout = function Layout(props) {
70423
70423
 
70424
70424
 
70425
70425
  var renderQueryFilter = function renderQueryFilter() {
70426
- if (dataFilter) {
70427
- var _dataFilter$schema;
70426
+ var _dataFilter$schema;
70427
+
70428
+ if (dataFilter != null && (_dataFilter$schema = dataFilter.schema) != null && _dataFilter$schema.length) {
70429
+ var _dataFilter$schema2;
70428
70430
 
70429
70431
  if ( /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(dataFilter == null ? void 0 : dataFilter.content)) {
70430
70432
  // 自定义渲染内容
@@ -70452,7 +70454,7 @@ var Layout = function Layout(props) {
70452
70454
  actionRef: actionRef
70453
70455
  }, otherProps)))
70454
70456
  }, dataFilter));
70455
- } else if ((dataFilter == null ? void 0 : (_dataFilter$schema = dataFilter.schema) == null ? void 0 : _dataFilter$schema.length) >= 0) {
70457
+ } else if ((dataFilter == null ? void 0 : (_dataFilter$schema2 = dataFilter.schema) == null ? void 0 : _dataFilter$schema2.length) >= 0) {
70456
70458
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_form__WEBPACK_IMPORTED_MODULE_3__/* .QueryFilter */ .ti, _extends({
70457
70459
  formRef: dataFilterFormRef,
70458
70460
  onExpand: function onExpand(expand) {
@@ -70478,6 +70480,19 @@ var Layout = function Layout(props) {
70478
70480
  }, otherProps)))
70479
70481
  }, dataFilter));
70480
70482
  }
70483
+ } else if (mainAction) {
70484
+ // 没传 dataFilter 但是传了 mainAction
70485
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_form__WEBPACK_IMPORTED_MODULE_3__/* .QueryFilterLayout */ .rx, {
70486
+ className: "mb8",
70487
+ addonBefore: renderMainAction(),
70488
+ addonAfter: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, extra && !header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_QuickAction__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
70489
+ actionRef: actionRef,
70490
+ quickAction: extra,
70491
+ rowSelection: rowSelection
70492
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ToolBar__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, _extends({
70493
+ actionRef: actionRef
70494
+ }, otherProps)))
70495
+ });
70481
70496
  }
70482
70497
  }; // 区域组合渲染
70483
70498