@tekkare/auriga 0.1.68 → 0.1.70
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/module.json
CHANGED
|
@@ -185,8 +185,8 @@ export default defineComponent({
|
|
|
185
185
|
const selected_number = ref(null);
|
|
186
186
|
onMounted(() => {
|
|
187
187
|
table_values.value = props.element_table;
|
|
188
|
-
selected_item.value = props.default_select ? props.element_table[props.default_select] : null;
|
|
189
|
-
selected_number.value = props.default_select ? props.default_select : null;
|
|
188
|
+
selected_item.value = props.default_select !== null ? props.element_table[props.default_select] : null;
|
|
189
|
+
selected_number.value = props.default_select !== null ? props.default_select : null;
|
|
190
190
|
});
|
|
191
191
|
watch(
|
|
192
192
|
() => props.element_table,
|
|
@@ -198,6 +198,17 @@ export default defineComponent({
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
);
|
|
201
|
+
watch(
|
|
202
|
+
() => searchName.value,
|
|
203
|
+
(new_search) => {
|
|
204
|
+
if (selected_item.value.includes(new_search)) {
|
|
205
|
+
selected_number.value = props.element_table.findIndex(
|
|
206
|
+
(a) => a === selected_item.value
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
selected_number.value = null;
|
|
210
|
+
}
|
|
211
|
+
);
|
|
201
212
|
watch(
|
|
202
213
|
() => props.default_select,
|
|
203
214
|
(new_default_select) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
element_table: {
|
|
3
3
|
type: {
|
|
4
|
-
(arrayLength: number):
|
|
5
|
-
(...items:
|
|
6
|
-
new (arrayLength: number):
|
|
7
|
-
new (...items:
|
|
4
|
+
(arrayLength: number): string[];
|
|
5
|
+
(...items: string[]): string[];
|
|
6
|
+
new (arrayLength: number): string[];
|
|
7
|
+
new (...items: string[]): string[];
|
|
8
8
|
isArray(arg: any): arg is any[];
|
|
9
9
|
readonly prototype: any[];
|
|
10
10
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
@@ -108,10 +108,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
108
108
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeElement" | "update:Selection" | "changeInputValue")[], "changeElement" | "update:Selection" | "changeInputValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
109
109
|
element_table: {
|
|
110
110
|
type: {
|
|
111
|
-
(arrayLength: number):
|
|
112
|
-
(...items:
|
|
113
|
-
new (arrayLength: number):
|
|
114
|
-
new (...items:
|
|
111
|
+
(arrayLength: number): string[];
|
|
112
|
+
(...items: string[]): string[];
|
|
113
|
+
new (arrayLength: number): string[];
|
|
114
|
+
new (...items: string[]): string[];
|
|
115
115
|
isArray(arg: any): arg is any[];
|
|
116
116
|
readonly prototype: any[];
|
|
117
117
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
@@ -94,6 +94,7 @@ export default defineComponent({
|
|
|
94
94
|
() => props.toolbarOpen,
|
|
95
95
|
(new_info_open) => {
|
|
96
96
|
infoOpen.value = new_info_open;
|
|
97
|
+
emit("update:Open", infoOpen.value);
|
|
97
98
|
}
|
|
98
99
|
);
|
|
99
100
|
watch(
|
|
@@ -107,16 +108,11 @@ export default defineComponent({
|
|
|
107
108
|
infoOpen.value = props.toolbarOpen;
|
|
108
109
|
});
|
|
109
110
|
function openMenu(item) {
|
|
110
|
-
infoOpen.value = true;
|
|
111
111
|
trueActiveMenu.value = item;
|
|
112
|
-
emit("update:Open", infoOpen.value);
|
|
113
112
|
emit("update:Menu", trueActiveMenu.value);
|
|
114
113
|
}
|
|
115
114
|
function closeInfo() {
|
|
116
115
|
infoOpen.value = false;
|
|
117
|
-
setTimeout(() => {
|
|
118
|
-
trueActiveMenu.value = props.activeMenu;
|
|
119
|
-
}, 500);
|
|
120
116
|
emit("update:Open", infoOpen.value);
|
|
121
117
|
}
|
|
122
118
|
return {
|