提交 489d0d40 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新编辑器

上级 c1469c36
...@@ -26,8 +26,11 @@ ...@@ -26,8 +26,11 @@
{{#if item.psEditor.editorParams.sort}} {{#if item.psEditor.editorParams.sort}}
sort="{{item.psEditor.editorParams.sort}}" sort="{{item.psEditor.editorParams.sort}}"
{{/if}} {{/if}}
{{#if item.psEditor.editorParams.open}} {{#if item.psEditor.editorParams.defaultOpen}}
:open="{{item.psEditor.editorParams.open}}" :defaultOpen="{{item.psEditor.editorParams.defaultOpen}}"
{{/if}}
{{#if item.psEditor.editorParams.pickUpData}}
:pickUpData="{{item.psEditor.editorParams.pickUpData}}"
{{/if}} {{/if}}
{{#if item.psEditor.disabled}} {{#if item.psEditor.disabled}}
disabled="{{item.psEditor.disabled}}" disabled="{{item.psEditor.disabled}}"
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
{{#eq ctrlType 'form'}} {{#eq ctrlType 'form'}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{/eq}}
{{#if item.psEditor.isReadOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.isReadOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
{{#if item.psEditor.psAppCodeList}} {{#if item.psEditor.psAppCodeList}}
codeListTag="{{item.psEditor.psAppCodeList.codeListTag}}" codeListTag="{{item.psEditor.psAppCodeList.codeListTag}}"
......
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
{{#if item.psEditor.psAppDEACMode.minorSortDir}} {{#if item.psEditor.psAppDEACMode.minorSortDir}}
sort="{{item.psEditor.psAppDEACMode.minorSortDir}}" sort="{{item.psEditor.psAppDEACMode.minorSortDir}}"
{{/if}} {{/if}}
{{#if item.psEditor.pickUpData}} {{#if item.psEditor.editorParams.pickUpData}}
pickUpData="{{item.psEditor.pickUpData}}" pickUpData="{{item.psEditor.editorParams.pickUpData}}"
{{/if}} {{/if}}
{{#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}}"
......
...@@ -36,8 +36,8 @@ ...@@ -36,8 +36,8 @@
{{#if item.psEditor.psAppDEACMode.minorSortDir}} {{#if item.psEditor.psAppDEACMode.minorSortDir}}
sort="{{item.psEditor.psAppDEACMode.minorSortDir}}" sort="{{item.psEditor.psAppDEACMode.minorSortDir}}"
{{/if}} {{/if}}
{{#if item.psEditor.pickUpData}} {{#if item.psEditor.editorParams.pickUpData}}
pickUpData="{{item.psEditor.pickUpData}}" pickUpData="{{item.psEditor.editorParams.pickUpData}}"
{{/if}} {{/if}}
{{#if (or (eq item.psEditor.editorType "PICKEREX_LINKONLY") (eq item.psEditor.editorType "PICKEREX_LINK"))}} {{#if (or (eq item.psEditor.editorType "PICKEREX_LINKONLY") (eq item.psEditor.editorType "PICKEREX_LINK"))}}
:linkOnly="true" :linkOnly="true"
......
...@@ -12,14 +12,14 @@ ...@@ -12,14 +12,14 @@
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
{{#if item.psEditor.editorParams.max}} {{#if item.psEditor.maxValue}}
:max="{{item.psEditor.editorParams.max}}" :max="{{item.psEditor.maxValue}}"
{{/if}} {{/if}}
{{#if item.psEditor.editorParams.min}} {{#if item.psEditor.minValue}}
:max="{{item.psEditor.editorParams.min}}" :min="{{item.psEditor.minValue}}"
{{/if}} {{/if}}
{{#if item.psEditor.editorParams.precision}} {{#if item.psEditor.precision}}
:precision="{{item.psEditor.editorParams.precision}}" :precision="{{item.psEditor.precision}}"
{{/if}} {{/if}}
{{#if item.psEditor.maxLength}} {{#if item.psEditor.maxLength}}
:maxLength="{{item.psEditor.maxLength}}" :maxLength="{{item.psEditor.maxLength}}"
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
{{#eq ctrlType 'form'}} {{#eq ctrlType 'form'}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{/eq}}
{{#if item.psEditor.isReadOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.isReadOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
{{#if item.psEditor.psAppCodeList}} {{#if item.psEditor.psAppCodeList}}
codeListTag="{{item.psEditor.psAppCodeList.codeListTag}}" codeListTag="{{item.psEditor.psAppCodeList.codeListTag}}"
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
{{#eq ctrlType 'form'}} {{#eq ctrlType 'form'}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{/eq}}
{{#if item.psEditor.isReadOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.isReadOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
{{#if item.psEditor.psNavigateContexts}} {{#if item.psEditor.psNavigateContexts}}
localContext="{{> @macro/front-end/common/navparam.hbs appNavParams=item.psEditor.psNavigateContexts}}" localContext="{{> @macro/front-end/common/navparam.hbs appNavParams=item.psEditor.psNavigateContexts}}"
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
{{#if item.psEditor.editorParams.max}} {{#if item.psEditor.maxValue}}
:max="{{item.psEditor.editorParams.max}}" :max="{{item.psEditor.maxValue}}"
{{/if}} {{/if}}
{{#if item.psEditor.editorParams.allowHalf}} {{#if item.psEditor.editorParams.allowHalf}}
:allowHalf="{{item.psEditor.editorParams.allowHalf}}" :allowHalf="{{item.psEditor.editorParams.allowHalf}}"
......
...@@ -5,7 +5,9 @@ ...@@ -5,7 +5,9 @@
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{/eq}}
{{#if item.psEditor.editorParams.contentType}} {{#if item.psEditor.editorParams.contentType}}
:contentType="{{item.psEditor.editorParams.contentType}}" contentType="{{item.psEditor.editorParams.contentType}}"
{{else}}
contentType="RAW"
{{/if}} {{/if}}
{{#if item.psEditor.editorParams.icon}} {{#if item.psEditor.editorParams.icon}}
iconClass="{{item.psEditor.editorParams.icon}}" iconClass="{{item.psEditor.editorParams.icon}}"
......
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
{{#if item.psEditor.stepValue}} {{#if item.psEditor.stepValue}}
:step="{{item.psEditor.stepValue}}" :step="{{item.psEditor.stepValue}}"
{{/if}} {{/if}}
{{#if item.psEditor.editorParams.min}} {{#if item.psEditor.minValue}}
:min="{{item.psEditor.editorParams.min}}" :min="{{item.psEditor.minValue}}"
{{/if}} {{/if}}
{{#if item.psEditor.editorParams.max}} {{#if item.psEditor.maxValue}}
:max="{{item.psEditor.editorParams.max}}" :max="{{item.psEditor.maxValue}}"
{{/if}} {{/if}}
{{#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}}"
......
...@@ -6,17 +6,17 @@ ...@@ -6,17 +6,17 @@
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
{{#if item.psEditor.editorParams.precision}} {{#if item.psEditor.precision}}
:precision="{{item.psEditor.editorParams.precision}}" :precision="{{item.psEditor.precision}}"
{{/if}} {{/if}}
{{#if item.psEditor.stepValue}} {{#if item.psEditor.stepValue}}
:step="{{item.psEditor.stepValue}}" :step="{{item.psEditor.stepValue}}"
{{/if}} {{/if}}
{{#if item.psEditor.editorParams.min}} {{#if item.psEditor.minValue}}
:min="{{item.psEditor.editorParams.min}}" :min="{{item.psEditor.minValue}}"
{{/if}} {{/if}}
{{#if item.psEditor.editorParams.max}} {{#if item.psEditor.maxValue}}
:max="{{item.psEditor.editorParams.max}}" :max="{{item.psEditor.maxValue}}"
{{/if}} {{/if}}
{{#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}}"
......
...@@ -3,8 +3,12 @@ ...@@ -3,8 +3,12 @@
<AppRaw <AppRaw
name="{{item.codeName}}" name="{{item.codeName}}"
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}}
{{#if item.psSysImage}}{{#if item.psSysImage.cssClass}}iconClass="{{item.psSysImage.cssClass}}"{{/if}}{{#if item.psSysImage.imagePath}}imgPath="{{item.psSysImage.imagePath}}"{{/if}}{{/if}} class="{{item.psSysCss.cssName}}"
{{/if}}
{{#if item.psSysImage}}
{{#if item.psSysImage.cssClass}}iconClass="{{item.psSysImage.cssClass}}"{{/if}}{{#if item.psSysImage.imagePath}}imgPath="{{item.psSysImage.imagePath}}"{{/if}}
{{/if}}
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}}/>
...@@ -15,8 +19,12 @@ ...@@ -15,8 +19,12 @@
<AppRaw <AppRaw
name="{{item.codeName}}" name="{{item.codeName}}"
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}}
{{#if item.psSysImage}}{{#if item.psSysImage.cssClass}}iconClass="{{item.psSysImage.cssClass}}"{{/if}}{{#if item.psSysImage.imagePath}}imgPath="{{item.psSysImage.imagePath}}"{{/if}}{{/if}} class="{{item.psSysCss.cssName}}"
{{/if}}
{{#if item.psSysImage}}
{{#if item.psSysImage.cssClass}}iconClass="{{item.psSysImage.cssClass}}"{{/if}}{{#if item.psSysImage.imagePath}}imgPath="{{item.psSysImage.imagePath}}"{{/if}}
{{/if}}
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}}/>
......
...@@ -83,7 +83,7 @@ interface AutoCompleteProps { ...@@ -83,7 +83,7 @@ interface AutoCompleteProps {
disabled?: boolean; disabled?: boolean;
/** /**
* @description 禁用 * @description 只读
*/ */
readonly?: boolean; readonly?: boolean;
} }
......
...@@ -93,7 +93,7 @@ const onChange = ($event: any) => { ...@@ -93,7 +93,7 @@ const onChange = ($event: any) => {
:disabled="disabled" :disabled="disabled"
:maxlength="maxLength" :maxlength="maxLength"
@blur="onChange" @blur="onChange"
:placeholder="placeholder"/> :placeholder="showMaxLength ? `最大内容长度为${maxLength}` : placeholder"/>
<a-input <a-input
allowClear allowClear
v-else="Object.is('text', type)" v-else="Object.is('text', type)"
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册