This commit is contained in:
zk
2023-11-21 17:51:20 +08:00
parent e73c95296c
commit 330154ae42
35 changed files with 60 additions and 8 deletions
+6 -3
View File
@@ -9,14 +9,17 @@
"preview": "vite preview" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {
"path": "^0.12.7",
"vue": "^3.3.4" "vue": "^3.3.4"
}, },
"devDependencies": { "devDependencies": {
"@vitejs/plugin-vue": "^4.2.3", "@vitejs/plugin-vue": "^4.2.3",
"@ant-design/colors": "^7.0.0",
"@ant-design/icons-vue": "^6.1.0",
"echarts": "^5.4.3",
"less": "^4.2.0",
"typescript": "^5.0.2", "typescript": "^5.0.2",
"vite": "^4.4.5", "vite": "^4.4.5",
"vue-tsc": "^1.8.5", "vue-tsc": "^1.8.5"
"echarts": "^5.4.3",
"less": "^4.2.0"
} }
} }
+2 -1
View File
@@ -5,6 +5,7 @@ import index from './views/index.vue'
<template> <template>
<index/> <index/>
</template> </template>
<style lang="less" src="./assets/less/index.less">
</style>
<style lang="less" scoped> <style lang="less" scoped>
</style> </style>
+19
View File
@@ -0,0 +1,19 @@
*::-webkit-scrollbar {
width: 12px;
height: 12px;
}
*::-webkit-scrollbar-button {
width: 0;
height: 0;
display: none;
}
*::-webkit-scrollbar-corner {
background-color: transparent;
}
*::-webkit-scrollbar-thumb {
border: 4px solid rgba(0, 0, 0, 0);
height: 6px;
border-radius: 25px;
background-clip: padding-box;
background-color: rgba(0, 0, 0, 0.30);
}
+12
View File
@@ -0,0 +1,12 @@
import type {App} from 'vue';
import {
Form,
Input,
Button,
} from 'ant-design-vue';
export default function registerGlobComp(app: App) {
app.use(Button)
.use(Form)
.use(Input)
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 469 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 469 B

+4 -2
View File
@@ -1,4 +1,6 @@
import {createApp} from 'vue' import {createApp} from 'vue'
import App from './App.vue' import App from './App.vue'
import registerGlobComp from './assets/ts/antd.ts'
createApp(App).mount('#app') const app=createApp(App)
registerGlobComp(app);
app.mount('#app')
+4 -1
View File
@@ -58,7 +58,6 @@ import ChinaMap from '../components/chinaMap/chinaMap.vue'
text-align: center; text-align: center;
border-right: 1px solid red; border-right: 1px solid red;
} }
} }
.body-d { .body-d {
@@ -91,5 +90,9 @@ import ChinaMap from '../components/chinaMap/chinaMap.vue'
padding: 10px; padding: 10px;
} }
} }
.body-d-middle{
display: flex;
flex-direction: column;
}
} }
</style> </style>
+12
View File
@@ -1,7 +1,19 @@
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue' import vue from '@vitejs/plugin-vue'
import {resolve} from 'path';
function pathResolve(dir: string) {
return resolve(process.cwd(), '.', dir);
}
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [vue()], plugins: [vue()],
resolve: {
alias: [
{
find: /\/@\//,
replacement: pathResolve('src') + '/',
},
],
},
}) })