提交 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';
import { Namespace } from '@ibiz-template/core';
import '@ibiz-template/theme/style/components/layout/app-layout/app-layout.scss';
import { renderCompatibleIE } from '@/ie-util';
import './app-layout.scss';
function renderLogo(ns: Namespace, model: IndexViewModel) {
return (
......
......@@ -19,6 +19,13 @@
@include b(exp-view-right) {
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) {
......
......@@ -20,10 +20,7 @@ export const MDViewBase = defineComponent({
inheritSlots[key] = (arg: IData) => this.$scopedSlots[key]!(arg);
});
return (
<view-base
controller={c}
scopedSlots={{
const slots: IData = {
quickSearch: () => {
if (c.complete && c.model.source.enableQuickSearch) {
return (
......@@ -39,7 +36,9 @@ export const MDViewBase = defineComponent({
);
}
},
searchForm: () => {
};
if (c.showSearchForm) {
slots.searchForm = () => {
if (c.complete && c.model.searchForm) {
return (
<search-form-control
......@@ -53,7 +52,14 @@ export const MDViewBase = defineComponent({
></search-form-control>
);
}
},
};
}
return (
<view-base
controller={c}
scopedSlots={{
...slots,
...inheritSlots,
}}
/>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册