1.2.3 • Published 2 years ago

vf-vue-ace v1.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

vf-vue-ace

如何使用

install

npm install --save vf-vue-ace

npm install --save ace-builds

usage

// mian.js
// 全局安装插件
import Vue from "vue";
import VFACE from "vf-vue-ace";
Vue.use(VFACE);
<template>
  <vf-ace
    width="100%"
    height="500px"
    placeholder="vf-ace 编辑器"
    :fontSize="20"
    :enableLiveAutocompletion="true"
    mode="mysql"
    theme="monokai"
  />
</template>
import "ace-builds/src-min-noconflict/ext-searchbox";
import "ace-builds/src-min-noconflict/ext-language_tools";

const languages = ["mysql", "golang"];
const themes = ["monokai", "solarized_light"];

languages.forEach((lang) => {
  require(`ace-builds/src-noconflict/mode-${lang}`);
});
themes.forEach((theme) => {
  require(`ace-builds/src-noconflict/theme-${theme}`);
});

vf-ace

vf-split

vf-diff

Project setup

npm install

// run example
npm run dev

主要功能

属性类型描述默认值
widthstring组件宽度,一般设置100%500px
heightstring组件高度500px
placeholderstringplaceholder-
fontSizenumber编辑器字体大小12
enableLiveAutocompletionboolean编辑器自动提示-
modestring选择编辑器语言-
themestring选择编辑器主题-
1.2.3

2 years ago

1.2.2

3 years ago

1.2.0

3 years ago

1.1.9

3 years ago

1.2.1

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago