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

【t-button】新手求教,按钮样式无效? #2572

Closed
hanxiaofeng opened this issue Jan 22, 2024 · 7 comments
Closed

【t-button】新手求教,按钮样式无效? #2572

hanxiaofeng opened this issue Jan 22, 2024 · 7 comments
Labels
question This is a question, not a bug

Comments

@hanxiaofeng
Copy link

tdesign-miniprogram 版本

1.2.7

重现链接

No response

重现步骤

image

期望结果

样式正常

实际结果

不正常

基础库版本

1.2.7

补充说明

No response

Copy link
Contributor

👋 @hanxiaofeng,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@betavs
Copy link
Collaborator

betavs commented Jan 22, 2024

Docs

app.json 中的 "style": "v2" 移除。

因为 该配置 表示启用新版组件样式,将会导致 TDesign 的组件样式错乱。

@betavs betavs added the question This is a question, not a bug label Jan 22, 2024
@hanxiaofeng
Copy link
Author

"style": "v2"

image 貌似没有v2相关的设置

@betavs
Copy link
Collaborator

betavs commented Jan 23, 2024

有在 json 文件引入 button 组件吗 🤔

  "usingComponents": {
    "t-button": "tdesign-miniprogram/button/button",
  },

@hanxiaofeng
Copy link
Author

有在 json 文件引入 button 组件吗 🤔

  "usingComponents": {
    "t-button": "tdesign-miniprogram/button/button",
  },

引入了,可以跑起来,但是样式未生效🙍‍♂️

@betavs
Copy link
Collaborator

betavs commented Jan 30, 2024

方便把项目提交到GitHub吗 🤔

@hanxiaofeng
Copy link
Author

方便把项目提交到GitHub吗 🤔

今天打开项目试试呢,又好了。。。。

@anlyyao anlyyao closed this as completed Feb 4, 2024
@anlyyao anlyyao reopened this Feb 4, 2024
@anlyyao anlyyao closed this as completed Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question, not a bug
Projects
None yet
Development

No branches or pull requests

3 participants