主页 > imtoken钱包官网 > 「冷钱包下载」Vue ElementUI 遇到的问题

「冷钱包下载」Vue ElementUI 遇到的问题

admin imtoken钱包官网 2022年07月26日

var delParent; var testI = 10; $(".z_photo").delegate(".clos ...

我用的时候是vue+webpack+elementui都是当时最新的版本,就没出现过这个问题。

是这样吧,没有报错的。

//package.json { "name": "test", "version": "1.0.0", "description": "A Vue.js project", "author": "hns <hunaisong@163.com>", "private": true, "scripts": { "dev": "node build/dev-server.js", "build": "node build/build.js" }, "dependencies": { "vue": "^2.2.2" }, "devDependencies": { "autoprefixer": "^6.7.2", "babel-core": "^6.22.1", "babel-loader": "^6.2.10", "babel-plugin-transform-runtime": "^6.22.0", "babel-preset-env": "^1.2.1", "babel-preset-stage-2": "^6.22.0", "babel-register": "^6.22.0", "chalk": "^1.1.3", "connect-history-api-fallback": "^1.3.0", "copy-webpack-plugin": "^4.0.1", "css-loader": "^0.26.1", "element-ui": "^1.2.7", "eventsource-polyfill": "^0.9.6", "express": "^4.14.1", "extract-text-webpack-plugin": "^2.0.0", "file-loader": "^0.10.0", "friendly-errors-webpack-plugin": "^1.1.3", "function-bind": "^1.1.0", "html-webpack-plugin": "^2.28.0", "http-proxy-middleware": "^0.17.3", "opn": "^4.0.2", "optimize-css-assets-webpack-plugin": "^1.3.0", "ora": "^1.1.0", "rimraf": "^2.6.0", "semver": "^5.3.0", "url-loader": "^0.5.7", "vue-loader": "^11.1.4", "vue-style-loader": "^2.0.0", "vue-template-compiler": "^2.2.4", "webpack": "^2.2.1", "webpack-bundle-analyzer": "^2.2.1", "webpack-dev-middleware": "^1.10.0", "webpack-hot-middleware": "^2.16.1", "webpack-merge": "^2.6.1" }, "engines": { "node": ">= 4.0.0", "npm": ">= 3.0.0" }, "browserslist": [ "> 1%", "last 2 versions", "not ie <= 8" ] } // main.js import Vue from 'vue' import App from './App' import ElementUI from 'element-ui' import 'element-ui/lib/theme-default/index.css' Vue.use(ElementUI); Vue.config.productionTip = false /* eslint-disable no-new */ new Vue({ el: '#app', template: '<App/>', components: { App } })

你可以参考看看

import ElementUI from 'element-ui'; Vue.use(ElementUI);

但是遇见了这个问题 且别的组件都可使用 就这个弹出框不可以 不知道什么原因


且 这样引用的element-ui

下一节:为什么delegate()这个方法的外部参数有时候可以修改,有时候修改不了

Vue + ElementUI 遇到的问题 问题描述:

使用的 vue 的独立构建 用的bowserify转的es6
第 1 个答案:

估计是版本的问题,可能elementui的版本低,里面写的东西vue中已经弃用了。vue安装最新的版本,elementui也安装最新的版本,自己去查最新的版本就行了。

广告位
标签: vue.js   element-ui