@castianta/telecontrol-card

通用面板组件

Usage no npm install needed!

<script type="module">
  import castiantaTelecontrolCard from 'https://cdn.skypack.dev/@castianta/telecontrol-card';
</script>

README

test

@castianta/telecontrol-card

通用面板组件

API

参数名 说明 必填 类型 默认值 备注
pageContainer 外层面板 PageContainerProps - -
cardHeader 头部卡片 CardHeaderProps - 见下
cardMain 内容区面板 CardMainProps - 见下

CardHeaderProps

参数名 说明 必填 类型 默认值 备注
dom 内层渲染 dom React.ReactNode - -
(...ProCardProps) ProComponents 的 ProCardProps ProCardProps - -

CardMainProps

参数名 说明 必填 类型 默认值 备注
tabs 内层渲染 dom 当为null 或者不传时为普通 card 组件模式 null | ProCardTabs - -
dom 当为普通 card 时,dom 传值 React.ReactNode 类型,当为 tabs 选项卡片模式 Array React.ReactNode | {dom,...TabPaneProps}[] - -
(...ProCardProps) ProComponents 的 ProCardProps ProCardProps - -