@zgfe/business-lib 1.0.13-alpha.1 → 1.0.13-alpha.4
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/styles/chunks.less +2 -2
- package/es/assets/styles/resetAntd.less +6 -5
- package/es/assets/styles/variable.less +1 -1
- package/es/assets/theme.d.ts +1 -1
- package/es/assets/theme.js +2 -2
- package/es/context/index.d.ts +10 -1
- package/es/datePicker/styles/index.less +1 -1
- package/es/select/styles/index.less +1 -1
- package/package.json +2 -2
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// 通用hover样式,适用于下拉选项等
|
|
8
8
|
.__default-hover {
|
|
9
9
|
color: @primary-color;
|
|
10
|
-
background: @primary-1;
|
|
10
|
+
background: color(~`colorPalette('@{primary-color}', 0.1) `);
|
|
11
11
|
border-color: @primary-color;
|
|
12
12
|
cursor: pointer;
|
|
13
13
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
.__default-focused {
|
|
21
21
|
background-color: #fff;
|
|
22
22
|
border-color: @primary-color;
|
|
23
|
-
box-shadow: 0 0 0 4px @primary-1;
|
|
23
|
+
box-shadow: 0 0 0 4px color(~`colorPalette('@{primary-color}', 0.1) `);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// 下拉组件操作栏样式
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
// 输入框
|
|
38
38
|
.ant-input {
|
|
39
39
|
background-color: @background-color-base!important;
|
|
40
|
-
border-color: @background-color-base!important;
|
|
40
|
+
// border-color: @background-color-base!important;
|
|
41
41
|
border-radius: @border-radius-small!important;
|
|
42
42
|
|
|
43
43
|
&:focus,
|
|
44
44
|
&-focused {
|
|
45
45
|
background-color: #fff !important;
|
|
46
|
-
box-shadow: 0 0 0 4px @primary-1!important;
|
|
46
|
+
box-shadow: 0 0 0 4px color(~`colorPalette('@{primary-color}', 0.1) `) !important;
|
|
47
47
|
}
|
|
48
48
|
&.ant-input-status-error {
|
|
49
49
|
border-color: @error-color !important;
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
|
|
237
237
|
/*日期范围内背景色*/
|
|
238
238
|
.ant-picker-cell-in-range::before {
|
|
239
|
-
background: @primary-1!important;
|
|
239
|
+
background: color(~`colorPalette('@{primary-color}', 0.1) `) !important;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
/*日期范围内的hover效果-背景不变*/
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
.ant-picker-panel
|
|
252
252
|
> :not(.ant-picker-date-panel)
|
|
253
253
|
.ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end::before {
|
|
254
|
-
background: @primary-1!important;
|
|
254
|
+
background: color(~`colorPalette('@{primary-color}', 0.1) `) !important;
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
/*日期范围内的hover效果*/
|
|
@@ -298,6 +298,7 @@
|
|
|
298
298
|
|
|
299
299
|
.ant-modal-body {
|
|
300
300
|
max-height: 400px !important;
|
|
301
|
+
padding-top: @padding-xs !important;
|
|
301
302
|
padding-bottom: 0 !important;
|
|
302
303
|
overflow: auto !important;
|
|
303
304
|
}
|
|
@@ -396,7 +397,7 @@
|
|
|
396
397
|
|
|
397
398
|
.ant-table-tbody > tr.ant-table-row:hover > td,
|
|
398
399
|
.ant-table-tbody > tr > td.ant-table-cell-row-hover {
|
|
399
|
-
background: @primary-1!important;
|
|
400
|
+
background: color(~`colorPalette('@{primary-color}', 0.1) `) !important;
|
|
400
401
|
}
|
|
401
402
|
}
|
|
402
403
|
|
package/es/assets/theme.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'primary-color': string;
|
|
3
|
-
'primary-1': string;
|
|
4
3
|
'border-color-base': string;
|
|
5
4
|
'background-color-base': string;
|
|
6
5
|
'text-color': string;
|
|
@@ -11,5 +10,6 @@ declare const _default: {
|
|
|
11
10
|
'box-shadow-base': string;
|
|
12
11
|
'btn-text-hover-bg': string;
|
|
13
12
|
'warning-color': string;
|
|
13
|
+
'border-color-split': string;
|
|
14
14
|
};
|
|
15
15
|
export default _default;
|
package/es/assets/theme.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
'primary-color': '#165dff',
|
|
3
|
-
'primary-1': '#E8EFFF',
|
|
4
3
|
'border-color-base': '#ECEDF0',
|
|
5
4
|
'background-color-base': '#fafafb',
|
|
6
5
|
'text-color': '#021429',
|
|
@@ -10,5 +9,6 @@ export default {
|
|
|
10
9
|
'shadow-color': 'rgba(0, 0, 0, 0.1)',
|
|
11
10
|
'box-shadow-base': '0px 4px 10px rgba(0, 0, 0, 0.1)',
|
|
12
11
|
'btn-text-hover-bg': '#cacdd4',
|
|
13
|
-
'warning-color': '#FD9F41'
|
|
12
|
+
'warning-color': '#FD9F41',
|
|
13
|
+
'border-color-split': '#E8EFFF'
|
|
14
14
|
};
|
package/es/context/index.d.ts
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { EventGroup, UserProp, EnvProp } from '../attributeSelector/types';
|
|
3
|
-
interface AppInfoProps {
|
|
3
|
+
export interface AppInfoProps {
|
|
4
4
|
appId?: string | number;
|
|
5
5
|
platform?: string | number;
|
|
6
6
|
[prop: string]: any;
|
|
7
7
|
}
|
|
8
|
+
export interface UserInfo {
|
|
9
|
+
id: number;
|
|
10
|
+
username: string;
|
|
11
|
+
email: string;
|
|
12
|
+
companyId: number;
|
|
13
|
+
companyName: string;
|
|
14
|
+
}
|
|
8
15
|
export interface GlobalContextProps {
|
|
9
16
|
userGroupList?: Array<any>;
|
|
10
17
|
eventGroupList?: EventGroup[];
|
|
11
18
|
userPropList?: UserProp[];
|
|
12
19
|
eventEnvList?: EnvProp[];
|
|
13
20
|
currentApp?: AppInfoProps;
|
|
21
|
+
currentUser?: UserInfo;
|
|
22
|
+
isDemo?: boolean;
|
|
14
23
|
}
|
|
15
24
|
declare const BizGlobalDataContext: import("react").Context<GlobalContextProps>;
|
|
16
25
|
export default BizGlobalDataContext;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.0.13-alpha.
|
|
3
|
+
"version": "1.0.13-alpha.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"prettier": "^2.2.1",
|
|
60
60
|
"yorkie": "^2.0.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "7e06ca894d741df43c1a42fa1aa61d2b1566e5fc"
|
|
63
63
|
}
|