-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
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
Extend type of 'content' attribute of Modal.method #824
Comments
唐老师,这个报错TypeError: this.$confirm is not a function,怎解决? |
https://github.com/vueComponent/ant-design-vue/blob/master/site/components.js#L64-L70
需要自己挂载。 另外,有问题请直接创建新的 Issue,不要在已经处理过的 issue 中回复 |
谢谢唐老师
| |
赵俊豪
|
|
935707638@163.com
|
签名由网易邮箱大师定制
On 9/18/2019 17:44,言肆<notifications@github.com> wrote:
唐老师,这个报错TypeError: this.$confirm is not a function,怎解决?
https://github.com/vueComponent/ant-design-vue/blob/master/site/components.js#L64-L70
Vue.prototype.$message = message;
Vue.prototype.$notification = notification;
Vue.prototype.$info = Modal.info;
Vue.prototype.$success = Modal.success;
Vue.prototype.$error = Modal.error;
Vue.prototype.$warning = Modal.warning;
Vue.prototype.$confirm = Modal.confirm;
需要自己挂载。
另外,有问题请直接创建新的 Issue,不要在已经处理过的 issue 中回复
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
不好意思再补充一下。 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What problem does this feature solve?
As I user of ant-design-vue I would like to be able to use function(h) to define the content of a modal using the Modal.methods() function. The goal is to offer more elaborate content to display to the user.
Currently, we can only defined a string, however with Notification or Message component you can set function(h).
What does the proposed API look like?
The idea would be to harmonize the APIs and add the possibility to use function(h).
Probably doing something like this line at line 85 of ConfirmDialog.jsx would be enough ?
The text was updated successfully, but these errors were encountered: