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.
- package/LICENSE +21 -21
- package/README.md +43 -43
- package/dist/affix/index.d.ts +4 -2
- package/dist/affix/index.js +1 -1
- package/dist/alert/index.d.ts +3 -3
- package/dist/alert/index.js +1 -1
- package/dist/anchor/index.d.ts +2 -2
- package/dist/anchor/index.js +1 -1
- package/dist/anchor/index.scss +23 -23
- package/dist/app/index.d.ts +3 -3
- package/dist/app/index.js +1 -1
- package/dist/approval-process/index.scss +95 -95
- package/dist/areas/index.scss +21 -21
- package/dist/areas/types/types.d.ts +41 -41
- package/dist/areas-treeSelect/index.js +1 -1
- package/dist/areas-treeSelect/index.scss +6 -6
- package/dist/areas-treeSelect/types/type.d.ts +40 -40
- package/dist/aside/components/SortableItem.scss +289 -289
- package/dist/aside/index.scss +44 -44
- package/dist/aside/types/types.d.ts +82 -82
- package/dist/auto-complete/index.d.ts +2 -2
- package/dist/auto-complete/index.js +1 -1
- package/dist/avatar/index.d.ts +2 -2
- package/dist/avatar/index.js +1 -1
- package/dist/badge/index.d.ts +3 -3
- package/dist/badge/index.js +2 -2
- package/dist/badge/index.scss +5 -5
- package/dist/breadcrumb/index.d.ts +2 -2
- package/dist/breadcrumb/index.js +1 -1
- package/dist/buildings/types/types.d.ts +21 -21
- package/dist/business-tree/components/dept.d.ts +1 -1
- package/dist/business-tree/components/space.d.ts +1 -1
- package/dist/business-tree/index.d.ts +1 -1
- package/dist/button/index.d.ts +2 -2
- package/dist/button/index.js +1 -1
- package/dist/button/index.scss +30 -30
- package/dist/calendar/index.d.ts +2 -2
- package/dist/calendar/index.js +1 -1
- package/dist/card/index.d.ts +2 -2
- package/dist/card/index.js +1 -1
- package/dist/carousel/index.d.ts +2 -2
- package/dist/carousel/index.js +1 -1
- package/dist/cascader/index.d.ts +3 -3
- package/dist/cascader/index.js +1 -1
- package/dist/cascader/index.scss +5 -5
- package/dist/checkbox/index.d.ts +3 -3
- package/dist/checkbox/index.js +1 -1
- package/dist/collapse/index.d.ts +2 -2
- package/dist/collapse/index.js +1 -1
- package/dist/color-picker/index.d.ts +2 -2
- package/dist/color-picker/index.js +1 -1
- package/dist/config-provider/index.d.ts +2 -2
- package/dist/config-provider/index.js +2 -2
- package/dist/courses/types/types.d.ts +18 -18
- package/dist/date-interval/index.d.ts +1 -1
- package/dist/date-interval/index.js +1 -1
- package/dist/date-picker/index.d.ts +2 -2
- package/dist/date-picker/index.js +1 -1
- package/dist/date-range/index.d.ts +1 -1
- package/dist/date-range/index.js +1 -1
- package/dist/department/index.scss +6 -6
- package/dist/department/types/types.d.ts +23 -23
- package/dist/description/index.d.ts +1 -1
- package/dist/description/index.js +1 -1
- package/dist/description/index.scss +10 -10
- package/dist/dictionary/types/types.d.ts +14 -14
- package/dist/divider/index.d.ts +1 -1
- package/dist/divider/index.js +1 -1
- package/dist/drawer/index.d.ts +2 -2
- package/dist/drawer/index.js +1 -1
- package/dist/drawer-modal/index.d.ts +1 -1
- package/dist/drawer-modal/index.js +1 -1
- package/dist/drawer-modal/index.scss +42 -42
- package/dist/drawer-modal/types/types.d.ts +3 -3
- package/dist/dropdown/assets/arrow-down.svg +5 -5
- package/dist/dropdown/index.d.ts +2 -2
- package/dist/dropdown/index.js +1 -1
- package/dist/dropdown-select/index.js +1 -1
- package/dist/dropdown-select/index.scss +6 -6
- package/dist/dropdown-select/types/type.d.ts +18 -18
- package/dist/empty/index.d.ts +3 -3
- package/dist/empty/index.js +1 -1
- package/dist/empty/index.scss +15 -15
- package/dist/export/index.d.ts +1 -1
- package/dist/export/index.js +1 -1
- package/dist/export/index.scss +6 -6
- package/dist/flex/index.d.ts +1 -1
- package/dist/flex/index.js +1 -1
- package/dist/float-button/index.d.ts +2 -2
- package/dist/float-button/index.js +1 -1
- package/dist/form/index.d.ts +2 -2
- package/dist/form/index.js +1 -1
- package/dist/go-back/components/index.scss +5 -5
- package/dist/go-back/index.scss +33 -33
- package/dist/grid/index.d.ts +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/group-title/index.scss +31 -31
- package/dist/holiday/types/types.d.ts +22 -22
- package/dist/hooks/useBem.js +10 -10
- package/dist/image/index.d.ts +3 -3
- package/dist/image/index.js +1 -1
- package/dist/image/index.scss +26 -26
- package/dist/input/index.d.ts +3 -3
- package/dist/input/index.js +1 -1
- package/dist/input/index.scss +5 -5
- package/dist/input-number/index.d.ts +2 -2
- package/dist/input-number/index.js +1 -1
- package/dist/job-title/types/types.d.ts +17 -17
- package/dist/layout/index.d.ts +2 -2
- package/dist/layout/index.js +1 -1
- package/dist/list/index.d.ts +2 -2
- package/dist/list/index.js +1 -1
- package/dist/mentions/index.d.ts +2 -2
- package/dist/mentions/index.js +1 -1
- package/dist/menu/index.d.ts +2 -2
- package/dist/menu/index.js +1 -1
- package/dist/message/index.d.ts +2 -2
- package/dist/message/index.js +1 -1
- package/dist/modal/index.d.ts +7 -7
- package/dist/modal/index.js +1 -1
- package/dist/modal/index.scss +81 -81
- package/dist/notification/index.d.ts +2 -2
- package/dist/notification/index.js +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/index.scss +47 -47
- package/dist/pop-confirm/index.d.ts +2 -2
- package/dist/pop-confirm/index.js +1 -1
- package/dist/popover/index.d.ts +3 -3
- package/dist/popover/index.js +1 -1
- package/dist/preview/components/preview/phone.scss +7 -7
- package/dist/preview/components/reactflow/Controls.d.ts +1 -1
- package/dist/preview/components/reactflow/TopPreview.d.ts +1 -1
- package/dist/preview/index.scss +35 -35
- package/dist/preview/types/type.d.ts +22 -22
- package/dist/progress/index.d.ts +2 -2
- package/dist/progress/index.js +1 -1
- package/dist/qrcode/index.d.ts +2 -2
- package/dist/qrcode/index.js +1 -1
- package/dist/radio/index.d.ts +3 -3
- package/dist/radio/index.js +2 -2
- package/dist/rate/index.d.ts +2 -2
- package/dist/rate/index.js +1 -1
- package/dist/result/index.d.ts +2 -2
- package/dist/result/index.js +1 -1
- package/dist/role/types/types.d.ts +22 -22
- package/dist/school/index.scss +21 -21
- package/dist/school/types/types.d.ts +85 -85
- package/dist/segmented/index.d.ts +2 -2
- package/dist/segmented/index.js +1 -1
- package/dist/select/index.d.ts +2 -2
- package/dist/select/index.js +1 -1
- package/dist/skeleton/index.d.ts +7 -7
- package/dist/skeleton/index.js +1 -1
- package/dist/slider/index.d.ts +2 -2
- package/dist/slider/index.js +1 -1
- package/dist/space/index.d.ts +2 -2
- package/dist/space/index.js +1 -1
- package/dist/spin/index.d.ts +2 -2
- package/dist/spin/index.js +1 -1
- package/dist/splitter/index.d.ts +2 -2
- package/dist/splitter/index.js +1 -1
- package/dist/state/index.scss +89 -89
- package/dist/statistic/index.d.ts +2 -2
- package/dist/statistic/index.js +1 -1
- package/dist/steps/index.d.ts +2 -2
- package/dist/steps/index.js +1 -1
- package/dist/steps/index.scss +32 -32
- package/dist/student-dropdown/types/types.d.ts +44 -44
- package/dist/switch/index.d.ts +2 -2
- package/dist/switch/index.js +1 -1
- package/dist/table/components/primary-header-row/index.scss +67 -67
- package/dist/table/components/primary-tbody-row/index.scss +5 -5
- package/dist/table/index.d.ts +6 -6
- package/dist/table/index.js +2 -2
- package/dist/table/index.scss +58 -58
- package/dist/tabs/index.d.ts +3 -3
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/index.scss +86 -86
- package/dist/tag/index.d.ts +2 -2
- package/dist/tag/index.js +1 -1
- package/dist/tag/index.scss +4 -4
- package/dist/teacher/types/types.d.ts +33 -33
- package/dist/time-picker/index.d.ts +2 -2
- package/dist/time-picker/index.js +1 -1
- package/dist/timeline/index.d.ts +3 -3
- package/dist/timeline/index.js +1 -1
- package/dist/tooltip/index.d.ts +3 -3
- package/dist/tooltip/index.js +1 -1
- package/dist/tour/index.d.ts +3 -3
- package/dist/tour/index.js +1 -1
- package/dist/transfer/index.d.ts +2 -2
- package/dist/transfer/index.js +1 -1
- package/dist/tree/index.d.ts +3 -3
- package/dist/tree/index.js +1 -1
- package/dist/tree/index.scss +34 -34
- package/dist/tree-select/index.d.ts +2 -2
- package/dist/tree-select/index.js +1 -1
- package/dist/typography/index.d.ts +1 -1
- package/dist/typography/index.js +1 -1
- package/dist/upload/components/fileUpload.d.ts +3 -3
- package/dist/upload/components/fileUpload.js +1 -1
- package/dist/upload/components/imageUpload.d.ts +3 -3
- package/dist/upload/components/imageUpload.js +2 -2
- package/dist/upload/index.d.ts +4 -4
- package/dist/upload/index.js +1 -1
- package/dist/upload/index.scss +115 -115
- package/dist/user-dropdown/types/types.d.ts +45 -45
- package/dist/utils/types.d.ts +1 -1
- package/dist/utils/utils.d.ts +1 -1
- package/dist/video-player/index.js +7 -7
- package/dist/video-player/index.scss +339 -339
- package/dist/watermark/index.d.ts +2 -2
- package/dist/watermark/index.js +1 -1
- package/dist/with-search-form/index.scss +11 -11
- package/dist/with-search-form/types/type.d.ts +3 -3
- package/dist/year-options/index.d.ts +1 -1
- package/dist/year-options/index.js +1 -1
- package/dist/year-term/index.scss +21 -21
- package/dist/year-term/types/types.d.ts +39 -39
- package/dist/zones/index.scss +21 -21
- package/dist/zones/types/types.d.ts +26 -26
- 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,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
|
+
}
|
package/dist/divider/index.d.ts
CHANGED
package/dist/divider/index.js
CHANGED
package/dist/drawer/index.d.ts
CHANGED
@@ -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;
|
package/dist/drawer/index.js
CHANGED
@@ -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,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>
|
package/dist/dropdown/index.d.ts
CHANGED
@@ -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;
|
package/dist/dropdown/index.js
CHANGED
@@ -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
|
+
}
|
package/dist/empty/index.d.ts
CHANGED
@@ -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>;
|
package/dist/empty/index.js
CHANGED
@@ -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";
|
package/dist/empty/index.scss
CHANGED
@@ -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
|
+
}
|
package/dist/export/index.d.ts
CHANGED
package/dist/export/index.js
CHANGED
package/dist/export/index.scss
CHANGED
@@ -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
|
+
|
package/dist/flex/index.d.ts
CHANGED
package/dist/flex/index.js
CHANGED
@@ -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));
|
package/dist/form/index.d.ts
CHANGED
@@ -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;
|
package/dist/form/index.js
CHANGED
@@ -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
|
+
}
|
package/dist/go-back/index.scss
CHANGED
@@ -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
|
+
}
|
package/dist/grid/index.d.ts
CHANGED
@@ -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>;
|
package/dist/grid/index.js
CHANGED