@tekkare/auriga 0.1.69 → 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[];
|