yootd 0.0.40 → 0.0.42
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/approval-process/index.js +6 -2
- package/dist/areas/index.js +13 -6
- package/dist/areas/types/types.d.ts +40 -39
- package/dist/modal/index.js +1 -1
- package/dist/modal/index.scss +76 -73
- package/package.json +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import { useQuery } from '@tanstack/react-query';
|
2
2
|
import dayjs from 'dayjs';
|
3
|
-
import React from 'react';
|
3
|
+
import React, { useEffect } from 'react';
|
4
4
|
import { useRequest } from "../hooks/useRequest";
|
5
5
|
import "./index.scss";
|
6
6
|
import { useBem } from "../hooks/useBem";
|
@@ -52,8 +52,12 @@ export var ApprovalProcess = function ApprovalProcess(_ref) {
|
|
52
52
|
return request("/v1/proc/instances/".concat(id, "/detail"));
|
53
53
|
}
|
54
54
|
}),
|
55
|
-
queryProcess = _useQuery.data
|
55
|
+
queryProcess = _useQuery.data,
|
56
|
+
refetch = _useQuery.refetch;
|
56
57
|
var steps = (_queryProcess$hisTask = queryProcess === null || queryProcess === void 0 ? void 0 : queryProcess.hisTasks) !== null && _queryProcess$hisTask !== void 0 ? _queryProcess$hisTask : [];
|
58
|
+
useEffect(function () {
|
59
|
+
refetch();
|
60
|
+
}, []);
|
57
61
|
return /*#__PURE__*/React.createElement("div", {
|
58
62
|
className: "".concat(mb)
|
59
63
|
}, steps.map(function (step, index) {
|
package/dist/areas/index.js
CHANGED
@@ -23,7 +23,9 @@ export var Areas = function Areas(_ref) {
|
|
23
23
|
_ref$level = _ref.level1,
|
24
24
|
level1 = _ref$level === void 0 ? true : _ref$level,
|
25
25
|
areaType = _ref.areaType,
|
26
|
-
areaSubType = _ref.areaSubType
|
26
|
+
areaSubType = _ref.areaSubType,
|
27
|
+
_ref$disabled = _ref.disabled,
|
28
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
27
29
|
var mb = useBem('Areas');
|
28
30
|
var request = useRequest();
|
29
31
|
// level1选择值
|
@@ -261,7 +263,8 @@ export var Areas = function Areas(_ref) {
|
|
261
263
|
},
|
262
264
|
options: level1AreaOptions,
|
263
265
|
onChange: changeLevel1Select,
|
264
|
-
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[0]
|
266
|
+
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[0],
|
267
|
+
disabled: disabled
|
265
268
|
}), /*#__PURE__*/React.createElement(Select, {
|
266
269
|
value: level2Value,
|
267
270
|
allowClear: allowClear,
|
@@ -274,7 +277,8 @@ export var Areas = function Areas(_ref) {
|
|
274
277
|
},
|
275
278
|
options: level2AreaOptions,
|
276
279
|
onChange: changeLevel2Select,
|
277
|
-
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[1]
|
280
|
+
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[1],
|
281
|
+
disabled: disabled
|
278
282
|
}), /*#__PURE__*/React.createElement(Select, {
|
279
283
|
value: level3Value,
|
280
284
|
allowClear: allowClear,
|
@@ -287,7 +291,8 @@ export var Areas = function Areas(_ref) {
|
|
287
291
|
},
|
288
292
|
options: level3AreaOptions,
|
289
293
|
onChange: changeLevel3Select,
|
290
|
-
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[2]
|
294
|
+
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[2],
|
295
|
+
disabled: disabled
|
291
296
|
}), /*#__PURE__*/React.createElement(Select, {
|
292
297
|
value: level4Value,
|
293
298
|
allowClear: allowClear,
|
@@ -300,7 +305,8 @@ export var Areas = function Areas(_ref) {
|
|
300
305
|
},
|
301
306
|
options: level4AreaOptions,
|
302
307
|
onChange: changeLevel4Select,
|
303
|
-
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[3]
|
308
|
+
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[3],
|
309
|
+
disabled: disabled
|
304
310
|
}), /*#__PURE__*/React.createElement(Select, {
|
305
311
|
value: level5Value,
|
306
312
|
allowClear: allowClear,
|
@@ -312,6 +318,7 @@ export var Areas = function Areas(_ref) {
|
|
312
318
|
},
|
313
319
|
options: level5AreaOptions,
|
314
320
|
onChange: changeLevel5Select,
|
315
|
-
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[4]
|
321
|
+
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[4],
|
322
|
+
disabled: disabled
|
316
323
|
}));
|
317
324
|
};
|
@@ -1,39 +1,40 @@
|
|
1
|
-
export interface PageData<T> {
|
2
|
-
content: T[];
|
3
|
-
page: {
|
4
|
-
number: number;
|
5
|
-
size: number;
|
6
|
-
totalElements: number;
|
7
|
-
totalPages: number;
|
8
|
-
};
|
9
|
-
}
|
10
|
-
type SchoolProps = {
|
11
|
-
level1?: boolean;
|
12
|
-
areaType?: number;
|
13
|
-
areaSubType?: number;
|
14
|
-
style?: React.CSSProperties;
|
15
|
-
showSearch?: boolean;
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
1
|
+
export interface PageData<T> {
|
2
|
+
content: T[];
|
3
|
+
page: {
|
4
|
+
number: number;
|
5
|
+
size: number;
|
6
|
+
totalElements: number;
|
7
|
+
totalPages: number;
|
8
|
+
};
|
9
|
+
}
|
10
|
+
type SchoolProps = {
|
11
|
+
level1?: boolean;
|
12
|
+
areaType?: number;
|
13
|
+
areaSubType?: number;
|
14
|
+
style?: React.CSSProperties;
|
15
|
+
showSearch?: boolean;
|
16
|
+
disabled?: boolean;
|
17
|
+
value?: {
|
18
|
+
level1?: number;
|
19
|
+
level2?: number;
|
20
|
+
level3?: number;
|
21
|
+
level4?: number;
|
22
|
+
level5?: number;
|
23
|
+
};
|
24
|
+
onChange?: (record: {
|
25
|
+
level1?: number;
|
26
|
+
level2?: number;
|
27
|
+
level3?: number;
|
28
|
+
level4?: number;
|
29
|
+
level5?: number;
|
30
|
+
}) => void;
|
31
|
+
allowClear?: boolean;
|
32
|
+
placeholder?: string[];
|
33
|
+
};
|
34
|
+
// 查询位置接口返回的数据类型
|
35
|
+
export interface IareaItem {
|
36
|
+
areaId: number;
|
37
|
+
areaLevel: number;
|
38
|
+
areaName: string;
|
39
|
+
areaType: number;
|
40
|
+
}
|
package/dist/modal/index.js
CHANGED
@@ -18,7 +18,7 @@ var ModalComponent = function ModalComponent(_ref) {
|
|
18
18
|
// title content block
|
19
19
|
var tcb = mb.b('title').b('content');
|
20
20
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("svg", {
|
21
|
-
className: "".concat(mb.e('color-defs')
|
21
|
+
className: "".concat(mb.e('color-defs'))
|
22
22
|
}, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
23
23
|
id: "paint0_linear_589_9609",
|
24
24
|
x1: "132.5",
|
package/dist/modal/index.scss
CHANGED
@@ -1,73 +1,76 @@
|
|
1
|
-
.yot-modal {
|
2
|
-
padding-top: 13px;
|
3
|
-
position: relative;
|
4
|
-
max-width: calc(2 / 3 * 100vw) !important;
|
5
|
-
|
6
|
-
& > div:first-child {
|
7
|
-
box-sizing: border-box;
|
8
|
-
padding: 4px;
|
9
|
-
background: linear-gradient(180deg, #3a8cff 0%, #c4ddff 100%);
|
10
|
-
border-radius: 24px;
|
11
|
-
}
|
12
|
-
|
13
|
-
.ant-modal-header {
|
14
|
-
width: 100%;
|
15
|
-
position: absolute;
|
16
|
-
left: 0;
|
17
|
-
top: -13px;
|
18
|
-
background-color: transparent;
|
19
|
-
}
|
20
|
-
|
21
|
-
.ant-modal-content {
|
22
|
-
padding: var(--ant-margin-xl);
|
23
|
-
padding-top: 71px;
|
24
|
-
border-radius: 24px;
|
25
|
-
}
|
26
|
-
|
27
|
-
.ant-modal-body {
|
28
|
-
max-height: 529px;
|
29
|
-
overflow-y: auto;
|
30
|
-
}
|
31
|
-
|
32
|
-
.ant-modal-footer {
|
33
|
-
margin-top: 40px;
|
34
|
-
}
|
35
|
-
|
36
|
-
&-title {
|
37
|
-
&-content {
|
38
|
-
width: 100%;
|
39
|
-
display: flex;
|
40
|
-
justify-content: center;
|
41
|
-
align-items: center;
|
42
|
-
|
43
|
-
&__body {
|
44
|
-
position: absolute;
|
45
|
-
color: var(--ant-color-bg-base);
|
46
|
-
font-size: var(--ant-font-size-heading-3);
|
47
|
-
}
|
48
|
-
|
49
|
-
&__icon {
|
50
|
-
.path-1 {
|
51
|
-
fill: var(--yot-modal-color-tertiary);
|
52
|
-
}
|
53
|
-
.path-2 {
|
54
|
-
fill: var(--yot-modal-color-tertiary);
|
55
|
-
}
|
56
|
-
.stop-color-1 {
|
57
|
-
stop-color: var(--yot-modal-color-secondary);
|
58
|
-
}
|
59
|
-
.stop-color-2 {
|
60
|
-
stop-color: var(--yot-modal-color-primary);
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
65
|
-
&__color-defs {
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
.stop-color-
|
70
|
-
stop-color: var(--yot-modal-color-
|
71
|
-
}
|
72
|
-
|
73
|
-
|
1
|
+
.yot-modal {
|
2
|
+
padding-top: 13px;
|
3
|
+
position: relative;
|
4
|
+
max-width: calc(2 / 3 * 100vw) !important;
|
5
|
+
|
6
|
+
& > div:first-child {
|
7
|
+
box-sizing: border-box;
|
8
|
+
padding: 4px;
|
9
|
+
background: linear-gradient(180deg, #3a8cff 0%, #c4ddff 100%);
|
10
|
+
border-radius: 24px;
|
11
|
+
}
|
12
|
+
|
13
|
+
.ant-modal-header {
|
14
|
+
width: 100%;
|
15
|
+
position: absolute;
|
16
|
+
left: 0;
|
17
|
+
top: -13px;
|
18
|
+
background-color: transparent;
|
19
|
+
}
|
20
|
+
|
21
|
+
.ant-modal-content {
|
22
|
+
padding: var(--ant-margin-xl);
|
23
|
+
padding-top: 71px;
|
24
|
+
border-radius: 24px;
|
25
|
+
}
|
26
|
+
|
27
|
+
.ant-modal-body {
|
28
|
+
max-height: 529px;
|
29
|
+
overflow-y: auto;
|
30
|
+
}
|
31
|
+
|
32
|
+
.ant-modal-footer {
|
33
|
+
margin-top: 40px;
|
34
|
+
}
|
35
|
+
|
36
|
+
&-title {
|
37
|
+
&-content {
|
38
|
+
width: 100%;
|
39
|
+
display: flex;
|
40
|
+
justify-content: center;
|
41
|
+
align-items: center;
|
42
|
+
|
43
|
+
&__body {
|
44
|
+
position: absolute;
|
45
|
+
color: var(--ant-color-bg-base);
|
46
|
+
font-size: var(--ant-font-size-heading-3);
|
47
|
+
}
|
48
|
+
|
49
|
+
&__icon {
|
50
|
+
.path-1 {
|
51
|
+
fill: var(--yot-modal-color-tertiary);
|
52
|
+
}
|
53
|
+
.path-2 {
|
54
|
+
fill: var(--yot-modal-color-tertiary);
|
55
|
+
}
|
56
|
+
.stop-color-1 {
|
57
|
+
stop-color: var(--yot-modal-color-secondary);
|
58
|
+
}
|
59
|
+
.stop-color-2 {
|
60
|
+
stop-color: var(--yot-modal-color-primary);
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
&__color-defs {
|
66
|
+
position: fixed;
|
67
|
+
top: -1000px;
|
68
|
+
left: -1000px;
|
69
|
+
.stop-color-1 {
|
70
|
+
stop-color: var(--yot-modal-color-secondary);
|
71
|
+
}
|
72
|
+
.stop-color-2 {
|
73
|
+
stop-color: var(--yot-modal-color-primary);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|