miniprogram-sensors-npm
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

安装教程

  1. 安装依赖

    • 方法 1
    npm install miniprogram-sensors-npm
    
    • 方法 2
    npm install miniprogram-sensors-npm --registry https://npm.shdrapps.disney.com
    
    • 方法 3
    npm install miniprogram-sensors-npm@"版本号" --registry https://npm.shdrapps.disney.com
    
  2. 依赖文档

项目介绍

popupInit

基于神策提供的弹窗方法,封装了 popupInit 因为每个平台用到的 middle 里面 bridgeAPI 不一样,所以需要导入不同平台的 bridgeAPI

  1. 使用方法
// #ifdef MP-WEIXIN
import bridgeAPI from 'miniprogram-sensors-npm/source/middle/weixin.js'
// #endif
import { popupInit } from 'miniprogram-sensors-npm'
const popupSensors = popupInit({ getEnv: uni.getEnv, bridgeAPI: bridgeAPI })
popupSensors.init()

Readme

Keywords

none

Package Sidebar

Install

npm i miniprogram-sensors-npm

Weekly Downloads

0

Version

1.0.7

License

ISC

Unpacked Size

846 kB

Total Files

32

Last publish

Collaborators

  • w_y_y