提交 100e4dee 编写于 作者: tony001's avatar tony001

zpc --- 修复费路由打开无标题情况

上级 11755d3d
...@@ -113,11 +113,11 @@ export class AppLayout extends Vue { ...@@ -113,11 +113,11 @@ export class AppLayout extends Vue {
* @memberof AppLayout * @memberof AppLayout
*/ */
public render(): any { public render(): any {
if (Object.is(this.layoutMode, 'VIEW')) { if (Object.is(this.layoutMode, 'VIEW') && Object.is(this.openMode, 'DEFAULT')) {
Object.assign(this.className, { 'crm-app-view': true, 'no-caption-bar': ((this.openMode === 'MODAL' || !this.isShowCaptionBar) && !this.isShowToolbar) }); Object.assign(this.className, { 'crm-app-view': true, 'no-caption-bar': (!this.isShowCaptionBar && !this.isShowToolbar) });
return <div class={this.className}> return <div class={this.className}>
{((this.openMode === 'MODAL' || !this.isShowCaptionBar) && !this.isShowToolbar) ? null : <div class="crm-app-view-header-wrapper"> {(!this.isShowCaptionBar && !this.isShowToolbar) ? null : <div class="crm-app-view-header-wrapper">
{( this.openMode !== 'MODAL' && this.isShowCaptionBar) ? <div class="crm-app-view-header-left-wrapper"> {this.isShowCaptionBar ? <div class="crm-app-view-header-left-wrapper">
{this.$slots.headerLeft} {this.$slots.headerLeft}
</div> : null} </div> : null}
{this.isShowToolbar ? <div class="crm-app-view-header-right-wrapper"> {this.isShowToolbar ? <div class="crm-app-view-header-right-wrapper">
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
<component <component
:is="viewname" :is="viewname"
class="viewcontainer2" class="viewcontainer2"
openMode='MODAL'
:viewDefaultUsage="false" :viewDefaultUsage="false"
:viewdata="JSON.stringify(viewdata)" :viewdata="JSON.stringify(viewdata)"
:viewparam="JSON.stringify(viewparams)" :viewparam="JSON.stringify(viewparams)"
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
<component <component
:is="viewname" :is="viewname"
class="viewcontainer2" class="viewcontainer2"
openMode='MODAL'
:viewDefaultUsage="false" :viewDefaultUsage="false"
:viewdata="JSON.stringify(viewdata)" :viewdata="JSON.stringify(viewdata)"
:viewparam="JSON.stringify(viewparams)" :viewparam="JSON.stringify(viewparams)"
......
...@@ -175,7 +175,6 @@ export class AppPopover { ...@@ -175,7 +175,6 @@ export class AppPopover {
viewcontainer2: true, viewcontainer2: true,
}, },
props: { props: {
openMode: 'MODAL',
viewdata: JSON.stringify(viewdata), viewdata: JSON.stringify(viewdata),
viewDefaultUsage: false, viewDefaultUsage: false,
viewparam:JSON.stringify(data) viewparam:JSON.stringify(data)
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册