tntd 1.4.2 → 1.4.5
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/components/Ellipsis/index.js +4 -4
- package/components/QueryForm/index.js +2 -1
- package/components/QueryListScene/QueryForm.js +4 -4
- package/components/Select/index.js +3 -4
- package/dist/stats.json +4951 -4951
- package/dist/tntd.js +1 -1
- package/es/Ellipsis/index.js +3 -3
- package/es/QueryForm/index.js +2 -1
- package/es/QueryListScene/QueryForm.js +25 -12
- package/es/Select/index.js +2 -4
- package/lib/Ellipsis/index.js +3 -3
- package/lib/Layout/EnterpriseLayout/Header.js +113 -0
- package/lib/Layout/EnterpriseLayout/HeaderActions.js +104 -0
- package/lib/QueryForm/index.js +2 -1
- package/lib/QueryListScene/QueryForm.js +25 -12
- package/lib/Select/index.js +2 -4
- package/package.json +1 -1
|
@@ -116,7 +116,7 @@ export default props => {
|
|
|
116
116
|
|
|
117
117
|
return <>
|
|
118
118
|
<div
|
|
119
|
-
|
|
119
|
+
className="tnt-ellipsis"
|
|
120
120
|
style={{
|
|
121
121
|
...style,
|
|
122
122
|
maxWidth: widthLimit
|
|
@@ -126,7 +126,7 @@ export default props => {
|
|
|
126
126
|
{prefix && prefix}
|
|
127
127
|
{/* content */}
|
|
128
128
|
<div
|
|
129
|
-
|
|
129
|
+
className={getClassName()}
|
|
130
130
|
>
|
|
131
131
|
{inner ? renderNode() : emptyText}
|
|
132
132
|
</div>
|
|
@@ -136,7 +136,7 @@ export default props => {
|
|
|
136
136
|
{
|
|
137
137
|
inner && _copyable &&
|
|
138
138
|
<div
|
|
139
|
-
|
|
139
|
+
className='svg-button'
|
|
140
140
|
onClick={() => handleCopy(elementRef.current.innerText)}
|
|
141
141
|
>
|
|
142
142
|
{
|
|
@@ -148,4 +148,4 @@ export default props => {
|
|
|
148
148
|
}
|
|
149
149
|
</div>
|
|
150
150
|
</>;
|
|
151
|
-
};
|
|
151
|
+
};
|
|
@@ -301,7 +301,8 @@ class QueryForm extends React.PureComponent {
|
|
|
301
301
|
this.form.on('search', this.search);
|
|
302
302
|
|
|
303
303
|
// 未设置第一行显示数量且禁止了展开操作 或 自定义了操作区域,则不需要处理展开计算逻辑
|
|
304
|
-
|
|
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);
|
|
@@ -52,7 +52,7 @@ export default class QueryForm extends React.PureComponent {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
onSearch = () => {
|
|
55
|
+
onSearch = async() => {
|
|
56
56
|
const {
|
|
57
57
|
onSearch,
|
|
58
58
|
actions
|
|
@@ -60,7 +60,7 @@ export default class QueryForm extends React.PureComponent {
|
|
|
60
60
|
const values = actions.getFormData();
|
|
61
61
|
const params = { ...values, current: 1 };
|
|
62
62
|
|
|
63
|
-
actions.setData('formData', values);
|
|
63
|
+
await actions.setData('formData', values); // memory 与 url解析setForm时 监听事件异步
|
|
64
64
|
onSearch && onSearch(params);
|
|
65
65
|
actions.emit('search', params);
|
|
66
66
|
};
|
|
@@ -68,9 +68,9 @@ class SuperSelect extends PureComponent {
|
|
|
68
68
|
}, 500);
|
|
69
69
|
const { children: arr } = this.props;
|
|
70
70
|
const children = this.turnChildren(arr);
|
|
71
|
-
if (children && children.length > 0) {
|
|
72
|
-
|
|
73
|
-
}
|
|
71
|
+
// if (children && children.length > 0) {
|
|
72
|
+
this.formulaWidth();
|
|
73
|
+
// }
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
turnChildren = (children) => {
|
|
@@ -458,7 +458,6 @@ class SuperSelect extends PureComponent {
|
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
optionLabelProp = optionLabelProp || 'children';
|
|
461
|
-
|
|
462
461
|
return (
|
|
463
462
|
<Select
|
|
464
463
|
{..._props}
|