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

[Calendar] confirm-btn无法透传style #3461

Open
frostless opened this issue Jan 18, 2025 · 2 comments · May be fixed by #3464
Open

[Calendar] confirm-btn无法透传style #3461

frostless opened this issue Jan 18, 2025 · 2 comments · May be fixed by #3464

Comments

@frostless
Copy link

tdesign-miniprogram 版本

1.0.0

重现链接

No response

重现步骤

wxml file

     <t-calendar
            visible="{{calendarVisible}}"
            minDate="{{minDate}}"
            maxDate="{{maxDate}}"
            format="{{calendarFormat}}"
            type="{{showSingleCalender ? 'single' : 'range'}}"
            confirm-btn="{{confirmBtnConfig}}"
            bind:confirm="handleCalendarConfirm"
            bind:close="onCalendarClose"
          />

index.js file

  data: {
    confirmBtnConfig: {
      content: '确定',
      style: {
        color: 'red',
      },
    },
}

期望结果

确认按钮样式跟js代码一致

实际结果

只有contet起作用,style没有用

基础库版本

No response

补充说明

场景需要自定义calendar组件的样式,其中包括按钮样式,配合小程序总体样式

Copy link
Contributor

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

@betavs betavs linked a pull request Jan 19, 2025 that will close this issue
16 tasks
@anlyyao
Copy link
Collaborator

anlyyao commented Jan 20, 2025

@frostless 建议使用 css vars 或者 tClass 的方式修改组件样式,年前非组件重大问题,不会再发新版本了哦

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 a pull request may close this issue.

2 participants