tntd 1.4.1 → 1.4.2

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,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
  {
package/dist/stats.json CHANGED
@@ -6,8 +6,8 @@
6
6
  ],
7
7
  "version": "4.46.0",
8
8
  "hash": "01628da4e6e50dd5026d",
9
- "time": 5933,
10
- "builtAt": 1648018091507,
9
+ "time": 4906,
10
+ "builtAt": 1648018968233,
11
11
  "publicPath": "",
12
12
  "outputPath": "/Users/zhangyou/tongdun/Projects/tntd/dist",
13
13
  "assetsByChunkName": {
@@ -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/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/ResizableTable/index.js",
2913
2913
  "issuerId": null,
2914
- "issuerName": "./components/Table/index.js",
2914
+ "issuerName": "./components/Table/ResizableTable/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/index.js",
2924
- "name": "./components/Table/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/ResizableTable/index.js",
2924
+ "name": "./components/Table/ResizableTable/index.js"
2925
2925
  }
2926
2926
  ],
2927
2927
  "failed": false,
@@ -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/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/ResizableTable/index.js",
5917
5917
  "issuerId": null,
5918
- "issuerName": "./components/Table/index.js",
5918
+ "issuerName": "./components/Table/ResizableTable/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/index.js",
5928
- "name": "./components/Table/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/ResizableTable/index.js",
5928
+ "name": "./components/Table/ResizableTable/index.js"
5929
5929
  }
5930
5930
  ],
5931
5931
  "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/ResizableBox.js",
7784
- "issuerId": 85,
7785
- "issuerName": "./node_modules/react-resizable/build/ResizableBox.js",
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",
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": 85,
7804
- "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/react-resizable/build/ResizableBox.js",
7805
- "name": "./node_modules/react-resizable/build/ResizableBox.js"
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"
7806
7806
  }
7807
7807
  ],
7808
7808
  "failed": false,
@@ -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/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/ResizableTable/index.js",
24360
24360
  "issuerId": null,
24361
- "issuerName": "./components/Table/index.js",
24361
+ "issuerName": "./components/Table/ResizableTable/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/index.js",
24371
- "name": "./components/Table/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/ResizableTable/index.js",
24371
+ "name": "./components/Table/ResizableTable/index.js"
24372
24372
  }
24373
24373
  ],
24374
24374
  "failed": false,
@@ -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/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/ResizableTable/index.js",
27364
27364
  "issuerId": null,
27365
- "issuerName": "./components/Table/index.js",
27365
+ "issuerName": "./components/Table/ResizableTable/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/index.js",
27375
- "name": "./components/Table/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/ResizableTable/index.js",
27375
+ "name": "./components/Table/ResizableTable/index.js"
27376
27376
  }
27377
27377
  ],
27378
27378
  "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/ResizableBox.js",
29231
- "issuerId": 85,
29232
- "issuerName": "./node_modules/react-resizable/build/ResizableBox.js",
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",
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": 85,
29251
- "identifier": "/Users/zhangyou/tongdun/Projects/tntd/node_modules/react-resizable/build/ResizableBox.js",
29252
- "name": "./node_modules/react-resizable/build/ResizableBox.js"
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"
29253
29253
  }
29254
29254
  ],
29255
29255
  "failed": false,
@@ -1,3 +1,12 @@
1
+ import "antd/lib/row/style";
2
+ import _Row from "antd/lib/row";
3
+ import "antd/lib/tooltip/style";
4
+ import _Tooltip from "antd/lib/tooltip";
5
+ import "antd/lib/col/style";
6
+ import _Col from "antd/lib/col";
7
+ import "antd/lib/table/style";
8
+ import _Table from "antd/lib/table";
9
+
1
10
  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; }
2
11
 
3
12
  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; }
@@ -25,11 +34,10 @@ function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) ||
25
34
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
26
35
 
27
36
  import React, { useEffect, useState, useCallback, isValidElement } from "react";
28
- import { Row, Col, Table, Tooltip } from "antd";
29
37
  import { isFunction, isArray, sumBy, sum, set, get } from "lodash";
30
38
  import { plusIcon, deleteIcon } from "./icon";
31
39
  import "./index.less";
32
- var Column = Table.Column;
40
+ var Column = _Table.Column;
33
41
 
34
42
  var getWidth = function getWidth(span) {
35
43
  return 1000 / span;
@@ -112,13 +120,13 @@ export default function ArrayInput(_ref) {
112
120
  fields = get(fields, "props.children", []);
113
121
  }
114
122
 
115
- return React.createElement(Row, {
123
+ return React.createElement(_Row, {
116
124
  gutter: gutter,
117
125
  key: index,
118
126
  className: "tntd-array-input-item"
119
127
  }, fields.map(function (field, i) {
120
128
  if (!isValidElement(field)) {
121
- return field ? React.createElement(Col, {
129
+ return field ? React.createElement(_Col, {
122
130
  span: 4,
123
131
  key: i
124
132
  }, field) : "";
@@ -131,7 +139,7 @@ export default function ArrayInput(_ref) {
131
139
  fieldChange = _ref2.onChange,
132
140
  other = _objectWithoutProperties(_ref2, ["name", "span", "onChange"]);
133
141
 
134
- return React.createElement(Col, {
142
+ return React.createElement(_Col, {
135
143
  span: span,
136
144
  key: i
137
145
  }, React.cloneElement(field, _objectSpread({
@@ -142,13 +150,13 @@ export default function ArrayInput(_ref) {
142
150
  changeValue(index, name, newValue);
143
151
  }
144
152
  }, other)));
145
- }), React.createElement(Col, {
153
+ }), React.createElement(_Col, {
146
154
  span: 24 - sum(fields.map(function (f) {
147
155
  return get(f, "props.span", 4);
148
156
  })) % 24
149
157
  }, React.createElement("span", {
150
158
  className: "tntd-array-input-action"
151
- }, plusTip ? React.createElement(Tooltip, {
159
+ }, plusTip ? React.createElement(_Tooltip, {
152
160
  title: plusTip,
153
161
  placement: "left"
154
162
  }, React.createElement("span", {
@@ -161,7 +169,7 @@ export default function ArrayInput(_ref) {
161
169
  onClick: function onClick() {
162
170
  return onAdd(index);
163
171
  }
164
- }, plusIcon), deleteTip ? React.createElement(Tooltip, {
172
+ }, plusIcon), deleteTip ? React.createElement(_Tooltip, {
165
173
  title: deleteTip,
166
174
  placement: "right"
167
175
  }, React.createElement("span", {
@@ -198,7 +206,7 @@ export default function ArrayInput(_ref) {
198
206
  });
199
207
  return React.createElement("div", {
200
208
  className: "tntd-array-input"
201
- }, React.createElement(Table, {
209
+ }, React.createElement(_Table, {
202
210
  dataSource: dataSource,
203
211
  pagination: false,
204
212
  locale: {
@@ -243,7 +251,7 @@ export default function ArrayInput(_ref) {
243
251
  render: function render(text, row, index) {
244
252
  return React.createElement("span", {
245
253
  className: "tntd-array-input-action"
246
- }, plusTip ? React.createElement(Tooltip, {
254
+ }, plusTip ? React.createElement(_Tooltip, {
247
255
  title: plusTip,
248
256
  placement: "left"
249
257
  }, React.createElement("span", {
@@ -256,7 +264,7 @@ export default function ArrayInput(_ref) {
256
264
  onClick: function onClick() {
257
265
  return onAdd(index);
258
266
  }
259
- }, plusIcon), deleteTip ? React.createElement(Tooltip, {
267
+ }, plusIcon), deleteTip ? React.createElement(_Tooltip, {
260
268
  title: deleteTip,
261
269
  placement: "right"
262
270
  }, React.createElement("span", {
@@ -1,3 +1,8 @@
1
+ import "antd/lib/row/style";
2
+ import _Row from "antd/lib/row";
3
+ import "antd/lib/col/style";
4
+ import _Col from "antd/lib/col";
5
+
1
6
  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); }
2
7
 
3
8
  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,7 +16,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
11
16
  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; }
12
17
 
13
18
  import classnames from 'classnames';
14
- import { Row, Col } from 'antd';
15
19
  import './index.less';
16
20
  var clsPrefix = 'tnt-columns';
17
21
  export var Item = function Item(props) {
@@ -25,7 +29,7 @@ export var Item = function Item(props) {
25
29
  tabType = props.tabType,
26
30
  onTabChange = props.onTabChange;
27
31
  var realActiveKey = activeTabKey || defaultActiveTabKey;
28
- return React.createElement(Col, {
32
+ return React.createElement(_Col, {
29
33
  className: "".concat(clsPrefix, "-col"),
30
34
  span: span < 4 ? 4 : span
31
35
  }, React.createElement("div", null, (!tabList || tabList.length < 0) && React.createElement("div", {
@@ -70,7 +74,7 @@ var Columns = function Columns(props) {
70
74
  height: props.height ? "".concat(props.height, "px") : 'calc(100vh)'
71
75
  });
72
76
 
73
- return React.createElement(Row, _extends({
77
+ return React.createElement(_Row, _extends({
74
78
  className: classnames(clsPrefix, {
75
79
  gutter: gutter
76
80
  }),
@@ -1,3 +1,12 @@
1
+ import "antd/lib/modal/style";
2
+ import _Modal from "antd/lib/modal";
3
+ import "antd/lib/form/style";
4
+ import _Form from "antd/lib/form";
5
+ import "antd/lib/input/style";
6
+ import _Input from "antd/lib/input";
7
+ import "antd/lib/message/style";
8
+ import _message from "antd/lib/message";
9
+
1
10
  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; }
2
11
 
3
12
  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; }
@@ -13,7 +22,6 @@ function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) ||
13
22
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
23
 
15
24
  import { useState } from 'react';
16
- import { Modal, Input, Form, message } from 'antd';
17
25
  import Cookies from 'universal-cookie';
18
26
  var cookies = new Cookies(); // 默认
19
27
 
@@ -54,7 +62,8 @@ export default (function (_ref) {
54
62
 
55
63
  if (returnVal && returnVal.then) {
56
64
  returnVal.then(function (res) {
57
- message.success('模拟登陆成功');
65
+ _message.success('模拟登陆成功');
66
+
58
67
  localStorage.setItem('accountInfo', JSON.stringify(accountInfo));
59
68
  setConfirmLoading(false);
60
69
  setTimeout(function () {
@@ -81,32 +90,32 @@ export default (function (_ref) {
81
90
  setAccountInfo(_objectSpread({}, accountInfo, _defineProperty({}, key, evt.target.value)));
82
91
  };
83
92
 
84
- return React.createElement(Modal, {
93
+ return React.createElement(_Modal, {
85
94
  title: "\u5F00\u53D1\u8005\u6A21\u62DF\u767B\u9646",
86
95
  visible: visible,
87
96
  maskClosable: false,
88
97
  onOk: onSubmit,
89
98
  onCancel: close,
90
99
  confirmLoading: confirmLoading
91
- }, React.createElement(Form, {
100
+ }, React.createElement(_Form, {
92
101
  labelCol: {
93
102
  span: 5
94
103
  },
95
104
  wrapperCol: {
96
105
  span: 18
97
106
  }
98
- }, React.createElement(Form.Item, {
107
+ }, React.createElement(_Form.Item, {
99
108
  label: "\u7528\u6237\u540D\uFF1A"
100
- }, React.createElement(Input, {
109
+ }, React.createElement(_Input, {
101
110
  type: "text",
102
111
  placeholder: "\u8BF7\u8F93\u5165\u7528\u6237\u540D",
103
112
  value: account || undefined,
104
113
  onChange: function onChange(evt) {
105
114
  return changeFieldValue('account', evt);
106
115
  }
107
- })), React.createElement(Form.Item, {
116
+ })), React.createElement(_Form.Item, {
108
117
  label: "\u5BC6\u7801\uFF1A"
109
- }, React.createElement(Input, {
118
+ }, React.createElement(_Input, {
110
119
  type: "text",
111
120
  placeholder: "\u8BF7\u8F93\u5165\u7528\u6237\u540D",
112
121
  value: password || undefined,
@@ -1,3 +1,8 @@
1
+ import "antd/lib/tooltip/style";
2
+ import _Tooltip from "antd/lib/tooltip";
3
+ import "antd/lib/popover/style";
4
+ import _Popover from "antd/lib/popover";
5
+
1
6
  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; }
2
7
 
3
8
  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; }
@@ -20,7 +25,6 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
25
  * @Describe: 省略号组件
21
26
  */
22
27
  import { useState, useEffect, useRef } from 'react';
23
- import { Popover, Tooltip } from 'antd';
24
28
  import copy from 'copy-to-clipboard';
25
29
  import CopySVG from './Svg/CopySVG';
26
30
  import TickSVG from './Svg/TickSVG';
@@ -94,7 +98,7 @@ export default (function (props) {
94
98
  };
95
99
 
96
100
  var renderNode = function renderNode() {
97
- var popoverNode = React.createElement(Popover, _extends({}, props, {
101
+ var popoverNode = React.createElement(_Popover, _extends({}, props, {
98
102
  content: content || children,
99
103
  visible: tipVisible,
100
104
  onVisibleChange: function onVisibleChange(visible) {
@@ -107,7 +111,7 @@ export default (function (props) {
107
111
  },
108
112
  ref: elementRef
109
113
  }, children || content));
110
- var tooltipNode = React.createElement(Tooltip, _extends({}, props, {
114
+ var tooltipNode = React.createElement(_Tooltip, _extends({}, props, {
111
115
  title: title || children,
112
116
  visible: tipVisible,
113
117
  onVisibleChange: function onVisibleChange(visible) {
@@ -1,3 +1,10 @@
1
+ import "antd/lib/dropdown/style";
2
+ import _Dropdown from "antd/lib/dropdown";
3
+ import "antd/lib/menu/style";
4
+ import _Menu from "antd/lib/menu";
5
+ import "antd/lib/divider/style";
6
+ import _Divider from "antd/lib/divider";
7
+
1
8
  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); }
2
9
 
3
10
  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; }
@@ -5,7 +12,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
5
12
  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; }
6
13
 
7
14
  import { Fragment } from 'react';
8
- import { Dropdown, Menu, Divider } from 'antd';
9
15
  import Icon from '../Icon';
10
16
  import './index.less';
11
17
  var clsPrefix = 'tnt-more-menus';
@@ -54,16 +60,16 @@ export default (function (props) {
54
60
  return React.createElement(Fragment, {
55
61
  key: i
56
62
  }, dom, !(i === preChildLen - 1 && !((_lastChildPart = lastChildPart) == null ? void 0 : _lastChildPart.length) // 没有更多 且 是最后一个时 不显示 Divider
57
- ) && React.createElement(Divider, {
63
+ ) && React.createElement(_Divider, {
58
64
  type: "vertical"
59
65
  }));
60
66
  });
61
67
  }
62
68
 
63
- var menu = React.createElement(Menu, {
69
+ var menu = React.createElement(_Menu, {
64
70
  className: "org-pop-opera-btn"
65
71
  }, (_lastChildPart2 = lastChildPart) == null ? void 0 : _lastChildPart2.map(function (child, i) {
66
- return React.createElement(Menu.Item, {
72
+ return React.createElement(_Menu.Item, {
67
73
  key: i
68
74
  }, child);
69
75
  }));
@@ -71,7 +77,7 @@ export default (function (props) {
71
77
  onClick: function onClick(e) {
72
78
  e.stopPropagation();
73
79
  }
74
- }, rest), preChildPart, ((_lastChildPart3 = lastChildPart) == null ? void 0 : _lastChildPart3.length) > 0 && React.createElement(Dropdown, {
80
+ }, rest), preChildPart, ((_lastChildPart3 = lastChildPart) == null ? void 0 : _lastChildPart3.length) > 0 && React.createElement(_Dropdown, {
75
81
  overlay: menu,
76
82
  arrow: true
77
83
  }, type === 'icon' ? React.createElement(Icon, {
@@ -1,3 +1,14 @@
1
+ import "antd/lib/dropdown/style";
2
+ import _Dropdown from "antd/lib/dropdown";
3
+ import "antd/lib/input/style";
4
+ import _Input from "antd/lib/input";
5
+ import "antd/lib/tree-select/style";
6
+ import _TreeSelect from "antd/lib/tree-select";
7
+ import "antd/lib/menu/style";
8
+ import _Menu from "antd/lib/menu";
9
+ import "antd/lib/select/style";
10
+ import _Select from "antd/lib/select";
11
+
1
12
  var _this = this;
2
13
 
3
14
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
@@ -52,18 +63,17 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
52
63
 
53
64
  import { useState, useEffect } from 'react';
54
65
  import styled, { withTheme } from 'styled-components';
55
- import { Dropdown, Menu, Input, Select, TreeSelect } from 'antd';
56
66
  import { get } from 'lodash';
57
67
  import Icon from '../Icon';
58
68
  import { getCurrentAppStore, setCurrentAppStore } from './storage';
59
69
  import { traverseTree } from './utils';
60
- var Option = Select.Option;
61
- var MenuList = styled(Menu)(_templateObject()); // 新版UI
70
+ var Option = _Select.Option;
71
+ var MenuList = styled(_Menu)(_templateObject()); // 新版UI
62
72
 
63
- var AppsSelect = styled(Select)(_templateObject2(), function (props) {
73
+ var AppsSelect = styled(_Select)(_templateObject2(), function (props) {
64
74
  return "".concat(props.theme.blueBgColor, " !important");
65
75
  });
66
- var AppTreeSelect = styled(TreeSelect)(_templateObject3());
76
+ var AppTreeSelect = styled(_TreeSelect)(_templateObject3());
67
77
  var SwitchAppMenu = styled.a(_templateObject4(), function (props) {
68
78
  return "".concat(props.theme.headerHeight, "px");
69
79
  }, function (props) {
@@ -111,11 +121,11 @@ export default withTheme(function (props) {
111
121
 
112
122
  var Menus = React.createElement(MenuList, {
113
123
  selectedKeys: [get(selectedApp, 'key')]
114
- }, React.createElement(Menu.Item, {
124
+ }, React.createElement(_Menu.Item, {
115
125
  className: "app-search-warp",
116
126
  key: "search",
117
127
  disabled: true
118
- }, React.createElement(Input, {
128
+ }, React.createElement(_Input, {
119
129
  allowClear: true,
120
130
  placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",
121
131
  value: searchValue,
@@ -135,7 +145,7 @@ export default withTheme(function (props) {
135
145
 
136
146
  return true;
137
147
  }).map(function (item) {
138
- return React.createElement(Menu.Item, {
148
+ return React.createElement(_Menu.Item, {
139
149
  key: item.key,
140
150
  onClick: changeApp.bind(_this, item)
141
151
  }, item.name);
@@ -214,7 +224,7 @@ export default withTheme(function (props) {
214
224
  }));
215
225
  }
216
226
 
217
- return React.createElement(Dropdown, {
227
+ return React.createElement(_Dropdown, {
218
228
  overlay: Menus,
219
229
  trigger: ['click']
220
230
  }, React.createElement(SwitchAppMenu, null, React.createElement("span", null, get(selectedApp, 'name', '请选择')), React.createElement(Icon, {
@@ -1,3 +1,6 @@
1
+ import "antd/lib/popover/style";
2
+ import _Popover from "antd/lib/popover";
3
+
1
4
  var _this = this;
2
5
 
3
6
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
@@ -53,7 +56,6 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
53
56
  import { useState } from 'react';
54
57
  import styled from 'styled-components';
55
58
  import cn from 'classnames';
56
- import { Popover } from 'antd';
57
59
  import { get } from 'lodash';
58
60
  import { systemMap as applicationsMap } from '@tntx/logo-icon';
59
61
  import Iconfont from './Iconfont';
@@ -102,7 +104,7 @@ var AppContent = function AppContent(props) {
102
104
  };
103
105
 
104
106
  export default (function (props) {
105
- return React.createElement(App, null, React.createElement(Popover, {
107
+ return React.createElement(App, null, React.createElement(_Popover, {
106
108
  placement: "bottomRight",
107
109
  title: null,
108
110
  content: React.createElement(AppContent, props),
@@ -1,3 +1,8 @@
1
+ import "antd/lib/popover/style";
2
+ import _Popover from "antd/lib/popover";
3
+ import "antd/lib/button/style";
4
+ import _Button from "antd/lib/button";
5
+
1
6
  function _templateObject3() {
2
7
  var data = _taggedTemplateLiteral(["\n min-width: 235px;\n z-index: 1;\n background-color: #fff;\n border-radius: 4px;\n\n .isInIframe & {\n display: none;\n }\n \n .user-info-body {\n padding: 30px 20px 20px 24px;\n line-height: 16px;\n .user-info-body-username {\n margin-top: 0px;\n font-size: 16px;\n color: #333;\n font-weight: normal;\n margin-bottom: 10px;\n line-height: 16px;\n }\n .user-info-body-account {\n margin-top: 0px;\n color: #666;\n margin-bottom: 14px;\n line-height: 16px;\n }\n a {\n margin-right: 16px;\n }\n }\n .user-info-footer {\n border-top: 1px solid #ccc;\n background-color: #f5f5f5;\n padding: 8px 20px;\n text-align: right;\n .user-info-footer-signout:hover {\n box-shadow: 0 2px 8px rgba(0, 0, 0, .1);\n border-color: #d9d9d9;\n color: rgba(0, 0, 0, 0.65);\n }\n }\n"]);
3
8
 
@@ -32,7 +37,6 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
32
37
 
33
38
  import { useContext } from 'react';
34
39
  import styled, { createGlobalStyle } from 'styled-components';
35
- import { Popover, Button } from 'antd';
36
40
  import deleteAllCookiesFactory from 'delete-all-cookies';
37
41
  import { get } from 'lodash';
38
42
  import images from './images';
@@ -72,7 +76,7 @@ var UserInfoContent = function UserInfoContent(props) {
72
76
  href: "/bridge/userCenter?currentTab=2"
73
77
  }, getText('changePwd'))), React.createElement("div", {
74
78
  className: "user-info-footer"
75
- }, React.createElement(Button, {
79
+ }, React.createElement(_Button, {
76
80
  className: "user-info-footer-signout",
77
81
  onClick: function onClick() {
78
82
  if (onLogout) {
@@ -92,7 +96,7 @@ export default (function (props) {
92
96
  var _props$userInfo = props.userInfo,
93
97
  userInfo = _props$userInfo === void 0 ? {} : _props$userInfo;
94
98
  var avatar = userInfo.avatar;
95
- return React.createElement(Avatar, null, React.createElement(Popover, {
99
+ return React.createElement(Avatar, null, React.createElement(_Popover, {
96
100
  popupClassName: "tnt-layout-personal-popover",
97
101
  placement: "bottomRight",
98
102
  title: null,
@@ -1,3 +1,6 @@
1
+ import "antd/lib/popover/style";
2
+ import _Popover from "antd/lib/popover";
3
+
1
4
  var _this = this;
2
5
 
3
6
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
@@ -53,7 +56,6 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
53
56
  import { useState } from 'react';
54
57
  import styled from 'styled-components';
55
58
  import cn from 'classnames';
56
- import { Popover } from 'antd';
57
59
  import { get } from 'lodash';
58
60
  import Icon from '../Icon';
59
61
  import images from './images';
@@ -166,7 +168,7 @@ export default (function (props) {
166
168
  return null;
167
169
  }
168
170
 
169
- return React.createElement(Theme, null, React.createElement(Popover, {
171
+ return React.createElement(Theme, null, React.createElement(_Popover, {
170
172
  placement: "bottomRight",
171
173
  title: null,
172
174
  content: React.createElement(ThemeContent, props),