yootd 0.0.39 → 0.0.41

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.
Files changed (51) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +43 -43
  3. package/dist/Preview/components/preview/phone.scss +8 -8
  4. package/dist/Preview/index.scss +35 -35
  5. package/dist/Preview/types/type.d.ts +22 -22
  6. package/dist/anchor/index.scss +23 -23
  7. package/dist/approval-process/index.js +9 -8
  8. package/dist/approval-process/index.scss +95 -95
  9. package/dist/areas/index.js +13 -6
  10. package/dist/areas/index.scss +21 -21
  11. package/dist/areas/types/types.d.ts +1 -0
  12. package/dist/aside/components/SortableItem.scss +93 -93
  13. package/dist/aside/index.scss +25 -25
  14. package/dist/aside/types/types.d.ts +44 -44
  15. package/dist/badge/index.scss +5 -5
  16. package/dist/buildings/types/types.d.ts +21 -21
  17. package/dist/button/index.scss +30 -30
  18. package/dist/cascader/index.scss +5 -5
  19. package/dist/courses/types/types.d.ts +18 -18
  20. package/dist/dictionary/types/types.d.ts +14 -14
  21. package/dist/drawer-modal/index.scss +39 -39
  22. package/dist/drawer-modal/types/types.d.ts +3 -3
  23. package/dist/dropdown/assets/arrow-down.svg +5 -5
  24. package/dist/empty/index.scss +15 -15
  25. package/dist/group-title/index.scss +31 -31
  26. package/dist/image/index.scss +26 -26
  27. package/dist/input/index.scss +5 -5
  28. package/dist/modal/index.scss +76 -76
  29. package/dist/pagination/index.scss +47 -47
  30. package/dist/school/index.scss +21 -21
  31. package/dist/school/types/types.d.ts +85 -85
  32. package/dist/state/index.scss +89 -89
  33. package/dist/steps/index.scss +32 -32
  34. package/dist/student-dropdown/types/types.d.ts +44 -44
  35. package/dist/table/components/primary-header-row/index.scss +58 -58
  36. package/dist/table/components/primary-tbody-row/index.scss +5 -5
  37. package/dist/table/index.module.scss +9 -9
  38. package/dist/table/index.scss +33 -33
  39. package/dist/tabs/index.scss +86 -86
  40. package/dist/tag/index.scss +4 -4
  41. package/dist/teacher/types/types.d.ts +31 -31
  42. package/dist/tree/index.scss +25 -25
  43. package/dist/upload/index.scss +115 -115
  44. package/dist/user-dropdown/types/types.d.ts +45 -45
  45. package/dist/video-player/index.js +20 -20
  46. package/dist/video-player/index.scss +310 -310
  47. package/dist/year-term/index.scss +21 -21
  48. package/dist/year-term/types/types.d.ts +28 -28
  49. package/dist/zones/index.module.scss +23 -23
  50. package/dist/zones/types/types.d.ts +26 -26
  51. package/package.json +1 -1
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,43 +1,43 @@
1
- # yootd
2
-
3
- [![NPM version](https://img.shields.io/npm/v/yootd.svg?style=flat)](https://npmjs.org/package/yootd)
4
- [![NPM downloads](http://img.shields.io/npm/dm/yootd.svg?style=flat)](https://npmjs.org/package/yootd)
5
-
6
- A react library developed with dumi
7
-
8
- ## Usage
9
-
10
- TODO
11
-
12
- ## Options
13
-
14
- TODO
15
-
16
- ## Development
17
-
18
- ```bash
19
- # install dependencies
20
- $ pnpm install
21
-
22
- # develop library by docs demo
23
- $ pnpm start
24
-
25
- # build library source code
26
- $ pnpm run build
27
-
28
- # build library source code in watch mode
29
- $ pnpm run build:watch
30
-
31
- # build docs
32
- $ pnpm run docs:build
33
-
34
- # Locally preview the production build.
35
- $ pnpm run docs:preview
36
-
37
- # check your project for potential problems
38
- $ pnpm run doctor
39
- ```
40
-
41
- ## LICENSE
42
-
43
- MIT
1
+ # yootd
2
+
3
+ [![NPM version](https://img.shields.io/npm/v/yootd.svg?style=flat)](https://npmjs.org/package/yootd)
4
+ [![NPM downloads](http://img.shields.io/npm/dm/yootd.svg?style=flat)](https://npmjs.org/package/yootd)
5
+
6
+ A react library developed with dumi
7
+
8
+ ## Usage
9
+
10
+ TODO
11
+
12
+ ## Options
13
+
14
+ TODO
15
+
16
+ ## Development
17
+
18
+ ```bash
19
+ # install dependencies
20
+ $ pnpm install
21
+
22
+ # develop library by docs demo
23
+ $ pnpm start
24
+
25
+ # build library source code
26
+ $ pnpm run build
27
+
28
+ # build library source code in watch mode
29
+ $ pnpm run build:watch
30
+
31
+ # build docs
32
+ $ pnpm run docs:build
33
+
34
+ # Locally preview the production build.
35
+ $ pnpm run docs:preview
36
+
37
+ # check your project for potential problems
38
+ $ pnpm run doctor
39
+ ```
40
+
41
+ ## LICENSE
42
+
43
+ MIT
@@ -1,8 +1,8 @@
1
- .yot-preview-phone {
2
- width: 398px;
3
- height: 829px;
4
- background-image: url('../../assets/phonebg.png');
5
- background-size: 100% 100%;
6
- padding: 96px 36px 20px 36px;
7
- box-sizing: border-box;
8
- }
1
+ .yot-preview-phone {
2
+ width: 398px;
3
+ height: 829px;
4
+ background-image: url('../../assets/phonebg.png');
5
+ background-size: 100% 100%;
6
+ padding: 96px 36px 20px 36px;
7
+ box-sizing: border-box;
8
+ }
@@ -1,35 +1,35 @@
1
- .yot-preview {
2
- &-controls {
3
- display: flex;
4
- justify-content: center;
5
- align-items: center;
6
- z-index: 100;
7
- position: absolute;
8
- bottom: 10px;
9
- right: 10px;
10
- background-color: #ffffff;
11
- border-radius: 8px;
12
- box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.16);
13
- .ant-btn.css-var-yootd.ant-btn-default.ant-btn-color-default.ant-btn-variant-outlined {
14
- background-color: transparent;
15
- border: none;
16
- &:hover .ant-btn-icon svg path {
17
- fill: var(--ant-color-primary);
18
- }
19
- &:hover .ant-btn-icon svg #rect-stroke {
20
- stroke: var(--ant-color-primary);
21
- }
22
- &:hover .ant-btn-icon svg #reset-icon-rect {
23
- fill: var(--ant-color-primary);
24
- }
25
- }
26
- &--zoom {
27
- width: 64px;
28
- background-color: transparent;
29
- border: none;
30
- }
31
- }
32
- .react-flow__panel.center {
33
- transform: translateX(-63%);
34
- }
35
- }
1
+ .yot-preview {
2
+ &-controls {
3
+ display: flex;
4
+ justify-content: center;
5
+ align-items: center;
6
+ z-index: 100;
7
+ position: absolute;
8
+ bottom: 10px;
9
+ right: 10px;
10
+ background-color: #ffffff;
11
+ border-radius: 8px;
12
+ box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.16);
13
+ .ant-btn.css-var-yootd.ant-btn-default.ant-btn-color-default.ant-btn-variant-outlined {
14
+ background-color: transparent;
15
+ border: none;
16
+ &:hover .ant-btn-icon svg path {
17
+ fill: var(--ant-color-primary);
18
+ }
19
+ &:hover .ant-btn-icon svg #rect-stroke {
20
+ stroke: var(--ant-color-primary);
21
+ }
22
+ &:hover .ant-btn-icon svg #reset-icon-rect {
23
+ fill: var(--ant-color-primary);
24
+ }
25
+ }
26
+ &--zoom {
27
+ width: 64px;
28
+ background-color: transparent;
29
+ border: none;
30
+ }
31
+ }
32
+ .react-flow__panel.center {
33
+ transform: translateX(-63%);
34
+ }
35
+ }
@@ -1,22 +1,22 @@
1
- export interface PrevewProps {
2
- controls?: boolean; // 是否显示右下角的放大缩小组件
3
- defaultZoom?: number; // 初始化放大倍数
4
- maxZoom?: number; // 最大放大倍数
5
- minZoom?: number; // 最小放大倍数
6
- panOnDrag?: boolean; // 是否可以拖拽
7
- zoomOnScroll?: boolean; // 是否可以滚动
8
- modes?: ['phone', 'web'] | ['phone'] | ['web']; // 预览模式
9
- fitView?: boolean; // 是否自动适应视图
10
- content?: ReactNode; // 数据
11
- width?: number | string; // 宽度
12
- height?: number | string; // 高度
13
- style?: React.CSSProperties; // 样式
14
- }
15
-
16
- export interface TopPreviewProps {
17
- mode: string;
18
- onChange: (value: string) => void;
19
- }
20
- export interface ControlsProps {
21
- defaultZoom?: number; // 初始化放大倍数
22
- }
1
+ export interface PrevewProps {
2
+ controls?: boolean; // 是否显示右下角的放大缩小组件
3
+ defaultZoom?: number; // 初始化放大倍数
4
+ maxZoom?: number; // 最大放大倍数
5
+ minZoom?: number; // 最小放大倍数
6
+ panOnDrag?: boolean; // 是否可以拖拽
7
+ zoomOnScroll?: boolean; // 是否可以滚动
8
+ modes?: ['phone', 'web'] | ['phone'] | ['web']; // 预览模式
9
+ fitView?: boolean; // 是否自动适应视图
10
+ content?: ReactNode; // 数据
11
+ width?: number | string; // 宽度
12
+ height?: number | string; // 高度
13
+ style?: React.CSSProperties; // 样式
14
+ }
15
+
16
+ export interface TopPreviewProps {
17
+ mode: string;
18
+ onChange: (value: string) => void;
19
+ }
20
+ export interface ControlsProps {
21
+ defaultZoom?: number; // 初始化放大倍数
22
+ }
@@ -1,23 +1,23 @@
1
- .yot-anchor {
2
- .ant-anchor .ant-anchor-link {
3
- padding-top: var(--ant-padding);
4
- padding-bottom: var(--ant-padding);
5
- box-sizing: border-box;
6
- font-size: var(--ant-font-size);
7
- }
8
- .ant-anchor .ant-anchor-link:nth-of-type(1) {
9
- padding-top: 5px;
10
- padding-bottom: var(--ant-padding);
11
- box-sizing: border-box;
12
- font-size: var(--ant-font-size);
13
- }
14
- .ant-anchor .ant-anchor-link:last-child {
15
- padding-top: var(--ant-padding);
16
- padding-bottom: 5px;
17
- box-sizing: border-box;
18
- font-size: var(--ant-font-size);
19
- }
20
- .ant-anchor .ant-anchor-link.ant-anchor-link-active {
21
- color: var(--ant-color-primary);
22
- }
23
- }
1
+ .yot-anchor {
2
+ .ant-anchor .ant-anchor-link {
3
+ padding-top: var(--ant-padding);
4
+ padding-bottom: var(--ant-padding);
5
+ box-sizing: border-box;
6
+ font-size: var(--ant-font-size);
7
+ }
8
+ .ant-anchor .ant-anchor-link:nth-of-type(1) {
9
+ padding-top: 5px;
10
+ padding-bottom: var(--ant-padding);
11
+ box-sizing: border-box;
12
+ font-size: var(--ant-font-size);
13
+ }
14
+ .ant-anchor .ant-anchor-link:last-child {
15
+ padding-top: var(--ant-padding);
16
+ padding-bottom: 5px;
17
+ box-sizing: border-box;
18
+ font-size: var(--ant-font-size);
19
+ }
20
+ .ant-anchor .ant-anchor-link.ant-anchor-link-active {
21
+ color: var(--ant-color-primary);
22
+ }
23
+ }
@@ -25,7 +25,7 @@ var statusText = {
25
25
  5: '已撤回'
26
26
  };
27
27
  export var ApprovalProcess = function ApprovalProcess(_ref) {
28
- var _queryProcess$data$hi, _queryProcess$data;
28
+ var _queryProcess$hisTask;
29
29
  var id = _ref.id;
30
30
  var mb = useBem('approval-process');
31
31
  var request = useRequest();
@@ -46,13 +46,14 @@ export var ApprovalProcess = function ApprovalProcess(_ref) {
46
46
  className: "".concat(mb.b('steps').b('info').b('avatar').b('status').b('icon'))
47
47
  })
48
48
  };
49
- var queryProcess = useQuery({
50
- queryKey: ['approvalProcess'],
51
- queryFn: function queryFn() {
52
- return request("/v1/proc/instances/".concat(id, "/detail"));
53
- }
54
- });
55
- var steps = (_queryProcess$data$hi = (_queryProcess$data = queryProcess.data) === null || _queryProcess$data === void 0 ? void 0 : _queryProcess$data.hisTasks) !== null && _queryProcess$data$hi !== void 0 ? _queryProcess$data$hi : [];
49
+ var _useQuery = useQuery({
50
+ queryKey: ['approvalProcess', id],
51
+ queryFn: function queryFn() {
52
+ return request("/v1/proc/instances/".concat(id, "/detail"));
53
+ }
54
+ }),
55
+ queryProcess = _useQuery.data;
56
+ var steps = (_queryProcess$hisTask = queryProcess === null || queryProcess === void 0 ? void 0 : queryProcess.hisTasks) !== null && _queryProcess$hisTask !== void 0 ? _queryProcess$hisTask : [];
56
57
  return /*#__PURE__*/React.createElement("div", {
57
58
  className: "".concat(mb)
58
59
  }, steps.map(function (step, index) {
@@ -1,95 +1,95 @@
1
- .yot-approval-process {
2
- &-steps {
3
- padding: 0px 40px;
4
- &-info {
5
- display: flex;
6
- &-avatar {
7
- position: relative;
8
- width: fit-content;
9
- height: fit-content;
10
- &-img {
11
- width: 40px;
12
- height: 40px;
13
- border-radius: 50%;
14
- background-size: 100% 100%;
15
- }
16
- &-status {
17
- &-icon {
18
- position: absolute;
19
- bottom: 3.5px;
20
- right: -0.5px;
21
- width: 18px;
22
- height: 18px;
23
- display: block;
24
- }
25
- }
26
- }
27
- &-person {
28
- margin-left: 16px;
29
- display: flex;
30
- flex-direction: column;
31
- justify-content: space-between;
32
- padding: 2px 0;
33
- &-name {
34
- font-size: 16px;
35
- font-weight: 500;
36
- color: var(--ant-color-text);
37
- }
38
- &-time {
39
- font-size: 12px;
40
- font-weight: 500;
41
- color: var(--ant-color-text-tertiary);
42
- }
43
- }
44
- }
45
-
46
- &-content {
47
- display: flex;
48
- padding-left: 20px;
49
- padding-top: 8px;
50
- padding-bottom: 8px;
51
- &-line {
52
- width: 1px;
53
- border-left: 1px dashed var(--ant-color-border);
54
- &--block {
55
- display: block;
56
- border-color: var(--ant-color-border);
57
- min-height: 106px;
58
- }
59
- &--none {
60
- display: none;
61
- border-color: var(--ant-color-border);
62
- min-height: 106px;
63
- }
64
- }
65
- &-item {
66
- margin-left: 40px;
67
- &-status {
68
- display: flex;
69
- align-items: center;
70
- width: fit-content;
71
- height: 22px;
72
- padding: 0 8px;
73
- border-radius: 4px;
74
- font-size: 12px;
75
- &--visible {
76
- visibility: visible;
77
- }
78
- &--invisible {
79
- visibility: hidden;
80
- }
81
- }
82
- &-comment {
83
- margin-top: 4px;
84
- padding: 0 8px;
85
- font-size: 14px;
86
- background-color: var(--ant-color-bg-layout);
87
- height: 32px;
88
- display: flex;
89
- align-items: center;
90
- border-radius: 4px;
91
- }
92
- }
93
- }
94
- }
95
- }
1
+ .yot-approval-process {
2
+ &-steps {
3
+ padding: 0px 40px;
4
+ &-info {
5
+ display: flex;
6
+ &-avatar {
7
+ position: relative;
8
+ width: fit-content;
9
+ height: fit-content;
10
+ &-img {
11
+ width: 40px;
12
+ height: 40px;
13
+ border-radius: 50%;
14
+ background-size: 100% 100%;
15
+ }
16
+ &-status {
17
+ &-icon {
18
+ position: absolute;
19
+ bottom: 3.5px;
20
+ right: -0.5px;
21
+ width: 18px;
22
+ height: 18px;
23
+ display: block;
24
+ }
25
+ }
26
+ }
27
+ &-person {
28
+ margin-left: 16px;
29
+ display: flex;
30
+ flex-direction: column;
31
+ justify-content: space-between;
32
+ padding: 2px 0;
33
+ &-name {
34
+ font-size: 16px;
35
+ font-weight: 500;
36
+ color: var(--ant-color-text);
37
+ }
38
+ &-time {
39
+ font-size: 12px;
40
+ font-weight: 500;
41
+ color: var(--ant-color-text-tertiary);
42
+ }
43
+ }
44
+ }
45
+
46
+ &-content {
47
+ display: flex;
48
+ padding-left: 20px;
49
+ padding-top: 8px;
50
+ padding-bottom: 8px;
51
+ &-line {
52
+ width: 1px;
53
+ border-left: 1px dashed var(--ant-color-border);
54
+ &--block {
55
+ display: block;
56
+ border-color: var(--ant-color-border);
57
+ min-height: 106px;
58
+ }
59
+ &--none {
60
+ display: none;
61
+ border-color: var(--ant-color-border);
62
+ min-height: 106px;
63
+ }
64
+ }
65
+ &-item {
66
+ margin-left: 40px;
67
+ &-status {
68
+ display: flex;
69
+ align-items: center;
70
+ width: fit-content;
71
+ height: 22px;
72
+ padding: 0 8px;
73
+ border-radius: 4px;
74
+ font-size: 12px;
75
+ &--visible {
76
+ visibility: visible;
77
+ }
78
+ &--invisible {
79
+ visibility: hidden;
80
+ }
81
+ }
82
+ &-comment {
83
+ margin-top: 4px;
84
+ padding: 0 8px;
85
+ font-size: 14px;
86
+ background-color: var(--ant-color-bg-layout);
87
+ height: 32px;
88
+ display: flex;
89
+ align-items: center;
90
+ border-radius: 4px;
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
@@ -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,21 +1,21 @@
1
- .yot-Areas {
2
- border: var(--ant-line-width) var(--ant-line-type) var(--ant-color-border);
3
- border-radius: var(--ant-border-radius);
4
- &-areas-select::after {
5
- content: '';
6
- position: absolute;
7
- right: 0;
8
- top: 50%; /* 从中间开始 */
9
- width: 1px; /* 边框宽度 */
10
- height: 50%; /* 设为盒子高度的百分之五十 */
11
- background-color: var(--ant-color-border); /* 边框颜色 */
12
- transform: translateY(-50%);
13
- }
14
- .ant-select.ant-select-outlined.css-var-yootd.ant-select-css-var.ant-select-single.ant-select-allow-clear.ant-select-show-arrow {
15
- .ant-select-selector {
16
- padding-left: var(--ant-padding);
17
- padding-right: var(--ant-padding);
18
- border: 0;
19
- }
20
- }
21
- }
1
+ .yot-Areas {
2
+ border: var(--ant-line-width) var(--ant-line-type) var(--ant-color-border);
3
+ border-radius: var(--ant-border-radius);
4
+ &-areas-select::after {
5
+ content: '';
6
+ position: absolute;
7
+ right: 0;
8
+ top: 50%; /* 从中间开始 */
9
+ width: 1px; /* 边框宽度 */
10
+ height: 50%; /* 设为盒子高度的百分之五十 */
11
+ background-color: var(--ant-color-border); /* 边框颜色 */
12
+ transform: translateY(-50%);
13
+ }
14
+ .ant-select.ant-select-outlined.css-var-yootd.ant-select-css-var.ant-select-single.ant-select-allow-clear.ant-select-show-arrow {
15
+ .ant-select-selector {
16
+ padding-left: var(--ant-padding);
17
+ padding-right: var(--ant-padding);
18
+ border: 0;
19
+ }
20
+ }
21
+ }
@@ -13,6 +13,7 @@ type SchoolProps = {
13
13
  areaSubType?: number;
14
14
  style?: React.CSSProperties;
15
15
  showSearch?: boolean;
16
+ disabled?: boolean;
16
17
  value?: {
17
18
  level1?: number;
18
19
  level2?: number;