{"id":13788995,"url":"https://github.com/ColMugX/wepy-com-selectab","last_synced_at":"2025-05-12T03:31:11.709Z","repository":{"id":106261608,"uuid":"117352736","full_name":"colmugx/wepy-com-selectab","owner":"colmugx","description":"(Deprecated)(不再维护)选择数量或者其他单选操作，可用于座位选择。wepy组件。","archived":true,"fork":false,"pushed_at":"2018-01-19T03:53:42.000Z","size":4,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-21T23:20:49.049Z","etag":null,"topics":["wepy","wepy-com"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/colmugx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-01-13T15:03:39.000Z","updated_at":"2024-01-08T10:27:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"48eac92f-393d-4829-921d-20e590b0d127","html_url":"https://github.com/colmugx/wepy-com-selectab","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/colmugx%2Fwepy-com-selectab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colmugx%2Fwepy-com-selectab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colmugx%2Fwepy-com-selectab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colmugx%2Fwepy-com-selectab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colmugx","download_url":"https://codeload.github.com/colmugx/wepy-com-selectab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253667992,"owners_count":21944955,"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":["wepy","wepy-com"],"created_at":"2024-08-03T21:00:57.250Z","updated_at":"2025-05-12T03:31:11.452Z","avatar_url":"https://github.com/colmugx.png","language":"JavaScript","funding_links":[],"categories":["微信小程序WePY框架开发资源汇总 ![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)"],"sub_categories":["WePY开源组件"],"readme":"# wepy-com-selectab\n\n[![NPM](https://nodei.co/npm/wepy-com-selectab.png)](https://nodei.co/npm/wepy-com-selectab/)\n\n\u003e 适用于选座位等数字或者类型选择的组件，这是一个从`Bandix`独立出来的组件。\n\n早期Vue实现版本（异曲同工）：[https://github.com/ColMugX/vue-number-tab](https://github.com/ColMugX/vue-number-tab)\n\n![](https://github.com/ColMugX/vue-number-tab/raw/master/screenshots/1.gif)\n\n## 安装 Install\n\n\u003e npm install -S wepy-com-selectab\n\n## 使用 Usage\n\n```js\nimport Selectab from 'wepy-com-selectab'\n\nexport ...\n\n    components = {\n        selectab: Selectab\n    }\n```\n\n```vue\n\u003cselectab :total.sync=\"total\" :value=\"value\" bgColor=\"#444751\" @selected=\"handleSelected\" /\u003e\n```\n默认是选择数字，从`1`到`4`，颜色是`#444751`\n\n## 配置 Options\n\n### Api\n\n| 参数       | 说明               | 类型              | 可选值         | 默认值     |\n| -------- | ---------------- | --------------- | ----------- | ------- |\n| total    | 数字的总数，或者通过数组传入数据 | [Array] | -           | [1, 2, 3, 4]       |\n| value    | 组件默认选择数据         | [String]        | -           | 1       |\n| bgColor  | 选择区块颜色           | String          | -           | #444751 |\n\n### Event\n\n| 参数        | 说明       | 返回值              |\n| --------- | -------- | ---------------- |\n| selected | 获取当前选择数据 | [String] |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FColMugX%2Fwepy-com-selectab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FColMugX%2Fwepy-com-selectab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FColMugX%2Fwepy-com-selectab/lists"}