@qsxy/element-plus-react 1.0.0-next.13 → 1.0.0-next.15
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/dist/Dialog/Dialog.js +5 -6
- package/dist/Dialog/DialogContext.d.ts +1 -1
- package/dist/Dialog/DialogContext.js +1 -1
- package/dist/Drawer/Drawer.d.ts +2 -5
- package/dist/Drawer/Drawer.js +98 -35
- package/dist/Drawer/DrawerBody.js +6 -12
- package/dist/Drawer/DrawerContext.d.ts +1 -13
- package/dist/Drawer/DrawerContext.js +1 -11
- package/dist/Drawer/DrawerHeader.js +5 -18
- package/dist/Drawer/typings.d.ts +31 -10
- package/dist/MessageBox/index.d.ts +3 -3
- package/dist/Skeleton/PlaceholderGraph.d.ts +1 -1
- package/dist/Skeleton/PlaceholderGraph.js +3 -3
- package/dist/Skeleton/PlaceholderGrid.d.ts +1 -1
- package/dist/Skeleton/PlaceholderGrid.js +3 -3
- package/dist/Skeleton/PlaceholderParagraph.d.ts +2 -2
- package/dist/Skeleton/PlaceholderParagraph.js +13 -8
- package/dist/Skeleton/Skeleton.d.ts +2 -9
- package/dist/Skeleton/Skeleton.js +94 -7
- package/dist/Skeleton/SkeletonContext.d.ts +17 -0
- package/dist/Skeleton/SkeletonContext.js +5 -0
- package/dist/Skeleton/SkeletonItem.d.ts +4 -0
- package/dist/Skeleton/SkeletonItem.js +47 -0
- package/dist/Skeleton/index.d.ts +2 -3
- package/dist/Skeleton/index.js +2 -1
- package/dist/Skeleton/typings.d.ts +29 -0
- package/dist/Skeleton/typings.js +1 -0
- package/dist/Upload/use-handlers.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/theme-chalk/drawer/index.scss +61 -65
- package/theme-chalk/placeholder/index.scss +22 -37
package/dist/index.d.ts
CHANGED
|
@@ -81,8 +81,8 @@ export { TabPane as ElTabPane, Tabs as ElTabs } from './Tabs';
|
|
|
81
81
|
export type { TabPaneProps, TabsPaneContext, TabsProps } from './Tabs';
|
|
82
82
|
export { Empty as ElEmpty } from './Empty';
|
|
83
83
|
export type { IEmptyProps } from './Empty';
|
|
84
|
-
export { Skeleton as ElSkeleton } from './Skeleton';
|
|
85
|
-
export type {
|
|
84
|
+
export { Skeleton as ElSkeleton, SkeletonItem as ElSkeletonItem } from './Skeleton';
|
|
85
|
+
export type { SkeletonItemProps, SkeletonProps } from './Skeleton';
|
|
86
86
|
export { Dialog as ElDialog } from './Dialog';
|
|
87
87
|
export type { DialogBeforeCloseFn, DialogProps } from './Dialog';
|
|
88
88
|
export { Drawer as ElDrawer } from './Drawer';
|
package/dist/index.js
CHANGED
|
@@ -47,7 +47,7 @@ export { Breadcrumb as ElBreadcrumb, BreadcrumbItem as ElBreadcrumbItem } from "
|
|
|
47
47
|
export { Dropdown as ElDropdown, DropdownItem as ElDropdownItem, DropdownMenu as ElDropdownMenu } from "./Dropdown";
|
|
48
48
|
export { TabPane as ElTabPane, Tabs as ElTabs } from "./Tabs";
|
|
49
49
|
export { Empty as ElEmpty } from "./Empty";
|
|
50
|
-
export { Skeleton as ElSkeleton } from "./Skeleton";
|
|
50
|
+
export { Skeleton as ElSkeleton, SkeletonItem as ElSkeletonItem } from "./Skeleton";
|
|
51
51
|
/* Feedback 反馈组件 */
|
|
52
52
|
export { Dialog as ElDialog } from "./Dialog";
|
|
53
53
|
export { Drawer as ElDrawer } from "./Drawer";
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.#{$namespace}-drawer {
|
|
13
|
-
--#{$namespace}-drawer-width:
|
|
13
|
+
--#{$namespace}-drawer-width: 30%;
|
|
14
14
|
--#{$namespace}-drawer-height: 100%;
|
|
15
15
|
--#{$namespace}-drawer-margin-top: 30px;
|
|
16
16
|
--#{$namespace}-drawer-bg-color: var(--#{$namespace}-bg-color-overlay);
|
|
@@ -40,60 +40,28 @@
|
|
|
40
40
|
.#{$namespace}-drawer-right {
|
|
41
41
|
top: 0;
|
|
42
42
|
--#{$namespace}-drawer-height: 100%;
|
|
43
|
-
|
|
44
|
-
&.#{$namespace}-drawer-large {
|
|
45
|
-
--#{$namespace}-drawer-width: 969px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&.#{$namespace}-drawer-md {
|
|
49
|
-
--#{$namespace}-drawer-width: 800px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&.#{$namespace}-drawer-small {
|
|
53
|
-
--#{$namespace}-drawer-width: 600px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&.#{$namespace}-drawer-xs {
|
|
57
|
-
--#{$namespace}-drawer-width: 400px;
|
|
58
|
-
}
|
|
59
43
|
}
|
|
60
44
|
|
|
61
45
|
.#{$namespace}-drawer-top,
|
|
62
46
|
.#{$namespace}-drawer-bottom {
|
|
63
47
|
--#{$namespace}-drawer-width: 100%;
|
|
64
|
-
|
|
65
|
-
&.#{$namespace}-drawer-large {
|
|
66
|
-
--#{$namespace}-drawer-height: 568px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&.#{$namespace}-drawer-md {
|
|
70
|
-
--#{$namespace}-drawer-height: 480px;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&.#{$namespace}-drawer-small {
|
|
74
|
-
--#{$namespace}-drawer-height: 400px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&.#{$namespace}-drawer-xs {
|
|
78
|
-
--#{$namespace}-drawer-height: 290px;
|
|
79
|
-
}
|
|
80
48
|
}
|
|
81
49
|
|
|
82
|
-
.#{$namespace}-drawer-full {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
50
|
+
// .#{$namespace}-drawer-full {
|
|
51
|
+
// &.#{$namespace}-drawer-top,
|
|
52
|
+
// &.#{$namespace}-drawer-bottom {
|
|
53
|
+
// --#{$namespace}-drawer-height: 100%;
|
|
86
54
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
55
|
+
// .#{$namespace}-drawer-content {
|
|
56
|
+
// --#{$namespace}-drawer-height: 100%;
|
|
57
|
+
// }
|
|
58
|
+
// }
|
|
91
59
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
60
|
+
// &.#{$namespace}-drawer-left,
|
|
61
|
+
// &.#{$namespace}-drawer-right {
|
|
62
|
+
// --#{$namespace}-drawer-width: calc(100% - 60px);
|
|
63
|
+
// }
|
|
64
|
+
// }
|
|
97
65
|
|
|
98
66
|
.#{$namespace}-drawer-right {
|
|
99
67
|
right: 0;
|
|
@@ -156,6 +124,13 @@
|
|
|
156
124
|
}
|
|
157
125
|
|
|
158
126
|
.#{$namespace}-drawer-header {
|
|
127
|
+
align-items: center;
|
|
128
|
+
color: #72767b;
|
|
129
|
+
display: flex;
|
|
130
|
+
margin-bottom: 15px;
|
|
131
|
+
padding: var(--el-drawer-padding-primary);
|
|
132
|
+
padding-bottom: 0;
|
|
133
|
+
|
|
159
134
|
&::before,
|
|
160
135
|
&::after {
|
|
161
136
|
content: ' '; // 1
|
|
@@ -166,45 +141,66 @@
|
|
|
166
141
|
clear: both;
|
|
167
142
|
}
|
|
168
143
|
|
|
169
|
-
|
|
144
|
+
& > :first-child {
|
|
145
|
+
flex: 1;
|
|
146
|
+
}
|
|
170
147
|
|
|
171
148
|
&.is-border {
|
|
172
149
|
border-bottom: 1px solid var(--#{$namespace}-border-color);
|
|
173
150
|
}
|
|
174
151
|
|
|
175
152
|
.#{$namespace}-drawer-header-close {
|
|
176
|
-
|
|
153
|
+
display: inline-flex;
|
|
177
154
|
border: none;
|
|
178
155
|
cursor: pointer;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
156
|
+
font-size: var(--el-font-size-extra-large);
|
|
157
|
+
color: inherit;
|
|
158
|
+
background-color: transparent;
|
|
159
|
+
outline: none;
|
|
160
|
+
|
|
161
|
+
&:focus i,
|
|
162
|
+
&:hover i {
|
|
163
|
+
color: var(--el-color-primary);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// background: transparent;
|
|
167
|
+
// border: none;
|
|
168
|
+
// cursor: pointer;
|
|
169
|
+
// position: absolute;
|
|
170
|
+
// right: 20px;
|
|
171
|
+
// top: 12px;
|
|
172
|
+
// font-size: 16px;
|
|
173
|
+
// line-height: 1.6666666667;
|
|
174
|
+
// color: var(--#{$namespace}-color-info);
|
|
175
|
+
// width: 20px;
|
|
176
|
+
// padding: 0 4px;
|
|
187
177
|
}
|
|
188
178
|
}
|
|
189
179
|
|
|
190
180
|
.#{$namespace}-drawer-title {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
181
|
+
margin: 0;
|
|
182
|
+
flex: 1;
|
|
183
|
+
line-height: inherit;
|
|
194
184
|
font-size: 16px;
|
|
195
|
-
line-height: 1.25;
|
|
196
185
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
186
|
+
// font-weight: normal;
|
|
187
|
+
// color: var(--#{$namespace}-text-color-primary);
|
|
188
|
+
// display: block;
|
|
189
|
+
// font-size: 16px;
|
|
190
|
+
// line-height: 1.25;
|
|
191
|
+
|
|
192
|
+
// margin: 0;
|
|
193
|
+
// overflow: hidden;
|
|
194
|
+
// text-overflow: ellipsis;
|
|
195
|
+
// white-space: nowrap;
|
|
196
|
+
// width: 100%;
|
|
202
197
|
}
|
|
203
198
|
|
|
204
199
|
.#{$namespace}-drawer-body {
|
|
205
200
|
position: relative;
|
|
206
201
|
flex: 1;
|
|
207
202
|
overflow: hidden;
|
|
203
|
+
padding: 20px;
|
|
208
204
|
}
|
|
209
205
|
|
|
210
206
|
.#{$namespace}-drawer-footer {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
@use '../common/var';
|
|
2
2
|
|
|
3
|
-
.#{$namespace}-
|
|
3
|
+
.#{$namespace}-skeleton {
|
|
4
4
|
--#{$namespace}-skeleton-color: var(--#{$namespace}-fill-color);
|
|
5
5
|
--#{$namespace}-skeleton-to-color: var(--#{$namespace}-fill-color-darker);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.is-dark {
|
|
9
|
-
.#{$namespace}-
|
|
9
|
+
.#{$namespace}-skeleton {
|
|
10
10
|
--#{$namespace}-skeleton-color: #3c3f43;
|
|
11
11
|
--#{$namespace}-skeleton-to-color: #484c50;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.#{$namespace}-
|
|
15
|
+
.#{$namespace}-skeleton {
|
|
16
16
|
-webkit-box-pack: start;
|
|
17
17
|
-ms-flex-pack: start;
|
|
18
18
|
-webkit-box-align: start;
|
|
@@ -38,33 +38,18 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
&-image {
|
|
41
|
-
width:
|
|
42
|
-
height:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
border-bottom: 36px solid;
|
|
54
|
-
border-left: 20px solid transparent;
|
|
55
|
-
border-right: 30px solid transparent;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&::before {
|
|
59
|
-
content: '';
|
|
60
|
-
width: 0;
|
|
61
|
-
height: 0;
|
|
62
|
-
left: 40px;
|
|
63
|
-
bottom: 10px;
|
|
64
|
-
position: absolute;
|
|
65
|
-
border-bottom: 22px solid;
|
|
66
|
-
border-left: 16px solid transparent;
|
|
67
|
-
border-right: 16px solid transparent;
|
|
41
|
+
width: 200px;
|
|
42
|
+
height: 200px;
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
border-radius: 0;
|
|
47
|
+
|
|
48
|
+
& > svg {
|
|
49
|
+
color: var(--el-border-color);
|
|
50
|
+
fill: currentColor;
|
|
51
|
+
width: 22%;
|
|
52
|
+
height: 22%;
|
|
68
53
|
}
|
|
69
54
|
}
|
|
70
55
|
|
|
@@ -81,7 +66,7 @@
|
|
|
81
66
|
&-rows {
|
|
82
67
|
width: 100%;
|
|
83
68
|
|
|
84
|
-
|
|
69
|
+
.#{$namespace}-skeleton__item {
|
|
85
70
|
background-color: var(--#{$namespace}-skeleton-color);
|
|
86
71
|
border-radius: 4px;
|
|
87
72
|
}
|
|
@@ -113,17 +98,17 @@
|
|
|
113
98
|
}
|
|
114
99
|
|
|
115
100
|
&-active {
|
|
116
|
-
&.#{$namespace}-
|
|
117
|
-
.#{$namespace}-
|
|
118
|
-
.#{$namespace}-
|
|
119
|
-
.#{$namespace}-
|
|
101
|
+
&.#{$namespace}-skeleton-graph,
|
|
102
|
+
.#{$namespace}-skeleton-paragraph-graph-image,
|
|
103
|
+
.#{$namespace}-skeleton-grid-col > p,
|
|
104
|
+
.#{$namespace}-skeleton-paragraph-rows > p {
|
|
120
105
|
background: linear-gradient(-45deg, var(--#{$namespace}-skeleton-color) 25%, var(--#{$namespace}-skeleton-to-color) 37%, var(--#{$namespace}-skeleton-color) 63%);
|
|
121
106
|
background-size: 400% 100% !important;
|
|
122
|
-
animation:
|
|
107
|
+
animation: skeleton-active 1.4s ease infinite;
|
|
123
108
|
}
|
|
124
109
|
}
|
|
125
110
|
|
|
126
|
-
@keyframes
|
|
111
|
+
@keyframes skeleton-active {
|
|
127
112
|
0% {
|
|
128
113
|
background-position: 100% 50%;
|
|
129
114
|
}
|