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

update:更新编辑器

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