File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed
Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 162162 <n-select v-model:value =" policyFormValue.policy" placeholder =" 请选择策略" :options =" policyOptions" />
163163 </n-form-item >
164164 <n-form-item :span =" 24" v-if =" policyFormValue.policy =='custom'" label =" 策略原文" path =" content" >
165- <json-editor v-model =" policyFormValue.content" class =" max-h-[60vh] overflow-y-auto" />
165+ <json-editor v-model =" policyFormValue.content" class =" overflow-y-auto" />
166166 </n-form-item >
167167 <n-form-item >
168168 <n-button type =" primary" @click =" submitTagForm" >确认</n-button >
Original file line number Diff line number Diff line change 7979 <n-select v-model:value =" policyFormValue.policy" placeholder =" 请选择策略" :options =" policyOptions" />
8080 </n-form-item >
8181 <n-form-item :span =" 24" v-if =" policyFormValue.policy =='custom'" label =" 策略原文" path =" content" >
82- <json-editor v-model = " policyFormValue.content " class =" max-h-[60vh] overflow-y-auto " / >
82+ <n-scrollbar class =" w-full max-h-[60vh] " > < json-editor v-model = " policyFormValue.content " /></ n-scrollbar >
8383 </n-form-item >
8484 <n-form-item >
8585 <n-button type =" primary" @click =" submitPolicyForm" >确认</n-button >
Original file line number Diff line number Diff line change 3535</template >
3636<style scoped>
3737:deep(.jse-main ) {
38- max-height : 800px ;
3938 min-height : 300px ;
4039}
4140.editor {
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ async function submitForm() {
6262 <n-form-item-grid-item :span =" 24" label =" 策略名称" path =" name" >
6363 <n-input v-model:value =" name" />
6464 </n-form-item-grid-item >
65- <n-form-item-grid-item :span =" 24" label =" 策略原文" path =" content" >
66- <json-editor v-model = " content " class =" max-h-[60vh] overflow-y-auto " / >
65+ <n-form-item-grid-item :span =" 24" label =" 策略原文" path =" content" >
66+ <n-scrollbar class =" w-full max-h-[60vh] " > < json-editor v-model = " content " /></ n-scrollbar >
6767 </n-form-item-grid-item >
6868 </n-grid >
6969 </n-form >
You can’t perform that action at this time.
0 commit comments