{"id":16760692,"url":"https://github.com/naihe138/vue-picker","last_synced_at":"2025-04-13T07:51:07.147Z","repository":{"id":24475886,"uuid":"101705262","full_name":"naihe138/vue-picker","owner":"naihe138","description":"A picker componemt for vue","archived":false,"fork":false,"pushed_at":"2022-12-10T07:23:44.000Z","size":2393,"stargazers_count":306,"open_issues_count":25,"forks_count":129,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-14T04:24:16.548Z","etag":null,"topics":["picker-componemt","vue","vue-picker"],"latest_commit_sha":null,"homepage":"https://naihe138.github.io/vue-picker","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/naihe138.png","metadata":{"files":{"readme":"README-en.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-08-29T01:36:59.000Z","updated_at":"2024-09-02T06:09:50.000Z","dependencies_parsed_at":"2023-01-14T07:45:59.512Z","dependency_job_id":null,"html_url":"https://github.com/naihe138/vue-picker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naihe138%2Fvue-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naihe138%2Fvue-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naihe138%2Fvue-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naihe138%2Fvue-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naihe138","download_url":"https://codeload.github.com/naihe138/vue-picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681494,"owners_count":21144700,"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":["picker-componemt","vue","vue-picker"],"created_at":"2024-10-13T04:24:18.156Z","updated_at":"2025-04-13T07:51:07.093Z","avatar_url":"https://github.com/naihe138.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"English | [中文](https://github.com/naihe138/vue-picker)\n\nA picker componemt for vue2.0\n------\n![vue-pick.gif][1]\n\n\n## Demo\n\n[https://naihe138.github.io/vue-picker/index.html][3]\n\n\n## Install\n\n`npm install vue-pickers --save` or `yarn add vue-pickers`\n\n## Use\n\n````javascript\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cbutton @click=\"show\"\u003eshow picker\u003c/button\u003e\n    \u003cVuePicker :data=\"pickData\"\n      :showToolbar=\"true\"\n      @cancel=\"cancel\"\n      @confirm=\"confirm\"\n      :visible.sync=\"pickerVisible\"\n    /\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\n  import VuePicker from 'vue-pickers'\n  var tdata = []\n  for (let i = 0; i \u003c 20; i++) {\n    tdata.push({\n      label: 'The' + i + 'row',\n      value: i\n    })\n  }\n  export default {\n    components: {\n      VuePicker\n    },\n    data () {\n      return {\n        pickerVisible: false,\n        pickData: [\n          tdata\n        ],\n        result: ''\n      }\n    },\n    methods: {\n      show () {\n        this.pickerVisible = true\n      },\n      cancel () {\n        this.result = 'click cancel result: null'\n      },\n      confirm (res) {\n        this.result = JSON.stringify(res)\n      }\n    }\n  }\n\u003c/script\u003e\n````\n\n## Attributes\n\nAttribute | Description | require | Type | Default\n---- | --- | --- | --- | ---\nvisible | show/hide picker | yes | Boolean | false\ndata | pickerData，colums[data1, data2]  | yes | Array | []\nlayer | linkage column  | no | Number | 0\ndefaultIndex | default index  | no | Number/Array(for more colums) | 无\ncancelText | cancel text  | no | String | '取消'\nconfirmText | confirm text  | no | String | '确认'\ntitle | picker title  | no | String | ''\nshowToolbar | show toolbar  | no | Boolean | false\nmaskClick | click mask  | no | Boolean | false\nitemHeight | height of each row | no | Number, String | '44px'\nrowNumber | how many lines to display (singular number recommended) | no | Number | 5\nappendToBody | Insert into body | no | Boolean | false\n\n## Events\n\nEvent Name | Description | require | Type | Default\n---- | --- | --- | --- | ---\nchange | select change | no | function(val) | -\ncancel | cancel button click | no | function | -\nconfirm | confirm button click  | no | function(val) | -\n\n\n[1]: http://ypimg.naice.me/vue-picker.gif\n[3]: https://naihe138.github.io/vue-picker/index.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaihe138%2Fvue-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaihe138%2Fvue-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaihe138%2Fvue-picker/lists"}