(all): 发布 1.2.2

This commit is contained in:
就眠儀式
2022-06-26 15:51:50 +08:00
parent 0a4dc242f6
commit fcb203c3b9
3 changed files with 28 additions and 11 deletions

View File

@@ -18,7 +18,7 @@
class="layui-layer-imgbar"
style="display: block"
v-if="imgList.length > 1 || imgList[index].alt"
:style="{opacity:showLayerImgBar?1:0}"
:style="{ opacity: showLayerImgBar ? 1 : 0 }"
>
<span class="layui-layer-imgtit">
<span v-if="imgList[index].alt">{{ imgList[index].alt }}</span>
@@ -64,10 +64,10 @@ const changeIndex = (step: number) => {
index.value = next;
};
const showLayerImgBar=ref(false)
onMounted(()=>{
nextTick(()=>{
showLayerImgBar.value=true
})
})
const showLayerImgBar = ref(false);
onMounted(() => {
nextTick(() => {
showLayerImgBar.value = true;
});
});
</script>