瀏覽代碼

修改需求

bill 1 年之前
父節點
當前提交
a8730ee776
共有 4 個文件被更改,包括 1567 次插入17 次删除
  1. 1545 0
      pnpm-lock.yaml
  2. 19 15
      src/components/fill-slide/index.vue
  3. 1 1
      src/components/photos/index.vue
  4. 2 1
      src/views/graphic/childMenus.vue

文件差異過大導致無法顯示
+ 1545 - 0
pnpm-lock.yaml


+ 19 - 15
src/components/fill-slide/index.vue

@@ -7,15 +7,19 @@
     </div>
     <div class="slide-layout">
       <ui-slide
-          :items="data"
-          :current-index="data.indexOf(active)"
-          @change="index => $emit('update:active', data[index])"
+        :items="data"
+        :current-index="data.indexOf(active)"
+        @change="(index) => $emit('update:active', data[index])"
       >
-        <template v-slot="{raw}">
+        <template v-slot="{ raw }: any">
           <template v-if="$slots.default">
             <slot :data="raw" />
           </template>
-          <img :src="useStaticUrl(getURL ? getURL(raw) : raw.url).value" class="image" v-else />
+          <img
+            :src="useStaticUrl(getURL ? getURL(raw) : raw.url).value"
+            class="image"
+            v-else
+          />
         </template>
       </ui-slide>
     </div>
@@ -27,20 +31,20 @@
 
 <script lang="ts" setup>
 import UiSlide from "@/components/base/components/slide/index.vue";
-import {useStaticUrl} from '@/hook/useStaticUrl'
+import { useStaticUrl } from "@/hook/useStaticUrl";
 import UiIcon from "@/components/base/components/icon/index.vue";
 
-type Item = {url: string}
+type Item = { url: string };
 
-defineProps<{ data: Item[], active: Item, getURL?: (data: any) => string }>()
+defineProps<{ data: Item[]; active: Item; getURL?: (data: any) => string }>();
 const emit = defineEmits<{
-  (e: 'update:active', d: Item): void,
-  (e: 'quit'): void
-}>()
+  (e: "update:active", d: Item): void;
+  (e: "quit"): void;
+}>();
 
 const clickHandler = () => {
-  emit('quit')
-}
+  emit("quit");
+};
 </script>
 
 <style scoped lang="scss">
@@ -100,7 +104,7 @@ const clickHandler = () => {
 .fill-slide .ui-slide .ui-gate-layer {
   overflow: initial !important;
   .ui-gate-slides .ui-gate-content {
-    transition: all .3s ease;
+    transition: all 0.3s ease;
     transform: scale(0.9);
     opacity: 0.5 !important;
 
@@ -110,4 +114,4 @@ const clickHandler = () => {
     }
   }
 }
-</style>
+</style>

+ 1 - 1
src/components/photos/index.vue

@@ -21,7 +21,7 @@
             height="24px"
             v-if="selectMode"
             type="checkbox"
-            :modelValue="selects.includes(photo)"
+            :modelValue="(selects.includes(photo) as any)"
             @update:modelValue="(selected) => changeSelects(photo, selected)"
             @click.stop
             class="photo-select"

+ 2 - 1
src/views/graphic/childMenus.vue

@@ -30,6 +30,7 @@ const title = computed(() => findMainMenuByAttr(props.menus)?.text);
 
 const emit = defineEmits<{ (e: "quit") }>();
 const clickHandler = (menu) => {
+  console.log("????");
   uiType.change(menu.key as any);
   emit("quit");
 };
@@ -57,7 +58,7 @@ const clickHandler = (menu) => {
   flex-direction: column;
   cursor: pointer;
   height: 100px;
-  pointer-events: none;
+  // pointer-events: none;
   transition: color 0.3s ease;
 
   //&:hover,