提交 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,40 +20,46 @@ export const MDViewBase = defineComponent({
inheritSlots[key] = (arg: IData) => this.$scopedSlots[key]!(arg);
});
const slots: IData = {
quickSearch: () => {
if (c.complete && c.model.source.enableQuickSearch) {
return (
<quick-search
value={c.query}
viewMode={c.modal.mode}
placeholder={c.model.placeholder}
on-update={(val: string) => {
c.query = val;
}}
on-search={() => c.onSearch()}
></quick-search>
);
}
},
};
if (c.showSearchForm) {
slots.searchForm = () => {
if (c.complete && c.model.searchForm) {
return (
<search-form-control
v-show={c.showSearchForm}
modelData={c.model.searchForm}
context={c.context}
params={c.params}
on-neuronInit={c.nerve.onNeuronInit(
c.model.searchForm.source.name,
)}
></search-form-control>
);
}
};
}
return (
<view-base
controller={c}
scopedSlots={{
quickSearch: () => {
if (c.complete && c.model.source.enableQuickSearch) {
return (
<quick-search
value={c.query}
viewMode={c.modal.mode}
placeholder={c.model.placeholder}
on-update={(val: string) => {
c.query = val;
}}
on-search={() => c.onSearch()}
></quick-search>
);
}
},
searchForm: () => {
if (c.complete && c.model.searchForm) {
return (
<search-form-control
v-show={c.showSearchForm}
modelData={c.model.searchForm}
context={c.context}
params={c.params}
on-neuronInit={c.nerve.onNeuronInit(
c.model.searchForm.source.name,
)}
></search-form-control>
);
}
},
...slots,
...inheritSlots,
}}
/>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册