yootd 0.0.10 → 0.0.11
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/Preview/components/preview/phone.scss +8 -8
- package/dist/Preview/index.scss +35 -35
- package/dist/Preview/types/type.d.ts +21 -21
- package/dist/anchor/index.scss +23 -23
- package/dist/approval-process/index.scss +95 -95
- package/dist/areas/index.scss +21 -21
- package/dist/areas/types/types.d.ts +39 -39
- package/dist/aside/components/SortableItem.scss +93 -93
- package/dist/aside/index.scss +25 -25
- package/dist/aside/types/types.d.ts +44 -44
- package/dist/badge/index.scss +5 -5
- package/dist/buildings/types/types.d.ts +21 -21
- package/dist/button/index.scss +30 -30
- package/dist/cascader/index.scss +5 -5
- package/dist/config-provider/context.d.ts +0 -1
- package/dist/config-provider/index.d.ts +0 -1
- package/dist/config-provider/index.js +1 -3
- package/dist/courses/types/types.d.ts +18 -18
- package/dist/dictionary/index.js +1 -2
- package/dist/dictionary/types/types.d.ts +14 -14
- package/dist/drawer-modal/index.scss +39 -39
- package/dist/drawer-modal/types/types.d.ts +3 -3
- package/dist/dropdown/assets/arrow-down.svg +5 -5
- package/dist/empty/index.scss +15 -15
- package/dist/group-title/index.scss +31 -31
- package/dist/image/index.scss +26 -26
- package/dist/index.d.ts +0 -2
- package/dist/index.js +1 -2
- package/dist/input/index.scss +5 -5
- package/dist/modal/index.scss +65 -65
- package/dist/pagination/index.scss +47 -47
- package/dist/school/index.scss +21 -21
- package/dist/state/index.scss +89 -89
- package/dist/steps/index.scss +32 -32
- package/dist/student-dropdown/types/types.d.ts +44 -44
- package/dist/table/components/primary-header-row/index.scss +58 -58
- package/dist/table/components/primary-tbody-row/index.scss +5 -5
- package/dist/table/index.module.scss +9 -9
- package/dist/table/index.scss +33 -33
- package/dist/tabs/index.scss +81 -81
- package/dist/tag/index.scss +4 -4
- package/dist/teacher/types/types.d.ts +31 -31
- package/dist/tree/index.scss +25 -25
- package/dist/upload/index.scss +115 -115
- package/dist/user-dropdown/types/types.d.ts +45 -45
- package/dist/year-term/index.scss +21 -21
- package/dist/year-term/types/types.d.ts +28 -28
- package/dist/zones/index.module.scss +23 -23
- package/dist/zones/types/types.d.ts +26 -26
- package/package.json +3 -8
- package/dist/hooks/useOSS.d.ts +0 -1
- package/dist/hooks/useOSS.js +0 -11
- package/dist/video-player/assets/control-background.png +0 -0
- package/dist/video-player/assets/player-icon.svg +0 -1
- package/dist/video-player/index.d.ts +0 -70
- package/dist/video-player/index.js +0 -875
- package/dist/video-player/index.scss +0 -310
package/dist/upload/index.scss
CHANGED
@@ -1,115 +1,115 @@
|
|
1
|
-
.yot-upload {
|
2
|
-
.ant-upload-list-item {
|
3
|
-
padding: 0;
|
4
|
-
}
|
5
|
-
.ant-upload-list-item.ant-upload-list-item-done {
|
6
|
-
.ant-upload-icon {
|
7
|
-
.anticon.anticon-paper-clip {
|
8
|
-
color: var(--ant-color-primary);
|
9
|
-
}
|
10
|
-
}
|
11
|
-
}
|
12
|
-
.ant-upload-list-item-name {
|
13
|
-
display: flex;
|
14
|
-
align-items: center;
|
15
|
-
}
|
16
|
-
|
17
|
-
&-file {
|
18
|
-
&-btn {
|
19
|
-
&__icon {
|
20
|
-
width: 16px;
|
21
|
-
height: 16px;
|
22
|
-
}
|
23
|
-
&:hover &{
|
24
|
-
&__icon {
|
25
|
-
.path-1 {
|
26
|
-
fill: var(--ant-color-primary);
|
27
|
-
width: 20px;
|
28
|
-
}
|
29
|
-
}
|
30
|
-
}
|
31
|
-
}
|
32
|
-
}
|
33
|
-
&__icon {
|
34
|
-
&--success {
|
35
|
-
width: 16px;
|
36
|
-
height: 16px;
|
37
|
-
position: absolute;
|
38
|
-
top: 0px;
|
39
|
-
right: 24px;
|
40
|
-
}
|
41
|
-
&--again {
|
42
|
-
width: 16px;
|
43
|
-
height: 16px;
|
44
|
-
position: absolute;
|
45
|
-
top: 0px;
|
46
|
-
right: 24px;
|
47
|
-
}
|
48
|
-
&--delete {
|
49
|
-
width: 16px;
|
50
|
-
height: 16px;
|
51
|
-
position: absolute;
|
52
|
-
top: 0px;
|
53
|
-
right: 2px;
|
54
|
-
}
|
55
|
-
}
|
56
|
-
|
57
|
-
&-image {
|
58
|
-
&-btn {
|
59
|
-
width: 100px;
|
60
|
-
height: 100px;
|
61
|
-
border-radius: 8px;
|
62
|
-
background-color: var(--ant-color-border-secondary);
|
63
|
-
display: flex;
|
64
|
-
align-items: center;
|
65
|
-
justify-content: center;
|
66
|
-
flex-direction: column;
|
67
|
-
&__text {
|
68
|
-
font-size: 12px;
|
69
|
-
color: var(--ant-color-text-quaternary);
|
70
|
-
margin-top: 8px;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
}
|
74
|
-
&-video {
|
75
|
-
&-content {
|
76
|
-
position: relative;
|
77
|
-
width: 102px;
|
78
|
-
height: 102px;
|
79
|
-
border-radius: 4px;
|
80
|
-
cursor: pointer;
|
81
|
-
padding: 8px;
|
82
|
-
box-sizing: border-box;
|
83
|
-
border: 1px solid var(--ant-color-border-secondary);
|
84
|
-
&__video {
|
85
|
-
width: 100%;
|
86
|
-
height: 100%;
|
87
|
-
}
|
88
|
-
&:hover &{
|
89
|
-
&-icon {
|
90
|
-
z-index: 10;
|
91
|
-
transition: all;
|
92
|
-
box-sizing: border-box;
|
93
|
-
position: absolute;
|
94
|
-
top: 8px;
|
95
|
-
left: 8px;
|
96
|
-
height: 86px;
|
97
|
-
width: 86px;
|
98
|
-
/* 这里的背景色根据需求设置 */
|
99
|
-
background: rgba(0, 0, 0, 0.6) !important;
|
100
|
-
background-color: #000;
|
101
|
-
filter: Alpha(Opacity=60);
|
102
|
-
opacity: 0.6;
|
103
|
-
&--delete {
|
104
|
-
width: 16px;
|
105
|
-
height: 16px;
|
106
|
-
position: absolute;
|
107
|
-
top: 36px;
|
108
|
-
left: 40%;
|
109
|
-
cursor: pointer;
|
110
|
-
}
|
111
|
-
}
|
112
|
-
}
|
113
|
-
}
|
114
|
-
}
|
115
|
-
}
|
1
|
+
.yot-upload {
|
2
|
+
.ant-upload-list-item {
|
3
|
+
padding: 0;
|
4
|
+
}
|
5
|
+
.ant-upload-list-item.ant-upload-list-item-done {
|
6
|
+
.ant-upload-icon {
|
7
|
+
.anticon.anticon-paper-clip {
|
8
|
+
color: var(--ant-color-primary);
|
9
|
+
}
|
10
|
+
}
|
11
|
+
}
|
12
|
+
.ant-upload-list-item-name {
|
13
|
+
display: flex;
|
14
|
+
align-items: center;
|
15
|
+
}
|
16
|
+
|
17
|
+
&-file {
|
18
|
+
&-btn {
|
19
|
+
&__icon {
|
20
|
+
width: 16px;
|
21
|
+
height: 16px;
|
22
|
+
}
|
23
|
+
&:hover &{
|
24
|
+
&__icon {
|
25
|
+
.path-1 {
|
26
|
+
fill: var(--ant-color-primary);
|
27
|
+
width: 20px;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
&__icon {
|
34
|
+
&--success {
|
35
|
+
width: 16px;
|
36
|
+
height: 16px;
|
37
|
+
position: absolute;
|
38
|
+
top: 0px;
|
39
|
+
right: 24px;
|
40
|
+
}
|
41
|
+
&--again {
|
42
|
+
width: 16px;
|
43
|
+
height: 16px;
|
44
|
+
position: absolute;
|
45
|
+
top: 0px;
|
46
|
+
right: 24px;
|
47
|
+
}
|
48
|
+
&--delete {
|
49
|
+
width: 16px;
|
50
|
+
height: 16px;
|
51
|
+
position: absolute;
|
52
|
+
top: 0px;
|
53
|
+
right: 2px;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
&-image {
|
58
|
+
&-btn {
|
59
|
+
width: 100px;
|
60
|
+
height: 100px;
|
61
|
+
border-radius: 8px;
|
62
|
+
background-color: var(--ant-color-border-secondary);
|
63
|
+
display: flex;
|
64
|
+
align-items: center;
|
65
|
+
justify-content: center;
|
66
|
+
flex-direction: column;
|
67
|
+
&__text {
|
68
|
+
font-size: 12px;
|
69
|
+
color: var(--ant-color-text-quaternary);
|
70
|
+
margin-top: 8px;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
&-video {
|
75
|
+
&-content {
|
76
|
+
position: relative;
|
77
|
+
width: 102px;
|
78
|
+
height: 102px;
|
79
|
+
border-radius: 4px;
|
80
|
+
cursor: pointer;
|
81
|
+
padding: 8px;
|
82
|
+
box-sizing: border-box;
|
83
|
+
border: 1px solid var(--ant-color-border-secondary);
|
84
|
+
&__video {
|
85
|
+
width: 100%;
|
86
|
+
height: 100%;
|
87
|
+
}
|
88
|
+
&:hover &{
|
89
|
+
&-icon {
|
90
|
+
z-index: 10;
|
91
|
+
transition: all;
|
92
|
+
box-sizing: border-box;
|
93
|
+
position: absolute;
|
94
|
+
top: 8px;
|
95
|
+
left: 8px;
|
96
|
+
height: 86px;
|
97
|
+
width: 86px;
|
98
|
+
/* 这里的背景色根据需求设置 */
|
99
|
+
background: rgba(0, 0, 0, 0.6) !important;
|
100
|
+
background-color: #000;
|
101
|
+
filter: Alpha(Opacity=60);
|
102
|
+
opacity: 0.6;
|
103
|
+
&--delete {
|
104
|
+
width: 16px;
|
105
|
+
height: 16px;
|
106
|
+
position: absolute;
|
107
|
+
top: 36px;
|
108
|
+
left: 40%;
|
109
|
+
cursor: pointer;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
@@ -1,45 +1,45 @@
|
|
1
|
-
import { SelectProps } from 'yootd';
|
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
|
-
type LabelOptions =
|
13
|
-
| 'uniqueNumber'
|
14
|
-
| 'personalName'
|
15
|
-
| 'majorName'
|
16
|
-
| 'collegeMajorName'
|
17
|
-
| 'className'
|
18
|
-
| 'gradeName'
|
19
|
-
| 'genderName'
|
20
|
-
| 'deptName'
|
21
|
-
| 'credentialsNo'
|
22
|
-
| 'personalMobile';
|
23
|
-
export type UserDropdownProps = SelectProps & {
|
24
|
-
type?: number; // 1:学生2:教师3:职工
|
25
|
-
label?: LabelOptions[];
|
26
|
-
connectors?: string;
|
27
|
-
teacher_id?: number;
|
28
|
-
};
|
29
|
-
export interface IuserItem {
|
30
|
-
userId: string; // ID
|
31
|
-
uniqueNumber?: string; // 学号/工号
|
32
|
-
personalName: string; // 姓名
|
33
|
-
personalPhoto?: string; // 照片
|
34
|
-
userFaceType?: number; // 人脸类型(1白名单2黑名单3红名单)
|
35
|
-
majorName?: string; // 专业名称
|
36
|
-
collegeMajorName?: string; // 院系名称
|
37
|
-
className?: string; // 班级名称
|
38
|
-
gradeName?: string; // 年级名称
|
39
|
-
genderName?: string; // 性别
|
40
|
-
deptId?: number; // 部门ID
|
41
|
-
deptName?: string; // 部门名称
|
42
|
-
gender?: number; // 性别
|
43
|
-
credentialsNo?: string; // 证件号
|
44
|
-
personalMobile?: string; // 手机号
|
45
|
-
}
|
1
|
+
import { SelectProps } from 'yootd';
|
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
|
+
type LabelOptions =
|
13
|
+
| 'uniqueNumber'
|
14
|
+
| 'personalName'
|
15
|
+
| 'majorName'
|
16
|
+
| 'collegeMajorName'
|
17
|
+
| 'className'
|
18
|
+
| 'gradeName'
|
19
|
+
| 'genderName'
|
20
|
+
| 'deptName'
|
21
|
+
| 'credentialsNo'
|
22
|
+
| 'personalMobile';
|
23
|
+
export type UserDropdownProps = SelectProps & {
|
24
|
+
type?: number; // 1:学生2:教师3:职工
|
25
|
+
label?: LabelOptions[];
|
26
|
+
connectors?: string;
|
27
|
+
teacher_id?: number;
|
28
|
+
};
|
29
|
+
export interface IuserItem {
|
30
|
+
userId: string; // ID
|
31
|
+
uniqueNumber?: string; // 学号/工号
|
32
|
+
personalName: string; // 姓名
|
33
|
+
personalPhoto?: string; // 照片
|
34
|
+
userFaceType?: number; // 人脸类型(1白名单2黑名单3红名单)
|
35
|
+
majorName?: string; // 专业名称
|
36
|
+
collegeMajorName?: string; // 院系名称
|
37
|
+
className?: string; // 班级名称
|
38
|
+
gradeName?: string; // 年级名称
|
39
|
+
genderName?: string; // 性别
|
40
|
+
deptId?: number; // 部门ID
|
41
|
+
deptName?: string; // 部门名称
|
42
|
+
gender?: number; // 性别
|
43
|
+
credentialsNo?: string; // 证件号
|
44
|
+
personalMobile?: string; // 手机号
|
45
|
+
}
|
@@ -1,21 +1,21 @@
|
|
1
|
-
.yot-YearTerm {
|
2
|
-
border: var(--ant-line-width) var(--ant-line-type) var(--ant-color-border);
|
3
|
-
border-radius: var(--ant-border-radius);
|
4
|
-
&-school-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-YearTerm {
|
2
|
+
border: var(--ant-line-width) var(--ant-line-type) var(--ant-color-border);
|
3
|
+
border-radius: var(--ant-border-radius);
|
4
|
+
&-school-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,28 +1,28 @@
|
|
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 IYearItem {
|
12
|
-
id: number; // ID
|
13
|
-
yearName: string; // 学年名称
|
14
|
-
}
|
15
|
-
// 查询学期返回的数据类型
|
16
|
-
export interface ITermItem {
|
17
|
-
termId: number; // ID
|
18
|
-
termName: string; // 学期名称
|
19
|
-
}
|
20
|
-
type YearTermProps = {
|
21
|
-
type?: 'yearTerm' | 'year' | 'term';
|
22
|
-
style?: React.CSSProperties;
|
23
|
-
showSearch?: boolean;
|
24
|
-
value?: Record<string, number>;
|
25
|
-
onChange?: (record: Record<string, number | undefined>) => void;
|
26
|
-
allowClear?: boolean;
|
27
|
-
placeholder?: string[];
|
28
|
-
};
|
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 IYearItem {
|
12
|
+
id: number; // ID
|
13
|
+
yearName: string; // 学年名称
|
14
|
+
}
|
15
|
+
// 查询学期返回的数据类型
|
16
|
+
export interface ITermItem {
|
17
|
+
termId: number; // ID
|
18
|
+
termName: string; // 学期名称
|
19
|
+
}
|
20
|
+
type YearTermProps = {
|
21
|
+
type?: 'yearTerm' | 'year' | 'term';
|
22
|
+
style?: React.CSSProperties;
|
23
|
+
showSearch?: boolean;
|
24
|
+
value?: Record<string, number>;
|
25
|
+
onChange?: (record: Record<string, number | undefined>) => void;
|
26
|
+
allowClear?: boolean;
|
27
|
+
placeholder?: string[];
|
28
|
+
};
|
@@ -1,23 +1,23 @@
|
|
1
|
-
.content {
|
2
|
-
border: var(--ant-line-width) var(--ant-line-type) var(--ant-color-border);
|
3
|
-
border-radius: var(--ant-border-radius);
|
4
|
-
:global {
|
5
|
-
.zone-select::after {
|
6
|
-
content: '';
|
7
|
-
position: absolute;
|
8
|
-
right: 0;
|
9
|
-
top: 50%; /* 从中间开始 */
|
10
|
-
width: 1px; /* 边框宽度 */
|
11
|
-
height: 50%; /* 设为盒子高度的百分之五十 */
|
12
|
-
background-color: var(--ant-color-border); /* 边框颜色 */
|
13
|
-
transform: translateY(-50%);
|
14
|
-
}
|
15
|
-
.ant-select.ant-select-outlined.css-var-yootd.ant-select-css-var.ant-select-single.ant-select-show-arrow {
|
16
|
-
.ant-select-selector {
|
17
|
-
padding-left: var(--ant-padding);
|
18
|
-
padding-right: var(--ant-padding);
|
19
|
-
border: 0;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
1
|
+
.content {
|
2
|
+
border: var(--ant-line-width) var(--ant-line-type) var(--ant-color-border);
|
3
|
+
border-radius: var(--ant-border-radius);
|
4
|
+
:global {
|
5
|
+
.zone-select::after {
|
6
|
+
content: '';
|
7
|
+
position: absolute;
|
8
|
+
right: 0;
|
9
|
+
top: 50%; /* 从中间开始 */
|
10
|
+
width: 1px; /* 边框宽度 */
|
11
|
+
height: 50%; /* 设为盒子高度的百分之五十 */
|
12
|
+
background-color: var(--ant-color-border); /* 边框颜色 */
|
13
|
+
transform: translateY(-50%);
|
14
|
+
}
|
15
|
+
.ant-select.ant-select-outlined.css-var-yootd.ant-select-css-var.ant-select-single.ant-select-show-arrow {
|
16
|
+
.ant-select-selector {
|
17
|
+
padding-left: var(--ant-padding);
|
18
|
+
padding-right: var(--ant-padding);
|
19
|
+
border: 0;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
@@ -1,26 +1,26 @@
|
|
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 ZoneItem {
|
12
|
-
zoneId: string; // 区域ID
|
13
|
-
zoneName: string; // 区域名称
|
14
|
-
zoneLevel: number; // 区域等级(1全国2省级3市级4区级)
|
15
|
-
zoneLevel1Id: string;
|
16
|
-
zoneLevel2Id: string;
|
17
|
-
}
|
18
|
-
export interface ZoneProps {
|
19
|
-
zoneLevel?: 'province' | 'city' | 'district';
|
20
|
-
value?: string[];
|
21
|
-
onChange?: (zoneIds: string[]) => void;
|
22
|
-
style?: React.CSSProperties;
|
23
|
-
placeholder?: string[];
|
24
|
-
allowClear?: boolean;
|
25
|
-
showSearch?: boolean;
|
26
|
-
}
|
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 ZoneItem {
|
12
|
+
zoneId: string; // 区域ID
|
13
|
+
zoneName: string; // 区域名称
|
14
|
+
zoneLevel: number; // 区域等级(1全国2省级3市级4区级)
|
15
|
+
zoneLevel1Id: string;
|
16
|
+
zoneLevel2Id: string;
|
17
|
+
}
|
18
|
+
export interface ZoneProps {
|
19
|
+
zoneLevel?: 'province' | 'city' | 'district';
|
20
|
+
value?: string[];
|
21
|
+
onChange?: (zoneIds: string[]) => void;
|
22
|
+
style?: React.CSSProperties;
|
23
|
+
placeholder?: string[];
|
24
|
+
allowClear?: boolean;
|
25
|
+
showSearch?: boolean;
|
26
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "yootd",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.11",
|
4
4
|
"description": "A react library developed with dumi",
|
5
5
|
"license": "MIT",
|
6
6
|
"module": "dist/index.js",
|
@@ -44,7 +44,6 @@
|
|
44
44
|
"prettier --parser=typescript --write"
|
45
45
|
]
|
46
46
|
},
|
47
|
-
"dependencies": {},
|
48
47
|
"devDependencies": {
|
49
48
|
"@commitlint/cli": "^17.1.2",
|
50
49
|
"@commitlint/config-conventional": "^17.1.0",
|
@@ -57,7 +56,6 @@
|
|
57
56
|
"@types/react": "^18.0.0",
|
58
57
|
"@types/react-dom": "^18.0.0",
|
59
58
|
"@umijs/lint": "^4.0.0",
|
60
|
-
"@vladmandic/face-api": "^1.7.14",
|
61
59
|
"antd": "^5.21.4",
|
62
60
|
"axios": "^1.7.7",
|
63
61
|
"dayjs": "^1.11.13",
|
@@ -75,8 +73,7 @@
|
|
75
73
|
"react": "^18.0.0",
|
76
74
|
"react-dom": "^18.0.0",
|
77
75
|
"sass": "^1.80.0",
|
78
|
-
"stylelint": "^14.9.1"
|
79
|
-
"yootd-webrtc-sdk": "^1.0.1"
|
76
|
+
"stylelint": "^14.9.1"
|
80
77
|
},
|
81
78
|
"peerDependencies": {
|
82
79
|
"@dnd-kit/core": ">=6.1.0",
|
@@ -84,7 +81,6 @@
|
|
84
81
|
"@dnd-kit/sortable": ">=8.0.0",
|
85
82
|
"@dnd-kit/utilities": ">=3.2.2",
|
86
83
|
"@tanstack/react-query": ">=5.59.15",
|
87
|
-
"@vladmandic/face-api": "^1.7.14",
|
88
84
|
"@xyflow/react": ">=12.3.3",
|
89
85
|
"antd": ">=5.21.4",
|
90
86
|
"axios": ">=1.7.7",
|
@@ -92,8 +88,7 @@
|
|
92
88
|
"lodash": ">=4.17.21",
|
93
89
|
"nanoid": ">=5.0.8",
|
94
90
|
"react": ">=16.9.0",
|
95
|
-
"react-dom": ">=16.9.0"
|
96
|
-
"yootd-webrtc-sdk": "^1.0.1"
|
91
|
+
"react-dom": ">=16.9.0"
|
97
92
|
},
|
98
93
|
"publishConfig": {
|
99
94
|
"access": "public"
|
package/dist/hooks/useOSS.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export declare const useOSS: () => string;
|
package/dist/hooks/useOSS.js
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
import _ from 'lodash';
|
2
|
-
import { useContext } from 'react';
|
3
|
-
import { ConfigContext } from "../config-provider/context";
|
4
|
-
export var useOSS = function useOSS() {
|
5
|
-
var _useContext = useContext(ConfigContext),
|
6
|
-
ossURL = _useContext.ossURL;
|
7
|
-
if (_.isNil(ossURL)) {
|
8
|
-
throw new Error('ossURL is not found');
|
9
|
-
}
|
10
|
-
return ossURL;
|
11
|
-
};
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1698128671512" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="906" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M177.26002244 1020.68826978c-8.39476931 0-16.78529945-2.08703457-24.36334146-6.21023633-16.33313206-8.95150085-26.50548539-26.04060047-26.50548539-44.65859052L126.39119559 54.20316557c0-18.61799004 10.17235194-35.76219902 26.50548539-44.66565629 16.27661148-8.95291345 36.21436639-8.18564235 51.88479014 1.88214681L916.92809291 469.23344724c14.54989766 9.35562463 23.34737815 25.48528291 23.34737816 42.77785771 0 17.29257478-8.79748049 33.42081908-23.34737816 42.78209687L204.78147112 1012.60153981C196.38528784 1017.94559264 186.82618801 1020.68826978 177.26002244 1020.68826978L177.26002244 1020.68826978zM177.26002244 1020.68826978" fill="#ffffff" p-id="907"></path></svg>
|
@@ -1,70 +0,0 @@
|
|
1
|
-
import { CSSProperties, FC } from 'react';
|
2
|
-
import './index.scss';
|
3
|
-
export interface VideoPlayerProps {
|
4
|
-
/**
|
5
|
-
* 视频地址
|
6
|
-
*/
|
7
|
-
src: string;
|
8
|
-
/**
|
9
|
-
* 是否为直播视频
|
10
|
-
*/
|
11
|
-
isLive?: boolean;
|
12
|
-
/**
|
13
|
-
* 是否展示控制面板
|
14
|
-
*/
|
15
|
-
controls?: boolean;
|
16
|
-
/**
|
17
|
-
* 是否自动播放
|
18
|
-
*/
|
19
|
-
autoPlay?: boolean;
|
20
|
-
/**
|
21
|
-
* 是否获取视频流
|
22
|
-
*/
|
23
|
-
videoEnable?: boolean;
|
24
|
-
/**
|
25
|
-
* 是否获取音频流
|
26
|
-
*/
|
27
|
-
audioEnable?: boolean;
|
28
|
-
/**
|
29
|
-
* 是否静音
|
30
|
-
*/
|
31
|
-
muted?: boolean;
|
32
|
-
/**
|
33
|
-
* 是否在微信小程序中使用
|
34
|
-
*/
|
35
|
-
miniProgram?: boolean;
|
36
|
-
/**
|
37
|
-
* 是否旋转全屏
|
38
|
-
*/
|
39
|
-
rotateWhenFullScreen?: boolean;
|
40
|
-
/**
|
41
|
-
* 视频封面
|
42
|
-
*/
|
43
|
-
poster?: string;
|
44
|
-
/**
|
45
|
-
* 截图回调
|
46
|
-
*/
|
47
|
-
onCapture?: (base64: string) => void;
|
48
|
-
/**
|
49
|
-
* 是否重试
|
50
|
-
*/
|
51
|
-
retry?: boolean;
|
52
|
-
/**
|
53
|
-
* 重试间隔
|
54
|
-
*/
|
55
|
-
retryInterval?: number;
|
56
|
-
/**
|
57
|
-
* 额外样式
|
58
|
-
*/
|
59
|
-
style?: CSSProperties;
|
60
|
-
/**
|
61
|
-
* 类名,用于覆盖默认样式
|
62
|
-
*/
|
63
|
-
className?: string;
|
64
|
-
/**
|
65
|
-
* 播放状态变化回调
|
66
|
-
* @param isPlaying
|
67
|
-
*/
|
68
|
-
onPlayStateChange?: (isPlaying: boolean) => void;
|
69
|
-
}
|
70
|
-
export declare const VideoPlayer: FC<VideoPlayerProps>;
|