vue3-grid-layout-next
Advanced tools
Comparing version
@@ -253,3 +253,3 @@ import { Emitter, EventType } from "mitt"; | ||
resizeEvent: (eventName?: EventType, id?: string | number, x?: number, y?: number, h?: number, w?: number) => void; | ||
responsiveGridLayout: () => void; | ||
responsiveGridLayout: (id?: string | number) => void; | ||
initResponsiveFeatures: () => void; | ||
@@ -256,0 +256,0 @@ findDifference: (layout: Layout, originalLayout: Layout) => LayoutItem[]; |
{ | ||
"name": "vue3-grid-layout-next", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "A draggable and resizable grid layout, as a Vue component.", |
import {createApp} from "vue" | ||
import "./style.css" | ||
// import "./style.css" | ||
import App from "./App.vue" | ||
// import Vue3GridLayout from "./components/index" | ||
createApp(App).mount("#app") |
@@ -7,3 +7,3 @@ export const testData = [ | ||
h: 2, | ||
i: "第0个", | ||
i: "0", | ||
resizable: true, | ||
@@ -15,3 +15,3 @@ draggable: true, | ||
}, | ||
{x: 2, y: 0, w: 2, h: 4, i: "第一个", resizable: null, draggable: null, static: true}, | ||
{x: 2, y: 0, w: 2, h: 4, i: "1", resizable: null, draggable: null, static: true}, | ||
{ | ||
@@ -22,5 +22,5 @@ x: 4, | ||
h: 5, | ||
i: "第二个", | ||
i: "2", | ||
resizable: false, | ||
draggable: true, | ||
draggable: false, | ||
static: false, | ||
@@ -38,3 +38,3 @@ minX: 4, | ||
h: 3, | ||
i: "第三个", | ||
i: "3", | ||
resizable: false, | ||
@@ -44,29 +44,19 @@ draggable: false, | ||
preserveAspectRatio: true | ||
} | ||
// {x: 8, y: 0, w: 2, h: 3, i: "第四个", resizable: false, draggable: false, static: false}, | ||
// {x: 10, y: 0, w: 2, h: 3, i: "第五个", resizable: false, draggable: false, static: false}, | ||
// {x: 0, y: 5, w: 2, h: 5, i: "第六个", resizable: false, draggable: false, static: false}, | ||
// {x: 2, y: 5, w: 2, h: 5, i: "第七个", resizable: false, draggable: false, static: false}, | ||
// {x: 4, y: 5, w: 2, h: 5, i: "第八个", resizable: false, draggable: true, static: false}, | ||
// {x: 6, y: 3, w: 2, h: 4, i: "第九个", resizable: false, draggable: false, static: true}, | ||
// {x: 8, y: 4, w: 2, h: 4, i: "第十个", resizable: false, draggable: false, static: false}, | ||
// { | ||
// x: 10, | ||
// y: 4, | ||
// w: 2, | ||
// h: 4, | ||
// i: "第十一个", | ||
// resizable: false, | ||
// draggable: false, | ||
// static: false, | ||
// minY: 4 | ||
// }, | ||
// {x: 0, y: 10, w: 2, h: 5, i: "十二个", resizable: false, draggable: false, static: false} | ||
// {x: 2, y: 10, w: 2, h: 5, i: "十三个", resizable: false, draggable: false, static: false}, | ||
// {x: 4, y: 8, w: 2, h: 4, i: "十四个", resizable: false, draggable: false, static: false}, | ||
// {x: 6, y: 8, w: 2, h: 4, i: "十五个", resizable: false, draggable: false, static: false}, | ||
// {x: 8, y: 10, w: 2, h: 5, i: "十六个", resizable: false, draggable: false, static: false}, | ||
// {x: 10, y: 4, w: 2, h: 2, i: "十七哥", resizable: false, draggable: false, static: false}, | ||
// {x: 0, y: 9, w: 2, h: 3, i: "十八个", resizable: false, draggable: false, static: false}, | ||
// {x: 2, y: 6, w: 2, h: 2, i: "十九个", resizable: false, draggable: false, static: false} | ||
}, | ||
{x: 8, y: 0, w: 2, h: 3, i: "4", resizable: false, draggable: false, static: false}, | ||
{x: 10, y: 0, w: 2, h: 3, i: "5", resizable: false, draggable: false, static: false}, | ||
{x: 0, y: 5, w: 2, h: 5, i: "6", resizable: false, draggable: false, static: false}, | ||
{x: 2, y: 5, w: 2, h: 5, i: "7", resizable: false, draggable: false, static: false}, | ||
{x: 4, y: 5, w: 2, h: 5, i: "8", resizable: false, draggable: false, static: false}, | ||
{x: 6, y: 3, w: 2, h: 4, i: "9", resizable: false, draggable: false, static: true}, | ||
{x: 8, y: 4, w: 2, h: 4, i: "10", resizable: false, draggable: false, static: false}, | ||
{x: 10, y: 4, w: 2, h: 4, i: "11", resizable: false, draggable: false, static: false, minY: 4}, | ||
{x: 0, y: 10, w: 2, h: 5, i: "12", resizable: false, draggable: false, static: false}, | ||
{x: 2, y: 10, w: 2, h: 5, i: "13", resizable: false, draggable: false, static: false}, | ||
{x: 4, y: 8, w: 2, h: 4, i: "14", resizable: false, draggable: false, static: false}, | ||
{x: 6, y: 8, w: 2, h: 4, i: "15", resizable: false, draggable: false, static: false}, | ||
{x: 8, y: 10, w: 2, h: 5, i: "16", resizable: false, draggable: false, static: false}, | ||
{x: 10, y: 4, w: 2, h: 2, i: "17", resizable: false, draggable: false, static: false}, | ||
{x: 0, y: 9, w: 2, h: 3, i: "18", resizable: false, draggable: false, static: false}, | ||
{x: 2, y: 6, w: 2, h: 2, i: "19", resizable: false, draggable: false, static: false} | ||
] |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
369032
0.28%38
2.7%7157
-0.14%