notice.showLoading();
setTimeout(() => {
notice.hideLoading()
},3000)
notice.showLoading({
type: 'dots' // default:'line'
});
setTimeout(() => {
notice.hideLoading()
},3000)
notice.showLoading({
type: 'dots_zoom' // default:'line'
});
setTimeout(() => {
notice.hideLoading()
},3000)
notice.showLoading({
type: 'dots_spin' // default:'line'
});
setTimeout(() => {
notice.hideLoading()
},3000)
notice.showLoading({
type: 'cube_flip' // default:'line'
});
setTimeout(() => {
notice.hideLoading()
},3000)
notice.showLoading({
type: 'cube_zoom' // default:'line'
});
setTimeout(() => {
notice.hideLoading()
},3000)
notice.showLoading({
title: 'Loading'
});
setTimeout(() => {
notice.hideLoading()
},3000)
notice.showLoading({
title: 'Loading',
fontSize: 20,
});
setTimeout(() => {
notice.hideLoading()
},3000)
notice.showLoading({
title: 'Loading',
color: '#333',
backgroundColor: 'rgba(255,255,255,.6)'
});
setTimeout(() => {
notice.hideLoading()
},3000)
notice.showToast({
text: 'This is a message.' // It must be filled in, otherwise it will not be displayed
});
notice.showToast({
text: 'This is a success message.',
type: 'success'
});
notice.showToast({
text: 'This is a error message.',
type: 'error'
});
notice.showToast({
text: 'This is a info message.',
type: 'info'
});
notice.showToast({
text: 'This is a warning message.',
type: 'warning'
});
notice.showToast({
text: 'This is a message.',
type: 'success',
showClose: true, // default false
});
notice.showToast({
text: 'This is a message.',
type: 'success',
showClose: true,
autoClose: false, // default true
});