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
@@ -1,6 +1,6 @@
1
- .yot-department {
2
- .ant-select-tree-treenode {
3
- margin-bottom: 0 !important;
4
- padding-bottom: calc(var(--ant-padding-xs) / 2) !important;
5
- }
6
- }
1
+ .yot-department {
2
+ .ant-select-tree-treenode {
3
+ margin-bottom: 0 !important;
4
+ padding-bottom: calc(var(--ant-padding-xs) / 2) !important;
5
+ }
6
+ }
@@ -1,23 +1,23 @@
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
- // 查询部门返回的数据类型
11
- export interface IDepartmentItem {
12
- deptId: number; // 部门ID
13
- deptName: string; // 部门名称
14
- deptLevel: number; // 部门级别(1,2,3,4...)
15
- children?: DeptListResponse[]; // 子部门
16
- }
17
- // 树组件填充的数据接口
18
- export interface ITreeData {
19
- title: string;
20
- value: number;
21
- children?: ITreeData[];
22
- }
23
- export type DepartmentProps = TreeSelectProps;
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
+ // 查询部门返回的数据类型
11
+ export interface IDepartmentItem {
12
+ deptId: number; // 部门ID
13
+ deptName: string; // 部门名称
14
+ deptLevel: number; // 部门级别(1,2,3,4...)
15
+ children?: DeptListResponse[]; // 子部门
16
+ }
17
+ // 树组件填充的数据接口
18
+ export interface ITreeData {
19
+ title: string;
20
+ value: number;
21
+ children?: ITreeData[];
22
+ }
23
+ export type DepartmentProps = TreeSelectProps;
@@ -1,4 +1,4 @@
1
- import type { DescriptionsProps as AntDescriptionsProps } from 'antd';
1
+ import type { DescriptionsProps as AntDescriptionsProps } from '@phoss/antd';
2
2
  import { FC } from 'react';
3
3
  import './index.scss';
4
4
  export type DescriptionsProps = AntDescriptionsProps;
@@ -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 { Descriptions as AntDescriptions } from 'antd';
4
+ import { Descriptions as AntDescriptions } from '@phoss/antd';
5
5
  import React from 'react';
6
6
  import { useBem } from "../hooks/useBem";
7
7
  import "./index.scss";
@@ -1,10 +1,10 @@
1
- .yot-descriptions{
2
- &-content{
3
- .ant-descriptions-item-label{
4
- color:var(--ant-color-text-secondary);
5
- }
6
- .ant-descriptions-item-content{
7
- color:var(--ant-color-text);
8
- }
9
- }
10
- }
1
+ .yot-descriptions{
2
+ &-content{
3
+ .ant-descriptions-item-label{
4
+ color:var(--ant-color-text-secondary);
5
+ }
6
+ .ant-descriptions-item-content{
7
+ color:var(--ant-color-text);
8
+ }
9
+ }
10
+ }
@@ -1,14 +1,14 @@
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
- export interface dictionaryItem {
11
- dictValue: string; // 字典项编码
12
- dictTitle: string; // 字典项名称
13
- dictTitle2?: string; // 字典项描述
14
- }
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
+ export interface dictionaryItem {
11
+ dictValue: string; // 字典项编码
12
+ dictTitle: string; // 字典项名称
13
+ dictTitle2?: string; // 字典项描述
14
+ }
@@ -1,4 +1,4 @@
1
- import type { DividerProps as AntDividerProps } from 'antd';
1
+ import type { DividerProps as AntDividerProps } from '@phoss/antd';
2
2
  import { FC } from 'react';
3
3
  export type DividerProps = AntDividerProps;
4
4
  export declare const Divider: FC<DividerProps>;
@@ -1,4 +1,4 @@
1
- import { Divider as AntDivider } from 'antd';
1
+ import { Divider as AntDivider } from '@phoss/antd';
2
2
  import React from 'react';
3
3
  export var Divider = function Divider(props) {
4
4
  return /*#__PURE__*/React.createElement(AntDivider, props);
@@ -1,3 +1,3 @@
1
- import { Drawer as AntDrawer } from 'antd';
2
- export type { DrawerProps, PushState } from 'antd/es/drawer';
1
+ import { Drawer as AntDrawer } from '@phoss/antd';
2
+ export type { DrawerProps, PushState } from '@phoss/antd/es/drawer';
3
3
  export declare const Drawer: typeof AntDrawer;
@@ -1,2 +1,2 @@
1
- import { Drawer as AntDrawer } from 'antd';
1
+ import { Drawer as AntDrawer } from '@phoss/antd';
2
2
  export var Drawer = AntDrawer;
@@ -1,4 +1,4 @@
1
- import type { DrawerProps as AntDrawerProps } from 'antd';
1
+ import type { DrawerProps as AntDrawerProps } from '@phoss/antd';
2
2
  import { FC } from 'react';
3
3
  import './index.scss';
4
4
  import type { DrawerModalProps } from './types/types';
@@ -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 = ["rootClassName", "onClose", "onConfirm", "extra", "footer"];
4
- import { Drawer as AntDrawer } from 'antd';
4
+ import { Drawer as AntDrawer } from '@phoss/antd';
5
5
  import React from 'react';
6
6
  import { Button } from "./..";
7
7
  import { CloseOutlined } from "./components/CloseOutlined";
@@ -1,42 +1,42 @@
1
- .yot-drawer {
2
- .ant-drawer-content-wrapper {
3
- max-width: 66.67vw;
4
- width: 100%;
5
- }
6
- .ant-drawer-header {
7
- background-color: var(--ant-color-bg-layout);
8
- .ant-drawer-header-title {
9
- font-size: 18px;
10
- font-weight: bold;
11
- .ant-drawer-close {
12
- display: none;
13
- }
14
- }
15
- }
16
- .ant-drawer-body {
17
- padding: 0;
18
- }
19
- .ant-drawer-footer {
20
- padding: 0;
21
- }
22
- .ant-drawer-footer & {
23
- padding-left: 24px;
24
- padding-right: 24px;
25
- &-footer {
26
- padding: 8px 16px;
27
- }
28
- &__foot-confirm {
29
- width: 64px;
30
- height: 32px;
31
- }
32
- &__foot-close {
33
- width: 64px;
34
- height: 32px;
35
- background-color: var(--ant-color-bg-layout);
36
- margin-right: 8px;
37
- }
38
- }
39
- &__close {
40
- cursor: pointer;
41
- }
42
- }
1
+ .yot-drawer {
2
+ .ant-drawer-content-wrapper {
3
+ max-width: 66.67vw;
4
+ width: 100%;
5
+ }
6
+ .ant-drawer-header {
7
+ background-color: var(--ant-color-bg-layout);
8
+ .ant-drawer-header-title {
9
+ font-size: 18px;
10
+ font-weight: bold;
11
+ .ant-drawer-close {
12
+ display: none;
13
+ }
14
+ }
15
+ }
16
+ .ant-drawer-body {
17
+ padding: 0;
18
+ }
19
+ .ant-drawer-footer {
20
+ padding: 0;
21
+ }
22
+ .ant-drawer-footer & {
23
+ padding-left: 24px;
24
+ padding-right: 24px;
25
+ &-footer {
26
+ padding: 8px 16px;
27
+ }
28
+ &__foot-confirm {
29
+ width: 64px;
30
+ height: 32px;
31
+ }
32
+ &__foot-close {
33
+ width: 64px;
34
+ height: 32px;
35
+ background-color: var(--ant-color-bg-layout);
36
+ margin-right: 8px;
37
+ }
38
+ }
39
+ &__close {
40
+ cursor: pointer;
41
+ }
42
+ }
@@ -1,3 +1,3 @@
1
- export interface DrawerModalProps {
2
- onConfirm?: () => void;
3
- }
1
+ export interface DrawerModalProps {
2
+ onConfirm?: () => void;
3
+ }
@@ -1,6 +1,6 @@
1
- <svg t="1729587167155" class="icon" viewBox="0 0 1024 1024" version="1.1"
2
- xmlns="http://www.w3.org/2000/svg" p-id="3741" width="20" height="20">
3
- <path
4
- d="M474.282667 690.176L148.053333 363.904l45.226667-45.226667 318.72 318.72 318.72-318.72 45.226667 45.226667-326.229334 326.272a53.333333 53.333333 0 0 1-75.434666 0z"
5
- p-id="3742" fill="#1f1f1f"></path>
1
+ <svg t="1729587167155" class="icon" viewBox="0 0 1024 1024" version="1.1"
2
+ xmlns="http://www.w3.org/2000/svg" p-id="3741" width="20" height="20">
3
+ <path
4
+ d="M474.282667 690.176L148.053333 363.904l45.226667-45.226667 318.72 318.72 318.72-318.72 45.226667 45.226667-326.229334 326.272a53.333333 53.333333 0 0 1-75.434666 0z"
5
+ p-id="3742" fill="#1f1f1f"></path>
6
6
  </svg>
@@ -1,5 +1,5 @@
1
- import type { DropdownProps as AntDropdownProps } from 'antd';
2
- import { Dropdown as AntDropdown } from 'antd';
1
+ import type { DropdownProps as AntDropdownProps } from '@phoss/antd';
2
+ import { Dropdown as AntDropdown } from '@phoss/antd';
3
3
  import React from 'react';
4
4
  export type DropdownProps = AntDropdownProps;
5
5
  type AntDropdownType = typeof AntDropdown;
@@ -1,4 +1,4 @@
1
- import { Dropdown as AntDropdown } from 'antd';
1
+ import { Dropdown as AntDropdown } from '@phoss/antd';
2
2
  import React from 'react';
3
3
  export var DropdownComponent = function DropdownComponent(props) {
4
4
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AntDropdown, props));
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
4
  var _excluded = ["items", "arrow", "defaultValue", "onChange"];
5
- import { Dropdown } from 'antd';
5
+ import { Dropdown } from '@phoss/antd';
6
6
  import React, { useEffect, useState } from 'react';
7
7
  import { useBem } from "../hooks/useBem";
8
8
  import { ArrowDown } from "./assets/ArrowDown";
@@ -1,6 +1,6 @@
1
- .yot-dropdownselect {
2
- .ant-dropdown-menu-item.ant-dropdown-menu-item-active{
3
- background-color: #F0F8FF !important;
4
- }
5
- }
6
-
1
+ .yot-dropdownselect {
2
+ .ant-dropdown-menu-item.ant-dropdown-menu-item-active{
3
+ background-color: #F0F8FF !important;
4
+ }
5
+ }
6
+
@@ -1,18 +1,18 @@
1
- export interface DropdownSelectProps {
2
- defaultValue?: string; // 默认选中的key值
3
- items: MenuItemType[]; // 下拉菜单
4
- onChange?: (value: string) => void; // 选中值改变时触发
5
- arrow?: boolean; // 下拉箭头是否显示
6
- overlayClassName?: string; // 下拉菜单的样式
7
- autoAdjustOverflow?: boolean; // 下拉框被遮挡时自动调整位置
8
- autoFocus?: boolean; // 打开后自动聚焦下拉框
9
- disabled?: boolean; // 菜单是否禁用
10
- destroyPopupOnHide?: boolean; // 关闭后是否销毁 Dropdown
11
- dropdownRender?: (menus: ReactNode) => ReactNode; // 自定义下拉菜单
12
- getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement; // 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位
13
- overlayClassName?: string; // 下拉菜单的样式
14
- overlayStyle?: React.CSSProperties; // 下拉菜单的样式
15
- placement?: 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight'; // 菜单弹出位置
16
- trigger?: Array<click | hover | contextMenu>; // 触发下拉的行为
17
- open?: boolean; // 菜单是否显示
18
- }
1
+ export interface DropdownSelectProps {
2
+ defaultValue?: string; // 默认选中的key值
3
+ items: MenuItemType[]; // 下拉菜单
4
+ onChange?: (value: string) => void; // 选中值改变时触发
5
+ arrow?: boolean; // 下拉箭头是否显示
6
+ overlayClassName?: string; // 下拉菜单的样式
7
+ autoAdjustOverflow?: boolean; // 下拉框被遮挡时自动调整位置
8
+ autoFocus?: boolean; // 打开后自动聚焦下拉框
9
+ disabled?: boolean; // 菜单是否禁用
10
+ destroyPopupOnHide?: boolean; // 关闭后是否销毁 Dropdown
11
+ dropdownRender?: (menus: ReactNode) => ReactNode; // 自定义下拉菜单
12
+ getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement; // 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位
13
+ overlayClassName?: string; // 下拉菜单的样式
14
+ overlayStyle?: React.CSSProperties; // 下拉菜单的样式
15
+ placement?: 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight'; // 菜单弹出位置
16
+ trigger?: Array<click | hover | contextMenu>; // 触发下拉的行为
17
+ open?: boolean; // 菜单是否显示
18
+ }
@@ -1,11 +1,11 @@
1
- import type { EmptyProps as AntEmptyProps } from 'antd';
2
- import { Empty as AntEmpty } from 'antd';
1
+ import type { EmptyProps as AntEmptyProps } from '@phoss/antd';
2
+ import { Empty as AntEmpty } from '@phoss/antd';
3
3
  import { FC } from 'react';
4
4
  import './index.scss';
5
5
  export type EmptyProps = AntEmptyProps & {
6
6
  type: 'emptyContent' | 'emptyData' | 'networkError' | 'notFound' | 'imageError' | 'noCollect' | 'noNews' | 'noNotice' | 'noSchedule' | 'noSearchData' | 'submitFail' | 'submitSuccess';
7
7
  };
8
- export type { TransferLocale } from 'antd/es/empty';
8
+ export type { TransferLocale } from '@phoss/antd/es/empty';
9
9
  type AntEmptyType = typeof AntEmpty;
10
10
  type EmptyType = typeof EmptyComponent & Pick<AntEmptyType, 'PRESENTED_IMAGE_DEFAULT' | 'PRESENTED_IMAGE_SIMPLE'>;
11
11
  declare const EmptyComponent: FC<EmptyProps>;
@@ -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 = ["type", "description", "className"];
4
- import { Empty as AntEmpty } from 'antd';
4
+ import { Empty as AntEmpty } from '@phoss/antd';
5
5
  import React, { useMemo } from 'react';
6
6
  import { useBem } from "../hooks/useBem";
7
7
  import "./index.scss";
@@ -1,15 +1,15 @@
1
- .yot-empty {
2
- &-description {
3
- &-content {
4
- &__title {
5
- font-size: 20px;
6
- font-weight: bold;
7
- color: var(--ant-color-text);
8
- }
9
- &__text {
10
- font-size: 14px;
11
- color: var(--ant-color-text-secondary);
12
- }
13
- }
14
- }
15
- }
1
+ .yot-empty {
2
+ &-description {
3
+ &-content {
4
+ &__title {
5
+ font-size: 20px;
6
+ font-weight: bold;
7
+ color: var(--ant-color-text);
8
+ }
9
+ &__text {
10
+ font-size: 14px;
11
+ color: var(--ant-color-text-secondary);
12
+ }
13
+ }
14
+ }
15
+ }
@@ -1,4 +1,4 @@
1
- import { MenuProps } from 'antd';
1
+ import { MenuProps } from '@phoss/antd';
2
2
  import React from 'react';
3
3
  import './index.scss';
4
4
  export declare const Export: React.FC<{
@@ -1,5 +1,5 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import { Dropdown } from 'antd';
2
+ import { Dropdown } from '@phoss/antd';
3
3
  import React, { useState } from 'react';
4
4
  import { useBem } from "../hooks/useBem";
5
5
  import "./index.scss";
@@ -1,6 +1,6 @@
1
- .yot-export {
2
- .ant-dropdown-menu-item.ant-dropdown-menu-item-active{
3
- background-color: var(--ant-color-primary-bg-hover) !important;
4
- }
5
- }
6
-
1
+ .yot-export {
2
+ .ant-dropdown-menu-item.ant-dropdown-menu-item-active{
3
+ background-color: var(--ant-color-primary-bg-hover) !important;
4
+ }
5
+ }
6
+
@@ -1,4 +1,4 @@
1
- import type { FlexProps as AntFlexProps } from 'antd';
1
+ import type { FlexProps as AntFlexProps } from '@phoss/antd';
2
2
  import { FC } from 'react';
3
3
  export type FlexProps = AntFlexProps;
4
4
  export declare const Flex: FC<FlexProps>;
@@ -1,4 +1,4 @@
1
- import { Flex as AntFlex } from 'antd';
1
+ import { Flex as AntFlex } from '@phoss/antd';
2
2
  import React from 'react';
3
3
  export var Flex = function Flex(props) {
4
4
  return /*#__PURE__*/React.createElement(AntFlex, props);
@@ -1,5 +1,5 @@
1
- import type { FloatButtonProps as AntFloatButtonProps } from 'antd';
2
- import { FloatButton as AntFloatButton } from 'antd';
1
+ import type { FloatButtonProps as AntFloatButtonProps } from '@phoss/antd';
2
+ import { FloatButton as AntFloatButton } from '@phoss/antd';
3
3
  import React from 'react';
4
4
  export type FloatButtonProps = AntFloatButtonProps;
5
5
  type AntFloatButtonType = typeof AntFloatButton;
@@ -1,5 +1,5 @@
1
1
  import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
2
- import { FloatButton as AntFloatButton } from 'antd';
2
+ import { FloatButton as AntFloatButton } from '@phoss/antd';
3
3
  import React from 'react';
4
4
  var FloatButtonComponent = function FloatButtonComponent(_ref) {
5
5
  var rest = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
@@ -1,3 +1,3 @@
1
- import { Form as AntForm } from 'antd';
2
- export type { ErrorListProps, FormInstance, FormItemProps, FormListFieldData, FormListOperation, FormListProps, FormProps, Rule, RuleObject, RuleRender, } from 'antd/es/form';
1
+ import { Form as AntForm } from '@phoss/antd';
2
+ export type { ErrorListProps, FormInstance, FormItemProps, FormListFieldData, FormListOperation, FormListProps, FormProps, Rule, RuleObject, RuleRender, } from '@phoss/antd/es/form';
3
3
  export declare const Form: typeof AntForm;
@@ -1,2 +1,2 @@
1
- import { Form as AntForm } from 'antd';
1
+ import { Form as AntForm } from '@phoss/antd';
2
2
  export var Form = AntForm;
@@ -1,5 +1,5 @@
1
- .yot-goback-icon {
2
- rect {
3
- fill: var(--ant-color-primary);
4
- }
5
- }
1
+ .yot-goback-icon {
2
+ rect {
3
+ fill: var(--ant-color-primary);
4
+ }
5
+ }
@@ -1,33 +1,33 @@
1
- .yot-goback {
2
- height: 59px;
3
- background-color: #ffffff;
4
- border-radius: 8px;
5
- box-sizing: border-box;
6
- padding: 0 24px;
7
- display: flex;
8
- align-items: center;
9
-
10
- &-content {
11
- width: fit-content;
12
- height: 100%;
13
- display: flex;
14
- align-items: center;
15
- cursor: pointer;
16
- overflow: hidden;
17
- &-title {
18
- font-size: 18px;
19
- margin-left: 5px;
20
- font-weight: bold;
21
- white-space: nowrap;
22
- text-overflow: ellipsis;
23
- overflow: hidden;
24
- }
25
- &-icon {
26
- width: 16px;
27
- height: 100%;
28
- display: flex;
29
- justify-content: center;
30
- align-items: center;
31
- }
32
- }
33
- }
1
+ .yot-goback {
2
+ height: 59px;
3
+ background-color: #ffffff;
4
+ border-radius: 8px;
5
+ box-sizing: border-box;
6
+ padding: 0 24px;
7
+ display: flex;
8
+ align-items: center;
9
+
10
+ &-content {
11
+ width: fit-content;
12
+ height: 100%;
13
+ display: flex;
14
+ align-items: center;
15
+ cursor: pointer;
16
+ overflow: hidden;
17
+ &-title {
18
+ font-size: 18px;
19
+ margin-left: 5px;
20
+ font-weight: bold;
21
+ white-space: nowrap;
22
+ text-overflow: ellipsis;
23
+ overflow: hidden;
24
+ }
25
+ &-icon {
26
+ width: 16px;
27
+ height: 100%;
28
+ display: flex;
29
+ justify-content: center;
30
+ align-items: center;
31
+ }
32
+ }
33
+ }
@@ -1,4 +1,4 @@
1
- import type { ColProps as AntColProps, RowProps as AntRowProps } from 'antd';
1
+ import type { ColProps as AntColProps, RowProps as AntRowProps } from '@phoss/antd';
2
2
  import { FC } from 'react';
3
3
  export type RowProps = AntRowProps;
4
4
  export declare const Row: FC<RowProps>;
@@ -1,4 +1,4 @@
1
- import { Col as AntCol, Row as AntRow } from 'antd';
1
+ import { Col as AntCol, Row as AntRow } from '@phoss/antd';
2
2
  import React from 'react';
3
3
  export var Row = function Row(props) {
4
4
  return /*#__PURE__*/React.createElement(AntRow, props);