Skip to content

fix: 修复内置组件img设置图片长度和宽度不生效#190

Closed
lizhijie429 wants to merge 1 commit intoopentiny:developfrom
lizhijie429:fix-style-imgStyle
Closed

fix: 修复内置组件img设置图片长度和宽度不生效#190
lizhijie429 wants to merge 1 commit intoopentiny:developfrom
lizhijie429:fix-style-imgStyle

Conversation

@lizhijie429
Copy link
Contributor

English | 简体中文

PR

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our Commit Message Guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • Built its own designer, fully self-validated

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Background and solution

What is the current behavior?

Issue Number: #180

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@lizhijie429
Copy link
Contributor Author

bug的主要原因:样式以class形式应用于画布,权重低于行内样式,解决思路:如果属性已经在行内样式中了,应该修改行内样式的数据。#189的pr直接删除了行内样式的数据。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


The main reason for the bug: the style is applied to the canvas in the form of a class, and its weight is lower than that of the inline style. Solution: If the attribute is already in the inline style, the data of the inline style should be modified. The PR of #189 directly deletes the inline style data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants