diff --git a/components/mentions/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/mentions/__tests__/__snapshots__/demo-extend.test.ts.snap index ebc53b2aa2..79883e8da7 100644 --- a/components/mentions/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/mentions/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -39,6 +39,63 @@ exports[`renders components/mentions/demo/basic.tsx extend context correctly 1`] `; +exports[`renders components/mentions/demo/component-token.tsx extend context correctly 1`] = ` +
+
+ +
+ + @ + +
+ + +
+
+
+`; + exports[`renders components/mentions/demo/form.tsx extend context correctly 1`] = `
`; +exports[`renders components/mentions/demo/component-token.tsx correctly 1`] = ` +
+
+ +
+
+`; + exports[`renders components/mentions/demo/form.tsx correctly 1`] = ` ( + + + +); + +export default App; diff --git a/components/mentions/index.en-US.md b/components/mentions/index.en-US.md index 743cc18956..1c73a59515 100644 --- a/components/mentions/index.en-US.md +++ b/components/mentions/index.en-US.md @@ -43,6 +43,7 @@ return ( autoSize Status _InternalPanelDoNotUseOrYouWillBeFired +Component Token ## API diff --git a/components/mentions/index.zh-CN.md b/components/mentions/index.zh-CN.md index 2903a61173..8ae3ce4031 100644 --- a/components/mentions/index.zh-CN.md +++ b/components/mentions/index.zh-CN.md @@ -44,6 +44,7 @@ return ( 自动大小 自定义状态 _InternalPanelDoNotUseOrYouWillBeFired +组件 Token ## API diff --git a/docs/react/migrate-less-variables.en-US.md b/docs/react/migrate-less-variables.en-US.md index 87e55d4dcf..32c3aa4c05 100644 --- a/docs/react/migrate-less-variables.en-US.md +++ b/docs/react/migrate-less-variables.en-US.md @@ -174,7 +174,13 @@ This document contains the correspondence between all the less variables related | `@list-customize-card-bg` | - | Deprecated for style change | | `@list-item-meta-description-font-size` | `descriptionFontSize` | - | - +### Mentions + + +| less 变量 | Component Token | Note | +| --- | --- | --- | +| `@mentions-dropdown-bg` | `colorBgElevated` | GlobalToken | +| `@mentions-dropdown-menu-item-hover-bg` | - | Deprecated | diff --git a/docs/react/migrate-less-variables.zh-CN.md b/docs/react/migrate-less-variables.zh-CN.md index b1f7582a94..37dd4dc6c5 100644 --- a/docs/react/migrate-less-variables.zh-CN.md +++ b/docs/react/migrate-less-variables.zh-CN.md @@ -172,7 +172,13 @@ title: Less 变量迁移 Design Token | `@list-customize-card-bg` | - | 由于样式变化已废弃 | | `@list-item-meta-description-font-size` | `descriptionFontSize` | - | - +Mentions 提及 + + +| less 变量 | Component Token | 备注 | +| --- | --- | --- | +| `@mentions-dropdown-bg` | `colorBgElevated` | - | +| `@mentions-dropdown-menu-item-hover-bg` | - | 已废弃 |