@avakhula/ui 0.0.246 → 0.0.248
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 +92 -89
- package/dist/index.umd.cjs +29 -29
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +9 -24
- package/src/components/Sorting/Sorting.vue +1 -1
- package/src/components/TreeSelect/Select.vue +5 -1
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -1,34 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div style="width: 200px;height: 200px;display: flex;align-items: center;justify-content: center;">
|
|
3
|
-
<ib-dropdown-list
|
|
4
|
-
>
|
|
5
|
-
<template #trigger>
|
|
6
|
-
<ib-icon-button
|
|
7
|
-
kind="ghost"
|
|
8
|
-
v-tooltip="'test'"
|
|
9
|
-
>
|
|
10
|
-
X
|
|
11
|
-
</ib-icon-button>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<template #body>
|
|
15
|
-
test
|
|
16
|
-
</template>
|
|
17
|
-
</ib-dropdown-list>
|
|
18
|
-
</div>
|
|
19
2
|
|
|
3
|
+
<ib-input
|
|
4
|
+
type="email"
|
|
5
|
+
name="email"
|
|
6
|
+
@input="val => console.log(val)"
|
|
7
|
+
@blur="val => console.log(val)"
|
|
8
|
+
/>
|
|
20
9
|
</template>
|
|
21
10
|
|
|
22
11
|
<script>
|
|
23
|
-
import
|
|
24
|
-
import IbDropdownList from "./components/Dropdown/DropdownList.vue"
|
|
25
|
-
import { TooltipDirective as Tooltip } from "./directives/tooltip/tooltip"
|
|
12
|
+
import IbInput from "./components/Form/Input/Input.vue"
|
|
26
13
|
|
|
27
14
|
export default {
|
|
28
15
|
components: {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
directives: { Tooltip },
|
|
16
|
+
IbInput
|
|
17
|
+
}
|
|
33
18
|
}
|
|
34
19
|
</script>
|
|
@@ -120,6 +120,7 @@
|
|
|
120
120
|
"
|
|
121
121
|
@input="filter($event, actualOptions)"
|
|
122
122
|
@keyup.down="inputKeyupDown"
|
|
123
|
+
|
|
123
124
|
></ib-input>
|
|
124
125
|
|
|
125
126
|
<list
|
|
@@ -409,6 +410,7 @@ export default {
|
|
|
409
410
|
"search",
|
|
410
411
|
"resize",
|
|
411
412
|
"submit",
|
|
413
|
+
"clearValue",
|
|
412
414
|
"update:modelValue",
|
|
413
415
|
],
|
|
414
416
|
watch: {
|
|
@@ -654,9 +656,9 @@ export default {
|
|
|
654
656
|
});
|
|
655
657
|
},
|
|
656
658
|
clear() {
|
|
659
|
+
this.setPreparedValues();
|
|
657
660
|
this.allOptionsIsChecked = false;
|
|
658
661
|
this.selected = [];
|
|
659
|
-
const values = Object.keys(this.selected);
|
|
660
662
|
|
|
661
663
|
if (this.isMultiple) {
|
|
662
664
|
this.$emit("update:modelValue", null);
|
|
@@ -668,6 +670,8 @@ export default {
|
|
|
668
670
|
this.$emit("input", []);
|
|
669
671
|
this.$emit("clear-value", []);
|
|
670
672
|
}
|
|
673
|
+
|
|
674
|
+
this.setPreparedValues();
|
|
671
675
|
},
|
|
672
676
|
clearValue() {
|
|
673
677
|
this.clear();
|