wept-sdk
小程序 native 组件 web 端实现, 没有小程序代码依赖,可用于普通移动端页面
测试
npm install && gulp test
open http://localhost:8080/bundle
运行 UI 示例
npm install && gulp
open http://localhost:3000/example/
使用
页面上引入 example/style.css
模块
-
compass
罗盘模块,提供watch
和unwatch
方法let id = compassCompass -
actionSheet
模块,返回 promise -
DatePicker
模块,日期选择let picker =range:start: '2016-01-01'end: '2018-01-01'pickerpickerpicker -
fileManage
模块,本地文件管理,使用 IndexDB// save to dbfileManagefileManagefileManagefileManage -
imageInfo
模块,获取图片大小 -
modal
模块, 弹出窗口 -
mask
模块,透明遮罩,返回隐藏函数let hide = -
Picker
模块,弹出选择组件let picker =array: 'a' 'b' 'c'current: 2pickerpickerpickerpicker -
record
模块,提供录音功能, 需要全局Recorder
对象支持recordrecord -
storage
模块,提供缓存支持,使用 localStoragestoragestoragestoragestorageclearlet obj = storage// each key of obj contains data & dataTypelet info = storage// info.keys// info.limitSize// info.currentSize -
Timepicker
模块,时间选择功能let picker =current: '11:11'pickerpickerpickerpicker -
toast
模块,轻提醒组件toasttoast -
motion
模块motionmotion -
voice
模块voicevoicevoice -
music
模块let obj = musicmusicmusicmusicmusicmusic -
uploadFile
模块 -
downloadFile
模块 -
notice
模块 -
spin
模块// attach spin to node -
ImagesPreview
模块let current = urls0let preview = urls {}previewpreview -
imagePicker
模块 -
videoPicker
模块
LICENSE
Copyright 2016 chemzqm@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.