@bbtfe/dialog

对话框组件.

Usage no npm install needed!

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

README

对话框组件

实现了alert和confirm两种对话框.

var el = Dialog.alert({ title: '您还没登录.', ok: '好的', onOk: function() {}, });

var el = Dialog.confirm({ title: '确定删除吗?', ok: '删除', cancel: '不删除了', onOk: function() {}, onCancel: function() {}, });

// 隐藏并销毁对话框 Dialog.hide(el);

es6引入使用方法

import Dialog from '@bbtfe/dialog'; import '@bbtfe/dialog/dist/dist.min.css';

url引入使用方法

暂不支持.