aloha-vue 1.0.47 → 1.0.48
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/package.json
CHANGED
|
@@ -124,6 +124,11 @@ export default {
|
|
|
124
124
|
required: false,
|
|
125
125
|
default: undefined,
|
|
126
126
|
},
|
|
127
|
+
isRenderDefault: {
|
|
128
|
+
type: Boolean,
|
|
129
|
+
required: false,
|
|
130
|
+
default: false,
|
|
131
|
+
},
|
|
127
132
|
},
|
|
128
133
|
data() {
|
|
129
134
|
return {
|
|
@@ -193,6 +198,10 @@ export default {
|
|
|
193
198
|
}
|
|
194
199
|
return DROPDOWN_ATTRIBUTES;
|
|
195
200
|
},
|
|
201
|
+
|
|
202
|
+
isMenuRendered() {
|
|
203
|
+
return this.isRenderDefault || this.statusExpanded;
|
|
204
|
+
},
|
|
196
205
|
},
|
|
197
206
|
beforeUnmount() {
|
|
198
207
|
this.destroyEventCloseClick();
|
|
@@ -381,7 +390,7 @@ export default {
|
|
|
381
390
|
h(Teleport, {
|
|
382
391
|
to: "body",
|
|
383
392
|
}, [
|
|
384
|
-
this.
|
|
393
|
+
this.isMenuRendered && h("div", null, [
|
|
385
394
|
h(
|
|
386
395
|
this.dropdownTag,
|
|
387
396
|
this.dropdownAttributesLocal,
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
.a_dropdown {
|
|
6
2
|
display: inline-block;
|
|
7
3
|
position: relative;
|
|
@@ -51,9 +47,9 @@
|
|
|
51
47
|
border: var(--a_dropdown_border_width) solid var(--a_dropdown_border_color);
|
|
52
48
|
border-radius: var(--a_dropdown_border_radius);
|
|
53
49
|
overflow-x: auto;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
&:not([data-popper-placement]) {
|
|
51
|
+
display: none;
|
|
52
|
+
}
|
|
57
53
|
}
|
|
58
54
|
.a_dropdown__item {
|
|
59
55
|
display: block;
|