Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 使用innerHTML赋值后转小程序时,a标签转view标签+img转image标签时,把width和height写入style属性【latest】 #16781

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

fix: 对于innerHTML生成的小程序, img=>image时,如果有width和height,把这2个值写入style属性内

b81a8f9
Select commit
Loading
Failed to load commit list.
Open

fix: 使用innerHTML赋值后转小程序时,a标签转view标签+img转image标签时,把width和height写入style属性【latest】 #16781

fix: 对于innerHTML生成的小程序, img=>image时,如果有width和height,把这2个值写入style属性内
b81a8f9
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch succeeded Nov 18, 2024 in 1s

25.00% of diff hit (target 58.52%)

View this Pull Request on Codecov

25.00% of diff hit (target 58.52%)

Annotations

Check warning on line 135 in packages/taro-runtime/src/dom-external/inner-html/parser.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/taro-runtime/src/dom-external/inner-html/parser.ts#L132-L135

Added lines #L132 - L135 were not covered by tests

Check warning on line 137 in packages/taro-runtime/src/dom-external/inner-html/parser.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/taro-runtime/src/dom-external/inner-html/parser.ts#L137

Added line #L137 was not covered by tests

Check warning on line 139 in packages/taro-runtime/src/dom-external/inner-html/parser.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/taro-runtime/src/dom-external/inner-html/parser.ts#L139

Added line #L139 was not covered by tests

Check warning on line 142 in packages/taro-runtime/src/dom-external/inner-html/parser.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

packages/taro-runtime/src/dom-external/inner-html/parser.ts#L142

Added line #L142 was not covered by tests