Browse Source

Signed-off-by: caner <5658514@qq.com>

caner 3 years ago
parent
commit
fcbfc44a9f

+ 2 - 1
package.json

@@ -10,7 +10,7 @@
   },
   "dependencies": {
     "@wangeditor/editor": "^5.1.18",
-    "@wangeditor/editor-for-vue": "^5.1.12",    
+    "@wangeditor/editor-for-vue": "^5.1.12",
     "axios": "^1.1.3",
     "js-md5": "^0.7.3",
     "naive-ui": "^2.33.5",
@@ -28,6 +28,7 @@
     "less": "^4.1.3",
     "typescript": "^4.8.4",
     "vite": "^3.1.8",
+    "vite-plugin-compression": "^0.5.1",
     "vite-plugin-eslint": "^1.8.0",
     "vue-tsc": "^1.0.8"
   }

+ 0 - 23
src/assets/naiveui.less

@@ -1,23 +0,0 @@
-// 数字输入框样式修改
-  :deep(.n-input-number) {
-    .n-input-wrapper {
-      padding-right: 0;
-      .n-input__suffix {
-        display: flex;
-        flex-direction: column-reverse;
-        border-left: 1px solid #DCDEE2;
-        button {
-          width: 0.21rem;
-          &:first-of-type{
-             border-top: 1px solid #DCDEE2;
-          }
-        }
-        .iconfont {
-          font-size: 0.12rem;
-        }
-        .bold{
-            font-weight: bold;
-        }
-      }
-    }
-  }

+ 2 - 0
src/pages/index/assets/js/nativeUiPluginPublic.ts

@@ -2,12 +2,14 @@ import {
   create,
   NConfigProvider,
   NNotificationProvider,
+  NButton
 } from 'naive-ui'
 
 const naive = create({
   components: [
     NConfigProvider,
     NNotificationProvider,
+    NButton
   ]
 })
 

+ 2 - 2
src/pages/index/views/home/route.ts

@@ -1,10 +1,10 @@
 import { RouteRecordRaw } from 'vue-router'
+import home from './index.vue'
 
 export default {
   path: '/',
   meta: {
     authorize: true
   },
-  component: () => import('./index.vue' as any),
-  children: []
+  component: home
 } as RouteRecordRaw

+ 1 - 1
src/pages/index/views/test/index.vue

@@ -1,3 +1,3 @@
 <template>
-  <div>123</div>
+  <div>3D测试</div>
 </template>

+ 3 - 3
vite.config.ts

@@ -1,8 +1,8 @@
 import { defineConfig } from 'vite'
 import vue from '@vitejs/plugin-vue'
 import eslint from 'vite-plugin-eslint'
-import path from 'path'
 import viteCompression from 'vite-plugin-compression'
+import path from 'path'
 
 // https://vitejs.dev/config/
 export default defineConfig({
@@ -18,8 +18,8 @@ export default defineConfig({
   },
   plugins: [vue(), viteCompression(), eslint({ fix: true, include: ['**/*.ts', '**/*.vue'] })],
   server: {
-    host: 'localhost',
-    port: 6547,
+    host: '0.0.0.0',
+    port: 5888,
     open: true,
     strictPort: false,
     https: false