【发布时间】:2018-08-12 04:04:43
【问题描述】:
我有模式,当我点击添加账单按钮时,它会弹出 sweetalert2,下面提供的代码来自他们的文档,所以我认为代码没有问题,无论如何,我的问题是输入不能通过type-able 和disabled一样,这是materializecss方面的问题吗?
P.s我使用的是materializecss css框架,我也看了一篇文章,在bootstrap框架中和我有同样的问题。
https://github.com/sweetalert2/sweetalert2/issues/374
$(".btnAddBills").click(function(event) {
swal.mixin({
input: 'text',
confirmButtonText: 'Next →',
showCancelButton: true,
progressSteps: ['1', '2', '3']
}).queue([
{
title: 'Question 1',
text: 'Chaining swal2 modals is easy'
},
'Question 2',
'Question 3'
]).then((result) => {
if (result.value) {
swal({
title: 'All done!',
html:
'Your answers: <pre><code>' +
JSON.stringify(result.value) +
'</code></pre>',
confirmButtonText: 'Lovely!'
})
}
})
});
【问题讨论】:
标签: javascript css materialize sweetalert sweetalert2