@zgfe/business-lib 1.1.56-cdp.2 → 1.1.56
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/es/assets/demo/input.js
CHANGED
|
@@ -4,7 +4,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
5
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import { Button, Divider, Form, Input, Radio } from 'antd';
|
|
7
|
+
import { Button, Card, Divider, Form, Input, Radio } from 'antd';
|
|
8
8
|
import React, { useState } from 'react';
|
|
9
9
|
import { IconFont } from '@zgfe/business-lib';
|
|
10
10
|
import AssetsDemo from '.';
|
|
@@ -13,7 +13,9 @@ export default (function () {
|
|
|
13
13
|
_useState2 = _slicedToArray(_useState, 2),
|
|
14
14
|
size = _useState2[0],
|
|
15
15
|
setSize = _useState2[1];
|
|
16
|
-
return /*#__PURE__*/React.createElement(AssetsDemo, null, /*#__PURE__*/React.createElement(
|
|
16
|
+
return /*#__PURE__*/React.createElement(AssetsDemo, null, /*#__PURE__*/React.createElement(Card, {
|
|
17
|
+
title: "Input"
|
|
18
|
+
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
17
19
|
onChange: function onChange(e) {
|
|
18
20
|
setSize(e.target.value);
|
|
19
21
|
},
|
|
@@ -55,5 +57,5 @@ export default (function () {
|
|
|
55
57
|
addonAfter: ".com",
|
|
56
58
|
defaultValue: "mysite",
|
|
57
59
|
size: size
|
|
58
|
-
}));
|
|
60
|
+
})));
|
|
59
61
|
});
|
|
@@ -414,10 +414,10 @@
|
|
|
414
414
|
|
|
415
415
|
.ant-table-container {
|
|
416
416
|
.ant-table-thead > tr > th {
|
|
417
|
-
color: @text-color;
|
|
418
|
-
line-height: 16px;
|
|
419
|
-
background: @background-color-base;
|
|
420
|
-
border
|
|
417
|
+
color: @text-color!important;
|
|
418
|
+
line-height: 16px !important;
|
|
419
|
+
background: @background-color-base!important;
|
|
420
|
+
border: none !important;
|
|
421
421
|
|
|
422
422
|
&::before {
|
|
423
423
|
width: 0 !important;
|
|
@@ -425,21 +425,21 @@
|
|
|
425
425
|
}
|
|
426
426
|
|
|
427
427
|
.ant-table-tbody {
|
|
428
|
-
color: @text-color-secondary;
|
|
428
|
+
color: @text-color-secondary!important;
|
|
429
429
|
}
|
|
430
430
|
|
|
431
431
|
.ant-table-tbody > tr:not(:last-child) > td {
|
|
432
|
-
border-bottom: 1px solid @border-color-base;
|
|
432
|
+
border-bottom: 1px solid @border-color-base!important;
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
.ant-table-tbody > tr > td {
|
|
436
|
-
line-height: 15px;
|
|
436
|
+
line-height: 15px !important;
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
.ant-table-tbody > tr.ant-table-row:hover > td,
|
|
441
441
|
.ant-table-tbody > tr > td.ant-table-cell-row-hover {
|
|
442
|
-
background: @primary-color-hover;
|
|
442
|
+
background: @primary-color-hover !important;
|
|
443
443
|
}
|
|
444
444
|
.ant-table-thead {
|
|
445
445
|
.ant-table-cell {
|
|
@@ -22,6 +22,9 @@ var tooltipFormatterDefault = function tooltipFormatterDefault(params) {
|
|
|
22
22
|
lineLabel = util.toThousands(lineLabel);
|
|
23
23
|
}
|
|
24
24
|
var name = item.seriesName.trim();
|
|
25
|
+
if (item.seriesType === 'bar' && params.length === 1 && !name) {
|
|
26
|
+
name = (item.data && item.data.label ? item.data.label : item.name).trim();
|
|
27
|
+
}
|
|
25
28
|
htmlArray.push("<div class=\"biz-chart-tooltip-item\">\n <div class=\"biz-chart-tooltip-content\">\n <span class=\"biz-tooltip-marker\" style=\"background:".concat(item.color, "\"></span>\n <div class=\"biz-tooltip-name\">").concat(name, "</div>\n </div> \n <span class=\"biz-chart-tooltip-value\">").concat(lineLabel, "</span>\n </div>"));
|
|
26
29
|
});
|
|
27
30
|
return htmlArray.join('');
|
package/es/utils/ajax.js
CHANGED
|
@@ -77,10 +77,11 @@ export function responseErrorHandler(url, apiResult, errorTitle, notifyType) {
|
|
|
77
77
|
if (new RegExp("".concat(ResponseStatus.success, "$")).test(apiResult.code)) {
|
|
78
78
|
flag = true;
|
|
79
79
|
} else if (new RegExp("".concat(ResponseStatus.notLogin)).test(apiResult.code)) {
|
|
80
|
-
|
|
80
|
+
message.error('账户未登录或登录已失效');
|
|
81
81
|
flag = true;
|
|
82
82
|
} else if (new RegExp("".concat(ResponseStatus.noPermission)).test(apiResult.code)) {
|
|
83
83
|
msg = '账户没有权限';
|
|
84
|
+
message.error('账户没有权限');
|
|
84
85
|
flag = true;
|
|
85
86
|
}
|
|
86
87
|
if (!flag) {
|
|
@@ -89,7 +90,6 @@ export function responseErrorHandler(url, apiResult, errorTitle, notifyType) {
|
|
|
89
90
|
message: errorTitle || "\u8BF7\u6C42\u9519\u8BEF",
|
|
90
91
|
description: msg
|
|
91
92
|
});
|
|
92
|
-
message.error(msg);
|
|
93
93
|
throw new Error(msg);
|
|
94
94
|
}
|
|
95
95
|
return apiResult;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.1.56
|
|
3
|
+
"version": "1.1.56",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"react": "^16.12.0 || ^17.0.0",
|
|
61
61
|
"yorkie": "^2.0.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "022374395fa1a59b4e84732d9f532c65cb332bee"
|
|
64
64
|
}
|
package/es/assets/demo/table.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import AssetsDemo from '.';
|
|
3
|
-
import { Table } from 'antd';
|
|
4
|
-
export default (function () {
|
|
5
|
-
return /*#__PURE__*/React.createElement(AssetsDemo, null, /*#__PURE__*/React.createElement(Table, {
|
|
6
|
-
columns: [{
|
|
7
|
-
title: '姓名',
|
|
8
|
-
dataIndex: 'name',
|
|
9
|
-
key: 'name'
|
|
10
|
-
}, {
|
|
11
|
-
title: '年龄',
|
|
12
|
-
dataIndex: 'age',
|
|
13
|
-
key: 'age'
|
|
14
|
-
}, {
|
|
15
|
-
title: '住址',
|
|
16
|
-
dataIndex: 'address',
|
|
17
|
-
key: 'address'
|
|
18
|
-
}],
|
|
19
|
-
dataSource: [{
|
|
20
|
-
key: '1',
|
|
21
|
-
name: 'John Brown',
|
|
22
|
-
age: 32,
|
|
23
|
-
address: 'New York No. 1 Lake Park'
|
|
24
|
-
}, {
|
|
25
|
-
key: '2',
|
|
26
|
-
name: 'Jim Green',
|
|
27
|
-
age: 42,
|
|
28
|
-
address: 'London No. 1 Lake Park'
|
|
29
|
-
}, {
|
|
30
|
-
key: '3',
|
|
31
|
-
name: 'Joe Black',
|
|
32
|
-
age: 32,
|
|
33
|
-
address: 'Sidney No. 1 Lake Park'
|
|
34
|
-
}, {
|
|
35
|
-
key: '4',
|
|
36
|
-
name: 'Disabled User',
|
|
37
|
-
age: 99,
|
|
38
|
-
address: 'Sidney No. 1 Lake Park'
|
|
39
|
-
}]
|
|
40
|
-
}));
|
|
41
|
-
});
|