vue学习
Genius mao
这个作者很懒,什么都没留下…
展开
-
VUE小白笔记:父组件调用子组件中的methods方法并向父组件传值
应用场景:页面中点击添加或筛选等按钮,弹出的页面要求占据整个视图(不创建新页面的情况) 父组件: <template> <view class="wrapperBox"> <son v-if="isShow" v-on:submit="getSubmit" ></son> <view @click="showSon" class="clickBox" v-if="!isShow" >绿色的son盒子出现</view>原创 2021-08-16 10:22:11 · 731 阅读 · 0 评论 -
vue使用computed动态改变style
<template> <div class="boxWrapper" :style="styleVar"> <view class="smallBox" @click="click"> 123 </view> </div> </template> <script> export default { props: { background: { type: String, .原创 2021-08-11 10:10:54 · 1868 阅读 · 0 评论