Remove defineProps imports (it is a compiler macro now).

This commit is contained in:
Leo Vasanko 2023-11-18 07:47:55 -08:00
parent 5808fe17ad
commit a9b6d04361
4 changed files with 3 additions and 4 deletions

View File

@ -25,7 +25,7 @@
</template> </template>
<script setup lang=ts> <script setup lang=ts>
import { defineProps, ref } from 'vue' import { ref } from 'vue'
import { useMainStore } from '@/stores/main' import { useMainStore } from '@/stores/main'
import { Doc } from '@/repositories/Document' import { Doc } from '@/repositories/Document'
import MediaPreview from '@/components/MediaPreview.vue' import MediaPreview from '@/components/MediaPreview.vue'

View File

@ -9,7 +9,7 @@
</template> </template>
<script setup lang=ts> <script setup lang=ts>
import { defineProps, ref } from 'vue' import { ref } from 'vue'
import type { Doc } from '@/repositories/Document' import type { Doc } from '@/repositories/Document'
const media = ref<HTMLAudioElement | HTMLVideoElement | null>(null) const media = ref<HTMLAudioElement | HTMLVideoElement | null>(null)

View File

@ -11,7 +11,6 @@
</template> </template>
<script setup lang=ts> <script setup lang=ts>
import { defineProps } from 'vue'
import { useMainStore } from '@/stores/main' import { useMainStore } from '@/stores/main'
import type { Doc } from '@/repositories/Document' import type { Doc } from '@/repositories/Document'

View File

@ -6,7 +6,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { defineAsyncComponent, defineProps } from 'vue' import { defineAsyncComponent } from 'vue'
const props = defineProps<{ const props = defineProps<{
name: string name: string