1.0.5 • Published 3 years ago

vue2-boe-mock-ui v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

boe-demand

基于Vue2.x的前端组件库 当前版本1.0.1

Usage

注意:用到了monaco-editor,组件内代码段为

this.editor = monaco.editor.create(document.getElementById('routeManagement'), {
  value: this.value,
  language: 'json',
  theme: 'vs-dark',
});

如出现monaco为Undefined 需要引入

<script src="https://cdn.staticfile.org/monaco-editor/0.19.3/min/vs/loader.min.js"></script>
<script>
  require.config({ paths: { 'vs': 'https://cdn.staticfile.org/monaco-editor/0.19.3/min/vs' }});
  // 将monaco变量赋值为全局变量
  require(['vs/editor/editor.main'], function() {});
</script>

npm i vue2-boe-mock-ui;

import Object from 'vue2-boe-mock-ui';

Object.basicResources 基础资源池

Install dependencies

  npm install

or

  yarn

Serve with hot reload at localhost:8080

  npm run dev

发布新版本时,执行打包压缩

Build for production with minification

  npm run build