We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
1.8.5
https://github.com/WindyHard/t-fab-typeEorr
[Vue warn]: Invalid prop: type check failed for prop "style". Expected String with value "[object Object]", got Object t-fab位置异常,刷新网页后t-fab能正常显示
No response
vue(3.5.12)
Chrome(135.0.7049.52)
Ubuntu(24.04)
20.11
The text was updated successfully, but these errors were encountered:
👋 @WindyHard,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
Vue 默认会将组件上的 style 属性解析为 CSS 对象
style
<template> <t-fab :icon="iconFunc" draggable="all" :style="'right: 100px; bottom: 40px'" :y-bounds="yBounds" @click="onClick" /> </template> <script lang="ts" setup> import { h } from 'vue'; import { AddIcon } from 'tdesign-icons-vue-next'; const iconFunc = () => h(AddIcon, { size: '24px' }); const onClick = () => { console.log('click Fab'); }; const yBounds = [30, 20]; </script>
Successfully merging a pull request may close this issue.
tdesign-mobile-vue 版本
1.8.5
重现链接
https://github.com/WindyHard/t-fab-typeEorr
重现步骤
[Vue warn]: Invalid prop: type check failed for prop "style". Expected String with value "[object Object]", got Object
t-fab位置异常,刷新网页后t-fab能正常显示
期望结果
No response
实际结果
No response
框架版本
vue(3.5.12)
浏览器版本
Chrome(135.0.7049.52)
系统版本
Ubuntu(24.04)
Node版本
20.11
补充说明
No response
The text was updated successfully, but these errors were encountered: