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

[action-sheet] 宫格模式,使用icon图标,无法设置颜色 #2224

Closed
ylxwk opened this issue Jul 26, 2023 · 1 comment · Fixed by #2231
Closed

[action-sheet] 宫格模式,使用icon图标,无法设置颜色 #2224

ylxwk opened this issue Jul 26, 2023 · 1 comment · Fixed by #2231

Comments

@ylxwk
Copy link

ylxwk commented Jul 26, 2023

tdesign-miniprogram 版本

1.1.5

重现链接

No response

重现步骤

#2100
bug没有仔细看就被关闭了,再提一次,是宫格模式,宫格模式,不是列表模式。现状是只有列表模式支持。

import ActionSheet, { ActionSheetTheme } from 'tdesign-miniprogram/action-sheet/index';

Component({
  methods: {
    handleAction() {
      ActionSheet.show({
        theme: ActionSheetTheme.Grid,
        selector: '#t-action-sheet',
        context: this,
        items: [
          {
            label: '默认选项',
            icon: 'app',
          },
          {
            label: '自定义选项',
            icon: 'app',
            color: '#0052D9',
          },
          {
            label: '失效选项',
            disabled: true,
            icon: 'app',
          },
          {
            label: '警告选项',
            color: '#e34d59',
            icon: 'app',
          },
        ],
      });
    },
    handleSelected(e) {
      console.log(e.detail);
    },
  },
});

期望结果

color生效,宫格图标是彩色的

实际结果

color不生效,宫格图标是单色的

基础库版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

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

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.

1 participant