From 662e129cdf40dfebcfc0ab8c7a57cc17c6a4f08b Mon Sep 17 00:00:00 2001 From: ding Date: Sun, 21 Nov 2021 17:42:04 +0800 Subject: [PATCH] feat: place form --- src/components/KlineTrade/Place.vue | 133 +++---------------- src/components/KlineTrade/PlaceForm.vue | 169 ++++++++++++++++++++++++ 2 files changed, 191 insertions(+), 111 deletions(-) create mode 100644 src/components/KlineTrade/PlaceForm.vue diff --git a/src/components/KlineTrade/Place.vue b/src/components/KlineTrade/Place.vue index b52b4928..2beb943a 100644 --- a/src/components/KlineTrade/Place.vue +++ b/src/components/KlineTrade/Place.vue @@ -1,63 +1,40 @@ @@ -68,70 +45,4 @@ export default { padding: 1rem 1.5rem 1.5rem 1.5rem; min-height: 44.5rem; } -.place-percent { - display: flex; - margin-bottom: 2rem; - margin-top: 1rem; - div { - flex: 1; - text-align: center; - border: 1px solid #404656; - margin-right: 5px; - border-radius: 2px; - cursor: pointer; - &:last-child { - margin-right: 0; - } - } -} -.place-btn { - margin-bottom: 1rem; - button { - width: 100%; - } -} -.place-market { - display: flex; - height: 3rem; - align-items: center; - div { - margin-right: 2rem; - font-weight: bold; - color: #999; - } - div:first-of-type { - color: #fff; - } -} -.place-able { - display: flex; - height: 3rem; - align-items: center; - justify-content: space-between; - margin-bottom: 1rem; -} -.place-input { - display: flex; - align-items: center; - margin-bottom: 2rem; - border: 1px solid #404656; - border-radius: 0.3rem; - padding: 0 1rem; - - &:focus-within { - border-color: #fff; - } - .place-input-title { - width: 7rem; - } - .place-input-unit { - width: 5rem; - text-align: right; - } - .form-control { - border-color: #2A3044 !important; - font-size: 20px; - font-weight: bold; - } -} diff --git a/src/components/KlineTrade/PlaceForm.vue b/src/components/KlineTrade/PlaceForm.vue new file mode 100644 index 00000000..2981a9c9 --- /dev/null +++ b/src/components/KlineTrade/PlaceForm.vue @@ -0,0 +1,169 @@ + + + + +