提交 dcb1a0f5 编写于 作者: 邱定凯's avatar 邱定凯

update: 更新编辑器模板

上级 cac6d3a2
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
:disabled="state.detailsModel.{{item.name}}.disabled" :disabled="state.detailsModel.{{item.name}}.disabled"
{{/if}} {{/if}}
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readOnly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
{{#eq item.psEditor.editorType "DATEPICKEREX"}} {{#eq item.psEditor.editorType "DATEPICKEREX"}}
dateFormat="YYYY-MM-DD HH:mm:ss" dateFormat="YYYY-MM-DD HH:mm:ss"
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
:disabled="state.detailsModel.{{item.name}}.disabled" :disabled="state.detailsModel.{{item.name}}.disabled"
{{/if}} {{/if}}
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readOnly="{{item.psEditor.readOnly}}"
{{/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}}"
......
...@@ -57,7 +57,7 @@ interface DatePickerProps { ...@@ -57,7 +57,7 @@ interface DatePickerProps {
* *
* @type {boolean} * @type {boolean}
*/ */
readonly?: boolean; readOnly?: boolean;
} }
interface EditorEmit { interface EditorEmit {
...@@ -66,7 +66,7 @@ interface EditorEmit { ...@@ -66,7 +66,7 @@ interface EditorEmit {
const props = withDefaults(defineProps<DatePickerProps>(), { const props = withDefaults(defineProps<DatePickerProps>(), {
disabled: false, disabled: false,
readonly: false, readOnly: false,
dateType: 'date', dateType: 'date',
dateFormat: 'yyyy-MM-dd HH:mm:ss', dateFormat: 'yyyy-MM-dd HH:mm:ss',
placeholder: '请选择日期', placeholder: '请选择日期',
...@@ -94,7 +94,7 @@ onMounted(() => { ...@@ -94,7 +94,7 @@ onMounted(() => {
v-model:value="curValue" v-model:value="curValue"
:format="dateFormat" :format="dateFormat"
:placeholder="placeholder" :placeholder="placeholder"
:inputReadOnly="readonly" :inputReadOnly="readOnly"
:disabled="disabled" :disabled="disabled"
@change="onChange" @change="onChange"
/> />
...@@ -106,7 +106,7 @@ onMounted(() => { ...@@ -106,7 +106,7 @@ onMounted(() => {
:format="dateFormat" :format="dateFormat"
picker="date" picker="date"
:placeholder="placeholder" :placeholder="placeholder"
:inputReadOnly="readonly" :inputReadOnly="readOnly"
:disabled="disabled" :disabled="disabled"
@change="onChange" @change="onChange"
/> />
...@@ -118,7 +118,7 @@ onMounted(() => { ...@@ -118,7 +118,7 @@ onMounted(() => {
v-model:value="curValue" v-model:value="curValue"
:format="dateFormat" :format="dateFormat"
:placeholder="placeholder" :placeholder="placeholder"
:inputReadOnly="readonly" :inputReadOnly="readOnly"
:disabled="disabled" :disabled="disabled"
@change="onChange" @change="onChange"
/> />
......
...@@ -20,7 +20,7 @@ interface InputIpProps{ ...@@ -20,7 +20,7 @@ interface InputIpProps{
/** /**
* @description 只读 * @description 只读
*/ */
readonly?: boolean; readOnly?: boolean;
} }
interface EditorEmit{ interface EditorEmit{
...@@ -29,7 +29,7 @@ interface EditorEmit{ ...@@ -29,7 +29,7 @@ interface EditorEmit{
const props = withDefaults(defineProps<InputIpProps>(), { const props = withDefaults(defineProps<InputIpProps>(), {
disabled: false, disabled: false,
readonly: false readOnly: false
}) })
const emit = defineEmits<EditorEmit>() const emit = defineEmits<EditorEmit>()
const ipData: Ref<any> = ref([]); const ipData: Ref<any> = ref([]);
......
...@@ -17,12 +17,12 @@ interface RawProps { ...@@ -17,12 +17,12 @@ interface RawProps {
contentType?: "RAW" | "HTML" | "IMAGE" | "MARKDOWN"; contentType?: "RAW" | "HTML" | "IMAGE" | "MARKDOWN";
/** /**
* @description 输入框类型 * @description 图标类
*/ */
iconClass?: string; iconClass?: string;
/** /**
* @description 输入框类型 * @description 图片路径
*/ */
imgPath?: string; imgPath?: string;
...@@ -35,6 +35,10 @@ interface RawProps { ...@@ -35,6 +35,10 @@ interface RawProps {
* @description 直接内容样式 * @description 直接内容样式
*/ */
rawStyle?: IParam; rawStyle?: IParam;
/**
* @description
*/
data?: IParam;
} }
interface EditorEmit { interface EditorEmit {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册