Skip to content

[新功能需求] Form 表单校验时星号(*)位置 #555

Description

@zqran

这个功能解决了什么问题?

问题描述:
当表单需要表单校验时,如果表单项是必填的,会有一个红色的星号表示。现在,星号只能在左侧,并且当紧挨着的两行表单项一个为必填另一个为非必填时,表单项的 label 会存在无法对其的问题。

11


期望效果(二选一即可):

  1. 红色星号,不占布局位置,即使在左侧也可以跟没有星号的表单项 label 对其
  2. 可以设置红色星号位置,比如,可以把星号放在 label 右侧

你期望的 API 是什么样子的?

没想好~~~

Activity

  1. kooriookami commented on Sep 24, 2024

    @kooriookami

    不占位布局比较好,通过绝对定位控制

  2. skiyee commented on Feb 9, 2025

    @skiyee
    Contributor

    支持!为了让form这些表单组件更加美观点,可以使其在右边

  3. added a commit that references this issue on Jul 28, 2025
    cade06f
  4. github-actions commented on Aug 27, 2025

    @github-actions
    Contributor

    此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

  5. locked and limited conversation to collaborators on Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions