Selaa lähdekoodia

fix:交互-属性数据样式问题

ananzhusen 1 vuosi sitten
vanhempi
sitoutus
a9e33b6168

+ 6 - 2
src/views/components/Actions.vue

@@ -173,8 +173,12 @@
                       {{ getPropDesc(a, key) }}
                     </t-tooltip>
                   </div>
-                  <div>
-                    <t-input v-model="a.value[key]" placeholder="值" />
+                  <div class="value-input">
+                    <t-input
+                      :title="a.value[key]"
+                      v-model="a.value[key]"
+                      placeholder="值"
+                    />
                   </div>
                   <div class="right px-8" style="line-height: 20px">
                     <t-icon

+ 1 - 0
src/views/components/PenAnimates.vue

@@ -10,6 +10,7 @@
           <template #header>
             <div class="flex middle" @click.stop>
               <t-input
+                :title="item.name"
                 :value="item.name"
                 autoWidth
                 class="mr-8"

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

@@ -169,5 +169,9 @@ onUnmounted(() => {});
     background-color: var(--color-background-input);
     padding: 0 12px;
   }
+
+  :deep(.value-input) {
+    max-width: 95px;
+  }
 }
 </style>