Socket
Socket
Sign inDemoInstall

bee-dialog

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bee-dialog

dialog


Version published
Maintainers
1
Install size
36.7 kB
Created

Readme

Source

bee-dialog

基于weui的移动端弹出框

引入

  • npm
npm install bee-dialog
# or
cnpm install bee-dialog
# or
yarn add bee-dialog
import 'bee-dialog'
  • script
<script src="https://unpkg.com/bee-dialog"></script>

使用

BeeDialog({
  title: '重要操作',
  text: '确定要删除此页面吗?'
}).then(action => {
  // todo
})

参数

属性类型默认值解释
titlestring'提示'弹出框标题
textstring'确认执行此操作?'提示内容
buttonsarray['取消', '确认']按钮

说明

BeeDialog({
  title: '重要操作',
  text: '确定要删除此页面吗?',
  buttons: ['取消', '确认']
}).then(action => {
  /**
   * @action {number} @buttons 中值的索引 index
   *
   * action === 0  >>取消
   * action === 1  >>确定
   */
})

案例

example

更多

需要添加功能或者存在 bug 请提交 issues,在空余时间会尽快处理。

Keywords

FAQs

Last updated on 20 Sep 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc