From b09011251a963f03923543f98f8418a6b6bab806 Mon Sep 17 00:00:00 2001 From: Timi Date: Mon, 12 Oct 2026 16:17:14 +0800 Subject: [PATCH] add card-container --- .serena/memories/project_overview.md | 3 + .serena/memories/style_and_conventions.md | 7 ++ .serena/memories/suggested_commands.md | 8 ++ .serena/memories/task_completion.md | 3 + src/components/card-container/index.ts | 7 ++ src/components/card-container/index.vue | 91 +++++++++++++++++++++++ src/components/card-container/type.ts | 6 ++ src/components/index.ts | 7 ++ 8 files changed, 132 insertions(+) create mode 100644 .serena/memories/project_overview.md create mode 100644 .serena/memories/style_and_conventions.md create mode 100644 .serena/memories/suggested_commands.md create mode 100644 .serena/memories/task_completion.md create mode 100644 src/components/card-container/index.ts create mode 100644 src/components/card-container/index.vue create mode 100644 src/components/card-container/type.ts diff --git a/.serena/memories/project_overview.md b/.serena/memories/project_overview.md new file mode 100644 index 0000000..ac7e592 --- /dev/null +++ b/.serena/memories/project_overview.md @@ -0,0 +1,3 @@ +# 项目概览 + +`timi-tdesign-mobile` 是 Vue 3 组件与前端通用能力依赖库,使用 TypeScript、Vite、Less、Axios、TDesign Mobile Vue。主要源码在 `src/components`、`src/api`、`src/assets`、`src/types`、`src/store`、`src/utils`,包入口为 `src/index.ts`。仓库也包含 `docs` 子项目。开发环境为 Windows,命令通过 PowerShell 执行。 \ No newline at end of file diff --git a/.serena/memories/style_and_conventions.md b/.serena/memories/style_and_conventions.md new file mode 100644 index 0000000..988ce7a --- /dev/null +++ b/.serena/memories/style_and_conventions.md @@ -0,0 +1,7 @@ +# 风格与约定 + +- Vue 3 Composition API,优先 ` + + diff --git a/src/components/card-container/type.ts b/src/components/card-container/type.ts new file mode 100644 index 0000000..4c3e963 --- /dev/null +++ b/src/components/card-container/type.ts @@ -0,0 +1,6 @@ +/** CardContainer 组件属性。 */ +export interface CardContainerProps { + title?: string; + description?: string; + tips?: string; +} diff --git a/src/components/index.ts b/src/components/index.ts index e1daeef..1d565d8 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -11,6 +11,7 @@ import NotifyEditor from "./notify-editor"; import NotifyView from "./notify-view"; import BottomPopup from "./bottom-popup"; import Space from "./space"; +import CardContainer from "./card-container"; import { AiChatComposer, AiChatMessageList, @@ -31,6 +32,7 @@ export default [ NotifyView, BottomPopup, Space, + CardContainer, AiChatComposer, AiChatMessageList, AiChatPanel, @@ -50,6 +52,7 @@ export { NotifyView, BottomPopup, Space, + CardContainer, AiChatComposer, AiChatMessageList, AiChatPanel, @@ -91,6 +94,10 @@ export type { SpaceSlots } from "./space"; +export type { + CardContainerProps +} from "./card-container"; + export type { PageTransitionBackground, PageTransitionClass,