Ver código fonte

限制添加线元

duy 2 anos atrás
pai
commit
614825a2a7
1 arquivos alterados com 1 adições e 1 exclusões
  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>