majinkai commented on issue #108: improve yaml editor URL: https://github.com/apache/incubator-dubbo-ops/issues/108#issuecomment-424947330 I added ace-editor into `components/AceEditor.vue`(Actual cases refer to access control module.), here is usage: ```html <template> <ace-editor v-model="content" :config="aceConfig" /> </template> <script> import AceEditor from '@/components/AceEditor' export default { components: { AceEditor }, data: () => ({ content: '', aceConfig: {} }) } </script> ``` Default config: ```javascript { width: '100%', height: '300px', lang: 'yaml', theme: 'monokai', readonly: false, fontSize: 14, tabSize: 2 } ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
