omi/components/dialog
dntzhang ed0c82150a feat(admin): add dialog page 2021-08-18 17:54:08 +08:00
..
demos/js-demo publish(@omiu/dialog) 2020-05-03 18:35:14 +08:00
scripts feat: init omiu dialog 2020-05-03 17:14:46 +08:00
src feat(admin): add dialog page 2021-08-18 17:54:08 +08:00
README.md publish(@omiu/dialog) 2020-05-03 18:35:14 +08:00
package.json feat(admin): add dialog page 2021-08-18 17:54:08 +08:00
tsconfig.json feat: init omiu dialog 2020-05-03 17:14:46 +08:00

README.md

Dialog

Pop anything you want in the middle of the page

Import

import '@omiu/dialog'

Or use script tag to ref it.

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

Usage

<o-dialog></o-dialog>

API

Props

{
  visible: boolean
  title: String
  width: String
}

默认属性

{
  visible: false,
  width: '50%'
}

Events

  • open
  • mask-click
  • close