zzzz
2024-03-26 0df61bbe45cd6adf9de18074b5e978673247be85
src/page/user/Warehouse/item.card.vue
@@ -6,7 +6,7 @@
        <div class="total-data">0.0000</div>
        <div class="total-data-huansuan">≈ $0.0000</div>
      </div>
      <div class="right">全部平仓</div>
      <div class="right" @click="closeAll">全部平仓</div>
    </div>
    <div class="item-card-itembox">
@@ -46,15 +46,30 @@
        <div class="itembox-name">浮動盈虧 ({{ activeObj.laber }})</div>
      </div>
    </div>
    <Dialog ref="closeAllDialog" title="一鍵平倉">
      <template v-slot:center>
        <div>您確定一鍵平倉所有訂單嗎?</div>
      </template>
    </Dialog>
  </div>
</template>
<script>
import Dialog from "@/components/Dialog";
export default {
  components: { Dialog },
  props: {
    activeObj: {
      type: Object,
      default: {},
    },
  },
  methods: {
    closeAll() {
      this.$refs.closeAllDialog.show = true;
    },
  },
};
@@ -154,4 +169,5 @@
    }
  }
}
</style>