yootd 0.2.45 → 0.2.47

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 (223) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +43 -43
  3. package/dist/affix/index.d.ts +4 -2
  4. package/dist/affix/index.js +1 -1
  5. package/dist/alert/index.d.ts +3 -3
  6. package/dist/alert/index.js +1 -1
  7. package/dist/anchor/index.d.ts +2 -2
  8. package/dist/anchor/index.js +1 -1
  9. package/dist/anchor/index.scss +23 -23
  10. package/dist/app/index.d.ts +3 -3
  11. package/dist/app/index.js +1 -1
  12. package/dist/approval-process/index.scss +95 -95
  13. package/dist/areas/index.scss +21 -21
  14. package/dist/areas/types/types.d.ts +41 -41
  15. package/dist/areas-treeSelect/index.js +1 -1
  16. package/dist/areas-treeSelect/index.scss +6 -6
  17. package/dist/areas-treeSelect/types/type.d.ts +40 -40
  18. package/dist/aside/components/SortableItem.scss +289 -289
  19. package/dist/aside/index.scss +44 -44
  20. package/dist/aside/types/types.d.ts +82 -82
  21. package/dist/auto-complete/index.d.ts +2 -2
  22. package/dist/auto-complete/index.js +1 -1
  23. package/dist/avatar/index.d.ts +2 -2
  24. package/dist/avatar/index.js +1 -1
  25. package/dist/badge/index.d.ts +3 -3
  26. package/dist/badge/index.js +2 -2
  27. package/dist/badge/index.scss +5 -5
  28. package/dist/breadcrumb/index.d.ts +2 -2
  29. package/dist/breadcrumb/index.js +1 -1
  30. package/dist/buildings/types/types.d.ts +21 -21
  31. package/dist/business-tree/components/dept.d.ts +1 -1
  32. package/dist/business-tree/components/space.d.ts +1 -1
  33. package/dist/business-tree/index.d.ts +1 -1
  34. package/dist/button/index.d.ts +2 -2
  35. package/dist/button/index.js +1 -1
  36. package/dist/button/index.scss +30 -30
  37. package/dist/calendar/index.d.ts +2 -2
  38. package/dist/calendar/index.js +1 -1
  39. package/dist/card/index.d.ts +2 -2
  40. package/dist/card/index.js +1 -1
  41. package/dist/carousel/index.d.ts +2 -2
  42. package/dist/carousel/index.js +1 -1
  43. package/dist/cascader/index.d.ts +3 -3
  44. package/dist/cascader/index.js +1 -1
  45. package/dist/cascader/index.scss +5 -5
  46. package/dist/checkbox/index.d.ts +3 -3
  47. package/dist/checkbox/index.js +1 -1
  48. package/dist/collapse/index.d.ts +2 -2
  49. package/dist/collapse/index.js +1 -1
  50. package/dist/color-picker/index.d.ts +2 -2
  51. package/dist/color-picker/index.js +1 -1
  52. package/dist/config-provider/index.d.ts +2 -2
  53. package/dist/config-provider/index.js +2 -2
  54. package/dist/courses/types/types.d.ts +18 -18
  55. package/dist/date-interval/index.d.ts +1 -1
  56. package/dist/date-interval/index.js +1 -1
  57. package/dist/date-picker/index.d.ts +2 -2
  58. package/dist/date-picker/index.js +1 -1
  59. package/dist/date-range/index.d.ts +1 -1
  60. package/dist/date-range/index.js +1 -1
  61. package/dist/department/index.scss +6 -6
  62. package/dist/department/types/types.d.ts +23 -23
  63. package/dist/description/index.d.ts +1 -1
  64. package/dist/description/index.js +1 -1
  65. package/dist/description/index.scss +10 -10
  66. package/dist/dictionary/types/types.d.ts +14 -14
  67. package/dist/divider/index.d.ts +1 -1
  68. package/dist/divider/index.js +1 -1
  69. package/dist/drawer/index.d.ts +2 -2
  70. package/dist/drawer/index.js +1 -1
  71. package/dist/drawer-modal/index.d.ts +1 -1
  72. package/dist/drawer-modal/index.js +1 -1
  73. package/dist/drawer-modal/index.scss +42 -42
  74. package/dist/drawer-modal/types/types.d.ts +3 -3
  75. package/dist/dropdown/assets/arrow-down.svg +5 -5
  76. package/dist/dropdown/index.d.ts +2 -2
  77. package/dist/dropdown/index.js +1 -1
  78. package/dist/dropdown-select/index.js +1 -1
  79. package/dist/dropdown-select/index.scss +6 -6
  80. package/dist/dropdown-select/types/type.d.ts +18 -18
  81. package/dist/empty/index.d.ts +3 -3
  82. package/dist/empty/index.js +1 -1
  83. package/dist/empty/index.scss +15 -15
  84. package/dist/export/index.d.ts +1 -1
  85. package/dist/export/index.js +1 -1
  86. package/dist/export/index.scss +6 -6
  87. package/dist/flex/index.d.ts +1 -1
  88. package/dist/flex/index.js +1 -1
  89. package/dist/float-button/index.d.ts +2 -2
  90. package/dist/float-button/index.js +1 -1
  91. package/dist/form/index.d.ts +2 -2
  92. package/dist/form/index.js +1 -1
  93. package/dist/go-back/components/index.scss +5 -5
  94. package/dist/go-back/index.scss +33 -33
  95. package/dist/grid/index.d.ts +1 -1
  96. package/dist/grid/index.js +1 -1
  97. package/dist/group-title/index.scss +31 -31
  98. package/dist/holiday/types/types.d.ts +22 -22
  99. package/dist/hooks/useBem.js +10 -10
  100. package/dist/image/index.d.ts +3 -3
  101. package/dist/image/index.js +1 -1
  102. package/dist/image/index.scss +26 -26
  103. package/dist/input/index.d.ts +3 -3
  104. package/dist/input/index.js +1 -1
  105. package/dist/input/index.scss +5 -5
  106. package/dist/input-number/index.d.ts +2 -2
  107. package/dist/input-number/index.js +1 -1
  108. package/dist/job-title/types/types.d.ts +17 -17
  109. package/dist/layout/index.d.ts +2 -2
  110. package/dist/layout/index.js +1 -1
  111. package/dist/list/index.d.ts +2 -2
  112. package/dist/list/index.js +1 -1
  113. package/dist/mentions/index.d.ts +2 -2
  114. package/dist/mentions/index.js +1 -1
  115. package/dist/menu/index.d.ts +2 -2
  116. package/dist/menu/index.js +1 -1
  117. package/dist/message/index.d.ts +2 -2
  118. package/dist/message/index.js +1 -1
  119. package/dist/modal/index.d.ts +7 -7
  120. package/dist/modal/index.js +1 -1
  121. package/dist/modal/index.scss +81 -81
  122. package/dist/notification/index.d.ts +2 -2
  123. package/dist/notification/index.js +1 -1
  124. package/dist/pagination/index.d.ts +1 -1
  125. package/dist/pagination/index.js +1 -1
  126. package/dist/pagination/index.scss +47 -47
  127. package/dist/pop-confirm/index.d.ts +2 -2
  128. package/dist/pop-confirm/index.js +1 -1
  129. package/dist/popover/index.d.ts +3 -3
  130. package/dist/popover/index.js +1 -1
  131. package/dist/preview/components/preview/phone.scss +7 -7
  132. package/dist/preview/components/reactflow/Controls.d.ts +1 -1
  133. package/dist/preview/components/reactflow/TopPreview.d.ts +1 -1
  134. package/dist/preview/index.scss +35 -35
  135. package/dist/preview/types/type.d.ts +22 -22
  136. package/dist/progress/index.d.ts +2 -2
  137. package/dist/progress/index.js +1 -1
  138. package/dist/qrcode/index.d.ts +2 -2
  139. package/dist/qrcode/index.js +1 -1
  140. package/dist/radio/index.d.ts +3 -3
  141. package/dist/radio/index.js +2 -2
  142. package/dist/rate/index.d.ts +2 -2
  143. package/dist/rate/index.js +1 -1
  144. package/dist/result/index.d.ts +2 -2
  145. package/dist/result/index.js +1 -1
  146. package/dist/role/types/types.d.ts +22 -22
  147. package/dist/school/index.scss +21 -21
  148. package/dist/school/types/types.d.ts +85 -85
  149. package/dist/segmented/index.d.ts +2 -2
  150. package/dist/segmented/index.js +1 -1
  151. package/dist/select/index.d.ts +2 -2
  152. package/dist/select/index.js +1 -1
  153. package/dist/skeleton/index.d.ts +7 -7
  154. package/dist/skeleton/index.js +1 -1
  155. package/dist/slider/index.d.ts +2 -2
  156. package/dist/slider/index.js +1 -1
  157. package/dist/space/index.d.ts +2 -2
  158. package/dist/space/index.js +1 -1
  159. package/dist/spin/index.d.ts +2 -2
  160. package/dist/spin/index.js +1 -1
  161. package/dist/splitter/index.d.ts +2 -2
  162. package/dist/splitter/index.js +1 -1
  163. package/dist/state/index.scss +89 -89
  164. package/dist/statistic/index.d.ts +2 -2
  165. package/dist/statistic/index.js +1 -1
  166. package/dist/steps/index.d.ts +2 -2
  167. package/dist/steps/index.js +1 -1
  168. package/dist/steps/index.scss +32 -32
  169. package/dist/student-dropdown/types/types.d.ts +44 -44
  170. package/dist/switch/index.d.ts +2 -2
  171. package/dist/switch/index.js +1 -1
  172. package/dist/table/components/primary-header-row/index.scss +67 -67
  173. package/dist/table/components/primary-tbody-row/index.scss +5 -5
  174. package/dist/table/index.d.ts +6 -6
  175. package/dist/table/index.js +2 -2
  176. package/dist/table/index.scss +58 -58
  177. package/dist/tabs/index.d.ts +3 -3
  178. package/dist/tabs/index.js +1 -1
  179. package/dist/tabs/index.scss +86 -86
  180. package/dist/tag/index.d.ts +2 -2
  181. package/dist/tag/index.js +1 -1
  182. package/dist/tag/index.scss +4 -4
  183. package/dist/teacher/types/types.d.ts +33 -33
  184. package/dist/time-picker/index.d.ts +2 -2
  185. package/dist/time-picker/index.js +1 -1
  186. package/dist/timeline/index.d.ts +3 -3
  187. package/dist/timeline/index.js +1 -1
  188. package/dist/tooltip/index.d.ts +3 -3
  189. package/dist/tooltip/index.js +1 -1
  190. package/dist/tour/index.d.ts +3 -3
  191. package/dist/tour/index.js +1 -1
  192. package/dist/transfer/index.d.ts +2 -2
  193. package/dist/transfer/index.js +1 -1
  194. package/dist/tree/index.d.ts +3 -3
  195. package/dist/tree/index.js +1 -1
  196. package/dist/tree/index.scss +34 -34
  197. package/dist/tree-select/index.d.ts +2 -2
  198. package/dist/tree-select/index.js +1 -1
  199. package/dist/typography/index.d.ts +1 -1
  200. package/dist/typography/index.js +1 -1
  201. package/dist/upload/components/fileUpload.d.ts +3 -3
  202. package/dist/upload/components/fileUpload.js +1 -1
  203. package/dist/upload/components/imageUpload.d.ts +3 -3
  204. package/dist/upload/components/imageUpload.js +2 -2
  205. package/dist/upload/index.d.ts +4 -4
  206. package/dist/upload/index.js +1 -1
  207. package/dist/upload/index.scss +115 -115
  208. package/dist/user-dropdown/types/types.d.ts +45 -45
  209. package/dist/utils/types.d.ts +1 -1
  210. package/dist/utils/utils.d.ts +1 -1
  211. package/dist/video-player/index.js +7 -7
  212. package/dist/video-player/index.scss +339 -339
  213. package/dist/watermark/index.d.ts +2 -2
  214. package/dist/watermark/index.js +1 -1
  215. package/dist/with-search-form/index.scss +11 -11
  216. package/dist/with-search-form/types/type.d.ts +3 -3
  217. package/dist/year-options/index.d.ts +1 -1
  218. package/dist/year-options/index.js +1 -1
  219. package/dist/year-term/index.scss +21 -21
  220. package/dist/year-term/types/types.d.ts +39 -39
  221. package/dist/zones/index.scss +21 -21
  222. package/dist/zones/types/types.d.ts +26 -26
  223. package/package.json +93 -93
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,3 +1,5 @@
1
1
  /// <reference types="react" />
2
- export type { AffixProps, AffixRef } from 'antd/es/affix';
3
- export declare const Affix: import("react").ForwardRefExoticComponent<import("antd").AffixProps & import("react").RefAttributes<import("antd").AffixRef>>;
2
+ export type { AffixProps, AffixRef } from '@phoss/antd/es/affix';
3
+ export declare const Affix: import("react").ForwardRefExoticComponent<import("@phoss/antd").AffixProps & {
4
+ onTestUpdatePosition?: any;
5
+ } & import("react").RefAttributes<import("@phoss/antd").AffixRef>>;
@@ -1,2 +1,2 @@
1
- import { Affix as AntAffix } from 'antd';
1
+ import { Affix as AntAffix } from '@phoss/antd';
2
2
  export var Affix = AntAffix;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export type { AlertProps } from 'antd/es/alert';
3
- export declare const Alert: import("react").ForwardRefExoticComponent<import("antd").AlertProps & import("react").RefAttributes<import("antd/es/alert/Alert").AlertRef>> & {
4
- ErrorBoundary: typeof import("antd/es/alert/ErrorBoundary").default;
2
+ export type { AlertProps } from '@phoss/antd/es/alert';
3
+ export declare const Alert: import("react").ForwardRefExoticComponent<import("@phoss/antd").AlertProps & import("react").RefAttributes<import("@phoss/antd/es/alert/Alert").AlertRef>> & {
4
+ ErrorBoundary: typeof import("@phoss/antd/es/alert/ErrorBoundary").default;
5
5
  };
@@ -1,2 +1,2 @@
1
- import { Alert as AntAlert } from 'antd';
1
+ import { Alert as AntAlert } from '@phoss/antd';
2
2
  export var Alert = AntAlert;
@@ -1,5 +1,5 @@
1
- import type { AnchorProps as AntAnchorProps } from 'antd';
2
- import { Anchor as AntAnchor } from 'antd';
1
+ import type { AnchorProps as AntAnchorProps } from '@phoss/antd';
2
+ import { Anchor as AntAnchor } from '@phoss/antd';
3
3
  import { FC } from 'react';
4
4
  import './index.scss';
5
5
  export type AnchorProps = AntAnchorProps;
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  var _excluded = ["className"];
4
- import { Anchor as AntAnchor } from 'antd';
4
+ import { Anchor as AntAnchor } from '@phoss/antd';
5
5
  import React from 'react';
6
6
  import { useBem } from "../hooks/useBem";
7
7
  import "./index.scss";
@@ -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
+ }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export type { AppProps } from 'antd/es/app';
3
- export declare const App: import("react").FC<import("antd").AppProps<import("antd/es/_util/type").AnyObject>> & {
4
- useApp: () => import("antd/es/app/context").useAppProps;
2
+ export type { AppProps } from '@phoss/antd/es/app';
3
+ export declare const App: import("react").FC<import("@phoss/antd").AppProps<import("@phoss/antd/es/_util/type").AnyObject>> & {
4
+ useApp: () => import("@phoss/antd/es/app/context").useAppProps;
5
5
  };
package/dist/app/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { App as AntApp } from 'antd';
1
+ import { App as AntApp } from '@phoss/antd';
2
2
  export var App = AntApp;
@@ -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
+ }
@@ -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
+ }
@@ -1,41 +1,41 @@
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
- level5?: boolean;
13
- areaType?: number;
14
- areaSubType?: number;
15
- style?: React.CSSProperties;
16
- showSearch?: boolean;
17
- disabled?: boolean;
18
- value?: {
19
- level1?: number;
20
- level2?: number;
21
- level3?: number;
22
- level4?: number;
23
- level5?: number;
24
- };
25
- onChange?: (record: {
26
- level1?: number;
27
- level2?: number;
28
- level3?: number;
29
- level4?: number;
30
- level5?: number;
31
- }) => void;
32
- allowClear?: boolean;
33
- placeholder?: string[];
34
- };
35
- // 查询位置接口返回的数据类型
36
- export interface IareaItem {
37
- areaId: number;
38
- areaLevel: number;
39
- areaName: string;
40
- areaType: number;
41
- }
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
+ level5?: boolean;
13
+ areaType?: number;
14
+ areaSubType?: number;
15
+ style?: React.CSSProperties;
16
+ showSearch?: boolean;
17
+ disabled?: boolean;
18
+ value?: {
19
+ level1?: number;
20
+ level2?: number;
21
+ level3?: number;
22
+ level4?: number;
23
+ level5?: number;
24
+ };
25
+ onChange?: (record: {
26
+ level1?: number;
27
+ level2?: number;
28
+ level3?: number;
29
+ level4?: number;
30
+ level5?: number;
31
+ }) => void;
32
+ allowClear?: boolean;
33
+ placeholder?: string[];
34
+ };
35
+ // 查询位置接口返回的数据类型
36
+ export interface IareaItem {
37
+ areaId: number;
38
+ areaLevel: number;
39
+ areaName: string;
40
+ areaType: number;
41
+ }
@@ -4,7 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
5
  var _excluded = ["level1", "depth", "areaType", "areaSubType", "treeCheckable", "selectable", "treeDefaultExpandedLevel"];
6
6
  import { useQuery } from '@tanstack/react-query';
7
- import { TreeSelect } from 'antd';
7
+ import { TreeSelect } from '@phoss/antd';
8
8
  import React, { useMemo, useState } from 'react';
9
9
  var SHOW_PARENT = TreeSelect.SHOW_PARENT;
10
10
  import { useBem } from "../hooks/useBem";
@@ -1,6 +1,6 @@
1
- .yot-areastreeselect {
2
- .ant-select-tree-treenode {
3
- margin-bottom: 0 !important;
4
- padding-bottom: calc(var(--ant-padding-xs) / 2) !important;
5
- }
6
- }
1
+ .yot-areastreeselect {
2
+ .ant-select-tree-treenode {
3
+ margin-bottom: 0 !important;
4
+ padding-bottom: calc(var(--ant-padding-xs) / 2) !important;
5
+ }
6
+ }
@@ -1,40 +1,40 @@
1
- import { TreeSelectProps } from 'antd';
2
-
3
- export interface PageData<T> {
4
- content: T[];
5
- page: {
6
- number: number;
7
- size: number;
8
- totalElements: number;
9
- totalPages: number;
10
- };
11
- }
12
-
13
- // 查询位置树接口返回的数据类型
14
- export interface AreasTreeData {
15
- areaId: number;
16
- areaLevel: number;
17
- areaLevel1Id: number;
18
- areaName: string;
19
- areaSubType: number;
20
- areaType: number;
21
- children?: AreasTreeData[];
22
- }
23
- // 空间树所需数据类型
24
- export interface AreasTreeOptions {
25
- title: string;
26
- value: number;
27
- key: number;
28
- children?: AreasTreeOptions[];
29
- }
30
- // 空间树选择器props
31
- export interface AreasTreeSelectProps extends TreeSelectProps {
32
- level1?: boolean; // 是否显示第一级
33
- depth?: number; // 树节点深度,不传表示到第五级
34
- areaType?: number; // 筛选楼类型
35
- areaSubType?: number; // 筛选楼类型
36
- showSearch?: boolean; // 是否开启搜索
37
- treeCheckable?: boolean; // 是否开启多选
38
- selectable?: boolean; // 是否强制要求选到最底层
39
- treeDefaultExpandedLevel?: number; // 默认展开的层级
40
- }
1
+ import { TreeSelectProps } from '@phoss/antd';
2
+
3
+ export interface PageData<T> {
4
+ content: T[];
5
+ page: {
6
+ number: number;
7
+ size: number;
8
+ totalElements: number;
9
+ totalPages: number;
10
+ };
11
+ }
12
+
13
+ // 查询位置树接口返回的数据类型
14
+ export interface AreasTreeData {
15
+ areaId: number;
16
+ areaLevel: number;
17
+ areaLevel1Id: number;
18
+ areaName: string;
19
+ areaSubType: number;
20
+ areaType: number;
21
+ children?: AreasTreeData[];
22
+ }
23
+ // 空间树所需数据类型
24
+ export interface AreasTreeOptions {
25
+ title: string;
26
+ value: number;
27
+ key: number;
28
+ children?: AreasTreeOptions[];
29
+ }
30
+ // 空间树选择器props
31
+ export interface AreasTreeSelectProps extends TreeSelectProps {
32
+ level1?: boolean; // 是否显示第一级
33
+ depth?: number; // 树节点深度,不传表示到第五级
34
+ areaType?: number; // 筛选楼类型
35
+ areaSubType?: number; // 筛选楼类型
36
+ showSearch?: boolean; // 是否开启搜索
37
+ treeCheckable?: boolean; // 是否开启多选
38
+ selectable?: boolean; // 是否强制要求选到最底层
39
+ treeDefaultExpandedLevel?: number; // 默认展开的层级
40
+ }