马克

position:sticky https://www.cnblogs.com/coco1s/p/6402723.html  

 

相邻兄弟选择器 ~ + transform: translateX(290px); 实现Tab滑动效果

 

vue-路由切换 ,在路由跳转时添加过渡动画

【1. 在watch中监听路由切换,并根据切换路由的index大小设置动画样式

2. 用 <transition> 给<router-view> 组件添加过渡效果】

https://blog.csdn.net/qq_41725450/article/details/102948068?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase

 

vue中的ref 

https://www.jianshu.com/p/623c8b009a85

 

动态组件

<!-- 失活的组件将会被缓存!-->

<keep-alive> <component v-bind:is="currentTabComponent"></component> </keep-alive>

 

this.$parent访问父组件

 

less变量 @ 混合 全局变量


webpack 开发环境 process.env.NODE_ENV 【配置webpack】

 

tabbar切换 不重复请求

v-slot的基本用法

子组件

<template>
  <div class="box">
    我是子组件1 
    <slot name="test"></slot>
    我是子组件2
    <slot name="heiheih"></slot>
    我是子组件3
  </div>
</template>

父组件1

<template>
  <drawerLayout>
    <template v-slot:test>
      <div>
        我是父组件1
      </div>
    </template>
  </drawerLayout>
</template>

父组件2

<template>
  <drawerLayout>
    <template v-slot:heiheih>
      <div>
        我是父组件2
      </div>
    </template>
  </drawerLayout>
</template>

祖父组件

<template>
  <div>
    <mainLayout />
    <h1>--------</h1>
    <customLayout />
  </div>
</template>

渲染:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值