最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

vue實(shí)現(xiàn)導(dǎo)航收縮框

 更新時(shí)間:2022年03月07日 13:25:21   作者:前端方程程  
這篇文章主要為大家詳細(xì)介紹了vue實(shí)現(xiàn)導(dǎo)航收縮框,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下

本文實(shí)例為大家分享了vue實(shí)現(xiàn)導(dǎo)航收縮框的具體代碼,供大家參考,具體內(nèi)容如下

代碼:

<template>
? <div class="leftAside">
? ? <el-header style="height: 40px">
? ? ? <i class="el-icon-s-fold shousuo" @click="isC" v-show="block"></i>
? ? ? <i class="el-icon-s-unfold shousuo" @click="isC" v-show="toggle"></i>
? ? </el-header>

? ? <el-menu
? ? ? unique-opened
? ? ? router
? ? ? class="el-menu-vertical-demo el-menu-vertical menuboss"
? ? ? background-color="#fff"
? ? ? text-color="#fff"
? ? ? active-text-color="#2A62CE"
? ? ? default-active
? ? ? :collapse="isCollapse"
? ? >
? ? ? <el-menu-item index="/shouye">
? ? ? ? <i class="el-icon-s-home"></i>
? ? ? ? <span slot="title">首頁(yè)</span>
? ? ? </el-menu-item>

? ? ? <el-submenu index="/terminal" v-hasPermi="['system:ca:ca']">
? ? ? ? <template slot="title">
? ? ? ? ? <i class="el-icon-connection"></i>
? ? ? ? ? <span> CA辦理</span>
? ? ? ? </template>
? ? ? ? <el-menu-item index="/terminal" class="navds">新申請(qǐng)</el-menu-item>
? ? ? ? <el-menu-item index="/renewal" class="navds">續(xù)期</el-menu-item>
? ? ? ? <el-menu-item index="/reissued" class="navds">補(bǔ)辦</el-menu-item>
? ? ? ? <el-menu-item index="/report" class="navds">掛失/取消掛失</el-menu-item>
? ? ? ? <el-menu-item index="/logout" class="navds">注銷(xiāo)</el-menu-item>
? ? ? ? <el-menu-item index="/deblocking" class="navds">解鎖</el-menu-item>
? ? ? ? <el-menu-item index="/support" class="navds">CA幫助中心</el-menu-item>
? ? ? ? <!-- <el-menu-item index="/settlement" class="navds">結(jié)算辦理</el-menu-item>
? ? ? ? <el-menu-item index="/bill" class="navds">發(fā)票辦理</el-menu-item>
? ? ? ? <el-menu-item index="/helpCenter" class="navds">結(jié)算辦理</el-menu-item> -->
? ? ? </el-submenu>

? ? ? <el-menu-item index="/beihuo" v-hasPermi="['system:stockup:stockup']">
? ? ? ? <i class="el-icon-s-order"></i>
? ? ? ? <span slot="title">備貨訂單</span>
? ? ? </el-menu-item>
? ? ? <el-menu-item index="/fahuo" v-hasPermi="['system:shipnotice:shipnotice']">
? ? ? ? <i class="el-icon-s-promotion"></i>
? ? ? ? <span slot="title">發(fā)貨通知單</span>
? ? ? </el-menu-item>
? ? ? <el-menu-item index="/tihuo" v-hasPermi="['system:delivery:delivery']">
? ? ? ? <i class="el-icon-document-checked"></i>
? ? ? ? <span slot="title">提貨通知單</span>
? ? ? </el-menu-item>
? ? ? <el-menu-item index="/myjiesuan" v-hasPermi="['system:settlebill:settlebill']">
? ? ? ? <i class="el-icon-shopping-cart-full"></i>
? ? ? ? <span slot="title">結(jié)算單</span>
? ? ? </el-menu-item>
? ? ? <el-menu-item index="/myqiye">
? ? ? ? <i class="el-icon-office-building" v-hasPermi="['system:coinfomaint:coinfomaint']"></i>
? ? ? ? <span slot="title">企業(yè)信息維護(hù)</span>
? ? ? </el-menu-item>
? ? ? <el-menu-item index="/mytongji" v-hasPermi="['system:statistics:statistics']">
? ? ? ? <i class="el-icon-s-marketing"></i>
? ? ? ? <span slot="title">統(tǒng)計(jì)報(bào)表</span>
? ? ? </el-menu-item>
? ? ? <el-menu-item index="/mypingjia" v-hasPermi="['system:suppliereva:suppliereva']">
? ? ? ? <i class="el-icon-star-on"></i>
? ? ? ? <span slot="title">供應(yīng)商評(píng)價(jià)</span>
? ? ? </el-menu-item>
? ? ? <el-menu-item index="myrenyuan" v-hasPermi="['system:supplierpm:supplierpm']">
? ? ? ? <i class="el-icon-s-custom"></i>
? ? ? ? <span slot="title">供應(yīng)商人員管理</span>
? ? ? </el-menu-item>

? ? ? <el-submenu index="/electronic" v-hasPermi="['system:maintenance:tool']">
? ? ? ? <template slot="title">
? ? ? ? ? <i class="el-icon-suitcase-1"></i>
? ? ? ? ? <span> 運(yùn)維工具</span>
? ? ? ? </template>
? ? ? ? <el-menu-item index="/electronic" v-hasPermi="['system:eseal:conf']" class="maintenance"
? ? ? ? ? >電子印章配置</el-menu-item
? ? ? ? >
? ? ? </el-submenu>
? ? </el-menu>
? </div>
</template>

<script>
export default {
? data() {
? ? return {
? ? ? isCollapse: false, //導(dǎo)航欄默認(rèn)為展開(kāi)
? ? ? toggle: false, //第二個(gè)圖標(biāo)默認(rèn)隱藏
? ? ? block: true //默認(rèn)顯示第一個(gè)圖標(biāo)
? ? }
? },
? methods: {
? ? // 動(dòng)態(tài)控制展開(kāi)與收起和切換對(duì)應(yīng)圖標(biāo)
? ? isC() {
? ? ? this.isCollapse = !this.isCollapse
? ? ? this.toggle = !this.toggle
? ? ? this.block = !this.block
? ? ? // 把當(dāng)前狀態(tài)傳給父組件 lay
? ? ? this.$emit('isCollapse', this.isCollapse)
? ? }
? }
}
</script>

<style lang="scss" scoped>
.el-menu-vertical:not(.el-menu--collapse) {
? width: 180px;
}
.leftAside {
? width: 180px;
? height: 100%;
? padding-top: 20px;
? overflow: auto;
? background-image: url('../../assets/update/imgs/bjleft.jpg');
? .el-header {
? ? .shousuo {
? ? ? cursor: pointer;
? ? ? color: #fff;
? ? ? opacity: 0.8;
? ? ? font-size: 20px;
? ? ? transition: 0.37s;
? ? }
? ? .shousuo:hover {
? ? ? font-size: 22px;
? ? ? transition: 0.37s;
? ? }
? }
? .el-menu {
? ? border-right: 0 !important;
? ? background-color: transparent !important;
? }
? ::v-deep.el-menu-item {
? ? height: 44px;
? ? line-height: 40px;
? ? background-color: transparent !important;

? ? i {
? ? ? width: 14px;
? ? ? height: 14px;
? ? ? margin-right: 15px;
? ? ? color: #fff !important;
? ? }
? ? img {
? ? ? width: 14px;
? ? ? height: 14px;
? ? ? line-height: 14px;
? ? ? margin-right: 15px;
? ? ? margin-left: 2px;
? ? }
? }
? .el-menu-item:hover {
? ? background: #2b5dbe !important;
? ? border-radius: 10px 0px 0px 10px;
? }
? .el-menu-item.is-active {
? ? background: #f5f5f5 !important;
? ? border-radius: 10px 0px 0px 10px;

? ? i {
? ? ? color: #2a62ce !important;
? ? }
? }
? ::-webkit-scrollbar {
? ? display: none !important;
? }
}
::v-deep .el-submenu__title {
? height: 44px;
? line-height: 40px;
? background-color: transparent !important;
? i {
? ? width: 14px;
? ? height: 14px;
? ? margin-right: 15px;
? ? color: #fff !important;
? }
? img {
? ? width: 14px;
? ? height: 14px;
? ? line-height: 14px;
? ? margin-right: 15px;
? ? margin-left: 2px;
? }
}
::v-deep .el-menu--inline {
? background: #1444aa !important;
}
</style>


在路由出口頁(yè)面
? ?<LeftNav @isCollapse="isCollapse"></LeftNav>
? methods:{
? ? // 接收子組件leftnav的值 進(jìn)行寬度動(dòng)態(tài)化
? ? isCollapse(val){
? ? ? console.log("父組件",val);
? ? ? if(val===false){
? ? ? ? ? this.asidewidth="180px"
? ? ? }else{
? ? ? ? this.asidewidth="60px"
? ? ? }
? ? }
? }

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

  • Vue參數(shù)的增刪改實(shí)例詳解

    Vue參數(shù)的增刪改實(shí)例詳解

    這篇文章主要為大家詳細(xì)介紹了Vue參數(shù)的增刪改實(shí)例,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下,希望能夠給你帶來(lái)幫助
    2022-03-03
  • 詳解Vue的異步更新實(shí)現(xiàn)原理

    詳解Vue的異步更新實(shí)現(xiàn)原理

    這篇文章主要介紹了Vue的異步更新實(shí)現(xiàn)原理,幫助大家更好的理解和使用vue,感興趣的朋友可以了解下
    2020-12-12
  • element-ui如何防止重復(fù)提交的方法步驟

    element-ui如何防止重復(fù)提交的方法步驟

    這篇文章主要介紹了element-ui如何防止重復(fù)提交的方法步驟,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧
    2019-12-12
  • vue?3?effect作用與原理解析

    vue?3?effect作用與原理解析

    Vue3的Effect是其響應(yīng)式系統(tǒng)的核心,負(fù)責(zé)依賴(lài)追蹤和自動(dòng)響應(yīng),它通過(guò)ReactiveEffect類(lèi)封裝副作用邏輯,實(shí)現(xiàn)依賴(lài)收集和觸發(fā)更新,本文介紹vue?3?effect作用與原理解析,感興趣的朋友一起看看吧
    2025-02-02
  • vue實(shí)現(xiàn)購(gòu)物車(chē)小案例

    vue實(shí)現(xiàn)購(gòu)物車(chē)小案例

    這篇文章主要為大家詳細(xì)介紹了vue實(shí)現(xiàn)購(gòu)物車(chē)小案例,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2019-09-09
  • vue項(xiàng)目中onscroll的坑及解決

    vue項(xiàng)目中onscroll的坑及解決

    這篇文章主要介紹了vue項(xiàng)目中onscroll的坑及解決方案,具有很好的參考價(jià)值,希望對(duì)大家有所幫助,如有錯(cuò)誤或未考慮完全的地方,望不吝賜教
    2024-03-03
  • uniapp中uni-load-more的使用方式

    uniapp中uni-load-more的使用方式

    這篇文章主要介紹了uniapp中uni-load-more的使用方式,具有很好的參考價(jià)值,希望對(duì)大家有所幫助,如有錯(cuò)誤或未考慮完全的地方,望不吝賜教
    2024-05-05
  • 詳解vue與后端數(shù)據(jù)交互(ajax):vue-resource

    詳解vue與后端數(shù)據(jù)交互(ajax):vue-resource

    本篇文章主要介紹了詳解vue與后端數(shù)據(jù)交互(ajax):vue-resource,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下。
    2017-03-03
  • vue-cli初始化項(xiàng)目中使用less的方法

    vue-cli初始化項(xiàng)目中使用less的方法

    vue-cli 是 vue.js 的腳手架工具,可以幫助我們編寫(xiě)基礎(chǔ)代碼、快速搭建開(kāi)發(fā)環(huán)境。下面這篇文章主要給大家介紹了關(guān)于vue-cli初始化項(xiàng)目中使用less的相關(guān)資料,需要的朋友可以參考借鑒,下面隨著小編來(lái)一起看看吧
    2018-08-08
  • :visible.sync 的作用詳解

    :visible.sync 的作用詳解

    我們?cè)谇岸碎_(kāi)發(fā)中經(jīng)??吹?visible.sync這種修飾符,很多人不知道這是干什么的,在使用ElementUI的時(shí)候,里面有個(gè)彈窗el-dialog組件的時(shí)候會(huì)有用到:visible.sync,今天小編帶領(lǐng)大家學(xué)習(xí)下:visible.sync 的作用,感興趣的朋友一起看看吧
    2022-11-11

最新評(píng)論

大余县| 中卫市| 莱芜市| 石楼县| 彭阳县| 长白| 绥德县| 伊金霍洛旗| 宾川县| 文山县| 石泉县| 措勤县| 托里县| 漾濞| 化州市| 桂阳县| 长海县| 太谷县| 潍坊市| 永嘉县| 杭锦旗| 太原市| 克东县| 金山区| 岫岩| 石林| 兴仁县| 浦北县| 五河县| 区。| 永川市| 青岛市| 苍溪县| 萝北县| 买车| 洛宁县| 苏州市| 大新县| 乌鲁木齐市| 安国市| 神农架林区|