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

update: 更新

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