bill 7 månader sedan
förälder
incheckning
ecbfa036d5

+ 1 - 1
src/components/static-preview/index.vue

@@ -15,7 +15,7 @@
           <Sign :media="raw" :focus="active === raw" />
         </template>
       </ui-slide>
-      <Sign :media="items[0]" v-else />
+      <Sign :media="items[0]" focus v-else />
     </div>
   </teleport>
 </template>

+ 5 - 8
src/components/static-preview/resource.vue

@@ -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"

+ 1 - 0
src/views/folder/modal-floder-view.vue

@@ -20,6 +20,7 @@
           <div class="img-item-content">
             <div>
               <Sign
+                focus
                 :media="{ url: floders[i].filesUrl }"
                 @click="clickHandler(floders[i])"
               />

+ 1 - 1
src/views/tagging/images.vue

@@ -15,7 +15,7 @@
           @click="inFull && $emit('pull', ndx)"
         >
           <!-- v-if="ndx === index" -->
-          <ResourceView :data="getFileUrl(raw)" class="p-item" />
+          <ResourceView :data="getFileUrl(raw)" class="p-item" :focus="ndx === index" />
           <!-- <img :src="getResource(getFileUrl(raw))" /> -->
         </div>
       </template>