3 Star 8 Fork 3

laden666666 / my-picker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

my-picker

Version Downloads License

高仿IOS的PickerView的JavaScript插件,3D形式的滚轮选择器,同时支持最多三级联动的选择效果,支持pc端和移动端两种平台浏览器。支持chrome及移动端默认浏览器、ie(10-11)、火狐浏览器。

功能

  • 0、3D形式的滚轮选择器,带有透视效果
  • 1、选择器的前缀与后缀
  • 2、级联选择器
  • 3、提供选择音效,更接近原生控件
  • 4、支持手机和pc

使用文档

请参考https://laden666666.github.io/my-picker/

源码

github码云

兼容性

3D模式

Android Firefox Chrome iPhone Edge Safari
>=5
非3D模式
Android Firefox Chrome IE iPhone Edge Safari
>=4.4 >=10
移动端demo效果图:

Alt

pc端demo效果图:

Alt

安装

浏览器环境

浏览器环境直接导入dist下的my-picker.jsmy-picker.css文件即可,也可以使用npm提供的cdn:

<link rel="stylesheet" href="//unpkg.com/my-picker/dist/my-picker.css">
<script src="//unpkg.com/iview/dist/my-picker.min.js"></script></script>

webpack环境

执行cli命令

npm i my-picker -S

并在js文件中引用

import myPicker form 'my-picker'
import 'my-picker/my-picker.css'
MIT License Copyright (c) 2016 laden666666 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.

简介

高仿IOS的PickerView的JavaScript插件,3D形式的滚轮选择器,同时支持最多三级联动的选择效果,支持pc端和移动端两种平台浏览器。 展开 收起
TypeScript 等 5 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
TypeScript
1
https://gitee.com/laden666666/my-picker.git
git@gitee.com:laden666666/my-picker.git
laden666666
my-picker
my-picker
master

搜索帮助