提交 be791d9f 编写于 作者: 朱政权's avatar 朱政权

style: vue2多数据视图样式调整(搜索表单样式优化)

上级 786ea654
@include b(layout-content) {
overflow: hidden;
}
\ No newline at end of file
...@@ -4,7 +4,6 @@ import { useNamespace } from '@ibiz-template/vue-util'; ...@@ -4,7 +4,6 @@ import { useNamespace } from '@ibiz-template/vue-util';
import { Namespace } from '@ibiz-template/core'; import { Namespace } from '@ibiz-template/core';
import '@ibiz-template/theme/style/components/layout/app-layout/app-layout.scss'; import '@ibiz-template/theme/style/components/layout/app-layout/app-layout.scss';
import { renderCompatibleIE } from '@/ie-util'; import { renderCompatibleIE } from '@/ie-util';
import './app-layout.scss';
function renderLogo(ns: Namespace, model: IndexViewModel) { function renderLogo(ns: Namespace, model: IndexViewModel) {
return ( return (
......
...@@ -19,6 +19,13 @@ ...@@ -19,6 +19,13 @@
@include b(exp-view-right) { @include b(exp-view-right) {
width: calc(100% - getCssVar('exp-view', 'left-width')); width: calc(100% - getCssVar('exp-view', 'left-width'));
@include b(view-layout) {
> .#{bem(view-layout-header)} ~ .#{bem(view-layout-content)} {
margin-left: 0;
margin-bottom: 0;
}
}
} }
@include b(exp-view-exp-bar) { @include b(exp-view-exp-bar) {
......
...@@ -20,10 +20,7 @@ export const MDViewBase = defineComponent({ ...@@ -20,10 +20,7 @@ export const MDViewBase = defineComponent({
inheritSlots[key] = (arg: IData) => this.$scopedSlots[key]!(arg); inheritSlots[key] = (arg: IData) => this.$scopedSlots[key]!(arg);
}); });
return ( const slots: IData = {
<view-base
controller={c}
scopedSlots={{
quickSearch: () => { quickSearch: () => {
if (c.complete && c.model.source.enableQuickSearch) { if (c.complete && c.model.source.enableQuickSearch) {
return ( return (
...@@ -39,7 +36,9 @@ export const MDViewBase = defineComponent({ ...@@ -39,7 +36,9 @@ export const MDViewBase = defineComponent({
); );
} }
}, },
searchForm: () => { };
if (c.showSearchForm) {
slots.searchForm = () => {
if (c.complete && c.model.searchForm) { if (c.complete && c.model.searchForm) {
return ( return (
<search-form-control <search-form-control
...@@ -53,7 +52,14 @@ export const MDViewBase = defineComponent({ ...@@ -53,7 +52,14 @@ export const MDViewBase = defineComponent({
></search-form-control> ></search-form-control>
); );
} }
}, };
}
return (
<view-base
controller={c}
scopedSlots={{
...slots,
...inheritSlots, ...inheritSlots,
}} }}
/> />
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册