提交 25723957 编写于 作者: WodahsOrez's avatar WodahsOrez

lxm--选择视图不显示标题

上级 fd87151a
...@@ -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') && Object.is(this.openMode, 'DEFAULT')) { if (Object.is(this.layoutMode, 'VIEW')) {
Object.assign(this.className, { 'crm-app-view': true, 'no-caption-bar': (!this.isShowCaptionBar && !this.isShowToolbar) }); Object.assign(this.className, { 'crm-app-view': true, 'no-caption-bar': ((this.openMode === 'MODAL' || !this.isShowCaptionBar) && !this.isShowToolbar) });
return <div class={this.className}> return <div class={this.className}>
{(!this.isShowCaptionBar && !this.isShowToolbar) ? null : <div class="crm-app-view-header-wrapper"> {((this.openMode === 'MODAL' || !this.isShowCaptionBar) && !this.isShowToolbar) ? null : <div class="crm-app-view-header-wrapper">
{this.isShowCaptionBar ? <div class="crm-app-view-header-left-wrapper"> {( this.openMode !== 'MODAL' && 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,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<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,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<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,6 +175,7 @@ export class AppPopover { ...@@ -175,6 +175,7 @@ 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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册