Leanote's Blog
I love Leanote!
Toggle navigation
Leanote's Blog
Home
Chrome
Git
Linux
Windows
Others
工具大全
VsCode
Expo
Html
JavaScript
Npm
Node
Mock
React-Native
React
TypeScript
小程序
插件
正则
Dva
Ant-Design-React
Umi
Vue
Vux
Ant-Design-Vue
Http
Java
flutter
开发小工具
About Me
Archives
Tags
element-ui的this.$confirm中提示的文字换行显示
2021-05-19 09:45:56
37
0
0
admin
``` const confirmText = ['订单提交成功!', '您现在可以选择进入订单列表查看订单,也可返回商城首页继续选购!'] const newDatas = [] const h = this.$createElement for (const i in confirmText) { newDatas.push(h('p', null, confirmText[i])) } this.$confirm( '提示', { title: '提示', message: h('div', null, newDatas), showCancelButton: true, confirmButtonText: '继续购物', cancelButtonText: '查看订单', type: 'success' } ).then(() => { }).catch(() => { }) ```
Pre:
常用全局样式
Next:
a标签下载文件和图片
0
likes
37
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Submit
Sign in
to leave a comment.
No Leanote account?
Sign up now.
0
comments
More...
Table of content
No Leanote account? Sign up now.