Commit 3d6d1a44 authored by hbcui1984's avatar hbcui1984

列表带input类控件页面,支持“圆角列表”开关切换

parent 6dffd9ea
......@@ -80,5 +80,20 @@
mui.init({
swipeBack:true //启用右滑关闭功能
});
//圆角列表开关处理
document.getElementById("M_Toggle").addEventListener('toggle',function (e) {
var isActive = e.detail.isActive;
var table = document.querySelector('.mui-table-view');
var card = document.querySelector('.mui-card');
if (isActive) {
card.appendChild(table);
card.style.display = '';
} else {
var content = document.querySelector('.mui-content');
content.insertBefore(table, card);
card.style.display = 'none';
}
});
</script>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment