Socket
Socket
Sign inDemoInstall

@alicd/cone-detail

Package Overview
Dependencies
72
Maintainers
6
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @alicd/cone-detail

[组件开发文档](https://yuque.antfin-inc.com/cone/chuqrf/ic0qoe)


Version published
Maintainers
6
Created

Readme

Source

@alicd/cone-detail

组件开发文档


  • name: 详情区
  • tag_name: Detail
  • terminal: pc
  • category: detail
  • scene: common

符合 Rookie 设计标准的详情展示组件。

规则

API

Detail

属性说明类型默认值
className自定义 classstringN/A
style自定义内联样式objectN/A
column设置详情区的列数number3
labelAlign决定标题的位置,位于内容左边(水平布局)还是上边(垂直布局)"top""left""top"
labelTextAlign标签文字的对齐方式"left""right""center"left
wrapperTextAlign内容区域文字的对齐方式"left""right""center"left
labelCollabel 标签布局,通 <Col> 组件,设置 span、offset 值,如 {span: 8, offset: 16},该项仅在 labelAlignleft 时有效objectN/A
wrapperCol设置内容项的样式,用法同 labelColobjectN/A
dataSource允许从数据源中获取详情内容数据objectN/A
title整个详情区域的标题ReactNode默认为空
columnSpans自定义列宽,如需要 4 列按 4:6:6:8 分布,则设置为 [4, 6, 6, 8]number[]默认所有列的宽度相等
direction设置放置 Detail.Item 的顺序,为 "ver" 则第二个 Item 在第一个 Item 下方,为 "hoz" 则第二个 Item 在第一个 Item 右方。"ver""hoz""hoz"

Detail.Item

属性说明类型默认值
className自定义 classstringN/A
style自定义内联样式objectN/A
label该详情项的标题ReactNodeN/A
labelAlign决定标题的位置,位于内容左边(水平布局)还是上边(垂直布局)"top""left"默认为 Detail 组件的 labelAlign 属性。
labelTextAlign标签文字的对齐方式"left""right""center"默认为 Detail 组件的 labelTextAlign 属性
wrapperTextAlign内容区域文字的对齐方式"left""right""center"默认为 Detail 组件的 wrapperTextAlign 属性
labelCollabel 标签布局,通 <Col> 组件,设置 span、offset 值,如 {span: 8, offset: 16},该项仅在 labelAlignleft 时有效object默认为 Detail 组件的 labelCol 属性
wrapperCol设置内容项的样式,用法同 labelColobject默认为 Detail 组件的 wrapperCol 属性
dataIndex在使用 dataSource 时,指定该项对应的字段stringN/A
render自定义内容渲染逻辑(value: any, dataIndex: string, dataSource: object) => Element默认直接返回 value

Detail.Placeholder

Detail 组件默认情况下将所有子元素项目从左到右、从上到下排布。有时出于设计需要,会存在若干空白的单元格,此时可使用 Placeholder 元素占位。

Keywords

FAQs

Last updated on 04 Jun 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc