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(time-picker): 添加自定义quick option #2233

Merged
merged 8 commits into from
Sep 6, 2024
Merged

feat(time-picker): 添加自定义quick option #2233

merged 8 commits into from
Sep 6, 2024

Conversation

gh2049
Copy link
Contributor

@gh2049 gh2049 commented Sep 6, 2024

可使用 quickOptions 替换常用选项

    <PastTimePicker
      quickOptions={[
        { value: 'day:1,0', label: '今天内' },
        { value: 'day:2,0', label: '1天前至今' },
        { value: 'day:3,0', label: '2天前至今' },
        { value: 'day:4,0', label: '3天前至今' },
        { value: 'day:5,0', label: '4天前至今' },
        { value: 'day:6,0', label: '5天前至今' },
        { value: 'day:7,0', label: '6天前至今' },
        { value: 'day:8,0', label: '7天前至今' },
        { value: 'earliest', label: '历史至今' },
      ]}
      onSelect={console.log}
      placeholder="时间范围"
      disabledDate={disabledDate}
      modes={[TimeMode.Since]}
    />

Copy link

sonarqubecloud bot commented Sep 6, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
53.3% Coverage on New Code (required ≥ 60%)

See analysis details on SonarCloud

@gh2049 gh2049 merged commit b12812d into master Sep 6, 2024
7 of 8 checks passed
@gh2049 gh2049 deleted the time-picker branch September 6, 2024 10:30
growingio-bot pushed a commit that referenced this pull request Sep 6, 2024
# [23.11.0](v23.10.3...v23.11.0) (2024-09-06)

### Features

* **time-picker:** 添加自定义quick option ([#2233](#2233)) ([b12812d](b12812d))
@growingio-bot
Copy link
Collaborator

🎉 This PR is included in version 23.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants