提交 1f7541e2 编写于 作者: RedPig97's avatar RedPig97

update: 更新

上级 5b6ee299
......@@ -39,6 +39,9 @@
{{#eq item.psEditor.editorType "TEXTAREA"}}
type="textarea"
{{/eq}}
{{#eq item.psEditor.editorType "TEXTAREA_10"}}
type="textarea"
{{/eq}}
{{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
:value="state.data.{{item.psEditor.name}}"
@editorEvent="onEditorEvent"
......
{{>@macro/front-end/editors/include-editor.hbs}}
{{#neq item.psEditor.editorType "HIDDEN"}}
{{#eq item.psLayoutPos 'FLEX'}}
<div style="flex-grow: {{#if item.psLayoutPos.grow}}{{item.psLayoutPos.grow}}{{else}}0{{/if}};">
<AppFormItem
......@@ -47,3 +48,4 @@
</AppFormItem>
</a-col>
{{/eq}}
{{/neq}}
\ No newline at end of file
......@@ -42,10 +42,14 @@ const initRules = () => {
:rules="itemRules"
:help="error"
:required="required"
class="app-form-item"
:labelCol="{ style: { width: `${labelWidth}px` } }"
:validateStatus="error ? 'error' : 'validating'"
>
<template #label>
<label :style="{ width: labelWidth + 'px' }" :class="titleStyle">{{ label }}</label>
<label :class="titleStyle">
<div class="label-title">{{ label }}</div>
</label>
</template>
<slot></slot>
</a-form-item>
......
......@@ -3,7 +3,7 @@
</script>
<template>
<AppViewBaseLayout>
<AppViewBaseLayout class="app-grid-view-layout">
<template v-slot:header-top>
<slot name="topMessage" />
</template>
......@@ -11,16 +11,20 @@
<slot name="caption" />
</template>
<template v-slot:header-content>
<slot name="quickGroupSearch" />
<slot name="quickSearch" />
</template>
<template v-slot:header-right>
<div class="grid-view__header-right">
<slot name="quickGroupSearch" />
<slot name="quickSearch" />
<slot name="toolbar" />
</div>
</template>
<template v-slot:header-bottom>
<div>
<slot name="quickSearchForm" />
<slot name="searchForm" />
<slot name="searchBar" />
</div>
</template>
<template v-slot:body-top>
<slot name="bodyMessage" />
......@@ -33,6 +37,11 @@
</template>
<style lang="scss">
.app-grid-view-layout {
.grid-view__header-right {
display: flex;
flex-wrap: nowrap;
}
}
</style>
\ No newline at end of file
.app-form-item {
.ant-form-item-label {
width: 130px;
}
}
\ No newline at end of file
......@@ -5,3 +5,4 @@
@use './app-menu-center.scss';
@use './app-user.scss';
@use './lock.scss';
@use './app-form-item.scss';
\ No newline at end of file
......@@ -68,7 +68,7 @@ const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear
<template v-slot:quickSearch>
<div class='app-quick-search'>
<a-input v-if="state.enableQuickSearch" @pressEnter="onQuickSearchEvent($event)" allowClear/>
<a-popover trigger="click" :overlayStyle="{width: '50%'}">
<a-popover trigger="click" :overlayStyle="{width: '50%'}" placement="bottom">
<template #content>
<{{codeName}}SearchForm
v-if="state.expandSearchForm"
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册