@liuzengwei/element-ui 2.15.5-xn.51 → 2.15.5-xn.52
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/lib/drawer.js +157 -9
- package/lib/element-ui.common.js +162 -14
- package/lib/index.js +1 -1
- package/lib/theme-chalk/drawer.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/package.json +1 -1
- package/packages/drawer/src/main.vue +144 -7
- package/packages/theme-chalk/lib/drawer.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/drawer.scss +31 -0
- package/src/index.js +1 -1
- package/types/drawer.d.ts +16 -0
|
@@ -136,6 +136,16 @@ $directions: rtl, ltr, ttb, btt;
|
|
|
136
136
|
margin: 0;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
&__wrapper-reference {
|
|
140
|
+
position: absolute;
|
|
141
|
+
top: 0;
|
|
142
|
+
right: 0;
|
|
143
|
+
bottom: 0;
|
|
144
|
+
left: 0;
|
|
145
|
+
overflow: hidden;
|
|
146
|
+
margin: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
139
149
|
&__header {
|
|
140
150
|
align-items: center;
|
|
141
151
|
color: rgb(114, 118, 123);
|
|
@@ -198,6 +208,18 @@ $directions: rtl, ltr, ttb, btt;
|
|
|
198
208
|
&.btt {
|
|
199
209
|
bottom: 0;
|
|
200
210
|
}
|
|
211
|
+
|
|
212
|
+
&.is-reference {
|
|
213
|
+
position: absolute;
|
|
214
|
+
&.ltr, &.rtl, &.ttb, &.btt {
|
|
215
|
+
height: auto;
|
|
216
|
+
width: auto;
|
|
217
|
+
top: auto;
|
|
218
|
+
bottom: auto;
|
|
219
|
+
left: auto;
|
|
220
|
+
right: auto;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
201
223
|
}
|
|
202
224
|
|
|
203
225
|
.el-drawer__container {
|
|
@@ -208,6 +230,15 @@ $directions: rtl, ltr, ttb, btt;
|
|
|
208
230
|
bottom: 0;
|
|
209
231
|
height: 100%;
|
|
210
232
|
width: 100%;
|
|
233
|
+
|
|
234
|
+
&.el-drawer__reference-mode {
|
|
235
|
+
position: absolute;
|
|
236
|
+
background-color: transparent;
|
|
237
|
+
pointer-events: none;
|
|
238
|
+
.el-drawer {
|
|
239
|
+
pointer-events: auto;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
211
242
|
}
|
|
212
243
|
|
|
213
244
|
.el-drawer-fade-enter-active {
|
package/src/index.js
CHANGED
package/types/drawer.d.ts
CHANGED
|
@@ -9,6 +9,13 @@ declare enum Direction {
|
|
|
9
9
|
BTT = 'btt' // bottom to top
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
declare enum Placement {
|
|
13
|
+
TOP = 'top',
|
|
14
|
+
BOTTOM = 'bottom',
|
|
15
|
+
LEFT = 'left',
|
|
16
|
+
RIGHT = 'right'
|
|
17
|
+
}
|
|
18
|
+
|
|
12
19
|
interface DrawerSlots {
|
|
13
20
|
/* Main Content Slots */
|
|
14
21
|
default: VNode[];
|
|
@@ -59,5 +66,14 @@ export declare class ElDrawer extends ElementUIComponent {
|
|
|
59
66
|
/* Flag attribute whi */
|
|
60
67
|
wrapperClosable: boolean
|
|
61
68
|
|
|
69
|
+
/* Reference element for positioning, can be a CSS selector string or an HTMLElement or Vue component instance */
|
|
70
|
+
reference: string | HTMLElement | ElementUIComponent
|
|
71
|
+
|
|
72
|
+
/* Placement of the drawer relative to the reference element */
|
|
73
|
+
placement: Placement
|
|
74
|
+
|
|
75
|
+
/* Offset distance from the reference element in pixels */
|
|
76
|
+
offset: number
|
|
77
|
+
|
|
62
78
|
$slots: DrawerSlots
|
|
63
79
|
}
|