@zjlabvis/lowcode-index
v1.1.12
Published
[组件站点](https://lowcode-zjlab.netlify.app/)
Downloads
141
Readme
组件站点
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
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
也需要指定版本,否则报错
pnpm install monaco-editor-webpack-plugin@^6.0.0 -D
,注意:确保版本是 6.0.0- 在 vue.config.js 中配置插件
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
module.exports = {
configureWebpack: {
// ...
plugins: [new MonacoWebpackPlugin({
languages: ['javascript', 'css', 'typescript'],
})],
},
};
其它
适用于 vue 2.x 项目