For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/zh/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/zh/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/zh/components/form-actions.md.
v0.0.57
  • 简体中文
  • FormActions

    数据录入@rockshin/tao-ui

    统一排列表单中的提交、取消与次要操作。

    何时使用

    表单底部需要稳定、可预测的操作区域时使用 FormActions。

    推荐

    • 主操作保持唯一并放在一致位置。
    • 取消与破坏性操作使用正确语义层级。

    避免

    • 不要把无关操作混入表单操作区。

    代码演示

    基础用法

    TSX

    次要与破坏性操作

    TSX

    语义化对齐

    TSX

    完整表单组合

    组合布局、字段与操作区,用原生提交展示保存结果。

    Profile

    Public workspace information

    A short introduction

    No changes saved
    TSX

    对齐与换行

    通过 root 样式设置对齐,窄屏保留自然换行。

    TSX

    操作等待状态

    等待时统一禁用操作并显示加载;按钮可结束本地演示状态。

    TSX

    API

    FormActions

    属性说明类型默认值
    className节点类名string | undefined-
    style节点样式CSSProperties | undefined-