Choice Card

整张卡片即为选项的富单选卡片,只占一个 Tab 停靠点,支持方向键导航。

可用框架
  • Angular: 可用
  • Vue: 可用
  • React: 可用
  • React Native: 可用

用法

导入

ts
import {
  SoneChoiceCardDescriptionDirective,
  SoneChoiceCardDirective,
  SoneChoiceCardIndicatorDirective,
  SoneChoiceCardTitleDirective,
  SoneChoiceGroupDirective,
} from "@surface-one/angular/choice-card";

API 参考

SoneChoiceCardDescriptionDirective指令

选择器
[soneChoiceCardDescription]

SoneChoiceCardDirective指令

选择器
[soneChoiceCard]
输入
名称类型 默认值
selectedbooleanfalse
orientation"vertical" | "horizontal""vertical"

SoneChoiceCardIndicatorDirective指令

选择器
[soneChoiceCardIndicator]

SoneChoiceCardTitleDirective指令

选择器
[soneChoiceCardTitle]

SoneChoiceGroupDirective指令

选择器
[soneChoiceGroup]
输入
名称类型 默认值
orientation"vertical" | "horizontal" | nullnull