@300codes/design-system 1.2.13 → 1.2.15
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/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { ref, computed, nextTick, watch } from 'vue';
|
|
2
|
+
import { ref, computed, nextTick, watch, onMounted } from 'vue';
|
|
3
3
|
import { useMediaQuery, onClickOutside } from '@vueuse/core';
|
|
4
4
|
import BaseIcon from '../BaseIcon/BaseIcon.vue';
|
|
5
5
|
import FlatIconButton from '../FlatIconButton/FlatIconButton.vue';
|
|
@@ -29,6 +29,11 @@ const props = withDefaults(defineProps<SelectInputProps>(), {
|
|
|
29
29
|
const model = defineModel<string>({ required: true });
|
|
30
30
|
|
|
31
31
|
const isOpen = ref(false);
|
|
32
|
+
const isMounted = ref(false);
|
|
33
|
+
|
|
34
|
+
onMounted(() => {
|
|
35
|
+
isMounted.value = true;
|
|
36
|
+
});
|
|
32
37
|
|
|
33
38
|
const wrapperRef = ref<HTMLDivElement | null>(null);
|
|
34
39
|
const nativeSelectRef = ref<HTMLSelectElement | null>(null);
|
|
@@ -243,7 +248,10 @@ watch(isMobile, () => {
|
|
|
243
248
|
</li>
|
|
244
249
|
</ul>
|
|
245
250
|
|
|
246
|
-
<Teleport
|
|
251
|
+
<Teleport
|
|
252
|
+
to="body"
|
|
253
|
+
:disabled="!isMounted"
|
|
254
|
+
>
|
|
247
255
|
<dialog
|
|
248
256
|
v-if="isMobile && isOpen"
|
|
249
257
|
ref="dialogRef"
|