cube-ui / question-answer

Q&A for cube-ui
16 stars 7 forks source link

dialog组件按钮无法显示,怎么回事 #139

Closed wellsea closed 2 years ago

wellsea commented 2 years ago

this.$createDialog({ type: 'confirm', icon: 'cubeic-important', title: '', content: '谎报警情将依法承担法律责任,确定要继续拨打么?', confirmBtn: { text: '确定拨打', active: true, disabled: false, href: 'javascript:;' }, cancelBtn: { text: '取消', active: false, disabled: false, href: 'javascript:;' }, onConfirm: () => { window.location.href = "tel:110"; // this.$createToast({ // type: 'warn', // time: 1000, // txt: '点击确认按钮' // }).show(); }, onCancel: () => { // this.$createToast({ // type: 'warn', // time: 1000, // txt: '点击取消按钮' // }).show(); } }).show();

按照上面调用,titile和取消的按钮都不显示,怎么回事

dolymood commented 2 years ago

可以给个复现demo 看代码不应该出现这种情况