feat: tabs

This commit is contained in:
ding 2021-11-21 16:33:10 +08:00
parent ecf7fd1913
commit d26424c2df

View File

@ -1,49 +1,62 @@
<template> <template>
<div class="ticker-place"> <div class="ticker-place">
<div class="place-market"> <b-tabs small class="nav-fill">
<div>Limit</div> <b-tab title="BUY">
<div>Market</div> BUY
</div> </b-tab>
<b-tab title="SELL">
SELL
</b-tab>
</b-tabs>
<div class="place-able"> <div class="place-able">
<div>Available:</div> <div>Available:</div>
<div>-- USDT</div> <div>-- USDT</div>
</div> </div>
<div class="place-input"> <div class="place-input">
<div class="place-input-title">Price</div> <div class="place-input-title">
Price
</div>
<b-form-input type="text" /> <b-form-input type="text" />
<div class="place-input-unit">USDT</div> <div class="place-input-unit">
USDT
</div>
</div> </div>
<div class="place-input"> <div class="place-input">
<div class="place-input-title">Amount</div> <div class="place-input-title">
Amount
</div>
<b-form-input type="text" /> <b-form-input type="text" />
<div class="place-input-unit">BTC</div> <div class="place-input-unit">
BTC
</div>
</div>
<div>
Slippage tolerance
</div> </div>
<div class="place-percent"> <div class="place-percent">
<div>25%</div> <div>1%</div>
<div>50%</div> <div>3%</div>
<div>75%</div> <div>5%</div>
<div>100%</div>
</div> </div>
<div class="place-btn"> <div class="place-btn">
<BButton variant="success"> <BButton variant="success">
BUY BUY
</BButton> </BButton>
</div> </div>
<div class="place-btn">
<BButton variant="danger">
SELL
</BButton>
</div>
</div> </div>
</template> </template>
<script> <script>
import { BFormInput, BButton } from 'bootstrap-vue' import {
BFormInput, BButton, BTabs, BTab,
} from 'bootstrap-vue'
export default { export default {
components: { components: {
BButton, BButton,
BFormInput, BFormInput,
BTab,
BTabs,
}, },
} }
</script> </script>