{"id":13559248,"url":"https://github.com/ratiw/vuetable-2","last_synced_at":"2025-05-14T04:07:32.291Z","repository":{"id":43451819,"uuid":"70338416","full_name":"ratiw/vuetable-2","owner":"ratiw","description":"data table simplify! -- datatable component for Vue 2.x. See documentation at ","archived":false,"fork":false,"pushed_at":"2023-11-19T00:04:47.000Z","size":2215,"stargazers_count":2153,"open_issues_count":372,"forks_count":398,"subscribers_count":50,"default_branch":"master","last_synced_at":"2025-04-30T21:11:15.614Z","etag":null,"topics":["component","datatable","pagination-components","vue"],"latest_commit_sha":null,"homepage":"https://vuetable.com","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/ratiw.png","metadata":{"files":{"readme":"README.md","changelog":"changes.md","contributing":null,"funding":null,"license":"LICENSE","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":"2016-10-08T14:58:10.000Z","updated_at":"2025-04-27T21:49:53.000Z","dependencies_parsed_at":"2024-01-22T19:33:06.844Z","dependency_job_id":"e204d82c-ce8c-4a04-a948-3e0bfa952084","html_url":"https://github.com/ratiw/vuetable-2","commit_stats":{"total_commits":275,"total_committers":34,"mean_commits":8.088235294117647,"dds":"0.31999999999999995","last_synced_commit":"1f01bcf540e3c799dd4fe4d064c9af45784ca481"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratiw%2Fvuetable-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratiw%2Fvuetable-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratiw%2Fvuetable-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratiw%2Fvuetable-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ratiw","download_url":"https://codeload.github.com/ratiw/vuetable-2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253618003,"owners_count":21936901,"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":["component","datatable","pagination-components","vue"],"created_at":"2024-08-01T12:05:27.147Z","updated_at":"2025-05-14T04:07:32.260Z","avatar_url":"https://github.com/ratiw.png","language":"Vue","funding_links":[],"categories":["Vue","vue","UI组件","Components \u0026 Libraries","UI Components [🔝](#readme)","UI Components"],"sub_categories":["表","UI Components","Table"],"readme":"[![npm](https://img.shields.io/npm/v/vuetable-2.svg)](https://www.npmjs.com/package/vuetable-2)\n[![npm](https://img.shields.io/npm/dt/vuetable-2.svg)](https://www.npmjs.com/package/vuetable-2)\n[![npm](https://img.shields.io/npm/l/vuetable-2.svg?maxAge=2592000)](https://github.com/ratiw/vuetable-2/blob/master/LICENSE)\n\n# Vuetable-2 - data table simplify!\n\n---\n\n## Vuetable-2 v2.0-beta is available now!\n\nSee the [`next`](https://github.com/ratiw/vuetable-2/tree/next) branch.\n\n---\n\n### Vuetable-2 works with Vue 2.x, vuetable is for Vue 1.x\n\nIf you're looking for the version that's working with Vue 1.x, please go to [`vuetable`](https://github.com/ratiw/vue-table) repo.\n\n---\n\n### Documentation and Tutorial\n\nDocumentation is still under development, but you can view it at [https://ratiw.github.io/vuetable-2](https://ratiw.github.io/vuetable-2).  Thanks to @cristijora for the help.\n\nMeanwhile, check out\n- the [Tutorial](https://github.com/ratiw/vuetable-2-tutorial/wiki)\nwith follow-along project [here](https://github.com/ratiw/vuetable-2-tutorial). It should be enough to get you started.\n\n- [Sample project](https://github.com/ratiw/vuetable-2-with-laravel-5.4) using Vuetable-2 with Laravel 5.4 and Laravel-Mix\n\nIf you've been using Vuetable for Vue 1.x before, checkout [what's changed](https://github.com/ratiw/vuetable-2/blob/master/changes.md) for info on changes from Vuetable for Vue 1.x and the [upgrade guide](https://github.com/ratiw/vuetable-2/blob/master/upgrade-guide.md) on how you could upgrade from Vuetable for Vue 1.x.\n\nYou can now make use of Vue's scoped slot using the new `__slot` special field, thanks to @sjmarve. That means you are able to define action buttons per instance of a data table without depending on a globally defined component.\n\nUse scoped slot in parent when defining the actions [Vue Doc for scopped Slots](https://vuejs.org/v2/guide/components.html#Scoped-Slots)\n\ne.g.\n```html\n\u003ctemplate slot=\"actions\" scope=\"props\"\u003e\n    \u003cdiv class=\"table-button-container\"\u003e\n        \u003cbutton class=\"btn btn-default\" @click=\"onClick('edit-item', props.rowData)\"\u003e\u003ci class=\"fa fa-edit\"\u003e\u003c/i\u003e View\u003c/button\u003e\u0026nbsp;\u0026nbsp;\n        \u003cbutton class=\"btn btn-danger\" @click=\"onClick('delete-item', props.rowData)\"\u003e\u003ci class=\"fa fa-remove\"\u003e\u003c/i\u003e Edit\u003c/button\u003e\u0026nbsp;\u0026nbsp;\n    \u003c/div\u003e\n\u003c/template\u003e\n```\n\nthe onClick function can now be defined in the parent and the parent has Access to rowData and rowIndex via props. :)\n\nThe original functionality still works\n\n# Breaking Changes\n## v1.6.0\n- The `icons` prop of VuetablePagination is now moved into the `css` prop object. See this [codepen](https://codepen.io/ratiw/pen/GmJayw).\n\n# Example Code\n- Clone the project\n- Go into the cloned directory\n- `npm install`\n- `npm run dev`\n- Open browser to `http://localhost:8080`\n\n# Usage\n## NPM\n\n```shell\nnpm install vuetable-2 --save-dev\n```\n\n## Javascript via CDN\nThanks to @cristijora for providing helps on this.\n```html\n// vuetable-2 dependencies\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/vue/2.2.6/vue.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/axios/0.16.1/axios.min.js\"\u003e\u003c/script\u003e\n// vuetable-2\n\u003cscript src=\"https://unpkg.com/vuetable-2@1.6.0\"\u003e\u003c/script\u003e\nVue.use(Vuetable)\n```\nThis is demonstrated in this [jsfiddle](http://jsfiddle.net/CristiJ/z11fe07p/1318/).\n\nThe `.use` from above will register all the components globally.\n```javascript\nfunction install(Vue){\n  Vue.component(\"vuetable\", Vuetable);\n  Vue.component(\"vuetable-pagination\", VueTablePagination);\n  Vue.component(\"vuetable-pagination-dropdown\", VueTablePaginationDropDown);\n  Vue.component(\"vuetable-pagination-info\", VueTablePaginationInfo);\n}\n```\n\nAlso you have the ability to access certain components if you need them:\n```javascript\nVueTable: VueTable.default/VueTable.VueTable,\nVueTablePagination: VueTable.VueTablePagination,\nVueTablePaginationInfo: VueTable.VueTablePaginationInfo,\nVueTablePaginationDropdown: VueTable.VueTablePaginationDropdown\n```\n\n\n# Contributions\nAny contribution to the code (via pull request would be nice) or any part of the documentation and any idea and/or suggestion are very welcome.\n\n\u003e __Note__\n\u003e For any bug fix, the PR should be forked from the `master` branch. And for any suggestion or additional feature, the PR should be forked from the `develop` branch, where it can be integrated and rolled out in the next release.\n\u003e\n\u003e If you are not sure, please ask by openning a new issue.\n\nHowever, please do not feel bad if your pull requests or contributions do not get merged or implemented into Vuetable.\n\nYour contributions can, not only help make Vuetable better, but also push it away from what I intend to use it for. I just hope that you find it useful for your use or learn something useful from its source code. But remember, you can always fork it to make it work the way you want.\n\n# License\nVuetable is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratiw%2Fvuetable-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fratiw%2Fvuetable-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratiw%2Fvuetable-2/lists"}