@zjlabvis/lowcode-index
TypeScript icon, indicating that this package has built-in type declarations

1.1.12 • Public • Published

组件站点

组件站点

Project setup

pnpm install

Compiles and hot-reloads for development

pnpm run serve

Compiles and minifies for production

pnpm run build

Lints and fixes files

pnpm run lint

Customize configuration

See Configuration Reference.

monaco-editor

低代码组件的设置器面板用到了monaco-editor,vue 2.x 使用 monaco-editor 需要指定版本^0.30.1,否则报错

pnpm install monaco-editor@^0.30.1 -S

monaco-editor 构建插件配置

同样,vue 2.x 项目安装monaco-editor-webpack-plugin也需要指定版本,否则报错

  1. pnpm install monaco-editor-webpack-plugin@^6.0.0 -D,注意:确保版本是 6.0.0
  2. 在 vue.config.js 中配置插件
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
module.exports = {
  configureWebpack: {
    // ...
    plugins: [new MonacoWebpackPlugin({
        languages: ['javascript', 'css', 'typescript'],
      })],
  },
};

其它

适用于 vue 2.x 项目

Readme

Keywords

none

Package Sidebar

Install

npm i @zjlabvis/lowcode-index

Weekly Downloads

6

Version

1.1.12

License

ISC

Unpacked Size

883 kB

Total Files

20

Last publish

Collaborators

  • xian_feng
  • zjvis_dev