You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.1 KiB
24 lines
1.1 KiB
//- 服务器反馈UI
|
|
if flash&&flash.error
|
|
.toast-container.top-0.end-0.p-3
|
|
each item in flash.error
|
|
.toast.show(role='alert', aria-live='assertive', aria-atomic='true')
|
|
.toast-header
|
|
img.rounded.me-2(src='/public/image/icons/error.svg', alt='错误' style="width:20px;height: 20px;")
|
|
strong.me-auto 提示
|
|
//- small.text-muted just now
|
|
button.btn-close(type='button', data-bs-dismiss='toast', aria-label='Close')
|
|
.toast-body.
|
|
#{item}
|
|
//- .toast-container.position-fixed.bottom-0.end-0.p-3
|
|
//- #liveToast.toast(role='alert', aria-live='assertive', aria-atomic='true')
|
|
//- .toast-header
|
|
//- img.rounded.me-2(src='...', alt='...')
|
|
//- strong.me-auto Bootstrap
|
|
//- small 11 mins ago
|
|
//- button.btn-close(type='button', data-bs-dismiss='toast', aria-label='Close')
|
|
//- .toast-body.
|
|
//- Hello, world! This is a toast message.
|
|
//- ul
|
|
//- each item in flash.error
|
|
//- li #{item}
|
|
|