{"id":25416307,"url":"https://github.com/xhlife/vue3-grid-layout","last_synced_at":"2025-04-09T07:09:23.636Z","repository":{"id":63217065,"uuid":"435919310","full_name":"xhlife/vue3-grid-layout","owner":"xhlife","description":"About A draggable and resizable grid layout, for Vue3.","archived":false,"fork":false,"pushed_at":"2024-03-23T11:40:49.000Z","size":492,"stargazers_count":80,"open_issues_count":14,"forks_count":22,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-23T15:02:47.545Z","etag":null,"topics":["drag-drop","grid","resize","vue3","vue3-typescript"],"latest_commit_sha":null,"homepage":"https://github.com/xhlife/vue3-grid-layout","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/xhlife.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-07T14:50:07.000Z","updated_at":"2024-06-18T21:35:22.662Z","dependencies_parsed_at":"2024-06-18T21:35:05.931Z","dependency_job_id":"f28795f4-8569-44ba-af6b-32a0f1c065e2","html_url":"https://github.com/xhlife/vue3-grid-layout","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.0625,"last_synced_commit":"e8770beaef43fe88ec70d1cc0f7067df96a8c78d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xhlife%2Fvue3-grid-layout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xhlife%2Fvue3-grid-layout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xhlife%2Fvue3-grid-layout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xhlife%2Fvue3-grid-layout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xhlife","download_url":"https://codeload.github.com/xhlife/vue3-grid-layout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247994122,"owners_count":21030050,"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":["drag-drop","grid","resize","vue3","vue3-typescript"],"created_at":"2025-02-16T16:30:58.179Z","updated_at":"2025-04-09T07:09:23.612Z","avatar_url":"https://github.com/xhlife.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Support By\n\nThis project js support by [vue-grid-layout](https://github.com/jbaysolutions/vue-grid-layout), but vue-grid-layout do not support vue3.\n\n# Vue 3 + TypeScript + Vite\n\n The template uses Vue 3 `\u003cscript setup\u003e` SFCs, so pay attention to the version of vue.\n\n## Supports Vue 3.2+\n\n# Usage\n\n```shell\nnpm i vue3-grid-layout-next\n```\n\n\u003ch2\u003e\n  \u003ca href=\"https://jbaysolutions.github.io/vue-grid-layout/\" target=\"_blank\"\u003eDocumentation Website\u003c/a\u003e\n\u003c/h2\u003e\n\n## add Scoped slot\n```html\n\u003cgrid-item v-slot=\"{style}\"\u003e\n  \u003cdiv\u003e\n    \u003c!-- get attribute, such as width,height, and so no  --\u003e\n    {{ style }}\n  \u003c/div\u003e\n\u003c/grid-item\u003e\n```\n\n## add dragging、 dragend event\n\n```html\n\u003cgrid-item\n  @dragging=\"doSomething\"\n  @dragend=\"doSomethingEnd\"\n  \u003e\n\u003c/grid-item\u003e\n\n\u003cscript lang=\"ts\" setup\u003e \n\n  function doSomethin(event: MouseEvent, i: number | string) {\n    \n  }\n\u003c/script\u003e\n```\n\n## beware\n\n### Usage with v-model\n\n```html\n \u003cGridLayout v-model:layout=\"layout\"\u003e\n  ...\n \u003c/GridLayout\u003e\n```\n\n### Use ref object\n\nIf the responsive property is true, make sure layout is a ref object\n\n```html\n\u003cscript lang=\"ts\" setup\u003e \n\n  const responsive = ref(true)\n  const layout = ref([])\n  // const layout = reactive([]) // will cause some bug\n\n  // it will work, when responsive is false\n  // const layout = reactive([])\n\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cdiv class=\"layout\"\u003e\n    \u003cGridLayout v-model:layout=\"layout\" :responsive=\"responsive\" \u003e\n      ...\n    \u003c/GridLayout\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n```\n\n# example \n\n[demo for echart](https://cxid.gitee.io/works/work/vue3-grid-layout/index.html) - [source：https://gitee.com/cxid/vue3-grid-layout-demo](https://gitee.com/cxid/vue3-grid-layout-demo)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxhlife%2Fvue3-grid-layout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxhlife%2Fvue3-grid-layout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxhlife%2Fvue3-grid-layout/lists"}