提交 014b1ecf 编写于 作者: KK's avatar KK

zk——新增应用切换器

上级 f44e5a56
...@@ -13,7 +13,10 @@ ...@@ -13,7 +13,10 @@
height: 100%; height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
>.ibiz-menu-icon{
font-size: 30px;
padding: 0 10px;
}
>img { >img {
margin: 0px 6px; margin: 0px 6px;
margin-top: 2px; margin-top: 2px;
......
<app-layout viewName="${view.getCodeName()?lower_case}" viewTitle="${view.getTitle()}" className={{ index_view: true }}> <app-layout viewName="${view.getCodeName()?lower_case}" viewTitle="${view.getTitle()}" className={{ index_view: true }}>
<template slot="headerLeft"> <template slot="headerLeft">
<div class="app-header-left"> <div class="app-header-left">
<span class="ibiz-menu-icon" onClick={()=>{this.contextMenuDragVisiable=!this.contextMenuDragVisiable}}><i class="ivu-icon ivu-icon-md-menu"></i></span>
<img class="logo" src="./assets/img/logo.png" /> <img class="logo" src="./assets/img/logo.png" />
<div class="app-name">{this.$t(this.model.srfCaption)}</div> <div class="app-name">{this.$t(this.model.srfCaption)}</div>
</div> </div>
...@@ -14,6 +15,7 @@ ...@@ -14,6 +15,7 @@
<div class="crm-app-content"> <div class="crm-app-content">
<div class="inedx-app-menus"> <div class="inedx-app-menus">
${P.getCtrlCode('appmenu', 'CONTROL.html').code} ${P.getCtrlCode('appmenu', 'CONTROL.html').code}
<context-menu-drag contextMenuDragVisiable={this.contextMenuDragVisiable}></context-menu-drag>
</div> </div>
<div class="content" style="width: calc(100% - 240px)"> <div class="content" style="width: calc(100% - 240px)">
<router-view></router-view> <router-view></router-view>
......
...@@ -34,6 +34,14 @@ export default class ${srfclassname('${view.name}')}Base extends IndexViewBase { ...@@ -34,6 +34,14 @@ export default class ${srfclassname('${view.name}')}Base extends IndexViewBase {
dataInfo: '' dataInfo: ''
} }
/**
* 抽屉状态
*
* @type {boolean}
* @memberof ${srfclassname('${view.name}')}Base
*/
public contextMenuDragVisiable: boolean = false;
/** /**
* 容器模型 * 容器模型
* *
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册