@zgfe/business-lib 1.1.55-beta.7 → 1.1.55-beta.9
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/picker.d.ts +2 -0
- package/es/assets/demo/picker.js +22 -0
- package/es/assets/styles/resetAntd.less +1 -7
- package/es/demoWrapper/index.js +2 -2
- package/es/targetConditionGroup/styles/index.less +3 -0
- package/es/targetSelector/styles/index.less +3 -0
- package/es/utils/ajax.js +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Card, DatePicker, Space } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import AssetsDemo from '.';
|
|
4
|
+
var RangePicker = DatePicker.RangePicker;
|
|
5
|
+
export default (function () {
|
|
6
|
+
return /*#__PURE__*/React.createElement(AssetsDemo, null, /*#__PURE__*/React.createElement(Card, {
|
|
7
|
+
title: "Input"
|
|
8
|
+
}, /*#__PURE__*/React.createElement(Space, {
|
|
9
|
+
direction: "vertical",
|
|
10
|
+
size: 12
|
|
11
|
+
}, /*#__PURE__*/React.createElement(RangePicker, null), /*#__PURE__*/React.createElement(RangePicker, {
|
|
12
|
+
showTime: true
|
|
13
|
+
}), /*#__PURE__*/React.createElement(RangePicker, {
|
|
14
|
+
picker: "week"
|
|
15
|
+
}), /*#__PURE__*/React.createElement(RangePicker, {
|
|
16
|
+
picker: "month"
|
|
17
|
+
}), /*#__PURE__*/React.createElement(RangePicker, {
|
|
18
|
+
picker: "quarter"
|
|
19
|
+
}), /*#__PURE__*/React.createElement(RangePicker, {
|
|
20
|
+
picker: "year"
|
|
21
|
+
}))));
|
|
22
|
+
});
|
|
@@ -162,13 +162,7 @@
|
|
|
162
162
|
|
|
163
163
|
&:hover:not(.ant-picker-disabled),
|
|
164
164
|
&.ant-picker-focused {
|
|
165
|
-
|
|
166
|
-
border-color: @border-color-base!important;
|
|
167
|
-
box-shadow: none !important;
|
|
168
|
-
// span,
|
|
169
|
-
// input {
|
|
170
|
-
// color: @primary-color!important;
|
|
171
|
-
// }
|
|
165
|
+
border-color: @primary-color!important;
|
|
172
166
|
}
|
|
173
167
|
|
|
174
168
|
.ant-picker-active-bar {
|
package/es/demoWrapper/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import request from '../utils/ajax';
|
|
|
11
11
|
import DemoContent from './content';
|
|
12
12
|
import DemoHeader from './head';
|
|
13
13
|
import './index.less';
|
|
14
|
+
import { ResponseStatus } from '../utils/type';
|
|
14
15
|
var DemoWrapper = function DemoWrapper(_ref) {
|
|
15
16
|
var children = _ref.children,
|
|
16
17
|
className = _ref.className,
|
|
@@ -38,8 +39,7 @@ var DemoWrapper = function DemoWrapper(_ref) {
|
|
|
38
39
|
}, []);
|
|
39
40
|
function getCurrentUser() {
|
|
40
41
|
request('/zg/web/v2/user/getUserInfo').then(function (res) {
|
|
41
|
-
|
|
42
|
-
if (res === null || (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.ret) === '-1') setNotLogin(true);
|
|
42
|
+
if (!res || new RegExp("".concat(ResponseStatus.notLogin)).test(res.code)) setNotLogin(true);
|
|
43
43
|
}).catch(function (err) {
|
|
44
44
|
console.error('获取用户信息失败', err);
|
|
45
45
|
}).finally(function () {
|
package/es/utils/ajax.js
CHANGED
|
@@ -77,10 +77,10 @@ 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
|
+
msg = '账户未登录或登录已失效';
|
|
81
81
|
flag = true;
|
|
82
82
|
} else if (new RegExp("".concat(ResponseStatus.noPermission)).test(apiResult.code)) {
|
|
83
|
-
|
|
83
|
+
msg = '账户没有权限';
|
|
84
84
|
flag = true;
|
|
85
85
|
}
|
|
86
86
|
if (!flag) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.1.55-beta.
|
|
3
|
+
"version": "1.1.55-beta.9",
|
|
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": "19c8bbf4c74e53724fbed40ff3803ac1db6bdf0a"
|
|
64
64
|
}
|