🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

vf-vue-ace

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vf-vue-ace

A vue component for Ace Editor

latest
Source
npmnpm
Version
1.2.3
Version published
Weekly downloads
1.5K
108.63%
Maintainers
1
Weekly downloads
 
Created
Source

vf-vue-ace

vf-ace

Vue Ace Editor

NPM version NPM monthly downloads NPM total downloads codeStyle: Prettier types: TypeScript

如何使用

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-ace

vf-split

vf-ace

vf-diff

vf-ace

Project setup

npm install

// run example
npm run dev

主要功能

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

Keywords

ace

FAQs

Package last updated on 19 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts