tntd 1.4.0 → 1.4.1

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/babel.config.js CHANGED
@@ -41,12 +41,12 @@ if (isES) {
41
41
  ];
42
42
  }
43
43
 
44
- if (process.env.BUILD_ENV !== 'umd' && !process.env.WEBPACK_DEV_SERVER) {
44
+ if (process.env.BUILD_ENV !== 'umd' && !isES && !process.env.WEBPACK_DEV_SERVER) {
45
45
  plugins.push([
46
46
  'import',
47
47
  {
48
48
  libraryName: 'antd',
49
- libraryDirectory: isES ? 'es' : 'lib',
49
+ // libraryDirectory: isES ? 'es' : 'lib',
50
50
  style: true,
51
51
  }
52
52
  ]);
package/dist/stats.json CHANGED
@@ -6,8 +6,8 @@
6
6
  ],
7
7
  "version": "4.46.0",
8
8
  "hash": "01628da4e6e50dd5026d",
9
- "time": 4422,
10
- "builtAt": 1648015572625,
9
+ "time": 5933,
10
+ "builtAt": 1648018091507,
11
11
  "publicPath": "",
12
12
  "outputPath": "/Users/zhangyou/tongdun/Projects/tntd/dist",
13
13
  "assetsByChunkName": {
@@ -915,7 +915,7 @@
915
915
  "moduleName": "./components/index.js + 88 modules",
916
916
  "type": "harmony side effect evaluation",
917
917
  "userRequest": "react",
918
- "loc": "27:0-41"
918
+ "loc": "27:0-80"
919
919
  },
920
920
  {
921
921
  "moduleId": 87,
@@ -924,7 +924,7 @@
924
924
  "moduleName": "./components/index.js + 88 modules",
925
925
  "type": "harmony side effect evaluation",
926
926
  "userRequest": "react",
927
- "loc": "27:0-80"
927
+ "loc": "27:0-41"
928
928
  },
929
929
  {
930
930
  "moduleId": 87,
@@ -2909,9 +2909,9 @@
2909
2909
  "chunks": [
2910
2910
  0
2911
2911
  ],
2912
- "issuer": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Table/ResizableTable/index.js",
2912
+ "issuer": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Table/index.js",
2913
2913
  "issuerId": null,
2914
- "issuerName": "./components/Table/ResizableTable/index.js",
2914
+ "issuerName": "./components/Table/index.js",
2915
2915
  "issuerPath": [
2916
2916
  {
2917
2917
  "id": null,
@@ -2920,8 +2920,8 @@
2920
2920
  },
2921
2921
  {
2922
2922
  "id": null,
2923
- "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Table/ResizableTable/index.js",
2924
- "name": "./components/Table/ResizableTable/index.js"
2923
+ "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Table/index.js",
2924
+ "name": "./components/Table/index.js"
2925
2925
  }
2926
2926
  ],
2927
2927
  "failed": false,
@@ -5182,7 +5182,7 @@
5182
5182
  "moduleName": "./components/index.js + 88 modules",
5183
5183
  "type": "harmony side effect evaluation",
5184
5184
  "userRequest": "lodash",
5185
- "loc": "29:0-34"
5185
+ "loc": "29:0-67"
5186
5186
  },
5187
5187
  {
5188
5188
  "moduleId": 87,
@@ -5191,7 +5191,7 @@
5191
5191
  "moduleName": "./components/index.js + 88 modules",
5192
5192
  "type": "harmony side effect evaluation",
5193
5193
  "userRequest": "lodash",
5194
- "loc": "29:0-67"
5194
+ "loc": "29:0-34"
5195
5195
  },
5196
5196
  {
5197
5197
  "moduleId": 87,
@@ -5913,9 +5913,9 @@
5913
5913
  "chunks": [
5914
5914
  0
5915
5915
  ],
5916
- "issuer": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Table/ResizableTable/index.js",
5916
+ "issuer": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Table/index.js",
5917
5917
  "issuerId": null,
5918
- "issuerName": "./components/Table/ResizableTable/index.js",
5918
+ "issuerName": "./components/Table/index.js",
5919
5919
  "issuerPath": [
5920
5920
  {
5921
5921
  "id": null,
@@ -5924,8 +5924,8 @@
5924
5924
  },
5925
5925
  {
5926
5926
  "id": null,
5927
- "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Table/ResizableTable/index.js",
5928
- "name": "./components/Table/ResizableTable/index.js"
5927
+ "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Table/index.js",
5928
+ "name": "./components/Table/index.js"
5929
5929
  }
5930
5930
  ],
5931
5931
  "failed": false,
@@ -6542,9 +6542,9 @@
6542
6542
  "chunks": [
6543
6543
  0
6544
6544
  ],
6545
- "issuer": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/QueryListScene/createActions.js",
6545
+ "issuer": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Layout/createActions.js",
6546
6546
  "issuerId": null,
6547
- "issuerName": "./components/QueryListScene/createActions.js",
6547
+ "issuerName": "./components/Layout/createActions.js",
6548
6548
  "issuerPath": [
6549
6549
  {
6550
6550
  "id": null,
@@ -6553,13 +6553,13 @@
6553
6553
  },
6554
6554
  {
6555
6555
  "id": null,
6556
- "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/QueryListScene/index.js",
6557
- "name": "./components/QueryListScene/index.js"
6556
+ "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Layout/index.js",
6557
+ "name": "./components/Layout/index.js"
6558
6558
  },
6559
6559
  {
6560
6560
  "id": null,
6561
- "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/QueryListScene/createActions.js",
6562
- "name": "./components/QueryListScene/createActions.js"
6561
+ "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Layout/createActions.js",
6562
+ "name": "./components/Layout/createActions.js"
6563
6563
  }
6564
6564
  ],
6565
6565
  "failed": false,
@@ -7780,9 +7780,9 @@
7780
7780
  "chunks": [
7781
7781
  0
7782
7782
  ],
7783
- "issuer": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/react-resizable/build/Resizable.js",
7784
- "issuerId": 15,
7785
- "issuerName": "./node_modules/react-resizable/build/Resizable.js",
7783
+ "issuer": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/react-resizable/build/ResizableBox.js",
7784
+ "issuerId": 85,
7785
+ "issuerName": "./node_modules/react-resizable/build/ResizableBox.js",
7786
7786
  "issuerPath": [
7787
7787
  {
7788
7788
  "id": null,
@@ -7800,9 +7800,9 @@
7800
7800
  "name": "./node_modules/react-resizable/index.js"
7801
7801
  },
7802
7802
  {
7803
- "id": 15,
7804
- "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/react-resizable/build/Resizable.js",
7805
- "name": "./node_modules/react-resizable/build/Resizable.js"
7803
+ "id": 85,
7804
+ "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/react-resizable/build/ResizableBox.js",
7805
+ "name": "./node_modules/react-resizable/build/ResizableBox.js"
7806
7806
  }
7807
7807
  ],
7808
7808
  "failed": false,
@@ -22362,7 +22362,7 @@
22362
22362
  "moduleName": "./components/index.js + 88 modules",
22363
22363
  "type": "harmony side effect evaluation",
22364
22364
  "userRequest": "react",
22365
- "loc": "27:0-41"
22365
+ "loc": "27:0-80"
22366
22366
  },
22367
22367
  {
22368
22368
  "moduleId": 87,
@@ -22371,7 +22371,7 @@
22371
22371
  "moduleName": "./components/index.js + 88 modules",
22372
22372
  "type": "harmony side effect evaluation",
22373
22373
  "userRequest": "react",
22374
- "loc": "27:0-80"
22374
+ "loc": "27:0-41"
22375
22375
  },
22376
22376
  {
22377
22377
  "moduleId": 87,
@@ -24356,9 +24356,9 @@
24356
24356
  "chunks": [
24357
24357
  0
24358
24358
  ],
24359
- "issuer": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Table/ResizableTable/index.js",
24359
+ "issuer": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Table/index.js",
24360
24360
  "issuerId": null,
24361
- "issuerName": "./components/Table/ResizableTable/index.js",
24361
+ "issuerName": "./components/Table/index.js",
24362
24362
  "issuerPath": [
24363
24363
  {
24364
24364
  "id": null,
@@ -24367,8 +24367,8 @@
24367
24367
  },
24368
24368
  {
24369
24369
  "id": null,
24370
- "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Table/ResizableTable/index.js",
24371
- "name": "./components/Table/ResizableTable/index.js"
24370
+ "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Table/index.js",
24371
+ "name": "./components/Table/index.js"
24372
24372
  }
24373
24373
  ],
24374
24374
  "failed": false,
@@ -26629,7 +26629,7 @@
26629
26629
  "moduleName": "./components/index.js + 88 modules",
26630
26630
  "type": "harmony side effect evaluation",
26631
26631
  "userRequest": "lodash",
26632
- "loc": "29:0-34"
26632
+ "loc": "29:0-67"
26633
26633
  },
26634
26634
  {
26635
26635
  "moduleId": 87,
@@ -26638,7 +26638,7 @@
26638
26638
  "moduleName": "./components/index.js + 88 modules",
26639
26639
  "type": "harmony side effect evaluation",
26640
26640
  "userRequest": "lodash",
26641
- "loc": "29:0-67"
26641
+ "loc": "29:0-34"
26642
26642
  },
26643
26643
  {
26644
26644
  "moduleId": 87,
@@ -27360,9 +27360,9 @@
27360
27360
  "chunks": [
27361
27361
  0
27362
27362
  ],
27363
- "issuer": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Table/ResizableTable/index.js",
27363
+ "issuer": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Table/index.js",
27364
27364
  "issuerId": null,
27365
- "issuerName": "./components/Table/ResizableTable/index.js",
27365
+ "issuerName": "./components/Table/index.js",
27366
27366
  "issuerPath": [
27367
27367
  {
27368
27368
  "id": null,
@@ -27371,8 +27371,8 @@
27371
27371
  },
27372
27372
  {
27373
27373
  "id": null,
27374
- "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Table/ResizableTable/index.js",
27375
- "name": "./components/Table/ResizableTable/index.js"
27374
+ "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Table/index.js",
27375
+ "name": "./components/Table/index.js"
27376
27376
  }
27377
27377
  ],
27378
27378
  "failed": false,
@@ -27989,9 +27989,9 @@
27989
27989
  "chunks": [
27990
27990
  0
27991
27991
  ],
27992
- "issuer": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/QueryListScene/createActions.js",
27992
+ "issuer": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Layout/createActions.js",
27993
27993
  "issuerId": null,
27994
- "issuerName": "./components/QueryListScene/createActions.js",
27994
+ "issuerName": "./components/Layout/createActions.js",
27995
27995
  "issuerPath": [
27996
27996
  {
27997
27997
  "id": null,
@@ -28000,13 +28000,13 @@
28000
28000
  },
28001
28001
  {
28002
28002
  "id": null,
28003
- "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/QueryListScene/index.js",
28004
- "name": "./components/QueryListScene/index.js"
28003
+ "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Layout/index.js",
28004
+ "name": "./components/Layout/index.js"
28005
28005
  },
28006
28006
  {
28007
28007
  "id": null,
28008
- "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/QueryListScene/createActions.js",
28009
- "name": "./components/QueryListScene/createActions.js"
28008
+ "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhangyou/tongdun/Projects/tntd/components/Layout/createActions.js",
28009
+ "name": "./components/Layout/createActions.js"
28010
28010
  }
28011
28011
  ],
28012
28012
  "failed": false,
@@ -29227,9 +29227,9 @@
29227
29227
  "chunks": [
29228
29228
  0
29229
29229
  ],
29230
- "issuer": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/react-resizable/build/Resizable.js",
29231
- "issuerId": 15,
29232
- "issuerName": "./node_modules/react-resizable/build/Resizable.js",
29230
+ "issuer": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/react-resizable/build/ResizableBox.js",
29231
+ "issuerId": 85,
29232
+ "issuerName": "./node_modules/react-resizable/build/ResizableBox.js",
29233
29233
  "issuerPath": [
29234
29234
  {
29235
29235
  "id": null,
@@ -29247,9 +29247,9 @@
29247
29247
  "name": "./node_modules/react-resizable/index.js"
29248
29248
  },
29249
29249
  {
29250
- "id": 15,
29251
- "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/react-resizable/build/Resizable.js",
29252
- "name": "./node_modules/react-resizable/build/Resizable.js"
29250
+ "id": 85,
29251
+ "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/react-resizable/build/ResizableBox.js",
29252
+ "name": "./node_modules/react-resizable/build/ResizableBox.js"
29253
29253
  }
29254
29254
  ],
29255
29255
  "failed": false,
@@ -1,12 +1,3 @@
1
- import "antd/es/row/style";
2
- import _Row from "antd/es/row";
3
- import "antd/es/tooltip/style";
4
- import _Tooltip from "antd/es/tooltip";
5
- import "antd/es/col/style";
6
- import _Col from "antd/es/col";
7
- import "antd/es/table/style";
8
- import _Table from "antd/es/table";
9
-
10
1
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11
2
 
12
3
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -34,10 +25,11 @@ function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) ||
34
25
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
35
26
 
36
27
  import React, { useEffect, useState, useCallback, isValidElement } from "react";
28
+ import { Row, Col, Table, Tooltip } from "antd";
37
29
  import { isFunction, isArray, sumBy, sum, set, get } from "lodash";
38
30
  import { plusIcon, deleteIcon } from "./icon";
39
31
  import "./index.less";
40
- var Column = _Table.Column;
32
+ var Column = Table.Column;
41
33
 
42
34
  var getWidth = function getWidth(span) {
43
35
  return 1000 / span;
@@ -120,13 +112,13 @@ export default function ArrayInput(_ref) {
120
112
  fields = get(fields, "props.children", []);
121
113
  }
122
114
 
123
- return React.createElement(_Row, {
115
+ return React.createElement(Row, {
124
116
  gutter: gutter,
125
117
  key: index,
126
118
  className: "tntd-array-input-item"
127
119
  }, fields.map(function (field, i) {
128
120
  if (!isValidElement(field)) {
129
- return field ? React.createElement(_Col, {
121
+ return field ? React.createElement(Col, {
130
122
  span: 4,
131
123
  key: i
132
124
  }, field) : "";
@@ -139,7 +131,7 @@ export default function ArrayInput(_ref) {
139
131
  fieldChange = _ref2.onChange,
140
132
  other = _objectWithoutProperties(_ref2, ["name", "span", "onChange"]);
141
133
 
142
- return React.createElement(_Col, {
134
+ return React.createElement(Col, {
143
135
  span: span,
144
136
  key: i
145
137
  }, React.cloneElement(field, _objectSpread({
@@ -150,13 +142,13 @@ export default function ArrayInput(_ref) {
150
142
  changeValue(index, name, newValue);
151
143
  }
152
144
  }, other)));
153
- }), React.createElement(_Col, {
145
+ }), React.createElement(Col, {
154
146
  span: 24 - sum(fields.map(function (f) {
155
147
  return get(f, "props.span", 4);
156
148
  })) % 24
157
149
  }, React.createElement("span", {
158
150
  className: "tntd-array-input-action"
159
- }, plusTip ? React.createElement(_Tooltip, {
151
+ }, plusTip ? React.createElement(Tooltip, {
160
152
  title: plusTip,
161
153
  placement: "left"
162
154
  }, React.createElement("span", {
@@ -169,7 +161,7 @@ export default function ArrayInput(_ref) {
169
161
  onClick: function onClick() {
170
162
  return onAdd(index);
171
163
  }
172
- }, plusIcon), deleteTip ? React.createElement(_Tooltip, {
164
+ }, plusIcon), deleteTip ? React.createElement(Tooltip, {
173
165
  title: deleteTip,
174
166
  placement: "right"
175
167
  }, React.createElement("span", {
@@ -206,7 +198,7 @@ export default function ArrayInput(_ref) {
206
198
  });
207
199
  return React.createElement("div", {
208
200
  className: "tntd-array-input"
209
- }, React.createElement(_Table, {
201
+ }, React.createElement(Table, {
210
202
  dataSource: dataSource,
211
203
  pagination: false,
212
204
  locale: {
@@ -251,7 +243,7 @@ export default function ArrayInput(_ref) {
251
243
  render: function render(text, row, index) {
252
244
  return React.createElement("span", {
253
245
  className: "tntd-array-input-action"
254
- }, plusTip ? React.createElement(_Tooltip, {
246
+ }, plusTip ? React.createElement(Tooltip, {
255
247
  title: plusTip,
256
248
  placement: "left"
257
249
  }, React.createElement("span", {
@@ -264,7 +256,7 @@ export default function ArrayInput(_ref) {
264
256
  onClick: function onClick() {
265
257
  return onAdd(index);
266
258
  }
267
- }, plusIcon), deleteTip ? React.createElement(_Tooltip, {
259
+ }, plusIcon), deleteTip ? React.createElement(Tooltip, {
268
260
  title: deleteTip,
269
261
  placement: "right"
270
262
  }, React.createElement("span", {
@@ -1,8 +1,3 @@
1
- import "antd/es/row/style";
2
- import _Row from "antd/es/row";
3
- import "antd/es/col/style";
4
- import _Col from "antd/es/col";
5
-
6
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
7
2
 
8
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
@@ -16,6 +11,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
16
11
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
17
12
 
18
13
  import classnames from 'classnames';
14
+ import { Row, Col } from 'antd';
19
15
  import './index.less';
20
16
  var clsPrefix = 'tnt-columns';
21
17
  export var Item = function Item(props) {
@@ -29,7 +25,7 @@ export var Item = function Item(props) {
29
25
  tabType = props.tabType,
30
26
  onTabChange = props.onTabChange;
31
27
  var realActiveKey = activeTabKey || defaultActiveTabKey;
32
- return React.createElement(_Col, {
28
+ return React.createElement(Col, {
33
29
  className: "".concat(clsPrefix, "-col"),
34
30
  span: span < 4 ? 4 : span
35
31
  }, React.createElement("div", null, (!tabList || tabList.length < 0) && React.createElement("div", {
@@ -74,7 +70,7 @@ var Columns = function Columns(props) {
74
70
  height: props.height ? "".concat(props.height, "px") : 'calc(100vh)'
75
71
  });
76
72
 
77
- return React.createElement(_Row, _extends({
73
+ return React.createElement(Row, _extends({
78
74
  className: classnames(clsPrefix, {
79
75
  gutter: gutter
80
76
  }),
@@ -1,12 +1,3 @@
1
- import "antd/es/modal/style";
2
- import _Modal from "antd/es/modal";
3
- import "antd/es/form/style";
4
- import _Form from "antd/es/form";
5
- import "antd/es/input/style";
6
- import _Input from "antd/es/input";
7
- import "antd/es/message/style";
8
- import _message from "antd/es/message";
9
-
10
1
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
11
2
 
12
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
@@ -22,6 +13,7 @@ function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) ||
22
13
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
14
 
24
15
  import { useState } from 'react';
16
+ import { Modal, Input, Form, message } from 'antd';
25
17
  import Cookies from 'universal-cookie';
26
18
  var cookies = new Cookies(); // 默认
27
19
 
@@ -62,8 +54,7 @@ export default (function (_ref) {
62
54
 
63
55
  if (returnVal && returnVal.then) {
64
56
  returnVal.then(function (res) {
65
- _message.success('模拟登陆成功');
66
-
57
+ message.success('模拟登陆成功');
67
58
  localStorage.setItem('accountInfo', JSON.stringify(accountInfo));
68
59
  setConfirmLoading(false);
69
60
  setTimeout(function () {
@@ -90,32 +81,32 @@ export default (function (_ref) {
90
81
  setAccountInfo(_objectSpread({}, accountInfo, _defineProperty({}, key, evt.target.value)));
91
82
  };
92
83
 
93
- return React.createElement(_Modal, {
84
+ return React.createElement(Modal, {
94
85
  title: "\u5F00\u53D1\u8005\u6A21\u62DF\u767B\u9646",
95
86
  visible: visible,
96
87
  maskClosable: false,
97
88
  onOk: onSubmit,
98
89
  onCancel: close,
99
90
  confirmLoading: confirmLoading
100
- }, React.createElement(_Form, {
91
+ }, React.createElement(Form, {
101
92
  labelCol: {
102
93
  span: 5
103
94
  },
104
95
  wrapperCol: {
105
96
  span: 18
106
97
  }
107
- }, React.createElement(_Form.Item, {
98
+ }, React.createElement(Form.Item, {
108
99
  label: "\u7528\u6237\u540D\uFF1A"
109
- }, React.createElement(_Input, {
100
+ }, React.createElement(Input, {
110
101
  type: "text",
111
102
  placeholder: "\u8BF7\u8F93\u5165\u7528\u6237\u540D",
112
103
  value: account || undefined,
113
104
  onChange: function onChange(evt) {
114
105
  return changeFieldValue('account', evt);
115
106
  }
116
- })), React.createElement(_Form.Item, {
107
+ })), React.createElement(Form.Item, {
117
108
  label: "\u5BC6\u7801\uFF1A"
118
- }, React.createElement(_Input, {
109
+ }, React.createElement(Input, {
119
110
  type: "text",
120
111
  placeholder: "\u8BF7\u8F93\u5165\u7528\u6237\u540D",
121
112
  value: password || undefined,
@@ -1,8 +1,3 @@
1
- import "antd/es/tooltip/style";
2
- import _Tooltip from "antd/es/tooltip";
3
- import "antd/es/popover/style";
4
- import _Popover from "antd/es/popover";
5
-
6
1
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
7
2
 
8
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
@@ -25,6 +20,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
25
20
  * @Describe: 省略号组件
26
21
  */
27
22
  import { useState, useEffect, useRef } from 'react';
23
+ import { Popover, Tooltip } from 'antd';
28
24
  import copy from 'copy-to-clipboard';
29
25
  import CopySVG from './Svg/CopySVG';
30
26
  import TickSVG from './Svg/TickSVG';
@@ -98,7 +94,7 @@ export default (function (props) {
98
94
  };
99
95
 
100
96
  var renderNode = function renderNode() {
101
- var popoverNode = React.createElement(_Popover, _extends({}, props, {
97
+ var popoverNode = React.createElement(Popover, _extends({}, props, {
102
98
  content: content || children,
103
99
  visible: tipVisible,
104
100
  onVisibleChange: function onVisibleChange(visible) {
@@ -111,7 +107,7 @@ export default (function (props) {
111
107
  },
112
108
  ref: elementRef
113
109
  }, children || content));
114
- var tooltipNode = React.createElement(_Tooltip, _extends({}, props, {
110
+ var tooltipNode = React.createElement(Tooltip, _extends({}, props, {
115
111
  title: title || children,
116
112
  visible: tipVisible,
117
113
  onVisibleChange: function onVisibleChange(visible) {
@@ -1,10 +1,3 @@
1
- import "antd/es/dropdown/style";
2
- import _Dropdown from "antd/es/dropdown";
3
- import "antd/es/menu/style";
4
- import _Menu from "antd/es/menu";
5
- import "antd/es/divider/style";
6
- import _Divider from "antd/es/divider";
7
-
8
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
9
2
 
10
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
@@ -12,6 +5,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
12
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
13
6
 
14
7
  import { Fragment } from 'react';
8
+ import { Dropdown, Menu, Divider } from 'antd';
15
9
  import Icon from '../Icon';
16
10
  import './index.less';
17
11
  var clsPrefix = 'tnt-more-menus';
@@ -60,16 +54,16 @@ export default (function (props) {
60
54
  return React.createElement(Fragment, {
61
55
  key: i
62
56
  }, dom, !(i === preChildLen - 1 && !((_lastChildPart = lastChildPart) == null ? void 0 : _lastChildPart.length) // 没有更多 且 是最后一个时 不显示 Divider
63
- ) && React.createElement(_Divider, {
57
+ ) && React.createElement(Divider, {
64
58
  type: "vertical"
65
59
  }));
66
60
  });
67
61
  }
68
62
 
69
- var menu = React.createElement(_Menu, {
63
+ var menu = React.createElement(Menu, {
70
64
  className: "org-pop-opera-btn"
71
65
  }, (_lastChildPart2 = lastChildPart) == null ? void 0 : _lastChildPart2.map(function (child, i) {
72
- return React.createElement(_Menu.Item, {
66
+ return React.createElement(Menu.Item, {
73
67
  key: i
74
68
  }, child);
75
69
  }));
@@ -77,7 +71,7 @@ export default (function (props) {
77
71
  onClick: function onClick(e) {
78
72
  e.stopPropagation();
79
73
  }
80
- }, rest), preChildPart, ((_lastChildPart3 = lastChildPart) == null ? void 0 : _lastChildPart3.length) > 0 && React.createElement(_Dropdown, {
74
+ }, rest), preChildPart, ((_lastChildPart3 = lastChildPart) == null ? void 0 : _lastChildPart3.length) > 0 && React.createElement(Dropdown, {
81
75
  overlay: menu,
82
76
  arrow: true
83
77
  }, type === 'icon' ? React.createElement(Icon, {