소스 검색

feat:value-label

ananzhusen 1 년 전
부모
커밋
a1dc0f4fed
2개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/components/Actions.vue
  2. 7 0
      src/views/components/PenEvents.vue

+ 1 - 1
src/views/components/Actions.vue

@@ -168,7 +168,7 @@
                 class="center gray mt-8"
               >
                 <div class="prop-grid mt-8" v-for="(value, key) in a.value">
-                  <div class="ml-8">
+                  <div class="ml-8 value-label">
                     <t-tooltip :content="key">
                       {{ getPropDesc(a, key) }}
                     </t-tooltip>

+ 7 - 0
src/views/components/PenEvents.vue

@@ -179,5 +179,12 @@ onUnmounted(() => {});
   :deep(.value-input) {
     max-width: 95px;
   }
+
+  :deep(.value-label){
+    width: 50px;
+    overflow: hidden;
+    text-overflow:ellipsis;
+    white-space: nowrap;
+  }
 }
 </style>