sync form work

This commit is contained in:
2023-04-10 17:30:17 +08:00
parent fecaf6f450
commit c38e486d7d
15 changed files with 860 additions and 150 deletions

View File

@ -14,9 +14,15 @@
document.querySelector('#button-popup').addEventListener('click', () => {
const popup = ui.createPopup('title', 'content',
{ text: 'Ok', trigger: () => true });
document.body.appendChild(popup);
setTimeout(() => popup.style.opacity = 1);
{
text: 'Loading', trigger: p => {
p.loading = true;
setTimeout(() => p.loading = false, 1000);
return false;
}
},
{ text: 'OK' });
popup.show();
});
</script>
<style type="text/css">