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

feat: add rate #796

Merged
merged 1 commit into from
Aug 19, 2023
Merged

feat: add rate #796

merged 1 commit into from
Aug 19, 2023

Conversation

GuYith
Copy link
Contributor

@GuYith GuYith commented Aug 19, 2023

初步完成rate组件
待完善内容:

  • showText,需要组件tooltip
  • icon大小设置,icon自定义

问题:

  1. 在实现rate组件的过程中,需要用到的color类型为string或Array【tdesign统一给定】,对rate的颜色进行设置
import { h, tag, WeElement } from 'omi'

import '../index'

@tag('rate-base')
export default class RateBase extends WeElement {
  render() {
    return <t-rate default-value={3} color={['#000', '#3281b0']}></t-rate>
  }
}

如期望实现如下效果:
image

目前只能在propTypes注释掉color去实现

@GuYith GuYith mentioned this pull request Aug 19, 2023
72 tasks
@dntzhang dntzhang merged commit 19cc50f into Tencent:master Aug 19, 2023
@dntzhang
Copy link
Collaborator

需要用到的color类型为string或Array


这个我看一下

@dntzhang
Copy link
Collaborator

https://github.com/Tencent/omi/releases/tag/v6.25.14

@GuYith 已经支持。可以试试 omi v6.25.14

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 this pull request may close these issues.

2 participants