omi/components/toast
dntzhang 330641370c chore: remove of doc-gen result 2020-04-30 09:17:17 +08:00
..
demos/js-demo publish(toast) 2020-04-26 09:08:37 +08:00
scripts chore: remove of doc-gen result 2020-04-30 09:17:17 +08:00
src publish(@omiu/toast) 2020-04-26 16:12:00 +08:00
README.md docs: omiu toast readme 2020-04-26 09:32:42 +08:00
package.json publish(@omiu/toast) 2020-04-26 16:12:00 +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
)