Skip to content

Commit 622e0ee

Browse files
committed
1 parent 801d9bd commit 622e0ee

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

custom/completionInput.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,18 @@
7070
</template>
7171

7272
<script setup lang="ts">
73-
import { ref, onMounted, watch, Ref, computed } from 'vue';
73+
import { ref, onMounted, watch, Ref, computed, defineAsyncComponent } from 'vue';
7474
import { callAdminForthApi } from '@/utils';
7575
import { AdminForthColumnCommon } from '@/types/Common';
7676
import { Spinner, Tooltip } from '@/afcl';
7777
import { IconMagic, IconCheck, IconArrowRightThin } from '@iconify-prerendered/vue-mdi';
78-
import SuggestionInput from 'vue-suggestion-input';
79-
import 'vue-suggestion-input/dist/style.css';
78+
79+
80+
const SuggestionInput = defineAsyncComponent(async () => {
81+
const { default: SuggestionInput } = await import('vue-suggestion-input');
82+
await import('vue-suggestion-input/dist/style.css');
83+
return SuggestionInput;
84+
});
8085
8186
const props = defineProps<{
8287
column: AdminForthColumnCommon,

0 commit comments

Comments
 (0)