diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md
index 87149e8fec0..f0749e19bec 100644
--- a/CHANGELOG.en-US.md
+++ b/CHANGELOG.en-US.md
@@ -21,6 +21,7 @@
- `n-cascader` uses `n` as CSS vars prefix.
- `n-color-picker` uses `n` as CSS vars prefix.
- `n-checkbox` uses `n` as CSS vars prefix.
+- `n-descriptions` uses `n` as CSS vars prefix.
- `n-drawer` uses `n` as CSS vars prefix.
- `n-dropdown` uses `n` as CSS vars prefix.
- `n-rate` uses `n` as CSS vars prefix.
diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md
index 7e0a8d75c7c..f50ff910b9c 100644
--- a/CHANGELOG.zh-CN.md
+++ b/CHANGELOG.zh-CN.md
@@ -21,6 +21,7 @@
- `n-cascader` 的 CSS 变量使用 `n` 作为前缀
- `n-color-picker` 的 CSS 变量使用 `n` 作为前缀
- `n-checkbox` 的 CSS 变量使用 `n` 作为前缀
+- `n-descriptions` 的 CSS 变量使用 `n` 作为前缀
- `n-drawer` 的 CSS 变量使用 `n` 作为前缀
- `n-dropdown` 的 CSS 变量使用 `n` 作为前缀
- `n-rate` 的 CSS 变量使用 `n` 作为前缀
diff --git a/src/descriptions/src/Descriptions.tsx b/src/descriptions/src/Descriptions.tsx
index bbc9848fb9f..e1e813569dc 100644
--- a/src/descriptions/src/Descriptions.tsx
+++ b/src/descriptions/src/Descriptions.tsx
@@ -95,24 +95,24 @@ export default defineComponent({
}
} = themeRef.value
return {
- '--th-padding': thPadding,
- '--td-padding': tdPadding,
- '--font-size': fontSize,
- '--bezier': cubicBezierEaseInOut,
- '--th-font-weight': thFontWeight,
- '--line-height': lineHeight,
- '--th-text-color': thTextColor,
- '--td-text-color': tdTextColor,
- '--th-color': thColor,
- '--th-color-modal': thColorModal,
- '--th-color-popover': thColorPopover,
- '--td-color': tdColor,
- '--td-color-modal': tdColorModal,
- '--td-color-popover': tdColorPopover,
- '--border-radius': borderRadius,
- '--border-color': borderColor,
- '--border-color-modal': borderColorModal,
- '--border-color-popover': borderColorPopover
+ '--n-th-padding': thPadding,
+ '--n-td-padding': tdPadding,
+ '--n-font-size': fontSize,
+ '--n-bezier': cubicBezierEaseInOut,
+ '--n-th-font-weight': thFontWeight,
+ '--n-line-height': lineHeight,
+ '--n-th-text-color': thTextColor,
+ '--n-td-text-color': tdTextColor,
+ '--n-th-color': thColor,
+ '--n-th-color-modal': thColorModal,
+ '--n-th-color-popover': thColorPopover,
+ '--n-td-color': tdColor,
+ '--n-td-color-modal': tdColorModal,
+ '--n-td-color-popover': tdColorPopover,
+ '--n-border-radius': borderRadius,
+ '--n-border-color': borderColor,
+ '--n-border-color-modal': borderColorModal,
+ '--n-border-color-popover': borderColorPopover
}
}),
compitableColumn: useCompitable(props, ['columns', 'column'])
@@ -205,10 +205,11 @@ export default defineComponent({
>
{[
...itemLabel,
- separator &&
-
- {separator}
-
+ separator && (
+
+ {separator}
+
+ )
]}