Ver Fonte

feat:添加状态

ananzhusen há 1 ano atrás
pai
commit
10df5c7056
1 ficheiros alterados com 24 adições e 1 exclusões
  1. 24 1
      src/views/components/PenProps.vue

+ 24 - 1
src/views/components/PenProps.vue

@@ -186,7 +186,30 @@
               {{ data.pen.globalAlpha }}
             </span>
           </div>
-
+          <template
+            v-if="
+              data.pen.name === 'combine' && data.pen.showChild !== undefined
+            "
+          >
+            <t-divider style="margin: -8px 0" />
+            <div class="form-item px-16" style="margin-top: -12px">
+              <label>状态</label>
+              <t-select
+                v-model="data.pen.showChild"
+                placeholder="状态"
+                @change="changeValue('showChild')"
+                style="width: 150px"
+              >
+                <t-option
+                  v-for="(a, index) in data.pen.children"
+                  :key="index"
+                  :value="index"
+                >
+                  状态{{ index + 1 }}</t-option
+                >
+              </t-select>
+            </div>
+          </template>
           <t-collapse
             :defaultValue="['1', '2', '3', '4', '5']"
             expandIconPlacement="right"