From 72302693dc09a6443ef6c99c476d8051cbbec93a Mon Sep 17 00:00:00 2001 From: magicalyao <shichengyao@tencent.com> Date: Mon, 5 Aug 2024 21:35:15 +0800 Subject: [PATCH 1/3] docs: add EN docs for link --- docs/mobile/api/link.md | 17 +++++++++++++++++ style/mobile/components/_index.less | 4 +++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 docs/mobile/api/link.md diff --git a/docs/mobile/api/link.md b/docs/mobile/api/link.md new file mode 100644 index 0000000000..557d078819 --- /dev/null +++ b/docs/mobile/api/link.md @@ -0,0 +1,17 @@ +--- +title: Link 链接 +description: 用于开启一个任务或跳转一个新页面。 +spline: base +isComponent: true +toc: false +--- + +### 01 组件类型 + + +{{ base }} + +### 02 组件状态 + + +{{ theme }} diff --git a/style/mobile/components/_index.less b/style/mobile/components/_index.less index 308ff46e70..a21b97fadd 100644 --- a/style/mobile/components/_index.less +++ b/style/mobile/components/_index.less @@ -147,7 +147,9 @@ @import "./input/v2/_index.less"; -@import "./link/_index.less"; // 新组件 +@import "./link/_index.less";// 新组件 + +@import "./link/v2/_index.less"; // 新组件 @import "./loading/v2/_index.less"; From 3bc96fa3b6525c5330f278bcf9b28cc7268b7588 Mon Sep 17 00:00:00 2001 From: magicalyao <shichengyao@tencent.com> Date: Tue, 6 Aug 2024 14:31:56 +0800 Subject: [PATCH 2/3] feat: update mobile link style --- style/mobile/components/_index.less | 2 -- style/mobile/components/link/v2/_var.less | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/style/mobile/components/_index.less b/style/mobile/components/_index.less index a21b97fadd..ec8ede9a18 100644 --- a/style/mobile/components/_index.less +++ b/style/mobile/components/_index.less @@ -147,8 +147,6 @@ @import "./input/v2/_index.less"; -@import "./link/_index.less";// 新组件 - @import "./link/v2/_index.less"; // 新组件 @import "./loading/v2/_index.less"; diff --git a/style/mobile/components/link/v2/_var.less b/style/mobile/components/link/v2/_var.less index 985be39913..5d107c5689 100644 --- a/style/mobile/components/link/v2/_var.less +++ b/style/mobile/components/link/v2/_var.less @@ -1,4 +1,5 @@ // 状态色 - 默认色 +@import "../../../base.less"; @link-default-color: var(--td-link-default-color, @text-color-primary); // default 主题默认态颜色 @link-default-active-color: var(--td-link-default-active-color, @brand-color-active); // default 主题激活态颜色 From 2c3ce095a9ea681f3ee48a5ed2a590eecf65c700 Mon Sep 17 00:00:00 2001 From: magicalyao <2591754854@qq.com> Date: Thu, 8 Aug 2024 22:43:12 +0800 Subject: [PATCH 3/3] docs: update docs for link --- docs/mobile/api/link.en-US.md | 17 +++++++++++++++++ docs/mobile/api/link.md | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 docs/mobile/api/link.en-US.md diff --git a/docs/mobile/api/link.en-US.md b/docs/mobile/api/link.en-US.md new file mode 100644 index 0000000000..9a0ab272f2 --- /dev/null +++ b/docs/mobile/api/link.en-US.md @@ -0,0 +1,17 @@ +--- +title: Link +description: Links are used to start a new task or jump to a new page. + +spline: base +isComponent: true +toc: false +--- + + +### 01 Component Type + +{{ base }} + +### 02 Component Status + +{{ status }} diff --git a/docs/mobile/api/link.md b/docs/mobile/api/link.md index 557d078819..4cd4ef294e 100644 --- a/docs/mobile/api/link.md +++ b/docs/mobile/api/link.md @@ -14,4 +14,4 @@ toc: false ### 02 组件状态 -{{ theme }} +{{ status }}