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

fl-popup

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fl-popup

原生js移动端提示弹框

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

fl-popup 移动端弹框

Install

  • npm

    npm install fl-popup -D

  • yarn

    yarn fl-popup -D


start

import $popup from 'fl-popup'
$popup.toast(data)

toast (data)

data:

类型: object或者 string 或者 html片段

字段:

content 

类型:string或者HTML片段
必填:  ❎
说明:如果data传入object类型则必须传入content字段

alert(data)

data:

类型: object

字段:

title
类型:string或者HTML片段
必填:  ❎
说明:弹框标题

content
类型:string或者HTML片段
必填:  ✅
说明:弹框内容

button
类型:string或者HTML片段
必填:  ✅
说明:弹框按钮内容

callback
类型:function
必填:  ✅
说明:按钮点击消失后回调

comfirm(data)

data:

类型: object

字段:

title
类型:string或者HTML片段
必填:  ❎
说明:弹框标题

content
类型:string或者HTML片段
必填:  ✅
说明:弹框内容

button
类型:length为2的Array,[String,String]
必填:  ✅
说明:弹框按钮内容 如['确定','取消']

callback
类型:length为2的Array,[Function,Function]
必填:  ✅
说明:按钮点击消失后回调,如[()=>{},()=>{}]

FAQs

Package last updated on 21 Nov 2019

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