tntd 1.4.1 → 1.4.4

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.
Files changed (42) hide show
  1. package/babel.config.js +1 -1
  2. package/components/Ellipsis/index.js +4 -4
  3. package/components/QueryForm/index.js +2 -1
  4. package/components/Select/index.js +3 -4
  5. package/dist/stats.json +4901 -4901
  6. package/dist/tntd.js +1 -1
  7. package/es/ArrayInput/index.js +19 -11
  8. package/es/Columns/index.js +7 -3
  9. package/es/DevelopmentLogin/LoginModal.js +17 -8
  10. package/es/Ellipsis/index.js +10 -6
  11. package/es/Handle/index.js +11 -5
  12. package/es/Layout/AppList.js +19 -9
  13. package/es/Layout/Application.js +4 -2
  14. package/es/Layout/Avatar.js +7 -3
  15. package/es/Layout/CompatibleLanguage.js +4 -2
  16. package/es/Layout/EnterpriseLayout/Avatar.js +11 -5
  17. package/es/Layout/EnterpriseLayout/Theme.js +4 -2
  18. package/es/Layout/HeaderActions.js +4 -2
  19. package/es/Layout/Layout.js +6 -4
  20. package/es/Layout/OrgAppList.js +13 -7
  21. package/es/Layout/SideMenu.js +6 -4
  22. package/es/Layout/Theme.js +4 -2
  23. package/es/Layout/paaslayout/index.js +7 -5
  24. package/es/LoadingButton/index.js +4 -2
  25. package/es/Modal/index.js +4 -2
  26. package/es/Page/Box.js +4 -2
  27. package/es/QueryForm/Field/Checkbox.js +4 -2
  28. package/es/QueryForm/Field/Select.js +5 -3
  29. package/es/QueryForm/Field/SelectInput.js +8 -4
  30. package/es/QueryForm/Field/fieldsMap.js +13 -8
  31. package/es/QueryForm/Field/index.js +4 -2
  32. package/es/QueryForm/index.js +20 -11
  33. package/es/QueryListScene/List.js +4 -2
  34. package/es/Select/index.js +11 -9
  35. package/es/Table/ResizableTable/index.js +4 -2
  36. package/es/Table/index.js +4 -2
  37. package/lib/Ellipsis/index.js +3 -3
  38. package/lib/Layout/EnterpriseLayout/Header.js +113 -0
  39. package/lib/Layout/EnterpriseLayout/HeaderActions.js +104 -0
  40. package/lib/QueryForm/index.js +2 -1
  41. package/lib/Select/index.js +2 -4
  42. package/package.json +1 -1
package/babel.config.js CHANGED
@@ -41,7 +41,7 @@ if (isES) {
41
41
  ];
42
42
  }
43
43
 
44
- if (process.env.BUILD_ENV !== 'umd' && !isES && !process.env.WEBPACK_DEV_SERVER) {
44
+ if (process.env.BUILD_ENV !== 'umd' && !process.env.WEBPACK_DEV_SERVER) {
45
45
  plugins.push([
46
46
  'import',
47
47
  {
@@ -116,7 +116,7 @@ export default props => {
116
116
 
117
117
  return <>
118
118
  <div
119
- class="tnt-ellipsis"
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
- class={getClassName()}
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
- class='svg-button'
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
- if (!showFieldCount && !showExpand || renderActions) {
304
+ // || renderActions
305
+ if (!showFieldCount && !showExpand) {
305
306
  return;
306
307
  }
307
308
 
@@ -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
- this.formulaWidth();
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}