@@ -66,40 +66,37 @@ export default defineComponent({
6666 const { t } = useI18n ( )
6767 return (
6868 < Card title = { t ( 'resource.file.file_details' ) } >
69- < NForm
70- rules = { this . rules }
71- ref = 'fileFormRef'
72- class = { styles [ 'form-content' ] }
73- >
74- < NFormItem label = { t ( 'resource.file.file_name' ) } path = 'fileName' >
75- < NInput
76- allowInput = { this . trim }
77- v-model = { [ this . fileForm . fileName , 'value' ] }
78- placeholder = { t ( 'resource.file.enter_name_tips' ) }
79- style = { { width : '300px' } }
80- class = 'input-file-name'
81- />
82- </ NFormItem >
83- < NFormItem label = { t ( 'resource.file.file_format' ) } path = 'suffix' >
84- < NSelect
85- defaultValue = { [ this . fileForm . suffix ] }
86- v-model = { [ this . fileForm . suffix , 'value' ] }
87- options = { this . fileSuffixOptions }
88- style = { { width : '100px' } }
89- class = 'select-file-format'
90- />
91- </ NFormItem >
92- < NFormItem label = { t ( 'resource.file.file_content' ) } path = 'content' >
93- < div
94- style = { {
95- width : '90%'
96- } }
97- >
98- < MonacoEditor v-model = { [ this . fileForm . content , 'value' ] } />
99- </ div >
100- </ NFormItem >
101- < div class = { styles [ 'file-edit-content' ] } >
102- < div class = { styles . submit } >
69+ < div class = { styles [ 'file-edit-content' ] } >
70+ < NForm
71+ rules = { this . rules }
72+ ref = 'fileFormRef'
73+ class = { styles [ 'form-content' ] }
74+ >
75+ < NFormItem label = { t ( 'resource.file.file_name' ) } path = 'fileName' >
76+ < NInput
77+ allowInput = { this . trim }
78+ v-model = { [ this . fileForm . fileName , 'value' ] }
79+ placeholder = { t ( 'resource.file.enter_name_tips' ) }
80+ style = { { width : '300px' } }
81+ class = 'input-file-name'
82+ />
83+ </ NFormItem >
84+ < NFormItem label = { t ( 'resource.file.file_format' ) } path = 'suffix' >
85+ < NSelect
86+ defaultValue = { [ this . fileForm . suffix ] }
87+ v-model = { [ this . fileForm . suffix , 'value' ] }
88+ options = { this . fileSuffixOptions }
89+ style = { { width : '100px' } }
90+ class = 'select-file-format'
91+ />
92+ </ NFormItem >
93+ < NFormItem label = { t ( 'resource.file.file_content' ) } path = 'content' >
94+ < MonacoEditor
95+ v-model = { [ this . fileForm . content , 'value' ] }
96+ height = 'calc(100vh - 440px)'
97+ />
98+ </ NFormItem >
99+ < div class = { styles [ 'button-area' ] } >
103100 < NButton
104101 type = 'info'
105102 size = 'small'
@@ -120,8 +117,8 @@ export default defineComponent({
120117 { t ( 'resource.file.return' ) }
121118 </ NButton >
122119 </ div >
123- </ div >
124- </ NForm >
120+ </ NForm >
121+ </ div >
125122 </ Card >
126123 )
127124 }
0 commit comments