+
@@ -16,7 +16,7 @@ const { type = "primary", size = "medium", round = false } = defineProps<{
@reference "tailwindcss";
.ui-tag {
- @apply px-3 py-1 text-xs;
+ @apply px-3 py-1 text-xs rounded-md inline-block;
}
.ui-tag.primary {
@apply bg-(--ion-color-dark) text-white;
@@ -25,7 +25,7 @@ const { type = "primary", size = "medium", round = false } = defineProps<{
@apply bg-(--ion-color-medium-shade) text-white;
}
.ui-tag.tertiary {
- @apply bg-(--ion-color-medium-tint) text-white;
+ @apply bg-(--ion-color-light-shade) text-black;
}
.ui-tag.success {
@apply bg-(--ion-color-success) text-white;
@@ -36,13 +36,16 @@ const { type = "primary", size = "medium", round = false } = defineProps<{
.ui-tag.danger {
@apply bg-(--ion-color-danger) text-white;
}
+.ui-tag.mini {
+ @apply text-[10px] px-1 py-0.5 rounded-sm;
+}
.ui-tag.small {
- @apply text-xs px-2 py-0.5;
+ @apply text-xs px-2 py-0.5 rounded-sm;
}
.ui-tag.medium {
- @apply text-sm px-3 py-1;
+ @apply text-sm px-3 py-1 rounded-md;
}
.ui-tag.large {
- @apply text-base px-4 py-2;
+ @apply text-base px-4 py-2 rounded-md;
}
diff --git a/src/views/trade/components/orders-panel.vue b/src/views/trade/components/orders-panel.vue
index db8865b..9531074 100644
--- a/src/views/trade/components/orders-panel.vue
+++ b/src/views/trade/components/orders-panel.vue
@@ -120,7 +120,7 @@ async function cancelOrder(orderId: string) {
-
+
+import type { PropType } from "vue";
+
+type Active = "buy" | "sell";
+
+const active = defineModel("active", { type: String as PropType, default: "buy" });
+
+
+
+
+
+
+
diff --git a/src/views/trade/components/trade-way.vue b/src/views/trade/components/trade-way.vue
new file mode 100644
index 0000000..3e539f5
--- /dev/null
+++ b/src/views/trade/components/trade-way.vue
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
diff --git a/src/views/trade/index.vue b/src/views/trade/index.vue
index d62b5bf..cf3cb4a 100644
--- a/src/views/trade/index.vue
+++ b/src/views/trade/index.vue
@@ -1,302 +1,89 @@
-
+
- 交易
+
+
+ BTC/USDT
+
+
+ 现货
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ USDT
+
+
+
+ {{ mode === 'buy' ? '买入' : '卖出' }}
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
-
diff --git a/tailwind.config.ts b/tailwind.config.ts
index b87e9e9..6e2861a 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -14,6 +14,7 @@ const config: Config = {
light: "var(--ion-color-light)",
medium: "var(--ion-color-medium)",
dark: "var(--ion-color-dark)",
+ faint: "var(--ion-color-faint)",
text: {
50: "var(--ion-text-color-step-50)",
100: "var(--ion-text-color-step-100)",