omi/components/toast
YunYouJun 3a3d695206 refactor(common): change common/theme.scss to common/scss/theme.scss 2021-09-08 21:26:12 +08:00
..
demos/js-demo feat(@omiu/toast): three types toast are supported 2021-07-09 16:11:47 +08:00
scripts chore: remove of doc-gen result 2020-04-30 09:17:17 +08:00
src refactor(common): change common/theme.scss to common/scss/theme.scss 2021-09-08 21:26:12 +08:00
README.md docs: omiu toast readme 2020-04-26 09:32:42 +08:00
package.json feat(admin): add toast component page 2021-07-09 17:14:54 +08:00
tsconfig.demo.json chore: remove o- 2020-04-19 22:24:19 +08:00
tsconfig.json chore: remove o- 2020-04-19 22:24:19 +08:00

README.md

Toast

Pop up prompt box.

Import

import '@omiu/toast'

Or use script tag to ref it.

<script src="https://unpkg.com/@omiu/toast"></script>

Usage

<o-toast></o-toast>

API

Props

{
  label?: string
  loading?: boolean
  done?: boolean
  duration: number
  autoClose: boolean
  show: boolean
}

默认属性

{
  duration: 2000,
  autoClose: false,
  show: true
)