随笔分类 - vue
摘要:下载文件1、弹窗组件 <template> <view class="bombFrame" v-if="bshow" :class="show?'show':'hide'"> <view class="telate" :class="show?'bshow':'bhide'"> <view clas
阅读全文
摘要:mixins:[] 局部混入 混入模板 export default { data() { return { } }, onLoad() { console.log("111") }, methods: { } } 所引入文件 <template> <view> </view> </template
阅读全文
摘要:父组件 <template> <view> <assembly @submitToParent="submitToParent"> <template v-slot:content> <p>插槽内容</p> </template> </assembly> </view> </template> <s
阅读全文
摘要:vuex 的备注 // vuex的公用数据放置处 state: { count: 0, }, // (方法) 在里面可以去修改state里面的数据(在这里面不能写异步操作) mutations: { 方法名 (state,vari) { state.count=vari // 传值并设置count
阅读全文
摘要:#default="scope" css 穿透 /* ::v-deep */ ::v-deep .类名 { } 子组件列表形式方法多加参数 @input="($event)=>{gorinput($event,item)}" 引入本地文件 require() 获取原始数据 // 访问初始值 this
阅读全文