tntd 1.4.3 → 1.4.6

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.
@@ -345,8 +345,9 @@ function (_React$PureComponent) {
345
345
  renderActions = _this$props4.renderActions;
346
346
  this.updateFieldHeight();
347
347
  this.form.on('search', this.search); // 未设置第一行显示数量且禁止了展开操作 或 自定义了操作区域,则不需要处理展开计算逻辑
348
+ // || renderActions
348
349
 
349
- if (!showFieldCount && !showExpand || renderActions) {
350
+ if (!showFieldCount && !showExpand) {
350
351
  return;
351
352
  }
352
353
 
@@ -53,11 +53,14 @@ function (_React$PureComponent) {
53
53
 
54
54
  var params = _objectSpread({}, values, {
55
55
  current: 1
56
- });
56
+ }); // memory 与 url解析setForm时 监听事件异步
57
+
57
58
 
58
59
  actions.setData('formData', values);
59
- onSearch && onSearch(params);
60
- actions.emit('search', params);
60
+ Promise.resolve().then(function () {
61
+ onSearch && onSearch(params);
62
+ actions.emit('search', params);
63
+ });
61
64
  };
62
65
 
63
66
  _this.onReset = function () {
@@ -374,8 +374,9 @@ function (_React$PureComponent) {
374
374
  renderActions = _this$props4.renderActions;
375
375
  this.updateFieldHeight();
376
376
  this.form.on('search', this.search); // 未设置第一行显示数量且禁止了展开操作 或 自定义了操作区域,则不需要处理展开计算逻辑
377
+ // || renderActions
377
378
 
378
- if (!showFieldCount && !showExpand || renderActions) {
379
+ if (!showFieldCount && !showExpand) {
379
380
  return;
380
381
  }
381
382
 
@@ -65,11 +65,14 @@ function (_React$PureComponent) {
65
65
 
66
66
  var params = _objectSpread({}, values, {
67
67
  current: 1
68
- });
68
+ }); // memory 与 url解析setForm时 监听事件异步
69
+
69
70
 
70
71
  actions.setData('formData', values);
71
- onSearch && onSearch(params);
72
- actions.emit('search', params);
72
+ Promise.resolve().then(function () {
73
+ onSearch && onSearch(params);
74
+ actions.emit('search', params);
75
+ });
73
76
  };
74
77
 
75
78
  _this.onReset = function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tntd",
3
- "version": "1.4.3",
3
+ "version": "1.4.6",
4
4
  "description": "ued tnt design",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",