We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
建议在water-fall.vue源码102-105行的watch中添加option配置 { deep: true }
The text was updated successfully, but these errors were encountered:
简单的复现代码如下
<template lang="pug"> div.main(style="margin-top:80px") water-fall(gap="10px" width="330px" :data="dataArr" :delay="true" ) template(v-slot="item") water-fall-item(:data="item") </template> <script setup> import WaterFall from 'kuan-vue-waterfall' import WaterFallItem from "./water-fall-item.vue" // 这个组件是我自己写的 不是包里面的, 代码在下面 import { ref } from "vue"; const dataArr = ref([]) for (let i = 0; i < 30; i++) { dataArr.value.push({ key: i, src: "https://api.yimian.xyz/img?type=moe&R18=false&time="+i }) } setTimeout(()=>{ // dataArr.value = [...dataArr.value] for (let i = 0; i < 30; i++) { dataArr.value.push({ key: i+30, src: "https://api.yimian.xyz/img?type=moe&R18=false&time="+i+30 }) } },30000) </script>
<!-- water-fall-item.vue --> <template lang="pug"> .water-fall-my-item img(:src="props.data.src") div item </template> <script setup> const props = defineProps({ data: { type: Object, default:()=>({}) } }) </script> <style scoped lang="scss"> .macy-item{ transform: translateZ(0); transition: all .3s; .macy-item-img{ object-fit: cover; } } </style>
Sorry, something went wrong.
No branches or pull requests
建议在water-fall.vue源码102-105行的watch中添加option配置
{
deep: true
}
The text was updated successfully, but these errors were encountered: