{"id":29239958,"url":"https://github.com/k186/iosselect","last_synced_at":"2025-07-03T19:07:59.234Z","repository":{"id":57321321,"uuid":"89543135","full_name":"k186/pd-select","owner":"k186","description":"vue components ,like ios 3D picker style,vue 3d 选择器组件,3D滚轮","archived":false,"fork":false,"pushed_at":"2022-04-19T03:08:44.000Z","size":334,"stargazers_count":106,"open_issues_count":0,"forks_count":32,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-26T05:35:50.202Z","etag":null,"topics":["components","datepicker","mobile","mobile-picker","npm-package","picker","scroll","scrolling","select","selector","vue","vue-components","vuejs2","wheel"],"latest_commit_sha":null,"homepage":"https://k186.github.io/pd-select/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/k186.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-27T01:41:22.000Z","updated_at":"2024-12-09T08:15:34.000Z","dependencies_parsed_at":"2022-08-25T20:00:21.004Z","dependency_job_id":null,"html_url":"https://github.com/k186/pd-select","commit_stats":null,"previous_names":["k186/iosselect"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/k186/pd-select","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k186%2Fpd-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k186%2Fpd-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k186%2Fpd-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k186%2Fpd-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k186","download_url":"https://codeload.github.com/k186/pd-select/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k186%2Fpd-select/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263385761,"owners_count":23458745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["components","datepicker","mobile","mobile-picker","npm-package","picker","scroll","scrolling","select","selector","vue","vue-components","vuejs2","wheel"],"created_at":"2025-07-03T19:07:58.703Z","updated_at":"2025-07-03T19:07:59.182Z","avatar_url":"https://github.com/k186.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/pd-select.svg)](https://www.npmjs.com/package/pd-select)\n\n## pd-select mobile wheel select \n\n\n### [demo](https://www.k186studio.com/demos/iosPicker/)\n\n| browser       | version       |\n| ------------- |:-------------:|\n| IE            | \u003e11           |\n| Edg           | \u003e=16          |\n| Firefox       | \u003e=57          |\n| chrome        | \u003e=47          |\n| safari        | \u003e=11          |\n| iOS Safari    | \u003e=9.3         |\n| Chrome for Android    | \u003e=62         |\n| Samsung Internet    | \u003e=6.2         |\n\n\nBuild Setup\n\n```\n# install dependencies\nnpm install\n\n# run dev\nnpm run dev\n\n```\n### install\n```\nnpm i pd-select -S\n\n```\n\n### example\n```\nimport pdSelect from 'pd-select'\n\nVue.use(pdSelect)\n\n//other code\n\n\u003ctemplate\u003e\n  \u003cdiv id=\"app\"\u003e\n    \u003cpd-select-box style=\"position: fixed;bottom: 0;width: 100%\"\u003e\n      \u003cpd-select-item ref=\"month\" :listData=\"listData\" v-model=\"month\"\u003e\u003c/pd-select-item\u003e\n      \u003cpd-select-item ref=\"day\" :listData=\"listData2\" type=\"cycle\" v-model=\"day\"\u003e\u003c/pd-select-item\u003e\n    \u003c/pd-select-box\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\n  export default {\n    name: 'app',\n    data () {\n      return {\n        listData: Array.from({length: 12}, (value, index) =\u003e 1 + index),\n        listData2: Array.from({length: 30}, (value, index) =\u003e 'customValue' + index),\n        month: 100,\n        day: 'customValue15'\n      }\n    },\n    mounted(){\n      setTimeout(()=\u003e{\n        //验证 model 联动\n        this.after()\n      },3000)\n    },\n    methods: {\n      after () {\n        this.day = 'customValue0'\n        this.$refs.day.init()\n      }\n    }\n  }\n\u003c/script\u003e\n\n```\n\n\n### props\n```\n  @param value {String} current select value or init value\n  @param data {Array} loop array value\n  @param type {String} 'cycle' ,default 'line'\n```\n \n### manual init itemData (update value change view)   \n\n```\nuse $refs to manual trigger component's init event to update view just like demo\n```\n### Buy me a cup of coffee\n\n![buycoffee](http://okzvi7b4z.bkt.clouddn.com/image/github/buymecoffee/alipay.jpg)\n\n### [how i build this](https://segmentfault.com/a/1190000009276918)\n\n\n### todo 2.0\n支持 点击\n\ntouch 事件换hammerjs\n\n~~webapack 构建~~\n\n~~极限 缓动~~\n~~支持手动初始化~~\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk186%2Fiosselect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk186%2Fiosselect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk186%2Fiosselect/lists"}