diff --git a/frontend/src/business/components/common/components/form/CustomFiledFormItem.vue b/frontend/src/business/components/common/components/form/CustomFiledFormItem.vue index 15115a9d0b..cebdfcd4bb 100644 --- a/frontend/src/business/components/common/components/form/CustomFiledFormItem.vue +++ b/frontend/src/business/components/common/components/form/CustomFiledFormItem.vue @@ -6,13 +6,21 @@ - +
- + @@ -44,7 +52,13 @@ export default { default() { return false; } - } + }, + defaultOpen: { + type: String, + default() { + return 'preview'; + } + }, }, computed: { customFieldRowNums() { diff --git a/frontend/src/business/components/common/components/form/CustomFiledFormRow.vue b/frontend/src/business/components/common/components/form/CustomFiledFormRow.vue index bcf7e71d84..bd8454de21 100644 --- a/frontend/src/business/components/common/components/form/CustomFiledFormRow.vue +++ b/frontend/src/business/components/common/components/form/CustomFiledFormRow.vue @@ -6,7 +6,13 @@ - + @@ -42,7 +48,13 @@ export default { default() { return false; } - } + }, + defaultOpen: { + type: String, + default() { + return 'preview'; + } + }, }, computed: { customFieldRowNums() { diff --git a/frontend/src/business/components/project/template/CustomFiledComponent.vue b/frontend/src/business/components/project/template/CustomFiledComponent.vue index cd4c9a8d0f..f7553f4287 100644 --- a/frontend/src/business/components/project/template/CustomFiledComponent.vue +++ b/frontend/src/business/components/project/template/CustomFiledComponent.vue @@ -99,6 +99,7 @@ - + @@ -9,7 +9,19 @@ import MsMarkDownText from "@/business/components/track/case/components/MsMarkDo export default { name: "FormRichTextItem", components: {MsMarkDownText}, - props: ['data', 'title', 'prop', 'disabled', 'labelWidth'] + props: { + data: Object, + prop: String, + disabled: Boolean, + title: String, + defaultOpen: { + type: String, + default() { + return 'preview'; + } + }, + labelWidth: [String, Number] + } } diff --git a/frontend/src/business/components/track/case/components/MsMarkDownText.vue b/frontend/src/business/components/track/case/components/MsMarkDownText.vue index 4a3e3b54b3..9e1ae167e7 100644 --- a/frontend/src/business/components/track/case/components/MsMarkDownText.vue +++ b/frontend/src/business/components/track/case/components/MsMarkDownText.vue @@ -1,5 +1,5 @@