Skip to content

🐛 [Bug]: 树插槽中设置 TinyNumeric 和 TinyInput的 size 属性无法 #3119

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

Open
stwflyfox opened this issue Mar 12, 2025 · 6 comments
Labels
bug Something isn't working welcome pr 欢迎提交 PR 实现/解决

Comments

@stwflyfox
Copy link

Version

latest

Vue Version

3

Link to minimal reproduction

none

Step to reproduce

不管size 设置成什么, 高度都不变。
Image

error1.txt

What is expected

No response

What is actually happening

No response

What is your project name

none

Any additional comments (optional)

No response

@Issues-translate-bot
Copy link

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


Title: 🐛 [Bug]: The size attributes of TinyNumeric and TinyInput cannot be set in the tree slot.

Copy link

目前没有找到其他类似的问题或解决方案。您可以尝试以下方法来解决这个问题:

  1. 检查样式:确保在设置 size 属性时,相关的 CSS 样式没有被覆盖。可以通过浏览器的开发者工具检查元素的样式。

  2. 更新依赖:确保您使用的是最新版本的 opentiny/tiny-vue,因为有可能在更新中已经修复了此问题。

  3. 自定义样式:如果默认的 size 属性无法满足需求,可以尝试通过自定义 CSS 来调整高度。

如果这些方法仍然无法解决问题,您可以考虑在 GitHub 上创建一个详细的 issue,附上最小可复现的代码示例,以便开发者更好地帮助您。

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

@Issues-translate-bot
Copy link

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


No other similar problems or solutions were found at this time. You can try the following to solve this problem:

  1. Check style: Make sure that the relevant CSS style is not overwritten when setting the size property. The style of elements can be checked through the browser's developer tools.

  2. Update dependencies: Make sure you are using the latest version of opentiny/tiny-vue, because it is possible that this issue has been fixed in the update.

  3. Custom Style: If the default size property cannot meet the needs, you can try to adjust the height through custom CSS.

If these methods still don't solve the problem, you might consider creating a detailed issue on GitHub with minimal reproducible code examples so developers can help you better.

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

Copy link

It seems like you are facing an issue with setting the size attributes of TinyNumeric and TinyInput in the tree slot. Here are some steps you can take to try and resolve the issue:

  1. Check Style: Ensure that the CSS styles related to the size attribute are not being overridden. You can use the browser's developer tools to inspect the element and check its styles.

  2. Update Dependencies: Verify that you are using the latest version of opentiny/tiny-vue, as updates might have fixed this issue.

  3. Custom Style: If the default size property does not work as expected, consider using custom CSS to adjust the height.

If these steps do not resolve the issue, you may want to create a detailed issue on GitHub with a minimal reproducible example. This will help the developers understand and address the problem more effectively.

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

@kagol kagol added bug Something isn't working welcome pr 欢迎提交 PR 实现/解决 labels Mar 20, 2025
@James-9696
Copy link
Collaborator

已定位,由于tree组件 样式的input 优先级,高于 numeric 及 input的样式的 mini的,导致设置其size属性不生效。

@Issues-translate-bot
Copy link

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


It has been positioned that due to the input priority of the tree component style, which is higher than the mini style of numeric and input, the size attribute is set to not take effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working welcome pr 欢迎提交 PR 实现/解决
Projects
None yet
Development

No branches or pull requests

4 participants