Coder Social home page Coder Social logo

michael-5h / multi-picker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from appianz/multi-picker

0.0 2.0 0.0 1.29 MB

A Custom Multi Picker(⁎⁍̴̛ᴗ⁍̴̛⁎) 『为移动端而生』的自定义多级联动选择器,可处理各种类型的多级联动,例如时间联动、城市联动、FAQ联动。

Home Page: https://appianz.github.io/multi-picker/

CSS 5.80% HTML 4.72% JavaScript 89.48%

multi-picker's Introduction

MultiPicker - A Flexible Picker for Mobile

Intro

MultiPicker was born for several product requirements in the mobile. It’s free, cute and customized. There are now over Hundreds of thousands of users.

This plugin is made up of two parts

And, there are two kinds of DateSelector:

  • One kind of the DateSelector was made up by year, month, date, hour and minute. And the style is fixed. img2.

  • The other kind of DateSelector was made up by free unit. And the style without tab. img1.

Demo & How to Use

DateSelector - A Flexible Picker for Selecting an Interval

MultiPicker - A Flexible Picker for User-Defined Json

Tips

  • You can make full use of callback to do anything.
  • Please make sure to read the guide and use it correctly.

Todo Lists

  • write some articles to introduce how to build it .
  • npm publish

Logs

2016.11.24(update)

  • The new style.

2016.11.23(update)

  • Refactoring DateSelector with a new calculation.

2016.11.19(delete)

  • delete project DateSelectorSimple, rename project DateSelectorPro to DateSelector.

2016.11.6(add)

  • New Project -- MultiPicker, with Chinese city JSON.

Authors

For questions and issues please use THIS WAY

I am Appian.


MultiPicker -『为移动端而生』的自定义多级联动选择器

MultiPicker - 自我介绍

MultiPicker是为了满足移动端对各种选择器的需求而生的,兼容性强,灵活度高。目前已有 几十万 的实际用户正在使用。

MultiPicker主要是由两个部分组成,

日期选择器有两种样式,一种带tab的固定样式,另一种是不带tab的自定义样式

  • 带tab切换,固定单位【年月日时分】的固定样式

  • 自定义单位,【年月日时分】的自定义任意组合

Demo & How to Use

日期选择器 - DateSelector

自定义json选择器 - MultiPicker

Tips

  • 可以充分利用callback,对返回的结果执行相应操作,比如:拼接出期望的字符串,或构造后台期望的存储对象。
  • 在日期选择器DateSelector中,用正确的数组表示你要设置的时间点。
  • 在自定义json选择器MultiPicker中,构造符合规范的json数据。

Todo Lists

  • 写一系列文章介绍如何构造这个小插件
  • 发布 npm 版本

Logs

2016.11.24(update)

  • 新的灰白样式, 更大众, 更简洁

2016.11.23(update)

  • 重构DateSelector 的算法, 减少了50+行冗余代码

2016.11.19(delete)

  • 删除DateSelectorSimple, 重命名DateSelectorPro为DateSelector

2016.11.6(add)

  • 新增MultiPicker, 并配套**城市json

Authors

如果你遇到了什么神bug,请发起ISSUE联系我 ~

如果想了解选择器的开发过程,可以参考 如何造一个『为移动端而生』的联动选择器

我是嘉宝Appian,一个卖萌出家的算法妹纸。

multi-picker's People

Contributors

appianz avatar

Watchers

James Cloos avatar Michael Wu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.