Commit 24e0a776 by 高源

栅格拖拽实现

parent aa518835
<!doctype html>
<html lang="zh-cmn-Hans">
<head>
<meta name="buildTime" content="2025-03-17 14:02:13">
<meta name="buildTime" content="2025-03-18 11:10:53">
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="light dark" />
<title>VueDashboard</title>
<script type="module" crossorigin src="/Content/VueDashboardUi/VueDashboard1/assets/index-vhyBwSMe.js"></script>
<script type="module" crossorigin src="/Content/VueDashboardUi/VueDashboard1/assets/index-CXO-yZSS.js"></script>
<link rel="stylesheet" crossorigin href="/Content/VueDashboardUi/VueDashboard1/assets/index-9k_B1ZU8.css">
</head>
<body>
......
......@@ -65,6 +65,7 @@
"tailwind-merge": "2.4.0",
"vue": "3.4.35",
"vue-draggable-plus": "0.5.2",
"vue-grid-layout": "3.0.0-beta1",
"vue-i18n": "9.13.1",
"vue-router": "4.4.1",
"vue3-sfc-loader": "^0.9.5"
......
import { createApp } from 'vue';
import VueGridLayout from 'vue-grid-layout';
import './plugins/assets';
import { localStg } from '@/utils/storage';
// main.js or main.ts
......@@ -62,6 +63,8 @@ async function setupApp() {
// 启动计时器
startInactivityTimer(app);
app.use(VueGridLayout);
app.mount('#app');
}
......
declare module 'vue-grid-layout' {
import { Plugin } from 'vue';
export const GridLayout: any;
export const GridItem: any;
const VueGridLayout: Plugin;
export default VueGridLayout;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment