Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rox-dialog

Package Overview
Dependencies
Maintainers
5
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rox-dialog

--- subtitle: 对话框 group: General category: UI chinese: 对话框 ---

  • 0.0.36
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
5
Weekly downloads
 
Created
Source

subtitle: 对话框 group: General category: UI chinese: 对话框

rox-dialog


说明

包含 默认 Dialog 组件,另外还有订制的 Dialog.Alert, Dialog.Confirm

Guide

Dialog 的实现方式是通过Weex 中的 Mask 标签进行包装实现, 使用方式如下:

API - Dialog

参数说明类型默认值
contentStyle触发元素Element
triggerType触发行为,可选 hover/clickstringhover
align气泡框位置,可选 t,r,b,l,tl,tr,rt,rb,bl,br,lt,lbstringt
closable是否有关闭按钮booltrue
visible用于手动控制浮层显隐booleanfalse
onClose关闭时触发回调function
afterClose关闭后触发回调functionfalse

API - Dialog.Alert

参数说明类型默认值
titleText标题文字String温馨提醒
disabledTitle禁用标题Booleanfalse
okText确认文字String确定

API - Dialog.Confirm

参数说明类型默认值
titleText标题文字String温馨提醒
okText确认文案String确定
cancelText取消文案String取消

事例方法

通过 ref 的方式获取当前 组件,调用 内部 的方法,控制 对话框 的展示与隐藏

参数说明类型默认值
show展示对话框Function
hide隐藏对话框Function

Keywords

FAQs

Package last updated on 06 Jul 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc