Explorar o código

feat: router setting

gemercheung hai 10 meses
pai
achega
b846741a3d
Modificáronse 3 ficheiros con 16 adicións e 2 borrados
  1. 5 1
      src/app/map/App.vue
  2. 10 0
      src/app/map/company-select/index.vue
  3. 1 1
      src/router/routeName.ts

+ 5 - 1
src/app/map/App.vue

@@ -25,7 +25,11 @@
       </el-form-item>
     </div>
     <div class="right">
-      <el-select style="width: 100px" v-model:modelValue="currentMaptype">
+      <el-select
+        style="width: 100px"
+        v-model:modelValue="currentMaptype"
+        v-if="currentType(0)"
+      >
         <el-option key="2d" label="矢量图" :value="0" />
         <el-option key="state" label="卫星图" :value="1" />
       </el-select>

+ 10 - 0
src/app/map/company-select/index.vue

@@ -58,4 +58,14 @@ watchEffect(() => {
   top: 0;
   bottom: 0;
 }
+:global(.el-cascader-node__label) {
+  max-width: 130px;
+}
+:global(.el-cascader-menu) {
+  min-width: 80px;
+  /* max-width: 180px; */
+}
+:global(.el-cascader-node) {
+  padding: 0 15px 0 10px;
+}
 </style>

+ 1 - 1
src/router/routeName.ts

@@ -15,7 +15,7 @@ export const RouteName = {
   role: "role",
   sceneInitiator: "sceneInitiator",
   sceneVisitor: "sceneVisitor",
-  setting: "setting",
+  setting: "system",
   noCase: "no-case",
 } as const;