sit-onyx 1.6.0-dev-20260108083518 → 1.6.0-dev-20260109133051
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.
|
@@ -494,7 +494,13 @@ function createElRef() {
|
|
|
494
494
|
const elementRef = shallowRef();
|
|
495
495
|
return computed({
|
|
496
496
|
set: (element) => {
|
|
497
|
-
|
|
497
|
+
if (Array.isArray(element)) {
|
|
498
|
+
elementRef.value = element.at(0);
|
|
499
|
+
} else if (element != null && "$el" in element) {
|
|
500
|
+
elementRef.value = element.$el;
|
|
501
|
+
} else {
|
|
502
|
+
elementRef.value = element;
|
|
503
|
+
}
|
|
498
504
|
},
|
|
499
505
|
get: () => elementRef.value
|
|
500
506
|
});
|