上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 133 下一页
摘要: 首先搞清楚scoped是干啥的?scoped的引入主要是上线了样式的模块化私有化,即当前组件的样式只对当前组件起作用。 当vue组件被vue-loader解析的时候,对于style上加了scope属性的组件,会主动加上data-v-xx的属性来唯一标识当前组件,若当钱组件内部存在子组件,只有子组件的 阅读全文
posted @ 2023-05-04 17:07 盘思动 阅读(146) 评论(0) 推荐(0)
摘要: mode 有效值: mode 有 13 种模式,其中 4 种是缩放模式,9 种是裁剪模式。 设置height:auto, mode="widthFix" 就行咯~~~ https://blog.csdn.net/qq_40095973/article/details/80352144 阅读全文
posted @ 2023-04-26 21:10 盘思动 阅读(605) 评论(0) 推荐(0)
摘要: 小程序转发,得用button,样式太丑了, <view class="one"> <button data-name="shareBtn" open-type="share" hover-class="none"> <image src="/static/index/carddetail/sendc 阅读全文
posted @ 2023-04-26 20:28 盘思动 阅读(136) 评论(0) 推荐(0)
摘要: 最近开发项目,页面中引入组件,2次展示,组件中生命周期都不调取,导致网组件中传的值不更新; <el-dialog v-dialogDrag title="巡检记录" :visible.sync="patrolItemVisible" :show-close="true" :close-on-pres 阅读全文
posted @ 2023-04-26 18:49 盘思动 阅读(334) 评论(1) 推荐(0)
摘要: https://www.codenong.com/cs109827730/ 阅读全文
posted @ 2023-04-26 10:24 盘思动 阅读(230) 评论(0) 推荐(0)
摘要: 手册文档介绍的场景过于简单,没有根据table里面内容来合并 <template> <div> <el-table show-summary :summary-method="getSummaries" :span-method="objectSpanMethod" :data="tableData 阅读全文
posted @ 2023-04-25 18:54 盘思动 阅读(187) 评论(0) 推荐(0)
摘要: <template> <scroll-view class="scroll-view" scroll-y @scroll="onPageScroll"> <div class="one">one</div> <div class="two">two</div> <div class="three"> 阅读全文
posted @ 2023-04-24 20:26 盘思动 阅读(2161) 评论(0) 推荐(0)
摘要: 在做项目招标时,新切换个分支,用来竞标,大体流程类似,但其中有企业字段需要替换 一个个页面替换也很麻烦,从接口返回数据上想想办法! tips:返回的数据格式,各种类型,各种嵌套的可能性都有; function replaceData(data) { if (typeof data 'string') 阅读全文
posted @ 2023-04-22 16:54 盘思动 阅读(109) 评论(0) 推荐(0)
摘要: vue中使用element-ui 报错如下,defaultExpandAll 关键词页面也搜不到 [Vue warn]: Invalid prop: type check failed for prop "defaultExpandAll". Expected Boolean, got String 阅读全文
posted @ 2023-04-21 16:35 盘思动 阅读(524) 评论(0) 推荐(0)
摘要: 注意和filter区别 在数组对象中find操作,略微复杂点的操作: const arr = [{id:1,name:'张三'},{id:2,name:'李四'},{id:3,name:'李四'}]; let obj = arr.find(item => item.name == '李四') if( 阅读全文
posted @ 2023-04-21 11:26 盘思动 阅读(567) 评论(2) 推荐(0)
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 133 下一页