vue element-plus使用
2023-02-26 09:52:13 时间
中文社区
https://element-plus.org/zh-CN/
- 全局自动导入
const { defineConfig } = require('@vue/cli-service')
const AutoImport = require('unplugin-auto-import/webpack')
const Components = require('unplugin-vue-components/webpack')
const { ElementPlusResolver } = require('unplugin-vue-components/resolvers')
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
module.exports = defineConfig({
transpileDependencies: true,
publicPath:".",
configureWebpack: {
devtool: 'eval-source-map',
plugins: [
AutoImport({
resolvers: [
ElementPlusResolver(),
],
}),
Components({
resolvers: [
ElementPlusResolver()
],
}),
new NodePolyfillPlugin()
],
},
})
package.json中配置,项目中开启debugger和console
"rules": {
"no-debugger": "off",
"no-console": "off"
}
异常
el-input无法输入问题,检查事件监听,keydown、keypress事件是否被全局的window事件占用(可以查到相关模块)
相关文章
- 常见安全组端口分享
- 关于对ESC的使用体验
- 云虚拟主机ip怎么看
- 基本的SELECT语句与显示表结构
- PHP通过CURL的方式读取图片接口输出乱码
- S2 - Lesson 21 - Mad or not?
- 如何在虚拟主机安装ssl
- 虚拟主机如何安装环境
- Linux 命令(245)—— chage 命令
- 多少钱一台云服务器
- 在阿里云开服务器多少钱
- navicat 如何卸载干净
- 阿里云飞天加速计划
- Linux 命令(246)—— mii-tool 命令
- 阿里云10m服务器多少钱
- 计算机中的注释
- 云服务器大概多少钱一台
- SAP QM 不常用功能之Source Inspection
- 阿里云ECS使用
- 2022收一收