You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "majinkai (GitHub)" <gi...@apache.org> on 2018/09/27 03:32:10 UTC

[GitHub] [incubator-dubbo-ops] majinkai commented on issue #108: improve yaml editor

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
}
```

[ Full content available at: https://github.com/apache/incubator-dubbo-ops/issues/108 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org