From 212d3bcdf1226519564d24d518a279163cbee4c4 Mon Sep 17 00:00:00 2001 From: zealotchen Date: Tue, 21 May 2024 21:09:04 +0800 Subject: [PATCH] feat(vue-next): modify comment --- .../hippy-vue-next/src/runtime/element/hippy-element.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver/js/packages/hippy-vue-next/src/runtime/element/hippy-element.ts b/driver/js/packages/hippy-vue-next/src/runtime/element/hippy-element.ts index 30b422ae305..034cb00a5d5 100644 --- a/driver/js/packages/hippy-vue-next/src/runtime/element/hippy-element.ts +++ b/driver/js/packages/hippy-vue-next/src/runtime/element/hippy-element.ts @@ -878,8 +878,8 @@ export class HippyElement extends HippyNode { let style: NativeNodeProps = this.getNativeStyles(); if (this.parentNode && this.parentNode instanceof HippyElement) { - // 属性继承逻辑实现 - // 只继承 color 和 font属性 + // Implement attribute inheritance logic + // Only inherit color and font properties const parentNodeStyle = this.parentNode.processedStyle; const styleAttributes = ['color', 'fontSize', 'fontWeight', 'fontFamily', 'fontStyle', 'textAlign', 'lineHeight'];