@avakhula/ui 0.0.331 → 0.0.333
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.js +11 -11
- package/dist/index.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Panel/Panel.vue +4 -2
- package/src/components/TreeSelect/Select.vue +10 -8
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<ib-dropdown
|
|
13
13
|
:disabled="isLoading"
|
|
14
14
|
:is-resizable="isResizable"
|
|
15
|
-
:vertical="
|
|
15
|
+
:vertical="verticalVal"
|
|
16
16
|
ref="dropdown"
|
|
17
17
|
@close="onClose"
|
|
18
18
|
@open="onOpen"
|
|
@@ -393,10 +393,10 @@ export default {
|
|
|
393
393
|
type: Boolean,
|
|
394
394
|
default: false,
|
|
395
395
|
},
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
396
|
+
vertical: {
|
|
397
|
+
type: String,
|
|
398
|
+
// default: "bottom"
|
|
399
|
+
},
|
|
400
400
|
emptyMessage: {
|
|
401
401
|
type: String,
|
|
402
402
|
default: "",
|
|
@@ -545,7 +545,7 @@ export default {
|
|
|
545
545
|
actualBookmarkedOptions: {},
|
|
546
546
|
selected: [],
|
|
547
547
|
isOpen: false,
|
|
548
|
-
|
|
548
|
+
verticalVal: this.vertical ?? "bottom",
|
|
549
549
|
allOptionsIsChecked: true,
|
|
550
550
|
hasTreeChildren: false,
|
|
551
551
|
uid: `f${(~~(Math.random() * 1e8)).toString(16)}`,
|
|
@@ -942,16 +942,18 @@ export default {
|
|
|
942
942
|
this.$emit("close", Object.keys(this.selected)[0]);
|
|
943
943
|
}
|
|
944
944
|
this.$emit("blur");
|
|
945
|
-
this.
|
|
945
|
+
this.verticalVal = this.vertical ?? "bottom";
|
|
946
946
|
},
|
|
947
947
|
onOpen() {
|
|
948
948
|
const screenHeight = document.documentElement.scrollHeight;
|
|
949
949
|
this.isOpen = true;
|
|
950
950
|
|
|
951
|
+
if (this.vertical === "bottom") return;
|
|
952
|
+
|
|
951
953
|
this.$nextTick(() => {
|
|
952
954
|
const newScreenHeight = document.documentElement.scrollHeight
|
|
953
955
|
if(newScreenHeight > screenHeight) {
|
|
954
|
-
this.
|
|
956
|
+
this.verticalVal = "top";
|
|
955
957
|
}
|
|
956
958
|
})
|
|
957
959
|
}
|