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

update: 更新编辑器模板

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