Skip to content

Conversation

@LIlGG
Copy link
Member

@LIlGG LIlGG commented Dec 24, 2025

What type of PR is this?

/kind feature
/area ui

What this PR does / why we need it:

为 formkit 新增 toggle 组件。

image

使用方式:

<FormKit
  type="toggle"
  name="toggle"
  validation="required"
  render-type="image"
  multiple
  :size="200"
  :gap="12"
  label="选择图片"
  help="选择图片作为背景,支持单选和多选"
  :options="[
    {
      label: '图文1',
      render: 'https://placehold.co/600x400',
      value: '1',
    },
    {
      label: '图文2',
      render: 'https://placehold.co/400x400',
      value: '2',
    },
    {
      label: '图文3',
      render: 'https://placehold.co/600x600',
      value: '3',
    },
    {
      label: '图文4',
      render: 'https://placehold.co/800x800',
      value: '4',
    },
  ]"
></FormKit>

Does this PR introduce a user-facing change?

为 FormKit 新增 `toggle` 组件

@f2c-ci-robot f2c-ci-robot bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. area/ui Issues or PRs related to the Halo UI labels Dec 24, 2025
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Dec 24, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign lilgg for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@codecov
Copy link

codecov bot commented Dec 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.07%. Comparing base (42c374d) to head (f7e441b).
⚠️ Report is 378 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8104      +/-   ##
============================================
+ Coverage     59.55%   61.07%   +1.51%     
- Complexity     3812     3996     +184     
============================================
  Files           677      696      +19     
  Lines         23248    23755     +507     
  Branches       1500     1551      +51     
============================================
+ Hits          13846    14508     +662     
+ Misses         8764     8507     -257     
- Partials        638      740     +102     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@f2c-ci-robot f2c-ci-robot bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 24, 2025
@f2c-ci-robot f2c-ci-robot bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 25, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 7, 2026

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

Labels

area/ui Issues or PRs related to the Halo UI kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants