@omiu/dialog

Pop anything you want in the middle of the page

Usage no npm install needed!

<script type="module">
  import omiuDialog from 'https://cdn.skypack.dev/@omiu/dialog';
</script>

README

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