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.
@@ -2,7 +2,8 @@ div
2
2
  h1 ADropdown
3
3
 
4
4
  a-dropdown(
5
- button-class: "a_btn a_btn_link",
5
+ button-class="a_btn a_btn_link"
6
+ :is-render-default="true"
6
7
  )
7
8
  template(
8
9
  v-slot:button
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aloha-vue",
3
3
  "description": "Project aloha",
4
- "version": "1.0.47",
4
+ "version": "1.0.48",
5
5
  "author": "Ilia Brykin",
6
6
  "scripts": {
7
7
  "build-icons": "node scriptsNode/iconsSvgToJs.js bootstrap3 && node scriptsNode/iconsSvgToJs.js bootstrap-1-9-1"
@@ -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.statusExpanded && h("div", null, [
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
- .a_dropdown__menu_show {
56
- // display: block;
50
+ &:not([data-popper-placement]) {
51
+ display: none;
52
+ }
57
53
  }
58
54
  .a_dropdown__item {
59
55
  display: block;