feat: 更新生产和测试环境的服务地址;升级 @riwa/api-types 依赖至 0.0.70;新增交易对编辑功能

This commit is contained in:
2026-01-04 12:02:18 +07:00
parent 2eab7c5365
commit db5683c533
9 changed files with 296 additions and 51 deletions

View File

@@ -10,7 +10,7 @@ defineOptions({
interface Props {
/** 当前选中的图标 */
modelValue?: string;
modelValue?: string | null | undefined;
/** 图标集前缀 */
prefix?: IconCollection;
/** 每页显示数量 */
@@ -43,7 +43,10 @@ const searchValue = ref('');
const loading = ref(false);
const allIcons = ref<string[]>([]);
const currentPage = ref(1);
const activeCollection = ref<IconCollection>(props.prefix);
// 确保 activeCollection 在 collections 列表中,如果不在则使用第一个
const activeCollection = ref<IconCollection>(
props.collections.includes(props.prefix) ? props.prefix : props.collections[0]
);
// 图标集显示名称映射
const collectionLabels: Record<IconCollection, string> = {
@@ -143,7 +146,7 @@ onMounted(() => {
>
<template #trigger>
<div
class="inline-flex cursor-pointer items-center gap-2 border border-gray-300 rounded px-3 py-2 transition-colors dark:border-gray-700 hover:border-primary"
class="inline-flex cursor-pointer items-center gap-2 border border-gray-300 rounded px-3 py-1 transition-colors dark:border-gray-700 hover:border-primary"
>
<template v-if="modelValue">
<SvgIcon :icon="modelValue" :style="{ fontSize: iconSize }" />

View File

@@ -32,7 +32,7 @@ function handleConfirm() {
</script>
<template>
<div class="rounded-lg bg-white px-5 pt-5 dark:bg-container">
<div class="rounded-lg bg-white p-5 dark:bg-container">
<NForm :label-width="80" label-align="left" label-placement="left">
<NGrid x-gap="20" :cols="4">
<NGi v-for="col in columns" :key="col.key">