@teamix/pro 1.2.15 → 1.2.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/dist/pro.js CHANGED
@@ -59376,8 +59376,7 @@ var useMain = function useMain(active) {
59376
59376
  var main = [];
59377
59377
  schema.mapProperties(function (schema, name) {
59378
59378
  // console.log(schema.required); // 添加 *
59379
- console.log(schema);
59380
-
59379
+ // console.log(schema);
59381
59380
  if (schema.name === active) {
59382
59381
  main.push({
59383
59382
  name: name,
@@ -59624,7 +59623,7 @@ var SimpleFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(func
59624
59623
  }
59625
59624
  }])
59626
59625
  }];
59627
- }, []);
59626
+ }, [schema, triggerType]);
59628
59627
  var eventProps = getEventProps(triggerType, onFilter);
59629
59628
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ProForm__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, _extends({
59630
59629
  feedbackLayout: "popover",
@@ -59701,7 +59700,7 @@ var AdvancedFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(fu
59701
59700
  }]
59702
59701
  }])
59703
59702
  }];
59704
- }, []);
59703
+ }, [schema, onReset, triggerType]);
59705
59704
  var getTeamixLayout = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
59706
59705
  return {
59707
59706
  breakpoints: [990],
@@ -60200,6 +60199,7 @@ var ProForm = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(function
60200
60199
  }, [breakpoints, layout, labelAlign, wrapperAlign, labelCol, wrapperCol]); // 添加onChange
60201
60200
 
60202
60201
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
60202
+ form.removeEffects('onChange');
60203
60203
  form.addEffects('onChange', function () {
60204
60204
  (0,_formily_core__WEBPACK_IMPORTED_MODULE_2__.onFormValuesChange)(function (form) {
60205
60205
  if (onChange) {
@@ -60824,7 +60824,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
60824
60824
  type: 'object',
60825
60825
  properties: formatSchema(schema)
60826
60826
  };
60827
- }, []); // console.log(proFormSchema);
60827
+ }, [schema]); // console.log(proFormSchema);
60828
60828
 
60829
60829
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SchemaField, {
60830
60830
  schema: proFormSchema,
@@ -62353,7 +62353,7 @@ _teamix_icon__WEBPACK_IMPORTED_MODULE_13__/* ["default"].setConfig */ .Z.setConf
62353
62353
 
62354
62354
  // export * from './sidebar';
62355
62355
 
62356
- var version = '1.2.14';
62356
+ var version = '1.2.15';
62357
62357
 
62358
62358
 
62359
62359
  /***/ }),
@@ -67209,6 +67209,7 @@ var ProTable = function ProTable(props) {
67209
67209
  resetPage: function resetPage() {
67210
67210
  setCurrentPage(1);
67211
67211
  },
67212
+ rowSelection: rowSelection,
67212
67213
  clearRowSelection: function clearRowSelection() {
67213
67214
  rowSelectionHook.setSelectedRowKeys([]);
67214
67215
  rowSelectionHook.setSelectedRecords([]);