bianjiang 1 year ago
parent
commit
c43f6ab7d9

+ 17 - 17
src/modules/resource/components/CollectionListModal.tsx

@@ -100,24 +100,24 @@ const ListItem = defineUI({
               >
                 查看
               </div>
-              {record.flags && record.flags.length > 0 && (
-                <div class={"select_box w-80px"}>
-                  <Select
-                    class={"w-full"}
-                    value={wks.flag}
-                    options={options}
-                    onChange={(v) => {
-                      wks.flag = v;
-                      emit("edit", {
-                        id: record._id,
-                        wkId: wks.id,
-                        flag: wks.flag,
-                      });
-                    }}
-                  ></Select>
-                </div>
-              )}
             </div>
+            {record.flags && record.flags.length > 0 && (
+              <div class={"select_box w-80px"}>
+                <Select
+                  class={"w-full"}
+                  value={wks.flag}
+                  options={options}
+                  onChange={(v) => {
+                    wks.flag = v;
+                    emit("edit", {
+                      id: record._id,
+                      wkId: wks.id,
+                      flag: wks.flag,
+                    });
+                  }}
+                ></Select>
+              </div>
+            )}
           </View>
           <div class="item_footer rounded-b-4px flex items-center justify-between p-15px">
             <div class="flex-1 w-0">

+ 14 - 14
src/pages/website/MyCollection/components/CollectionItem.tsx

@@ -22,27 +22,27 @@ export default defineUI({
         <div class={cx(itemStyles, "relative")}>
           <View ratio={1.4} class=" relative">
             <Image class="h-1/1 w-1/1  bg-[#ebebeb]" src={record?.cover} />
-            <div class="absolute inset-0 flex items-center justify-center  transition-opacity">
+            <div class="absolute inset-0 flex items-center justify-center opacity-0 hover:opacity-100 transition-opacity">
               <div
                 class="text-white icon_action w-60px leading-60px  cursor-pointer rounded-1/2 text-center transition-opacity hover:opacity-90 active:opacity-80"
                 onClick={() => emit("preview", record)}
               >
                 查看
               </div>
-              {record.statues && record.statues.length > 0 && (
-                <div class={"select_box w-80px"}>
-                  <Select
-                    class={"w-full"}
-                    value={record.status}
-                    options={options}
-                    onChange={(v) => {
-                      record.status = v;
-                      emit("edit", record);
-                    }}
-                  ></Select>
-                </div>
-              )}
             </div>
+            {record.statues && record.statues.length > 0 && (
+              <div class={"select_box w-80px"}>
+                <Select
+                  class={"w-full"}
+                  value={record.status}
+                  options={options}
+                  onChange={(v) => {
+                    record.status = v;
+                    emit("edit", record);
+                  }}
+                ></Select>
+              </div>
+            )}
           </View>
           <div class="item_footer rounded-b-4px flex items-center justify-between p-15px">
             <div class="w-0 flex-1">