Skip to content

Sources 引用来源

展示引用的数据来源地址。

何时使用

  • 在联网搜索模式下展示引用的数据来源地址。

代码演示

基本

基础用法。

已参考 3 篇资料

展开

受控展开。

已参考 2 篇资料

API

SourcesProps

属性说明类型默认值
title标题内容VNode | string-
items来源内容SourcesItem[]-
expandIconPosition折叠图标位置'start' | 'end''start'
defaultExpanded默认是否展开booleantrue
expanded是否展开boolean-
onExpand展开事件(expand: boolean) => void-
onClick点击事件(item: SourcesItem) => void-
inline行内模式booleanfalse
activeKey行内模式激活 keystring | number-
popoverOverlayWidth弹出层宽度number | string300
ts
interface SourcesItem {
  key?: string | number
  title: VNode | string
  url?: string
  icon?: VNode | string
  description?: VNode | string
}

贡献者

贡献者

正在加载贡献者信息...