We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.7.2
chrome73
2.6.10
https://jsfiddle.net/mmx38qxw/
根据文档http://element-cn.eleme.io/#/zh-CN/component/quickstart 按需载入 import { MessageBox } from 'element-ui';
Vue.prototype.$alert = MessageBox.alert; Vue.prototype.$confirm = MessageBox.confirm;
this.$alert(123) //正常 this.$confirm(message, options) // Uncaught ReferenceError: _MessageBox is not defined
正常使用this.$confirm(message, options)
this.$confirm(message, options) 控制台报错 Uncaught ReferenceError: _MessageBox is not defined
The text was updated successfully, but these errors were encountered:
Translation of this issue:
Chrome73
Load as needed according to the document http://element-cn.eleme.io/#/zh-CN/component/quickstart
Import {MessageBox} from'element-ui'; Vue. prototype. $alert = MessageBox. alert;
Vue. prototype. $confirm = MessageBox. confirm; This. $alert (123)// Normal
This. $confirm (message, options) // Uncaught Reference Error: _MessageBox is not defined
Use this. $confirm (message, options)
This. $confirm (message, options) console error Uncaught Reference Error: _MessageBox is not defined
Sorry, something went wrong.
按需引入MessageBox后,无法同时使用confirm message等方法
@Demohu 试了下没有重现,请提供一个可复现的 demo
ElementUI/babel-plugin-component#31
luckyCao
No branches or pull requests
Element UI version
2.7.2
OS/Browsers version
chrome73
Vue version
2.6.10
Reproduction Link
https://jsfiddle.net/mmx38qxw/
Steps to reproduce
根据文档http://element-cn.eleme.io/#/zh-CN/component/quickstart 按需载入
import { MessageBox } from 'element-ui';
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$confirm = MessageBox.confirm;
this.$alert(123) //正常
this.$confirm(message, options) // Uncaught ReferenceError: _MessageBox is not defined
What is Expected?
正常使用this.$confirm(message, options)
What is actually happening?
this.$confirm(message, options) 控制台报错 Uncaught ReferenceError: _MessageBox is not defined
The text was updated successfully, but these errors were encountered: