Coder Social home page Coder Social logo

nunchakus888 / table-time-picker Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 1.54 MB

Use Table Time Picker for Time select in a week

Home Page: https://nunchakus888.github.io/table-time-picker/

License: MIT License

JavaScript 67.05% HTML 5.02% Vue 27.93%
timepicker time-picker drag-and-drop vue

table-time-picker's Introduction

table-time-picker

Use Table Time Picker for Time select in a week

demo

character

usage

npm i git+ssh://[email protected]:Nunchakus888/table-time-picker.git

import tableTimePicker from 'table-time-picker'

<table-time-picker :rows='rows' @change='cellChange'></table-time-picker>

参数说明

参数 说明
rows Array, 必选 (二维数组)
change 选中触发回调,回调参数为目前选中value

数据结构

rows: [
        [2, 3, 4, 5, 8, 9, 10, 11, 15, 19, 20, 21, 22],
        [5, 8, 11, 14, 15, 19, 22],
        [5, 8, 11, 15, 19, 22],
        [2, 3, 4, 5, 8, 11, 15, 19, 20, 21, 22],
        [2, 8, 11, 15, 19, 22],
        [2, 8, 11, 15, 19, 22],
        [2, 3, 4, 5, 8, 9, 10, 11, 14, 15, 16, 19, 20, 21, 22]
      ]

最简单的二维结构,可自己配置

本地调试

git clone [email protected]:Nunchakus888/table-time-picker.git

npm i

npm run dev

移动端

什么?移动端?不知道我懒么~~略略略。。

table-time-picker's People

Contributors

nunchakus888 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kevinberthier

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.