create component with API
this.$createSpin({
tip: 'Loading message...',
style: `
position: fixed;
top: 100px;
left: 50%;
transform: translateX(-50%);
`,
})
this.$createModal<Omit<ModalConfig, 'content'>>({}, (h) => ({
default:
() => `
You can customize modal body text by the current situation.
This modal will be closed immediately once you press
the OK button.`,
})).show()