Parcourir la source

限制添加线元

duy il y a 2 ans
Parent
commit
614825a2a7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/views/gauge/bezier.vue

+ 1 - 1
src/views/gauge/bezier.vue

@@ -3,7 +3,7 @@
         <HcCard :scrollbar="false" actionSize="lg">
             <template #header>
                 <HcTooltip keys="gauge-bezier-add">
-                    <el-button type="primary" hc-btn @click="addLineEleModal">
+                    <el-button type="primary" hc-btn @click="addLineEleModal" :disabled="partData.length<1">
                         <HcIcon name="add-box"/>
                         <span>添加线元</span>
                     </el-button>