ElementUI的 圖片image 使用懶加載報[Vue warn]: Invalid prop: type check failed for prop "lazy". Expected Boolean, got String with value "true".


ElementUI使用圖片標簽 el-image 的懶加載報錯 [Vue warn]: Invalid prop: type check failed for prop "lazy". Expected Boolean, got String with value "true".

無效的屬性:屬性“lazy”的類型檢查失敗。應為布爾值,得到值為“true”的字符串。

 

 

報錯代碼:

            <el-image
              style="width: 100px; height: auto;"
              :src="scope.row.url"
              :preview-src-list="scope.row.urlList" 
				lazy="true"
            />

 

修改代碼:

            <el-image
              style="width: 100px; height: auto;"
              :src="scope.row.url"
              :preview-src-list="scope.row.urlList"
              lazy
            />

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM