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.
@@ -301,7 +301,8 @@ class QueryForm extends React.PureComponent {
301
301
  this.form.on('search', this.search);
302
302
 
303
303
  // 未设置第一行显示数量且禁止了展开操作 或 自定义了操作区域,则不需要处理展开计算逻辑
304
- if (!showFieldCount && !showExpand || renderActions) {
304
+ // || renderActions
305
+ if (!showFieldCount && !showExpand) {
305
306
  return;
306
307
  }
307
308
 
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import classnames from 'classnames';
3
- import Form from '../QueryForm';
3
+ import Form from '../QueryForm';
4
4
 
5
5
  const clsPrefix = 'tnt-querylistscene-queryform';
6
-
6
+
7
7
  export default class QueryForm extends React.PureComponent {
8
8
  constructor(props) {
9
9
  super(props);
@@ -60,9 +60,12 @@ export default class QueryForm extends React.PureComponent {
60
60
  const values = actions.getFormData();
61
61
  const params = { ...values, current: 1 };
62
62
 
63
+ // memory 与 url解析setForm时 监听事件异步
63
64
  actions.setData('formData', values);
64
- onSearch && onSearch(params);
65
- actions.emit('search', params);
65
+ Promise.resolve().then(()=>{
66
+ onSearch && onSearch(params);
67
+ actions.emit('search', params);
68
+ });
66
69
  };
67
70
 
68
71
  onReset = () => {