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

@belleui/belle-modal

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@belleui/belle-modal

[](#belleuibelle-modal)

  • 0.0.1-alpha.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

@belleui/belle-modal

Downloads per month NPM Version TypeScript Published on webcomponents.org

Preview

screent shot

Install

npm install @belleui/belle-modal

Useage

Basic Useage

<belle-modal
  title="Basic Modal"
  .visible="${false}"
  @onOk=${handleOk}
  @onCancel=${handleCancel}
>
  <div style="width: 500px;">
    <p>弹窗的内容</p>
    <p>弹窗的内容</p>
    <p>弹窗的内容</p>
    <p>弹窗的内容</p>
    <p>...</p>
  </div>
</belle-modal>

Properties

PropertyAttributeTypeDefaultDescription
cancelTextcancelTextstring"取消"取消按钮文字
closableclosablebooleantrue是否显示右上角关闭按钮
footerfooterTemplateResult | null""自定义footer,为null时不显示footer
maskClosablemaskClosablebooleantrue是否允许点击蒙层关闭
modalMaskHTMLElement
okTextokTextstring"确认"确认按钮文字
titletitlestring""弹窗标题
visiblevisiblebooleanfalse是否显示弹窗

Methods

MethodType
handleCancel(): void
handleOk(): void

Events

EventDescription
onCancel点击确定的回调函数
onOk关闭弹窗和点击取消的回调函数

Keywords

FAQs

Package last updated on 27 Oct 2020

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