|
@@ -31,14 +31,11 @@ import { getResource } from "@/env";
|
|
|
import { computed } from "vue";
|
|
|
import { getUrlType, MetaType } from "@/utils/meta";
|
|
|
|
|
|
-const props = withDefaults(
|
|
|
- defineProps<{
|
|
|
- data: string | Blob | File;
|
|
|
- type?: MetaType;
|
|
|
- focus?: boolean;
|
|
|
- }>(),
|
|
|
- { focus: true }
|
|
|
-);
|
|
|
+const props = defineProps<{
|
|
|
+ data: string | Blob | File;
|
|
|
+ type?: MetaType;
|
|
|
+ focus?: boolean;
|
|
|
+}>();
|
|
|
|
|
|
const url = computed(() =>
|
|
|
typeof props.data === "string"
|