Procházet zdrojové kódy

限制添加线元

duy před 2 roky
rodič
revize
614825a2a7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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>