universal-choose-image
Choose image.
Last updated 5 years ago by balloonzzq .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ npm install universal-choose-image 
SYNC missed versions from official npm registry.

universal-choose-image npm

Choose image.

Support

browser miniApp

Install

$ npm install universal-choose-image --save

Usage

import chooseImage from 'universal-choose-image';

chooseImage().then(res => {
})

Methods

chooseImage(options)

Arguments

Property Type Description require Default Supported
options object Options false -
options.count number Maximum number of choices false 1 mp
options.sourceType array Album selection or photo taking false [camera, album] mp

Returns

Property Type Description
res object
res.data base64 | string Web for base64, mini app for the image path

Current Tags

  • 1.0.0-beta.2                                ...           beta (5 years ago)
  • 1.3.0                                ...           latest (4 years ago)

7 Versions

  • 1.3.0                                ...           4 years ago
  • 1.2.0                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0-beta.2                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 1.0.0-beta.1                                ...           5 years ago
Maintainers (2)
Downloads
Total 1
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE