Przeglądaj źródła

feat:view组件样式

ananzhusen 1 rok temu
rodzic
commit
e62ebd6d86
5 zmienionych plików z 17 dodań i 18 usunięć
  1. 1 1
      .env.trial
  2. 0 1
      package.json
  3. 3 3
      src/services/common.ts
  4. 3 3
      src/services/enterprise.ts
  5. 10 10
      src/views/components/View.vue

+ 1 - 1
.env.trial

@@ -1 +1 @@
-VITE_TRIAL=1
+# VITE_TRIAL=1

+ 0 - 1
package.json

@@ -6,7 +6,6 @@
     "start": "vite --host --open --port 88",
     "prod": "vue-tsc --noEmit && vite build --base=https://assets.le5lecdn.com/v/",
     "build": "vue-tsc --noEmit && vite build --base=/v/",
-    "trial": "vue-tsc --noEmit && vite build --mode trial --base=/v/",
     "preview": "vite preview"
   },
   "dependencies": {

+ 3 - 3
src/services/common.ts

@@ -56,9 +56,9 @@ const assets = reactive({
 export const useAssets = () => {
   const getAssets = async () => {
     // 官网或安装包版本
-    if (import.meta.env.VITE_TRIAL != 1) {
-      return;
-    }
+    // if (import.meta.env.VITE_TRIAL != 1) {
+    //   return;
+    // }
 
     // 企业版
     const ret = await axios.get('/api/assets');

+ 3 - 3
src/services/enterprise.ts

@@ -51,9 +51,9 @@ const enterprise = reactive({
 export const useEnterprise = () => {
   const getEnterprise = async () => {
     // 官网或安装包版本
-    if (import.meta.env.VITE_TRIAL != 1) {
-      return;
-    }
+    // if (import.meta.env.VITE_TRIAL != 1) {
+    //   return;
+    // }
 
     // 企业版
     const ret = await axios.get('/api/enterprise');

+ 10 - 10
src/views/components/View.vue

@@ -246,7 +246,7 @@
       </t-dropdown>
       <!-- </t-tooltip> -->
       <t-tooltip content="视图大小" placement="bottom">
-        <div style="line-height: 40px; margin-left: 8px">{{ scale }}%</div>
+        <div style="line-height: 40px; margin-left: 8px;width:34px;">{{ scale }}%</div>
       </t-tooltip>
 
       <t-tooltip content="100%视图" placement="bottom">
@@ -1911,28 +1911,28 @@ const theme = computed(() => {
         color: var(--color-primary);
       } */
       svg{
-        width: 18px ;
-        height: 18px;
+        width: 16px ;
+        height: 16px;
         &:hover{
         color: var(--color) !important;
       }
       }
-      font-size: 18px;
+      font-size: 16px;
     }
     .a-1{
       svg{
-        width: 20px;
-        height: 20px ;
+        width: 16px;
+        height: 16px ;
       }
     }
 
     .t-icon {
-      font-size: 18px;
+      font-size: 16px;
     }
     .l-icon {
-      font-size: 21px;
-      width: 21px ;
-      height: 21px ;
+      font-size: 18px;
+      width: 18px ;
+      height: 18px ;
     }
   }