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/project succeeded Nov 18, 2024 in 0s

58.50% (target 75.00%)

View this Pull Request on Codecov

58.50% (target 75.00%)

Details

Codecov Report

Attention: Patch coverage is 25.00000% with 9 lines in your changes missing coverage. Please review.

Project coverage is 58.50%. Comparing base (c17123d) to head (b81a8f9).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...taro-runtime/src/dom-external/inner-html/parser.ts 10.00% 9 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #16781      +/-   ##
==========================================
- Coverage   58.52%   58.50%   -0.02%     
==========================================
  Files         466      466              
  Lines       27099    27109      +10     
  Branches     5908     5959      +51     
==========================================
+ Hits        15860    15861       +1     
+ Misses       9895     9773     -122     
- Partials     1344     1475     +131     
Files with missing lines Coverage Δ
...s/taro-runtime/src/dom-external/inner-html/tags.ts 100.00% <100.00%> (ø)
...taro-runtime/src/dom-external/inner-html/parser.ts 75.16% <10.00%> (-4.56%) ⬇️

... and 20 files with indirect coverage changes