@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/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 { Skeleton as PlaceholderGraphProps, PlaceholderGridProps, PlaceholderParagraphProps } from './Skeleton';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qsxy/element-plus-react",
3
- "version": "1.0.0-next.13",
3
+ "version": "1.0.0-next.15",
4
4
  "description": "element-plus-react",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  .#{$namespace}-drawer {
13
- --#{$namespace}-drawer-width: auto;
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
- &.#{$namespace}-drawer-top,
84
- &.#{$namespace}-drawer-bottom {
85
- --#{$namespace}-drawer-height: 100%;
50
+ // .#{$namespace}-drawer-full {
51
+ // &.#{$namespace}-drawer-top,
52
+ // &.#{$namespace}-drawer-bottom {
53
+ // --#{$namespace}-drawer-height: 100%;
86
54
 
87
- .#{$namespace}-drawer-content {
88
- --#{$namespace}-drawer-height: 100%;
89
- }
90
- }
55
+ // .#{$namespace}-drawer-content {
56
+ // --#{$namespace}-drawer-height: 100%;
57
+ // }
58
+ // }
91
59
 
92
- &.#{$namespace}-drawer-left,
93
- &.#{$namespace}-drawer-right {
94
- --#{$namespace}-drawer-width: calc(100% - 60px);
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
- padding: 15px 20px;
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
- background: transparent;
153
+ display: inline-flex;
177
154
  border: none;
178
155
  cursor: pointer;
179
- position: absolute;
180
- right: 20px;
181
- top: 12px;
182
- font-size: 16px;
183
- line-height: 1.6666666667;
184
- color: var(--#{$namespace}-color-info);
185
- width: 20px;
186
- padding: 0 4px;
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
- font-weight: normal;
192
- color: var(--#{$namespace}-text-color-primary);
193
- display: block;
181
+ margin: 0;
182
+ flex: 1;
183
+ line-height: inherit;
194
184
  font-size: 16px;
195
- line-height: 1.25;
196
185
 
197
- margin: 0;
198
- overflow: hidden;
199
- text-overflow: ellipsis;
200
- white-space: nowrap;
201
- width: 100%;
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}-placeholder {
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}-placeholder {
9
+ .#{$namespace}-skeleton {
10
10
  --#{$namespace}-skeleton-color: #3c3f43;
11
11
  --#{$namespace}-skeleton-to-color: #484c50;
12
12
  }
13
13
  }
14
14
 
15
- .#{$namespace}-placeholder {
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: 80px;
42
- height: 60px;
43
- position: relative;
44
- overflow: hidden;
45
-
46
- &::after {
47
- content: '';
48
- width: 0;
49
- height: 0;
50
- left: 10px;
51
- bottom: 10px;
52
- position: absolute;
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
- & > p {
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}-placeholder-graph,
117
- .#{$namespace}-placeholder-paragraph-graph-image,
118
- .#{$namespace}-placeholder-grid-col > p,
119
- .#{$namespace}-placeholder-paragraph-rows > p {
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: placeholder-active 1.4s ease infinite;
107
+ animation: skeleton-active 1.4s ease infinite;
123
108
  }
124
109
  }
125
110
 
126
- @keyframes placeholder-active {
111
+ @keyframes skeleton-active {
127
112
  0% {
128
113
  background-position: 100% 50%;
129
114
  }