@zat-design/sisyphus-react 3.4.2-beta.10 → 3.4.2-beta.12
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/dist/index.esm.css +7 -0
- package/es/ProEditTable/utils/config.js +5 -5
- package/es/ProEditTable/utils/index.js +32 -9
- package/es/ProForm/utils/useListChanged.js +1 -0
- package/es/ProIcon/index.d.ts +0 -1
- package/es/ProIcon/index.js +7 -29
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -0
- package/es/ProLayout/components/ProCollapse/index.js +17 -3
- package/es/ProLayout/components/ProCollapse/style/index.less +7 -0
- package/lib/ProEditTable/utils/config.js +5 -5
- package/lib/ProEditTable/utils/index.js +32 -9
- package/lib/ProForm/utils/useListChanged.js +1 -0
- package/lib/ProIcon/index.d.ts +0 -1
- package/lib/ProIcon/index.js +7 -30
- package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -0
- package/lib/ProLayout/components/ProCollapse/index.js +15 -3
- package/lib/ProLayout/components/ProCollapse/style/index.less +7 -0
- package/package.json +1 -1
- package/es/ProIcon/symbolIcon.js +0 -43
- package/lib/ProIcon/symbolIcon.js +0 -45
package/dist/index.esm.css
CHANGED
|
@@ -675,6 +675,13 @@
|
|
|
675
675
|
width: 12px;
|
|
676
676
|
margin-right: 0;
|
|
677
677
|
}
|
|
678
|
+
.pro-collapse .pro-collapse-icon {
|
|
679
|
+
max-width: 18px;
|
|
680
|
+
min-width: 16px;
|
|
681
|
+
}
|
|
682
|
+
.pro-collapse .pro-collapse-icon img {
|
|
683
|
+
vertical-align: sub;
|
|
684
|
+
}
|
|
678
685
|
.pro-collapse.pro-collapse-no-title .ant-collapse-header {
|
|
679
686
|
display: none !important;
|
|
680
687
|
}
|
|
@@ -190,11 +190,6 @@ export var actions = {
|
|
|
190
190
|
addData.isEditing = true;
|
|
191
191
|
}
|
|
192
192
|
insertType === 'before' ? nextData.unshift(addData) : nextData.push(addData);
|
|
193
|
-
form.setFieldValue(name, nextData);
|
|
194
|
-
(_tableRef$current$que = tableRef.current.querySelector(".".concat(prefixCls, "-table-body"))) === null || _tableRef$current$que === void 0 ? void 0 : (_tableRef$current$que2 = _tableRef$current$que.scrollTo) === null || _tableRef$current$que2 === void 0 ? void 0 : _tableRef$current$que2.call(_tableRef$current$que, {
|
|
195
|
-
top: 10000,
|
|
196
|
-
behavior: 'smooth'
|
|
197
|
-
});
|
|
198
193
|
// 当单选情况下,存储正在编辑值
|
|
199
194
|
if (virtualKey) {
|
|
200
195
|
nextEditingKeys = _toConsumableArray(editingKeys); // 开启编辑状态
|
|
@@ -204,6 +199,11 @@ export var actions = {
|
|
|
204
199
|
editingKeys: nextEditingKeys
|
|
205
200
|
});
|
|
206
201
|
}
|
|
202
|
+
form.setFieldValue(name, nextData);
|
|
203
|
+
(_tableRef$current$que = tableRef.current.querySelector(".".concat(prefixCls, "-table-body"))) === null || _tableRef$current$que === void 0 ? void 0 : (_tableRef$current$que2 = _tableRef$current$que.scrollTo) === null || _tableRef$current$que2 === void 0 ? void 0 : _tableRef$current$que2.call(_tableRef$current$que, {
|
|
204
|
+
top: insertType === 'before' ? -10000 : 10000,
|
|
205
|
+
behavior: 'smooth'
|
|
206
|
+
});
|
|
207
207
|
_context2.next = 14;
|
|
208
208
|
return form.validateFields([name]);
|
|
209
209
|
case 14:
|
|
@@ -100,7 +100,30 @@ var getActionColumn = function getActionColumn(config) {
|
|
|
100
100
|
setTimeout(function () {
|
|
101
101
|
var errorDom = document.querySelector('.ant-form-item-has-error');
|
|
102
102
|
if (errorDom) {
|
|
103
|
-
errorDom.
|
|
103
|
+
var tableBody = errorDom.closest('.ant-table-content') || errorDom.closest('.ant-table-body');
|
|
104
|
+
var tableCell = errorDom.closest('.ant-table-cell');
|
|
105
|
+
if (tableBody && tableCell) {
|
|
106
|
+
var previousSibling = tableCell.previousElementSibling;
|
|
107
|
+
var childOffsetLeft = 0;
|
|
108
|
+
var childFixedLeft = 0;
|
|
109
|
+
while (previousSibling) {
|
|
110
|
+
if (previousSibling.nodeType === 1) {
|
|
111
|
+
var _previousSibling, _previousSibling$clas, _previousSibling$clas2, _previousSibling$clas3;
|
|
112
|
+
var _ref2 = previousSibling.getBoundingClientRect() || {},
|
|
113
|
+
_ref2$width = _ref2.width,
|
|
114
|
+
width = _ref2$width === void 0 ? 0 : _ref2$width;
|
|
115
|
+
childOffsetLeft += width;
|
|
116
|
+
if ((_previousSibling = previousSibling) === null || _previousSibling === void 0 ? void 0 : (_previousSibling$clas = _previousSibling.classList) === null || _previousSibling$clas === void 0 ? void 0 : (_previousSibling$clas2 = (_previousSibling$clas3 = _previousSibling$clas).contains) === null || _previousSibling$clas2 === void 0 ? void 0 : _previousSibling$clas2.call(_previousSibling$clas3, 'ant-table-cell-fix-left')) {
|
|
117
|
+
childFixedLeft += width;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
previousSibling = previousSibling.previousElementSibling;
|
|
121
|
+
}
|
|
122
|
+
tableBody.scrollTo({
|
|
123
|
+
left: childOffsetLeft - childFixedLeft,
|
|
124
|
+
behavior: 'smooth'
|
|
125
|
+
});
|
|
126
|
+
}
|
|
104
127
|
}
|
|
105
128
|
}, 0);
|
|
106
129
|
return _context.abrupt("return", Promise.reject(_context.t0));
|
|
@@ -224,10 +247,10 @@ export var transformColumns = function transformColumns() {
|
|
|
224
247
|
if (typeof columnTitle === 'string') {
|
|
225
248
|
item.originTitle = columnTitle;
|
|
226
249
|
if (tooltip) {
|
|
227
|
-
var
|
|
228
|
-
tooltipTitle =
|
|
229
|
-
icon =
|
|
230
|
-
resetProps = _objectWithoutProperties(
|
|
250
|
+
var _ref3 = tooltip || {},
|
|
251
|
+
tooltipTitle = _ref3.title,
|
|
252
|
+
icon = _ref3.icon,
|
|
253
|
+
resetProps = _objectWithoutProperties(_ref3, _excluded2);
|
|
231
254
|
item.title = _jsxs("span", {
|
|
232
255
|
className: "pro-edit-table-title pro-edit-table-tooltip",
|
|
233
256
|
children: [before, columnTitle, _jsx(_Tooltip, _objectSpread(_objectSpread({
|
|
@@ -379,13 +402,13 @@ export var transformColumns = function transformColumns() {
|
|
|
379
402
|
// cacheMap 用来存储缓存值,若有值后不再请求
|
|
380
403
|
if (JSON.stringify(cacheMap.current) === '{}') {
|
|
381
404
|
Promise.all(Object.entries(_cacheMap).map( /*#__PURE__*/function () {
|
|
382
|
-
var
|
|
383
|
-
var _item, key, value,
|
|
405
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(item) {
|
|
406
|
+
var _item, key, value, _ref5, service, option;
|
|
384
407
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
385
408
|
while (1) switch (_context2.prev = _context2.next) {
|
|
386
409
|
case 0:
|
|
387
410
|
_item = _slicedToArray(item, 2), key = _item[0], value = _item[1];
|
|
388
|
-
|
|
411
|
+
_ref5 = (value === null || value === void 0 ? void 0 : value.useRequest) || {}, service = _ref5.service, option = _ref5.option;
|
|
389
412
|
if (!service) {
|
|
390
413
|
_context2.next = 8;
|
|
391
414
|
break;
|
|
@@ -405,7 +428,7 @@ export var transformColumns = function transformColumns() {
|
|
|
405
428
|
}, _callee2);
|
|
406
429
|
}));
|
|
407
430
|
return function (_x3) {
|
|
408
|
-
return
|
|
431
|
+
return _ref4.apply(this, arguments);
|
|
409
432
|
};
|
|
410
433
|
}())).then(function (res) {
|
|
411
434
|
res.forEach(function (item) {
|
|
@@ -27,6 +27,7 @@ var getOriginalValue = function getOriginalValue(_ref) {
|
|
|
27
27
|
var rowValueNamePath = namePath.slice(0, rowKeyPath.length - 1); // 表单中变动值所在行
|
|
28
28
|
var rowKeyName = rowKeyPath[rowKeyPath.length - 1]; // rowKey在行内的name
|
|
29
29
|
var rowValue = form.getFieldValue(rowValueNamePath);
|
|
30
|
+
if (!rowValue) return undefined;
|
|
30
31
|
var keyValue = rowValue[rowKeyName]; // 获取表单中rowKey值
|
|
31
32
|
if (!keyValue) return undefined;
|
|
32
33
|
var originalValueList = get(originalValues, originalName.slice(0, rowKeyPath.length - 2));
|
package/es/ProIcon/index.d.ts
CHANGED
package/es/ProIcon/index.js
CHANGED
|
@@ -4,38 +4,11 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
4
4
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
5
5
|
var _excluded = ["type", "onClick", "size", "color", "className", "style", "spin", "rotate", "theme", "disabled", "mode", "buttonProps", "children", "mapList"];
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { useExternal } from 'ahooks';
|
|
7
8
|
import classNames from 'classnames';
|
|
8
9
|
import { uniqBy } from 'lodash';
|
|
9
|
-
import { iconMap } from './config';
|
|
10
|
-
import symbolIcon from './symbolIcon';
|
|
11
10
|
import { useProConfig } from '../ProConfigProvider';
|
|
12
|
-
|
|
13
|
-
function isValidCustomScriptUrl(scriptUrl) {
|
|
14
|
-
return Boolean(typeof scriptUrl === 'string' && scriptUrl.length && !customCache.has(scriptUrl));
|
|
15
|
-
}
|
|
16
|
-
export function createScriptUrlElements(scriptUrls) {
|
|
17
|
-
var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
18
|
-
var currentScriptUrl = scriptUrls[index];
|
|
19
|
-
if (isValidCustomScriptUrl(currentScriptUrl)) {
|
|
20
|
-
var script = document.createElement('script');
|
|
21
|
-
script.setAttribute('src', currentScriptUrl);
|
|
22
|
-
script.setAttribute('data-namespace', currentScriptUrl);
|
|
23
|
-
if (scriptUrls.length > index + 1) {
|
|
24
|
-
script.onload = function () {
|
|
25
|
-
createScriptUrlElements(scriptUrls, index + 1);
|
|
26
|
-
};
|
|
27
|
-
script.onerror = function () {
|
|
28
|
-
createScriptUrlElements(scriptUrls, index + 1);
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
customCache.add(currentScriptUrl);
|
|
32
|
-
document.body.appendChild(script);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
// 加载内部icon
|
|
36
|
-
if (symbolIcon && typeof document !== 'undefined' && typeof window !== 'undefined' && typeof document.createElement === 'function') {
|
|
37
|
-
createScriptUrlElements([symbolIcon]);
|
|
38
|
-
}
|
|
11
|
+
import { iconMap } from './config';
|
|
39
12
|
var ProIcon = function ProIcon(props) {
|
|
40
13
|
var config = useProConfig('ProIcon') || {};
|
|
41
14
|
var _config = _objectSpread(_objectSpread({}, config), props !== null && props !== void 0 ? props : {});
|
|
@@ -62,6 +35,11 @@ var ProIcon = function ProIcon(props) {
|
|
|
62
35
|
_config$mapList = _config.mapList,
|
|
63
36
|
mapList = _config$mapList === void 0 ? [] : _config$mapList,
|
|
64
37
|
reset = _objectWithoutProperties(_config, _excluded);
|
|
38
|
+
// 加载内部icon
|
|
39
|
+
var status = useExternal('https://at.alicdn.com/t/c/font_4063056_jmnz9g5uycp.js');
|
|
40
|
+
if (status !== 'ready') {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
65
43
|
var rotateStyle = rotate ? {
|
|
66
44
|
msTransform: "rotate(".concat(rotate, "deg)"),
|
|
67
45
|
transform: "rotate(".concat(rotate, "deg)")
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import "antd/es/descriptions/style";
|
|
2
2
|
import _Descriptions from "antd/es/descriptions";
|
|
3
|
+
import "antd/es/space/style";
|
|
4
|
+
import _Space from "antd/es/space";
|
|
3
5
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
6
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
5
7
|
import "antd/es/collapse/style";
|
|
@@ -27,7 +29,8 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
27
29
|
folding = _props$folding === void 0 ? false : _props$folding,
|
|
28
30
|
collapseProps = props.collapseProps,
|
|
29
31
|
collapsePanelProps = props.collapsePanelProps,
|
|
30
|
-
className = props.className
|
|
32
|
+
className = props.className,
|
|
33
|
+
icon = props.icon;
|
|
31
34
|
var cls = classNames(_defineProperty({
|
|
32
35
|
'pro-collapse': true,
|
|
33
36
|
'pro-collapse-level2': level === '2',
|
|
@@ -40,6 +43,7 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
40
43
|
children: children
|
|
41
44
|
});
|
|
42
45
|
var renderPanel = function renderPanel() {
|
|
46
|
+
var _title = title;
|
|
43
47
|
if (level === '2') {
|
|
44
48
|
var level2Panel = classNames({
|
|
45
49
|
'pro-collapse-level2-collapse': towCollapse,
|
|
@@ -51,7 +55,7 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
51
55
|
hasCollapse.collapsible = 'disabled';
|
|
52
56
|
}
|
|
53
57
|
return _jsx(Panel, _objectSpread(_objectSpread(_objectSpread({
|
|
54
|
-
header:
|
|
58
|
+
header: _title,
|
|
55
59
|
className: level2Panel,
|
|
56
60
|
extra: _jsx("div", {
|
|
57
61
|
className: "extra-info",
|
|
@@ -62,8 +66,18 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
62
66
|
children: content
|
|
63
67
|
}), "1");
|
|
64
68
|
}
|
|
69
|
+
if (icon) {
|
|
70
|
+
_title = _jsxs(_Space, {
|
|
71
|
+
size: 8,
|
|
72
|
+
align: "center",
|
|
73
|
+
children: [_jsx("div", {
|
|
74
|
+
className: "pro-collapse-icon",
|
|
75
|
+
children: icon
|
|
76
|
+
}), title]
|
|
77
|
+
});
|
|
78
|
+
}
|
|
65
79
|
return _jsx(Panel, _objectSpread(_objectSpread({
|
|
66
|
-
header:
|
|
80
|
+
header: _title,
|
|
67
81
|
className: "pro-collapse-panel",
|
|
68
82
|
extra: _jsx("div", {
|
|
69
83
|
className: "extra-info",
|
|
@@ -196,11 +196,6 @@ var actions = exports.actions = {
|
|
|
196
196
|
addData.isEditing = true;
|
|
197
197
|
}
|
|
198
198
|
insertType === 'before' ? nextData.unshift(addData) : nextData.push(addData);
|
|
199
|
-
form.setFieldValue(name, nextData);
|
|
200
|
-
(_tableRef$current$que = tableRef.current.querySelector(".".concat(prefixCls, "-table-body"))) === null || _tableRef$current$que === void 0 ? void 0 : (_tableRef$current$que2 = _tableRef$current$que.scrollTo) === null || _tableRef$current$que2 === void 0 ? void 0 : _tableRef$current$que2.call(_tableRef$current$que, {
|
|
201
|
-
top: 10000,
|
|
202
|
-
behavior: 'smooth'
|
|
203
|
-
});
|
|
204
199
|
// 当单选情况下,存储正在编辑值
|
|
205
200
|
if (virtualKey) {
|
|
206
201
|
nextEditingKeys = (0, _toConsumableArray2.default)(editingKeys); // 开启编辑状态
|
|
@@ -210,6 +205,11 @@ var actions = exports.actions = {
|
|
|
210
205
|
editingKeys: nextEditingKeys
|
|
211
206
|
});
|
|
212
207
|
}
|
|
208
|
+
form.setFieldValue(name, nextData);
|
|
209
|
+
(_tableRef$current$que = tableRef.current.querySelector(".".concat(prefixCls, "-table-body"))) === null || _tableRef$current$que === void 0 ? void 0 : (_tableRef$current$que2 = _tableRef$current$que.scrollTo) === null || _tableRef$current$que2 === void 0 ? void 0 : _tableRef$current$que2.call(_tableRef$current$que, {
|
|
210
|
+
top: insertType === 'before' ? -10000 : 10000,
|
|
211
|
+
behavior: 'smooth'
|
|
212
|
+
});
|
|
213
213
|
_context2.next = 14;
|
|
214
214
|
return form.validateFields([name]);
|
|
215
215
|
case 14:
|
|
@@ -104,7 +104,30 @@ var getActionColumn = function getActionColumn(config) {
|
|
|
104
104
|
setTimeout(function () {
|
|
105
105
|
var errorDom = document.querySelector('.ant-form-item-has-error');
|
|
106
106
|
if (errorDom) {
|
|
107
|
-
errorDom.
|
|
107
|
+
var tableBody = errorDom.closest('.ant-table-content') || errorDom.closest('.ant-table-body');
|
|
108
|
+
var tableCell = errorDom.closest('.ant-table-cell');
|
|
109
|
+
if (tableBody && tableCell) {
|
|
110
|
+
var previousSibling = tableCell.previousElementSibling;
|
|
111
|
+
var childOffsetLeft = 0;
|
|
112
|
+
var childFixedLeft = 0;
|
|
113
|
+
while (previousSibling) {
|
|
114
|
+
if (previousSibling.nodeType === 1) {
|
|
115
|
+
var _previousSibling, _previousSibling$clas, _previousSibling$clas2, _previousSibling$clas3;
|
|
116
|
+
var _ref2 = previousSibling.getBoundingClientRect() || {},
|
|
117
|
+
_ref2$width = _ref2.width,
|
|
118
|
+
width = _ref2$width === void 0 ? 0 : _ref2$width;
|
|
119
|
+
childOffsetLeft += width;
|
|
120
|
+
if ((_previousSibling = previousSibling) === null || _previousSibling === void 0 ? void 0 : (_previousSibling$clas = _previousSibling.classList) === null || _previousSibling$clas === void 0 ? void 0 : (_previousSibling$clas2 = (_previousSibling$clas3 = _previousSibling$clas).contains) === null || _previousSibling$clas2 === void 0 ? void 0 : _previousSibling$clas2.call(_previousSibling$clas3, 'ant-table-cell-fix-left')) {
|
|
121
|
+
childFixedLeft += width;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
previousSibling = previousSibling.previousElementSibling;
|
|
125
|
+
}
|
|
126
|
+
tableBody.scrollTo({
|
|
127
|
+
left: childOffsetLeft - childFixedLeft,
|
|
128
|
+
behavior: 'smooth'
|
|
129
|
+
});
|
|
130
|
+
}
|
|
108
131
|
}
|
|
109
132
|
}, 0);
|
|
110
133
|
return _context.abrupt("return", Promise.reject(_context.t0));
|
|
@@ -228,10 +251,10 @@ var transformColumns = exports.transformColumns = function transformColumns() {
|
|
|
228
251
|
if (typeof columnTitle === 'string') {
|
|
229
252
|
item.originTitle = columnTitle;
|
|
230
253
|
if (tooltip) {
|
|
231
|
-
var
|
|
232
|
-
tooltipTitle =
|
|
233
|
-
icon =
|
|
234
|
-
resetProps = (0, _objectWithoutProperties2.default)(
|
|
254
|
+
var _ref3 = tooltip || {},
|
|
255
|
+
tooltipTitle = _ref3.title,
|
|
256
|
+
icon = _ref3.icon,
|
|
257
|
+
resetProps = (0, _objectWithoutProperties2.default)(_ref3, _excluded2);
|
|
235
258
|
item.title = (0, _jsxRuntime.jsxs)("span", {
|
|
236
259
|
className: "pro-edit-table-title pro-edit-table-tooltip",
|
|
237
260
|
children: [before, columnTitle, (0, _jsxRuntime.jsx)(_antd.Tooltip, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
@@ -383,13 +406,13 @@ var transformColumns = exports.transformColumns = function transformColumns() {
|
|
|
383
406
|
// cacheMap 用来存储缓存值,若有值后不再请求
|
|
384
407
|
if (JSON.stringify(cacheMap.current) === '{}') {
|
|
385
408
|
Promise.all(Object.entries(_cacheMap).map( /*#__PURE__*/function () {
|
|
386
|
-
var
|
|
387
|
-
var _item, key, value,
|
|
409
|
+
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(item) {
|
|
410
|
+
var _item, key, value, _ref5, service, option;
|
|
388
411
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
389
412
|
while (1) switch (_context2.prev = _context2.next) {
|
|
390
413
|
case 0:
|
|
391
414
|
_item = (0, _slicedToArray2.default)(item, 2), key = _item[0], value = _item[1];
|
|
392
|
-
|
|
415
|
+
_ref5 = (value === null || value === void 0 ? void 0 : value.useRequest) || {}, service = _ref5.service, option = _ref5.option;
|
|
393
416
|
if (!service) {
|
|
394
417
|
_context2.next = 8;
|
|
395
418
|
break;
|
|
@@ -409,7 +432,7 @@ var transformColumns = exports.transformColumns = function transformColumns() {
|
|
|
409
432
|
}, _callee2);
|
|
410
433
|
}));
|
|
411
434
|
return function (_x3) {
|
|
412
|
-
return
|
|
435
|
+
return _ref4.apply(this, arguments);
|
|
413
436
|
};
|
|
414
437
|
}())).then(function (res) {
|
|
415
438
|
res.forEach(function (item) {
|
|
@@ -32,6 +32,7 @@ var getOriginalValue = function getOriginalValue(_ref) {
|
|
|
32
32
|
var rowValueNamePath = namePath.slice(0, rowKeyPath.length - 1); // 表单中变动值所在行
|
|
33
33
|
var rowKeyName = rowKeyPath[rowKeyPath.length - 1]; // rowKey在行内的name
|
|
34
34
|
var rowValue = form.getFieldValue(rowValueNamePath);
|
|
35
|
+
if (!rowValue) return undefined;
|
|
35
36
|
var keyValue = rowValue[rowKeyName]; // 获取表单中rowKey值
|
|
36
37
|
if (!keyValue) return undefined;
|
|
37
38
|
var originalValueList = (0, _lodash.get)(originalValues, originalName.slice(0, rowKeyPath.length - 2));
|
package/lib/ProIcon/index.d.ts
CHANGED
package/lib/ProIcon/index.js
CHANGED
|
@@ -4,45 +4,17 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.createScriptUrlElements = createScriptUrlElements;
|
|
8
7
|
exports.default = void 0;
|
|
9
8
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
var _ahooks = require("ahooks");
|
|
12
12
|
var _antd = require("antd");
|
|
13
13
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
14
|
var _lodash = require("lodash");
|
|
15
|
-
var _config2 = require("./config");
|
|
16
|
-
var _symbolIcon = _interopRequireDefault(require("./symbolIcon"));
|
|
17
15
|
var _ProConfigProvider = require("../ProConfigProvider");
|
|
16
|
+
var _config2 = require("./config");
|
|
18
17
|
var _excluded = ["type", "onClick", "size", "color", "className", "style", "spin", "rotate", "theme", "disabled", "mode", "buttonProps", "children", "mapList"];
|
|
19
|
-
var customCache = new Set();
|
|
20
|
-
function isValidCustomScriptUrl(scriptUrl) {
|
|
21
|
-
return Boolean(typeof scriptUrl === 'string' && scriptUrl.length && !customCache.has(scriptUrl));
|
|
22
|
-
}
|
|
23
|
-
function createScriptUrlElements(scriptUrls) {
|
|
24
|
-
var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
25
|
-
var currentScriptUrl = scriptUrls[index];
|
|
26
|
-
if (isValidCustomScriptUrl(currentScriptUrl)) {
|
|
27
|
-
var script = document.createElement('script');
|
|
28
|
-
script.setAttribute('src', currentScriptUrl);
|
|
29
|
-
script.setAttribute('data-namespace', currentScriptUrl);
|
|
30
|
-
if (scriptUrls.length > index + 1) {
|
|
31
|
-
script.onload = function () {
|
|
32
|
-
createScriptUrlElements(scriptUrls, index + 1);
|
|
33
|
-
};
|
|
34
|
-
script.onerror = function () {
|
|
35
|
-
createScriptUrlElements(scriptUrls, index + 1);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
customCache.add(currentScriptUrl);
|
|
39
|
-
document.body.appendChild(script);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
// 加载内部icon
|
|
43
|
-
if (_symbolIcon.default && typeof document !== 'undefined' && typeof window !== 'undefined' && typeof document.createElement === 'function') {
|
|
44
|
-
createScriptUrlElements([_symbolIcon.default]);
|
|
45
|
-
}
|
|
46
18
|
var ProIcon = function ProIcon(props) {
|
|
47
19
|
var config = (0, _ProConfigProvider.useProConfig)('ProIcon') || {};
|
|
48
20
|
var _config = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, config), props !== null && props !== void 0 ? props : {});
|
|
@@ -69,6 +41,11 @@ var ProIcon = function ProIcon(props) {
|
|
|
69
41
|
_config$mapList = _config.mapList,
|
|
70
42
|
mapList = _config$mapList === void 0 ? [] : _config$mapList,
|
|
71
43
|
reset = (0, _objectWithoutProperties2.default)(_config, _excluded);
|
|
44
|
+
// 加载内部icon
|
|
45
|
+
var status = (0, _ahooks.useExternal)('https://at.alicdn.com/t/c/font_4063056_jmnz9g5uycp.js');
|
|
46
|
+
if (status !== 'ready') {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
72
49
|
var rotateStyle = rotate ? {
|
|
73
50
|
msTransform: "rotate(".concat(rotate, "deg)"),
|
|
74
51
|
transform: "rotate(".concat(rotate, "deg)")
|
|
@@ -31,7 +31,8 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
31
31
|
folding = _props$folding === void 0 ? false : _props$folding,
|
|
32
32
|
collapseProps = props.collapseProps,
|
|
33
33
|
collapsePanelProps = props.collapsePanelProps,
|
|
34
|
-
className = props.className
|
|
34
|
+
className = props.className,
|
|
35
|
+
icon = props.icon;
|
|
35
36
|
var cls = (0, _classnames.default)((0, _defineProperty2.default)({
|
|
36
37
|
'pro-collapse': true,
|
|
37
38
|
'pro-collapse-level2': level === '2',
|
|
@@ -44,6 +45,7 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
44
45
|
children: children
|
|
45
46
|
});
|
|
46
47
|
var renderPanel = function renderPanel() {
|
|
48
|
+
var _title = title;
|
|
47
49
|
if (level === '2') {
|
|
48
50
|
var level2Panel = (0, _classnames.default)({
|
|
49
51
|
'pro-collapse-level2-collapse': towCollapse,
|
|
@@ -55,7 +57,7 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
55
57
|
hasCollapse.collapsible = 'disabled';
|
|
56
58
|
}
|
|
57
59
|
return (0, _jsxRuntime.jsx)(Panel, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
58
|
-
header:
|
|
60
|
+
header: _title,
|
|
59
61
|
className: level2Panel,
|
|
60
62
|
extra: (0, _jsxRuntime.jsx)("div", {
|
|
61
63
|
className: "extra-info",
|
|
@@ -66,8 +68,18 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
66
68
|
children: content
|
|
67
69
|
}), "1");
|
|
68
70
|
}
|
|
71
|
+
if (icon) {
|
|
72
|
+
_title = (0, _jsxRuntime.jsxs)(_antd.Space, {
|
|
73
|
+
size: 8,
|
|
74
|
+
align: "center",
|
|
75
|
+
children: [(0, _jsxRuntime.jsx)("div", {
|
|
76
|
+
className: "pro-collapse-icon",
|
|
77
|
+
children: icon
|
|
78
|
+
}), title]
|
|
79
|
+
});
|
|
80
|
+
}
|
|
69
81
|
return (0, _jsxRuntime.jsx)(Panel, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
70
|
-
header:
|
|
82
|
+
header: _title,
|
|
71
83
|
className: "pro-collapse-panel",
|
|
72
84
|
extra: (0, _jsxRuntime.jsx)("div", {
|
|
73
85
|
className: "extra-info",
|
package/package.json
CHANGED
package/es/ProIcon/symbolIcon.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
window._iconfont_svg_string_4063056 = '<svg><symbol id="icon-lock" viewBox="0 0 1024 1024"><path d="M752.384 412.1088h-55.6544V300.3904C696.7296 183.6544 608.512 102.4 501.76 102.4 395.0592 102.4 306.8928 183.6544 306.8928 300.3904V407.04H251.1872c-27.8016 0-46.3872 25.344-46.3872 50.7392v385.8432c0 30.464 23.1936 50.7904 46.3872 50.7904h501.248c27.8016 0 46.3872-25.3952 46.3872-50.7904V462.848c0-30.464-18.5856-50.7392-46.4384-50.7392z m-222.72 253.8496v86.272c0 5.12-4.6592 5.12-4.6592 5.12h-41.7792c-4.608 0-4.608-5.12-4.608-5.12v-86.272c-23.2448-10.1888-37.12-30.464-37.12-55.8592 0-35.5328 27.8016-66.048 60.3136-66.048 32.4608 0 60.3136 30.5152 60.3136 66.048 0 25.3952-13.9264 45.6704-32.4608 55.808z m92.7744-253.8496H381.1328V295.3216c0-60.928 55.7056-111.6672 120.6784-111.6672 64.9728 0 120.6272 50.7392 120.6272 111.6672v116.736z" fill="#BCBCBC" ></path></symbol><symbol id="icon-drag" viewBox="0 0 1024 1024"><path d="M670.72 179.2m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M670.72 506.88m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M670.72 834.56m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M343.04 179.2m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M343.04 506.88m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M343.04 834.56m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path></symbol><symbol id="icon-plus" viewBox="0 0 1024 1024"><path d="M576 64H448v384H64v128h384v384h128V576h384V448H576z" ></path></symbol><symbol id="icon-zengjia" viewBox="0 0 1024 1024"><path d="M939.94 459.073h-377.6V83.519H462.055v375.554h-377.6v100.284h377.6v379.646H562.34V559.357h377.6z" fill="#272636" ></path></symbol><symbol id="icon-dot" viewBox="0 0 1024 1024"><path d="M512 624a112 112 0 1 0 0-224 112 112 0 0 0 0 224z" ></path></symbol><symbol id="icon-solid-close" viewBox="0 0 1024 1024"><path d="M516.707 66.513C272.86 66.513 75.16 264.212 75.16 508.06S272.86 949.607 516.707 949.607 958.254 751.91 958.254 508.06 760.556 66.513 516.707 66.513z m227.067 601.691c18.419 18.42 18.419 48.504 0 66.923s-48.504 18.42-66.923 0L516.707 574.983 356.563 735.127c-18.419 18.42-48.503 18.42-66.923 0s-18.419-48.504 0-66.923L449.784 508.06 289.64 347.916c-18.419-18.419-18.419-48.503 0-66.922 18.42-18.42 48.504-18.42 66.923 0l160.144 160.144 160.144-160.144c18.42-18.42 48.504-18.42 66.923 0 18.419 18.419 18.419 48.503 0 66.922L583.63 508.06l160.144 160.144z" ></path></symbol><symbol id="icon-arrow" viewBox="0 0 1024 1024"><path d="M832 0a192 192 0 0 1 192 192v640a192 192 0 0 1-192 192H192A192 192 0 0 1 0 832V192A192 192 0 0 1 192 0z m0 42.667H192A149.333 149.333 0 0 0 42.667 192v640A149.333 149.333 0 0 0 192 981.333h640A149.333 149.333 0 0 0 981.333 832V192A149.333 149.333 0 0 0 832 42.667z m-94.165 329.386l60.33 60.331L512 718.592 225.835 432.384l60.33-60.33L512 597.887l225.835-225.835z" ></path></symbol><symbol id="icon-delete" viewBox="0 0 1024 1024"><path d="M662.08 121.472v64H361.92v-64z m206.4 159.488v64H155.52v-64z" ></path><path d="M280.512 303.232l-0.064 530.816h460.096V303.232h64v594.88H216.512v-594.88z" ></path><path d="M431.424 440.704v337.728h-64V440.704z m225.152 0v337.728h-64V440.704z" ></path></symbol><symbol id="icon-catalog" viewBox="0 0 1075 1024"><path d="M1044.429 758.323v128.973H313.702V758.272h730.727z m-833.127 0v128.973H71.732V758.272h139.57zM1044.43 447.54v128.922H313.702V447.539h730.727z m-833.127 0v128.922H71.732V447.539h139.57z m833.127-310.784v128.922H313.702V136.704h730.727z m-833.127 0v128.922H71.732V136.704h139.57z" ></path></symbol><symbol id="icon-customColumn" viewBox="0 0 1024 1024"><path d="M170.368 128h0.576c28.288 0 42.368 14.848 42.368 44.608v678.784c0 29.76-14.08 44.608-42.368 44.608h-0.576C142.144 896 128 881.152 128 851.392V172.608c0-29.76 14.08-44.608 42.368-44.608z m682.752 0h0.576c28.224 0 42.368 14.848 42.368 44.608v678.784c0 29.76-14.08 44.608-42.368 44.608h-0.576c-28.288 0-42.368-14.848-42.368-44.608V172.608c0-29.76 14.08-44.608 42.368-44.608z m-453.632 0h225.024c38.784 0 58.176 20.16 58.176 60.416v647.168c0 40.32-19.392 60.416-58.176 60.416H399.488c-38.784 0-58.176-20.16-58.176-60.416V188.416c0-40.32 19.392-60.416 58.176-60.416z" ></path></symbol><symbol id="icon-copy" viewBox="0 0 1024 1024"><path d="M363.746 0h565.883c52.05 0 94.286 42.236 94.286 94.285V660.17c0 52.049-42.237 94.285-94.286 94.285H363.746c-52.05 0-94.286-42.236-94.286-94.285V94.285C269.46 42.236 311.697 0 363.746 0z m0 80.804a13.482 13.482 0 0 0-13.482 13.481V660.17c0 7.423 6.058 13.482 13.482 13.482h565.883c7.424 0 13.482-6.059 13.482-13.482V94.285a13.482 13.482 0 0 0-13.482-13.481H363.746z m309.905 754.54a40.445 40.445 0 1 1 80.803 0v94.37c0 52.05-42.236 94.286-94.285 94.286H94.285C42.236 1023.915 0 981.678 0 929.63V363.745c0-52.05 42.236-94.286 94.285-94.286h94.371a40.445 40.445 0 0 1 0 80.804h-94.37a13.482 13.482 0 0 0-13.482 13.482v565.883c0 7.424 6.058 13.482 13.481 13.482H660.17c7.423 0 13.482-6.058 13.482-13.482v-94.37z" ></path></symbol><symbol id="icon-drag-old" viewBox="0 0 1024 1024"><path d="M358.4 204.8m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 204.8m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 409.6m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 614.4m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 819.2m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 819.2m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 409.6m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 614.4m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path></symbol><symbol id="icon-disabled" viewBox="0 0 1024 1024"><path d="M752.384 412.1088h-55.6544V300.3904C696.7296 183.6544 608.512 102.4 501.76 102.4 395.0592 102.4 306.8928 183.6544 306.8928 300.3904V407.04H251.1872c-27.8016 0-46.3872 25.344-46.3872 50.7392v385.8432c0 30.464 23.1936 50.7904 46.3872 50.7904h501.248c27.8016 0 46.3872-25.3952 46.3872-50.7904V462.848c0-30.464-18.5856-50.7392-46.4384-50.7392z m-222.72 253.8496v86.272c0 5.12-4.6592 5.12-4.6592 5.12h-41.7792c-4.608 0-4.608-5.12-4.608-5.12v-86.272c-23.2448-10.1888-37.12-30.464-37.12-55.8592 0-35.5328 27.8016-66.048 60.3136-66.048 32.4608 0 60.3136 30.5152 60.3136 66.048 0 25.3952-13.9264 45.6704-32.4608 55.808z m92.7744-253.8496H381.1328V295.3216c0-60.928 55.7056-111.6672 120.6784-111.6672 64.9728 0 120.6272 50.7392 120.6272 111.6672v116.736z" ></path></symbol><symbol id="icon-tip" viewBox="0 0 1024 1024"><path d="M512 19.017a492.983 492.983 0 1 1-0.073 986.039A492.983 492.983 0 0 1 512 19.09z m0 48.786a444.27 444.27 0 1 0 0.073 888.467A444.27 444.27 0 0 0 512 67.803z m22.016 317.367c37.45 3.877 55.15 33.792 48.64 66.707l-78.41 259.072c-1.023 5.924 2.049 11.849 7.315 13.677 5.852 2.048 17.92-5.412 27.648-16.091l47.104-56.613c1.244 9.509-0.878 26.185-0.878 32.549-35.328 53.028-71.314 93.988-131.876 93.988-41.326-6.729-58.222-36.352-49.298-66.56l77.897-257.828c1.901-6.364-1.244-13.02-7.022-15.068-5.778-2.048-17.042 5.413-26.77 16.092l-47.031 56.612c-1.317-9.508-0.146-25.234-0.146-31.597 35.328-53.029 93.403-94.94 132.827-94.94z m40.96-144.823c29.77 0 53.906 21.724 53.906 53.614 0 31.964-24.137 53.614-53.906 53.614a52.297 52.297 0 0 1-53.906-53.614c0-31.89 24.137-53.614 53.906-53.614z" ></path></symbol><symbol id="icon-reset" viewBox="0 0 1024 1024"><path d="M482.464768 117.691733L364.363435 66.696533A49.288533 49.288533 0 0 0 325.314901 157.013333a417.9968 417.9968 0 0 0 53.8624 789.845334 49.288533 49.288533 0 0 0 25.668267-95.163734 319.624533 319.624533 0 0 1-29.559467-608.324266l-7.850666 18.158933a49.152 49.152 0 0 0 26.0096 64.580267 49.288533 49.288533 0 0 0 64.580266-24.9856l50.107734-118.9888a49.425067 49.425067 0 0 0-25.668267-64.512z m429.602133 421.410134A418.884267 418.884267 0 0 0 614.424235 126.839467a49.288533 49.288533 0 1 0-28.398934 94.344533 319.829333 319.829333 0 0 1 56.9344 589.824 49.152 49.152 0 0 0-86.152533-47.240533l-67.106133 109.431466a48.9472 48.9472 0 0 0 16.110933 67.925334l109.294933 67.9936a49.288533 49.288533 0 1 0 50.9952-83.7632l-15.018666-9.352534a418.679467 418.679467 0 0 0 261.051733-376.900266z" ></path></symbol><symbol id="icon-view" viewBox="0 0 1024 1024"><path d="M801.606 104.727a117.667 117.667 0 0 1 117.434 109.94l0.233 7.727v246.598a34.91 34.91 0 0 1-69.493 4.748l-0.325-4.748V222.394c0-24.669-18.619-44.963-42.636-47.57l-5.213-0.279H222.394c-24.669 0-44.963 18.619-47.57 42.636l-0.279 5.213v579.212c0 24.669 18.619 44.963 42.636 47.57l5.213 0.279h243.247a34.91 34.91 0 0 1 4.747 69.492l-4.747 0.326H222.394a117.667 117.667 0 0 1-117.434-109.94l-0.233-7.727V222.394a117.667 117.667 0 0 1 109.94-117.434l7.727-0.233h579.212zM448.559 585.728a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h116.364z m232.727-232.727a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h349.09z" ></path><path d="M699.764 490.356a186.182 186.182 0 1 1 0 372.364 186.182 186.182 0 0 1 0-372.364z m0 69.819a116.364 116.364 0 1 0 0 232.727 116.364 116.364 0 0 0 0-232.727z" ></path><path d="M798.673 769.35a34.91 34.91 0 0 1 49.339 0l82.292 82.246a34.91 34.91 0 1 1-49.338 49.384l-82.293-82.292a34.91 34.91 0 0 1 0-49.338z" ></path></symbol><symbol id="icon-search" viewBox="0 0 1024 1024"><path d="M801.606 104.727a117.667 117.667 0 0 1 117.434 109.94l0.233 7.727v246.598a34.91 34.91 0 0 1-69.493 4.748l-0.325-4.748V222.394c0-24.669-18.619-44.963-42.636-47.57l-5.213-0.279H222.394c-24.669 0-44.963 18.619-47.57 42.636l-0.279 5.213v579.212c0 24.669 18.619 44.963 42.636 47.57l5.213 0.279h243.247a34.91 34.91 0 0 1 4.747 69.492l-4.747 0.326H222.394a117.667 117.667 0 0 1-117.434-109.94l-0.233-7.727V222.394a117.667 117.667 0 0 1 109.94-117.434l7.727-0.233h579.212zM448.559 585.728a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h116.364z m232.727-232.727a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h349.09z" ></path><path d="M699.764 490.356a186.182 186.182 0 1 1 0 372.364 186.182 186.182 0 0 1 0-372.364z m0 69.819a116.364 116.364 0 1 0 0 232.727 116.364 116.364 0 0 0 0-232.727z" ></path><path d="M798.673 769.35a34.91 34.91 0 0 1 49.339 0l82.292 82.246a34.91 34.91 0 1 1-49.338 49.384l-82.293-82.292a34.91 34.91 0 0 1 0-49.338z" ></path></symbol></svg>', function (o) {
|
|
2
|
-
var t = (t = document.getElementsByTagName("script"))[t.length - 1],
|
|
3
|
-
a = t.getAttribute("data-injectcss"),
|
|
4
|
-
t = t.getAttribute("data-disable-injectsvg");
|
|
5
|
-
if (!t) {
|
|
6
|
-
var e,
|
|
7
|
-
_l,
|
|
8
|
-
h,
|
|
9
|
-
i,
|
|
10
|
-
c,
|
|
11
|
-
d = function d(t, a) {
|
|
12
|
-
a.parentNode.insertBefore(t, a);
|
|
13
|
-
};
|
|
14
|
-
if (a && !o.__iconfont__svg__cssinject__) {
|
|
15
|
-
o.__iconfont__svg__cssinject__ = !0;
|
|
16
|
-
try {
|
|
17
|
-
document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
|
|
18
|
-
} catch (t) {
|
|
19
|
-
console && console.log(t);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
e = function e() {
|
|
23
|
-
var t,
|
|
24
|
-
a = document.createElement("div");
|
|
25
|
-
a.innerHTML = o._iconfont_svg_string_4063056, (a = a.getElementsByTagName("svg")[0]) && (a.setAttribute("aria-hidden", "true"), a.style.position = "absolute", a.style.width = 0, a.style.height = 0, a.style.overflow = "hidden", a = a, (t = document.body).firstChild ? d(a, t.firstChild) : t.appendChild(a));
|
|
26
|
-
}, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(e, 0) : (_l = function l() {
|
|
27
|
-
document.removeEventListener("DOMContentLoaded", _l, !1), e();
|
|
28
|
-
}, document.addEventListener("DOMContentLoaded", _l, !1)) : document.attachEvent && (h = e, i = o.document, c = !1, n(), i.onreadystatechange = function () {
|
|
29
|
-
"complete" == i.readyState && (i.onreadystatechange = null, m());
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
function m() {
|
|
33
|
-
c || (c = !0, h());
|
|
34
|
-
}
|
|
35
|
-
function n() {
|
|
36
|
-
try {
|
|
37
|
-
i.documentElement.doScroll("left");
|
|
38
|
-
} catch (t) {
|
|
39
|
-
return void setTimeout(n, 50);
|
|
40
|
-
}
|
|
41
|
-
m();
|
|
42
|
-
}
|
|
43
|
-
}(window);
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
window._iconfont_svg_string_4063056 = '<svg><symbol id="icon-lock" viewBox="0 0 1024 1024"><path d="M752.384 412.1088h-55.6544V300.3904C696.7296 183.6544 608.512 102.4 501.76 102.4 395.0592 102.4 306.8928 183.6544 306.8928 300.3904V407.04H251.1872c-27.8016 0-46.3872 25.344-46.3872 50.7392v385.8432c0 30.464 23.1936 50.7904 46.3872 50.7904h501.248c27.8016 0 46.3872-25.3952 46.3872-50.7904V462.848c0-30.464-18.5856-50.7392-46.4384-50.7392z m-222.72 253.8496v86.272c0 5.12-4.6592 5.12-4.6592 5.12h-41.7792c-4.608 0-4.608-5.12-4.608-5.12v-86.272c-23.2448-10.1888-37.12-30.464-37.12-55.8592 0-35.5328 27.8016-66.048 60.3136-66.048 32.4608 0 60.3136 30.5152 60.3136 66.048 0 25.3952-13.9264 45.6704-32.4608 55.808z m92.7744-253.8496H381.1328V295.3216c0-60.928 55.7056-111.6672 120.6784-111.6672 64.9728 0 120.6272 50.7392 120.6272 111.6672v116.736z" fill="#BCBCBC" ></path></symbol><symbol id="icon-drag" viewBox="0 0 1024 1024"><path d="M670.72 179.2m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M670.72 506.88m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M670.72 834.56m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M343.04 179.2m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M343.04 506.88m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path><path d="M343.04 834.56m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z" fill="#939599" ></path></symbol><symbol id="icon-plus" viewBox="0 0 1024 1024"><path d="M576 64H448v384H64v128h384v384h128V576h384V448H576z" ></path></symbol><symbol id="icon-zengjia" viewBox="0 0 1024 1024"><path d="M939.94 459.073h-377.6V83.519H462.055v375.554h-377.6v100.284h377.6v379.646H562.34V559.357h377.6z" fill="#272636" ></path></symbol><symbol id="icon-dot" viewBox="0 0 1024 1024"><path d="M512 624a112 112 0 1 0 0-224 112 112 0 0 0 0 224z" ></path></symbol><symbol id="icon-solid-close" viewBox="0 0 1024 1024"><path d="M516.707 66.513C272.86 66.513 75.16 264.212 75.16 508.06S272.86 949.607 516.707 949.607 958.254 751.91 958.254 508.06 760.556 66.513 516.707 66.513z m227.067 601.691c18.419 18.42 18.419 48.504 0 66.923s-48.504 18.42-66.923 0L516.707 574.983 356.563 735.127c-18.419 18.42-48.503 18.42-66.923 0s-18.419-48.504 0-66.923L449.784 508.06 289.64 347.916c-18.419-18.419-18.419-48.503 0-66.922 18.42-18.42 48.504-18.42 66.923 0l160.144 160.144 160.144-160.144c18.42-18.42 48.504-18.42 66.923 0 18.419 18.419 18.419 48.503 0 66.922L583.63 508.06l160.144 160.144z" ></path></symbol><symbol id="icon-arrow" viewBox="0 0 1024 1024"><path d="M832 0a192 192 0 0 1 192 192v640a192 192 0 0 1-192 192H192A192 192 0 0 1 0 832V192A192 192 0 0 1 192 0z m0 42.667H192A149.333 149.333 0 0 0 42.667 192v640A149.333 149.333 0 0 0 192 981.333h640A149.333 149.333 0 0 0 981.333 832V192A149.333 149.333 0 0 0 832 42.667z m-94.165 329.386l60.33 60.331L512 718.592 225.835 432.384l60.33-60.33L512 597.887l225.835-225.835z" ></path></symbol><symbol id="icon-delete" viewBox="0 0 1024 1024"><path d="M662.08 121.472v64H361.92v-64z m206.4 159.488v64H155.52v-64z" ></path><path d="M280.512 303.232l-0.064 530.816h460.096V303.232h64v594.88H216.512v-594.88z" ></path><path d="M431.424 440.704v337.728h-64V440.704z m225.152 0v337.728h-64V440.704z" ></path></symbol><symbol id="icon-catalog" viewBox="0 0 1075 1024"><path d="M1044.429 758.323v128.973H313.702V758.272h730.727z m-833.127 0v128.973H71.732V758.272h139.57zM1044.43 447.54v128.922H313.702V447.539h730.727z m-833.127 0v128.922H71.732V447.539h139.57z m833.127-310.784v128.922H313.702V136.704h730.727z m-833.127 0v128.922H71.732V136.704h139.57z" ></path></symbol><symbol id="icon-customColumn" viewBox="0 0 1024 1024"><path d="M170.368 128h0.576c28.288 0 42.368 14.848 42.368 44.608v678.784c0 29.76-14.08 44.608-42.368 44.608h-0.576C142.144 896 128 881.152 128 851.392V172.608c0-29.76 14.08-44.608 42.368-44.608z m682.752 0h0.576c28.224 0 42.368 14.848 42.368 44.608v678.784c0 29.76-14.08 44.608-42.368 44.608h-0.576c-28.288 0-42.368-14.848-42.368-44.608V172.608c0-29.76 14.08-44.608 42.368-44.608z m-453.632 0h225.024c38.784 0 58.176 20.16 58.176 60.416v647.168c0 40.32-19.392 60.416-58.176 60.416H399.488c-38.784 0-58.176-20.16-58.176-60.416V188.416c0-40.32 19.392-60.416 58.176-60.416z" ></path></symbol><symbol id="icon-copy" viewBox="0 0 1024 1024"><path d="M363.746 0h565.883c52.05 0 94.286 42.236 94.286 94.285V660.17c0 52.049-42.237 94.285-94.286 94.285H363.746c-52.05 0-94.286-42.236-94.286-94.285V94.285C269.46 42.236 311.697 0 363.746 0z m0 80.804a13.482 13.482 0 0 0-13.482 13.481V660.17c0 7.423 6.058 13.482 13.482 13.482h565.883c7.424 0 13.482-6.059 13.482-13.482V94.285a13.482 13.482 0 0 0-13.482-13.481H363.746z m309.905 754.54a40.445 40.445 0 1 1 80.803 0v94.37c0 52.05-42.236 94.286-94.285 94.286H94.285C42.236 1023.915 0 981.678 0 929.63V363.745c0-52.05 42.236-94.286 94.285-94.286h94.371a40.445 40.445 0 0 1 0 80.804h-94.37a13.482 13.482 0 0 0-13.482 13.482v565.883c0 7.424 6.058 13.482 13.481 13.482H660.17c7.423 0 13.482-6.058 13.482-13.482v-94.37z" ></path></symbol><symbol id="icon-drag-old" viewBox="0 0 1024 1024"><path d="M358.4 204.8m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 204.8m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 409.6m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 614.4m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 819.2m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 819.2m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 409.6m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 614.4m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path></symbol><symbol id="icon-disabled" viewBox="0 0 1024 1024"><path d="M752.384 412.1088h-55.6544V300.3904C696.7296 183.6544 608.512 102.4 501.76 102.4 395.0592 102.4 306.8928 183.6544 306.8928 300.3904V407.04H251.1872c-27.8016 0-46.3872 25.344-46.3872 50.7392v385.8432c0 30.464 23.1936 50.7904 46.3872 50.7904h501.248c27.8016 0 46.3872-25.3952 46.3872-50.7904V462.848c0-30.464-18.5856-50.7392-46.4384-50.7392z m-222.72 253.8496v86.272c0 5.12-4.6592 5.12-4.6592 5.12h-41.7792c-4.608 0-4.608-5.12-4.608-5.12v-86.272c-23.2448-10.1888-37.12-30.464-37.12-55.8592 0-35.5328 27.8016-66.048 60.3136-66.048 32.4608 0 60.3136 30.5152 60.3136 66.048 0 25.3952-13.9264 45.6704-32.4608 55.808z m92.7744-253.8496H381.1328V295.3216c0-60.928 55.7056-111.6672 120.6784-111.6672 64.9728 0 120.6272 50.7392 120.6272 111.6672v116.736z" ></path></symbol><symbol id="icon-tip" viewBox="0 0 1024 1024"><path d="M512 19.017a492.983 492.983 0 1 1-0.073 986.039A492.983 492.983 0 0 1 512 19.09z m0 48.786a444.27 444.27 0 1 0 0.073 888.467A444.27 444.27 0 0 0 512 67.803z m22.016 317.367c37.45 3.877 55.15 33.792 48.64 66.707l-78.41 259.072c-1.023 5.924 2.049 11.849 7.315 13.677 5.852 2.048 17.92-5.412 27.648-16.091l47.104-56.613c1.244 9.509-0.878 26.185-0.878 32.549-35.328 53.028-71.314 93.988-131.876 93.988-41.326-6.729-58.222-36.352-49.298-66.56l77.897-257.828c1.901-6.364-1.244-13.02-7.022-15.068-5.778-2.048-17.042 5.413-26.77 16.092l-47.031 56.612c-1.317-9.508-0.146-25.234-0.146-31.597 35.328-53.029 93.403-94.94 132.827-94.94z m40.96-144.823c29.77 0 53.906 21.724 53.906 53.614 0 31.964-24.137 53.614-53.906 53.614a52.297 52.297 0 0 1-53.906-53.614c0-31.89 24.137-53.614 53.906-53.614z" ></path></symbol><symbol id="icon-reset" viewBox="0 0 1024 1024"><path d="M482.464768 117.691733L364.363435 66.696533A49.288533 49.288533 0 0 0 325.314901 157.013333a417.9968 417.9968 0 0 0 53.8624 789.845334 49.288533 49.288533 0 0 0 25.668267-95.163734 319.624533 319.624533 0 0 1-29.559467-608.324266l-7.850666 18.158933a49.152 49.152 0 0 0 26.0096 64.580267 49.288533 49.288533 0 0 0 64.580266-24.9856l50.107734-118.9888a49.425067 49.425067 0 0 0-25.668267-64.512z m429.602133 421.410134A418.884267 418.884267 0 0 0 614.424235 126.839467a49.288533 49.288533 0 1 0-28.398934 94.344533 319.829333 319.829333 0 0 1 56.9344 589.824 49.152 49.152 0 0 0-86.152533-47.240533l-67.106133 109.431466a48.9472 48.9472 0 0 0 16.110933 67.925334l109.294933 67.9936a49.288533 49.288533 0 1 0 50.9952-83.7632l-15.018666-9.352534a418.679467 418.679467 0 0 0 261.051733-376.900266z" ></path></symbol><symbol id="icon-view" viewBox="0 0 1024 1024"><path d="M801.606 104.727a117.667 117.667 0 0 1 117.434 109.94l0.233 7.727v246.598a34.91 34.91 0 0 1-69.493 4.748l-0.325-4.748V222.394c0-24.669-18.619-44.963-42.636-47.57l-5.213-0.279H222.394c-24.669 0-44.963 18.619-47.57 42.636l-0.279 5.213v579.212c0 24.669 18.619 44.963 42.636 47.57l5.213 0.279h243.247a34.91 34.91 0 0 1 4.747 69.492l-4.747 0.326H222.394a117.667 117.667 0 0 1-117.434-109.94l-0.233-7.727V222.394a117.667 117.667 0 0 1 109.94-117.434l7.727-0.233h579.212zM448.559 585.728a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h116.364z m232.727-232.727a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h349.09z" ></path><path d="M699.764 490.356a186.182 186.182 0 1 1 0 372.364 186.182 186.182 0 0 1 0-372.364z m0 69.819a116.364 116.364 0 1 0 0 232.727 116.364 116.364 0 0 0 0-232.727z" ></path><path d="M798.673 769.35a34.91 34.91 0 0 1 49.339 0l82.292 82.246a34.91 34.91 0 1 1-49.338 49.384l-82.293-82.292a34.91 34.91 0 0 1 0-49.338z" ></path></symbol><symbol id="icon-search" viewBox="0 0 1024 1024"><path d="M801.606 104.727a117.667 117.667 0 0 1 117.434 109.94l0.233 7.727v246.598a34.91 34.91 0 0 1-69.493 4.748l-0.325-4.748V222.394c0-24.669-18.619-44.963-42.636-47.57l-5.213-0.279H222.394c-24.669 0-44.963 18.619-47.57 42.636l-0.279 5.213v579.212c0 24.669 18.619 44.963 42.636 47.57l5.213 0.279h243.247a34.91 34.91 0 0 1 4.747 69.492l-4.747 0.326H222.394a117.667 117.667 0 0 1-117.434-109.94l-0.233-7.727V222.394a117.667 117.667 0 0 1 109.94-117.434l7.727-0.233h579.212zM448.559 585.728a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h116.364z m232.727-232.727a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h349.09z" ></path><path d="M699.764 490.356a186.182 186.182 0 1 1 0 372.364 186.182 186.182 0 0 1 0-372.364z m0 69.819a116.364 116.364 0 1 0 0 232.727 116.364 116.364 0 0 0 0-232.727z" ></path><path d="M798.673 769.35a34.91 34.91 0 0 1 49.339 0l82.292 82.246a34.91 34.91 0 1 1-49.338 49.384l-82.293-82.292a34.91 34.91 0 0 1 0-49.338z" ></path></symbol></svg>', function (o) {
|
|
4
|
-
var t = (t = document.getElementsByTagName("script"))[t.length - 1],
|
|
5
|
-
a = t.getAttribute("data-injectcss"),
|
|
6
|
-
t = t.getAttribute("data-disable-injectsvg");
|
|
7
|
-
if (!t) {
|
|
8
|
-
var e,
|
|
9
|
-
_l,
|
|
10
|
-
h,
|
|
11
|
-
i,
|
|
12
|
-
c,
|
|
13
|
-
d = function d(t, a) {
|
|
14
|
-
a.parentNode.insertBefore(t, a);
|
|
15
|
-
};
|
|
16
|
-
if (a && !o.__iconfont__svg__cssinject__) {
|
|
17
|
-
o.__iconfont__svg__cssinject__ = !0;
|
|
18
|
-
try {
|
|
19
|
-
document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
|
|
20
|
-
} catch (t) {
|
|
21
|
-
console && console.log(t);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
e = function e() {
|
|
25
|
-
var t,
|
|
26
|
-
a = document.createElement("div");
|
|
27
|
-
a.innerHTML = o._iconfont_svg_string_4063056, (a = a.getElementsByTagName("svg")[0]) && (a.setAttribute("aria-hidden", "true"), a.style.position = "absolute", a.style.width = 0, a.style.height = 0, a.style.overflow = "hidden", a = a, (t = document.body).firstChild ? d(a, t.firstChild) : t.appendChild(a));
|
|
28
|
-
}, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(e, 0) : (_l = function l() {
|
|
29
|
-
document.removeEventListener("DOMContentLoaded", _l, !1), e();
|
|
30
|
-
}, document.addEventListener("DOMContentLoaded", _l, !1)) : document.attachEvent && (h = e, i = o.document, c = !1, n(), i.onreadystatechange = function () {
|
|
31
|
-
"complete" == i.readyState && (i.onreadystatechange = null, m());
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function m() {
|
|
35
|
-
c || (c = !0, h());
|
|
36
|
-
}
|
|
37
|
-
function n() {
|
|
38
|
-
try {
|
|
39
|
-
i.documentElement.doScroll("left");
|
|
40
|
-
} catch (t) {
|
|
41
|
-
return void setTimeout(n, 50);
|
|
42
|
-
}
|
|
43
|
-
m();
|
|
44
|
-
}
|
|
45
|
-
}(window);
|