This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git
The following commit(s) were added to refs/heads/dev by this push:
new 2d81ca1c tweak doc for `richInheritPlainLabel`
2d81ca1c is described below
commit 2d81ca1c348fe4543dc68bcf646b0d45cd2dc7c3
Author: plainheart <[email protected]>
AuthorDate: Fri Jul 4 09:25:41 2025 +0800
tweak doc for `richInheritPlainLabel`
---
en/option/option.md | 2 ++
en/option/partial/rich-inherit-plain-label.md | 9 +++++++++
en/option/partial/text-style.md | 10 ++++------
zh/option/option.md | 3 +++
zh/option/partial/rich-inherit-plain-label.md | 9 +++++++++
zh/option/partial/text-style.md | 10 ++++------
6 files changed, 31 insertions(+), 12 deletions(-)
diff --git a/en/option/option.md b/en/option/option.md
index dbc20589..bd68dc4c 100644
--- a/en/option/option.md
+++ b/en/option/option.md
@@ -122,6 +122,8 @@ Global font style.
defaultFontSize: 12
) }}
+{{import: partial-rich-inherit-plain-label}}
+
{{import: partial-animation }}
# stateAnimation(Object)
diff --git a/en/option/partial/rich-inherit-plain-label.md
b/en/option/partial/rich-inherit-plain-label.md
new file mode 100644
index 00000000..cb1699d1
--- /dev/null
+++ b/en/option/partial/rich-inherit-plain-label.md
@@ -0,0 +1,9 @@
+{{ target: partial-rich-inherit-plain-label }}
+
+#${prefix} richInheritPlainLabel(boolean) = true
+
+{{ use: partial-version(version: '6.0.0') }}
+
+Whether rich text inherits plain text style.
+
+Since v6, the rich text styles (`fontStyle`, `fontWeight`, `fontSize`,
`fontFamily`, `textShadowColor`, `textShadowBlur`, `textShadowOffsetX`,
`textShadowOffsetY`) inherit the plain text style. To disable this behavior,
you can set `richInheritPlainLabel: false` at the root level of an echarts
option or the same level of the label style options. See also
[#20977](https://github.com/apache/echarts/pull/20977).
\ No newline at end of file
diff --git a/en/option/partial/text-style.md b/en/option/partial/text-style.md
index e465feec..30d1d437 100644
--- a/en/option/partial/text-style.md
+++ b/en/option/partial/text-style.md
@@ -109,13 +109,11 @@ For more details, see [Rich
Text](tutorial.html#Rich%20Text) please.
prefix = ${prefix} + '##',
enableAutoColor = ${enableAutoColor}
) }}
-{{ /if }}
-
-#${prefix} richInheritPlainLabel(boolean) = true
-
-{{ use: partial-version(version: '6.0.0') }}
-Whether rich text inherits plain text style.
+{{ use: partial-rich-inherit-plain-label(
+ prefix= ${prefix}
+) }}
+{{ /if }}
{{ target: partial-text-style-base-item }}
diff --git a/zh/option/option.md b/zh/option/option.md
index 779266eb..d2b3f6c2 100644
--- a/zh/option/option.md
+++ b/zh/option/option.md
@@ -114,11 +114,14 @@
# textStyle(Object)
全局的字体样式。
+
{{ use: partial-simple-text-style(
prefix='#',
defaultFontSize=12
) }}
+{{import: partial-rich-inherit-plain-label }}
+
{{import: partial-animation }}
# stateAnimation(Object)
diff --git a/zh/option/partial/rich-inherit-plain-label.md
b/zh/option/partial/rich-inherit-plain-label.md
new file mode 100644
index 00000000..cce10f5f
--- /dev/null
+++ b/zh/option/partial/rich-inherit-plain-label.md
@@ -0,0 +1,9 @@
+{{ target: partial-rich-inherit-plain-label }}
+
+#${prefix} richInheritPlainLabel(boolean) = true
+
+{{ use: partial-version(version: '6.0.0') }}
+
+富文本样式是否继承普通文本样式。
+
+从 v6 版本开始,标签的富文本部分样式(`fontStyle`, `fontWeight`, `fontSize`, `fontFamily`,
`textShadowColor`, `textShadowBlur`, `textShadowOffsetX`,
`textShadowOffsetY`)默认继承普通文本样式。你可以设置 `richInheritPlainLabel: false`
(可在最外层配置项或与同级文本样式配置项)来禁用此行为。参见
[#20977](https://github.com/apache/echarts/pull/20977)。
\ No newline at end of file
diff --git a/zh/option/partial/text-style.md b/zh/option/partial/text-style.md
index 732e6030..7bf6074b 100644
--- a/zh/option/partial/text-style.md
+++ b/zh/option/partial/text-style.md
@@ -109,13 +109,11 @@ label: {
prefix = ${prefix} + '##',
enableAutoColor = ${enableAutoColor}
) }}
-{{ /if }}
-
-#${prefix} richInheritPlainLabel(boolean) = true
-
-{{ use: partial-version(version: '6.0.0') }}
-富文本样式是否继承普通文本样式。
+{{ use: partial-rich-inherit-plain-label(
+ prefix= ${prefix}
+) }}
+{{ /if }}
{{ target: partial-text-style-base-item }}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]