1.2.1 • Published 11 months ago

duco-editor v1.2.1

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

duco-editor

A Vue2 code-editor based on monaco-editor

Install

npm install duco-editor

Use

import DucoEditor from 'duco-editor
import 'duco-editor/lib/duco-editor.css
// Global install
Vue.use(DucoEditor)

Props

{
    value: {
      type:String,
      default:''
    },
    disabled: {
      type:Boolean,
      default: false
    },
    showBottom:{
      type:Boolean,
      default:false
    },
    canSetBreakPoint:{
      type: Boolean,
      default: true
    },
    highLight: {
      type:Object,
      default:() => ({
        ignoreCase: true, // 忽略大小写
        tokenizer: {
          root:[
            [/set_value/,{token: 'keyword'}],
          ]}
      })
    },
    provider:{
      type:Array,
      default:()=>[]
    },
    suggestions:{
      type:Array,
      default:() => []
    }
}

Event

addBreakpoint
removeBreakpoint
input
change
totalChange
cursorChange
1.2.1

11 months ago

1.2.0

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

0.8.0

1 year ago

0.5.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago