Bläddra i källkod

perf: 去除屏幕大小处理

奔跑的面条 3 år sedan
förälder
incheckning
e9e5b798e7
3 ändrade filer med 14 tillägg och 39 borttagningar
  1. 0 21
      index.css
  2. 0 3
      index.html
  3. 14 15
      src/store/modules/chartHistoryStore/chartHistoryDefine.ts

+ 0 - 21
index.css

@@ -82,25 +82,4 @@
   to {
     opacity: 1;
   }
-}
-
-/* 小屏处理 0~1000*/
-.mobile-terminal {
-  display: none;
-}
-@media (max-width: 1000px) {
-  #app {
-    display: none;
-  }
-  .mobile-terminal {
-    display: flex;
-    align-items: center;
-    justify-content: center;
-    width: 100vw;
-    height: 100vh;
-    text-align: center;
-    font-size: 24px;
-    font-weight: 200;
-    background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);
-  }
 }

+ 0 - 3
index.html

@@ -24,9 +24,6 @@
         </div>
       </div>
     </div>
-    <div class="mobile-terminal">
-      <p>请使用 Web 端进行查看</p>
-    </div>
     <script type="module" src="/src/main.ts"></script>
   </body>
 </html>

+ 14 - 15
src/store/modules/chartHistoryStore/chartHistoryDefine.ts

@@ -1,22 +1,21 @@
 import { HistoryTargetTypeEnum, HistoryActionTypeEnum } from './chartHistoryStore.d'
 
 export const historyActionTypeName = {
-  [HistoryActionTypeEnum.ADD]: '新增图表',
-  [HistoryActionTypeEnum.DELETE]: '删除图表',
-  [HistoryActionTypeEnum.UPDATE]: '修改属性',
-  [HistoryActionTypeEnum.MOVE]: '移动图表',
-  [HistoryActionTypeEnum.PASTE]: '粘贴图表',
-  [HistoryActionTypeEnum.COPY]: '复制图表',
-  [HistoryActionTypeEnum.CUT]: '剪切图表',
-  [HistoryActionTypeEnum.TOP]: '层级置顶',
-  [HistoryActionTypeEnum.BOTTOM]: '层级置底',
-  [HistoryActionTypeEnum.UP]: '层级上移',
-  [HistoryActionTypeEnum.DOWN]: '层级下移',
-  [HistoryActionTypeEnum.GROUP]: '创建分组',
-  [HistoryActionTypeEnum.UN_GROUP]: '解除分组',
-  [HistoryActionTypeEnum.SELECT_HISTORY]: '选择记录',
+  [HistoryActionTypeEnum.ADD]: '新增',
+  [HistoryActionTypeEnum.DELETE]: '删除',
+  [HistoryActionTypeEnum.UPDATE]: '更新',
+  [HistoryActionTypeEnum.MOVE]: '移动',
+  [HistoryActionTypeEnum.PASTE]: '粘贴',
+  [HistoryActionTypeEnum.COPY]: '复制',
+  [HistoryActionTypeEnum.CUT]: '剪切',
+  [HistoryActionTypeEnum.TOP]: '置顶',
+  [HistoryActionTypeEnum.BOTTOM]: '置底',
+  [HistoryActionTypeEnum.UP]: '上移',
+  [HistoryActionTypeEnum.DOWN]: '下移',
+  [HistoryActionTypeEnum.GROUP]: '成组',
+  [HistoryActionTypeEnum.UN_GROUP]: '解组',
   [HistoryActionTypeEnum.LOCK]: '锁定',
-  [HistoryActionTypeEnum.UNLOCK]: '解',
+  [HistoryActionTypeEnum.UNLOCK]: '解锁',
   [HistoryActionTypeEnum.HIDE]: '隐藏',
   [HistoryActionTypeEnum.SHOW]: '显示',