提交 3749de6a 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新

上级 8958c657
...@@ -3,16 +3,16 @@ ...@@ -3,16 +3,16 @@
<a-button <a-button
type="primary" type="primary"
v-show="state.detailsModel.{{item.codeName}}.visible" v-show="state.detailsModel.{{item.codeName}}.visible"
class="app-form-button{{#if item.psSysCss}}{{item.psSysCss.cssName}}{{/if}}" class="app-form-button{{#if item.psSysCss}} {{item.psSysCss.cssName}}{{/if}}"
style="{{#if item.width}}width: {{item.width}}px;{{/if}}{{#if item.height}}height: {{item.height}}px;{{/if}}"> style="{{#if item.width}}width: {{item.width}}px;{{/if}}{{#if item.height}}height: {{item.height}}px;{{/if}}">
{{#if item.psSysImage}} {{#if item.psSysImage}}
<template #icon> <template #icon>
<AppIconText {{#if item.psSysImage.cssClass}}:iconClass="{{item.psSysImage.cssClass}}"{{/if}} {{#if item.psSysImage.imagePath}}:imgPath="{{item.psSysImage.imagePath}}"{{/if}}/> <AppIconText {{#if item.psSysImage.cssClass}}:iconClass="{{item.psSysImage.cssClass}}"{{/if}} {{#if item.psSysImage.imagePath}}:imgPath="{{item.psSysImage.imagePath}}"{{/if}}/>
</template> </template>
{{/if}} {{/if}}
{{#if item.showCaption}} {{#if item.showCaption}}
{{item.caption}} <span {{#if item.labelPSSysCss}}class="{{item.labelPSSysCss.cssName}}"{{/if}}>{{item.caption}}</span>
{{/if}} {{/if}}
</a-button> </a-button>
</div> </div>
{{else}} {{else}}
...@@ -21,16 +21,16 @@ ...@@ -21,16 +21,16 @@
<a-button <a-button
type="primary" type="primary"
v-show="state.detailsModel.{{item.codeName}}.visible" v-show="state.detailsModel.{{item.codeName}}.visible"
class="app-form-button{{#if item.psSysCss}}{{item.psSysCss.cssName}}{{/if}}" class="app-form-button{{#if item.psSysCss}} {{item.psSysCss.cssName}}{{/if}}"
style="{{#if item.width}}width: {{item.width}}px;{{/if}}{{#if item.height}}height: {{item.height}}px;{{/if}}"> style="{{#if item.width}}width: {{item.width}}px;{{/if}}{{#if item.height}}height: {{item.height}}px;{{/if}}">
{{#if item.psSysImage}} {{#if item.psSysImage}}
<template #icon> <template #icon>
<AppIconText {{#if item.psSysImage.cssClass}}:iconClass="{{item.psSysImage.cssClass}}"{{/if}} {{#if item.psSysImage.imagePath}}:imgPath="{{item.psSysImage.imagePath}}"{{/if}}/> <AppIconText {{#if item.psSysImage.cssClass}}:iconClass="{{item.psSysImage.cssClass}}"{{/if}} {{#if item.psSysImage.imagePath}}:imgPath="{{item.psSysImage.imagePath}}"{{/if}}/>
</template> </template>
{{/if}} {{/if}}
{{#if item.showCaption}} {{#if item.showCaption}}
{{item.caption}} <span {{#if item.labelPSSysCss}}class="{{item.labelPSSysCss.cssName}}"{{/if}}>{{item.caption}}</span>
{{/if}} {{/if}}
</a-button> </a-button>
</a-col> </a-col>
{{/eq}} {{/eq}}
\ No newline at end of file
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<AppFormDruipart <AppFormDruipart
v-show="state.detailsModel.{{item.codeName}}.visible" v-show="state.detailsModel.{{item.codeName}}.visible"
{{#if item.psSysCss}}class="{{item.psSysCss.cssName}}"{{/if}} {{#if item.psSysCss}}class="{{item.psSysCss.cssName}}"{{/if}}
style="{{#if item.width}}width: {{item.width}}px;{{/if}}{{#if item.height}}height: {{item.height}}px{{/if}}"
name="{{item.codeName}}" name="{{item.codeName}}"
title="{{item.caption}}" title="{{item.caption}}"
:context="context" :context="context"
...@@ -27,6 +28,7 @@ ...@@ -27,6 +28,7 @@
<AppFormDruipart <AppFormDruipart
v-show="state.detailsModel.{{item.codeName}}.visible" v-show="state.detailsModel.{{item.codeName}}.visible"
{{#if item.psSysCss}}class="{{item.psSysCss.cssName}}"{{/if}} {{#if item.psSysCss}}class="{{item.psSysCss.cssName}}"{{/if}}
style="{{#if item.width}}width: {{item.width}}px;{{/if}}{{#if item.height}}height: {{item.height}}px{{/if}}"
name="{{item.codeName}}" name="{{item.codeName}}"
title="{{item.caption}}" title="{{item.caption}}"
:context="context" :context="context"
......
...@@ -4,10 +4,16 @@ ...@@ -4,10 +4,16 @@
v-show="state.detailsModel.{{item.codeName}}.visible" v-show="state.detailsModel.{{item.codeName}}.visible"
name="{{item.codeName}}" name="{{item.codeName}}"
title="{{item.caption}}" title="{{item.caption}}"
{{#if item.psSysCss}}
class="{{item.psSysCss.cssName}}"
{{/if}}
style="{{#if item.width}}width: {{item.width}}px;{{/if}}{{#if item.height}}height: {{item.height}}px{{/if}}"
{{#if item.psSysImage}} {{#if item.psSysImage}}
{{#if item.psSysImage.imagePath}}imgPath="{{item.psSysImage.imagePath}}"{{else if item.psSysImage.cssClass}}iconClass="{{item.psSysImage.cssClass}}"{{/if}} {{#if item.psSysImage.imagePath}}imgPath="{{item.psSysImage.imagePath}}"{{else if item.psSysImage.cssClass}}iconClass="{{item.psSysImage.cssClass}}"{{/if}}
{{/if}} {{/if}}
{{#if item.labelPSSysCss}}
titleStyle="{{item.labelPSSysCss.cssName}}" titleStyle="{{item.labelPSSysCss.cssName}}"
{{/if}}
:infoGroupMode="{{item.infoGroupMode}}" :infoGroupMode="{{item.infoGroupMode}}"
:titleBarCloseMode="{{item.titleBarCloseMode}}" :titleBarCloseMode="{{item.titleBarCloseMode}}"
:showCaption="{{item.showCaption}}" :showCaption="{{item.showCaption}}"
...@@ -38,10 +44,13 @@ ...@@ -38,10 +44,13 @@
{{#if item.psSysCss}} {{#if item.psSysCss}}
class="{{item.psSysCss.cssName}}" class="{{item.psSysCss.cssName}}"
{{/if}} {{/if}}
style="{{#if item.width}}width: {{item.width}}px;{{/if}}{{#if item.height}}height: {{item.height}}px{{/if}}"
{{#if item.psSysImage}} {{#if item.psSysImage}}
{{#if item.psSysImage.imagePath}}imgPath="{{item.psSysImage.imagePath}}"{{else if item.psSysImage.cssClass}}iconClass="{{item.psSysImage.cssClass}}"{{/if}} {{#if item.psSysImage.imagePath}}imgPath="{{item.psSysImage.imagePath}}"{{else if item.psSysImage.cssClass}}iconClass="{{item.psSysImage.cssClass}}"{{/if}}
{{/if}} {{/if}}
{{#if item.labelPSSysCss}}
titleStyle="{{item.labelPSSysCss.cssName}}" titleStyle="{{item.labelPSSysCss.cssName}}"
{{/if}}
:infoGroupMode="{{item.infoGroupMode}}" :infoGroupMode="{{item.infoGroupMode}}"
:titleBarCloseMode="{{item.titleBarCloseMode}}" :titleBarCloseMode="{{item.titleBarCloseMode}}"
:showCaption="{{item.showCaption}}" :showCaption="{{item.showCaption}}"
......
{{>@macro/front-end/editors/include-editor.hbs}} {{>@macro/front-end/editors/include-editor.hbs}}
{{#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 v-show="state.detailsModel.{{item.codeName}}.visible" {{#if item.psSysCss}}class="{{item.psSysCss.cssName}}"{{/if}} name="{{item.codeName}}" :rules="state.rules.{{item.codeName}}" :labelWidth="{{item.labelWidth}}" label="{{item.caption}}"> <AppFormItem
{{#if item.psEditor}} v-show="state.detailsModel.{{item.codeName}}.visible"
{{>(lookup . 'item.psEditor.editorType') item=item ctrlType="form"}} {{#if item.psSysCss}}
class="{{item.psSysCss.cssName}}"
{{/if}} {{/if}}
{{#if item.labelPSSysCss}}
titleStyle="{{item.labelPSSysCss.cssName}}"
{{/if}}
name="{{item.codeName}}"
:rules="state.rules.{{item.codeName}}"
:labelWidth="{{item.labelWidth}}"
:required="state.detailsModel.{{item.codeName}}.required"
label="{{item.caption}}"
style="{{#if item.width}}width: {{item.width}}px;{{/if}}{{#if item.height}}height: {{item.height}}px{{/if}}">
{{#if item.psEditor}}
<div class="form-editor-container" style="{{#if item.editorWidth}}width: {{item.editorWidth}}px;{{/if}}{{#if item.editorHeight}}height: {{item.editorHeight}}px{{/if}}">
{{>(lookup . 'item.psEditor.editorType') item=item ctrlType="form"}}
</div>
{{/if}}
</AppFormItem> </AppFormItem>
</div> </div>
{{else}} {{else}}
<a-col <a-col
{{> @macro/front-end/widgets/common/layout-pos.hbs item=item.psLayoutPos}} > {{> @macro/front-end/widgets/common/layout-pos.hbs item=item.psLayoutPos}} >
<AppFormItem v-show="state.detailsModel.{{item.codeName}}.visible" {{#if item.psSysCss}}class="{{item.psSysCss.cssName}}"{{/if}} name="{{item.codeName}}" :rules="state.rules.{{item.codeName}}" :labelWidth="{{item.labelWidth}}" :required="state.detailsModel.{{item.codeName}}.required" label="{{item.caption}}"> <AppFormItem
{{#if item.psEditor}} v-show="state.detailsModel.{{item.codeName}}.visible"
{{>(lookup . 'item.psEditor.editorType') item=item ctrlType="form"}} {{#if item.psSysCss}}
class="{{item.psSysCss.cssName}}"
{{/if}}
{{#if item.labelPSSysCss}}
titleStyle="{{item.labelPSSysCss.cssName}}"
{{/if}} {{/if}}
name="{{item.codeName}}"
:rules="state.rules.{{item.codeName}}"
:labelWidth="{{item.labelWidth}}"
:required="state.detailsModel.{{item.codeName}}.required"
label="{{item.caption}}"
style="{{#if item.width}}width: {{item.width}}px;{{/if}}{{#if item.height}}height: {{item.height}}px{{/if}}">
{{#if item.psEditor}}
<div class="form-editor-container" style="{{#if item.editorWidth}}width: {{item.editorWidth}}px;{{/if}}{{#if item.editorHeight}}height: {{item.editorHeight}}px{{/if}}">
{{>(lookup . 'item.psEditor.editorType') item=item ctrlType="form"}}
</div>
{{/if}}
</AppFormItem> </AppFormItem>
</a-col> </a-col>
{{/eq}} {{/eq}}
\ No newline at end of file
...@@ -20,5 +20,5 @@ ...@@ -20,5 +20,5 @@
contentType="{{item.contentType}}" contentType="{{item.contentType}}"
style="{{#if item.rawItemHeight}}height: {{item.rawItemHeight}}px;{{/if}}{{#if item.rawItemWidth}}width: {{item.rawItemWidth}}px{{/if}}" style="{{#if item.rawItemHeight}}height: {{item.rawItemHeight}}px;{{/if}}{{#if item.rawItemWidth}}width: {{item.rawItemWidth}}px{{/if}}"
{{#if (eq item.contentType 'RAW')}}value="{{item.rawContent}}"{{else if (eq item.contentType 'HTML')}}:value="`{{item.htmlContent}}`"{{/if}}/> {{#if (eq item.contentType 'RAW')}}value="{{item.rawContent}}"{{else if (eq item.contentType 'HTML')}}:value="`{{item.htmlContent}}`"{{/if}}/>
</a-col> </a-col>
{{/eq}} {{/eq}}
...@@ -39,7 +39,7 @@ const handleMenuGroupAction = ($event: IParam) => { ...@@ -39,7 +39,7 @@ const handleMenuGroupAction = ($event: IParam) => {
:headStyle="titleStyle" :headStyle="titleStyle"
:bordered="false"> :bordered="false">
<template v-if="showCaption" #title> <template v-if="showCaption" #title>
<p :class="['app-form-group-title', `${titleStyle}`]"> <p class="app-form-group-title">
<AppIconText :iconClass="iconClass" :imgPath="imgPath" :text="title"/> <AppIconText :iconClass="iconClass" :imgPath="imgPath" :text="title"/>
</p> </p>
</template> </template>
......
...@@ -3,11 +3,12 @@ import { IActionParam } from '@core'; ...@@ -3,11 +3,12 @@ import { IActionParam } from '@core';
interface FormGroupProps { interface FormGroupProps {
name: string; name: string;
error?: string;
label: string; label: string;
required: boolean; required: boolean;
rules?: any;
labelWidth: number; labelWidth: number;
rules?: any;
error?: string;
titleStyle?: string;
} }
interface FormGroupEmit { interface FormGroupEmit {
(name: 'componentEvent', value: IActionParam): void; (name: 'componentEvent', value: IActionParam): void;
...@@ -44,7 +45,7 @@ const initRules = () => { ...@@ -44,7 +45,7 @@ const initRules = () => {
:validateStatus="error ? 'error' : 'validating'" :validateStatus="error ? 'error' : 'validating'"
> >
<template #label> <template #label>
<label :style="{ width: labelWidth + 'px' }">\{{ label }}</label> <label :style="{ width: labelWidth + 'px' }" :class="titleStyle">\{{ label }}</label>
</template> </template>
<slot></slot> <slot></slot>
</a-form-item> </a-form-item>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册