Skip to content

Spin 加载

用于局部或全局加载状态。

js
import { Spin } from '@kupola/components/spin'

const spin = Spin({
  text: '加载中...',
})

document.body.appendChild(spin.element)

常用选项

选项说明
text加载文案
size尺寸
spinning是否显示

方法

  • show()
  • hide()
  • destroy()