Socket
Book a DemoInstallSign in
Socket

rox-list

Package Overview
Dependencies
Maintainers
4
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rox-list

--- subtitle: 列表 group: Layout category: chinese: 列表容器 ---

latest
npmnpm
Version
0.0.36
Version published
Maintainers
4
Created
Source

subtitle: 列表 group: Layout category: chinese: 列表容器

List

Guide

列表容器以一致的格式来显示一组相关的内容,为一致性的类型或者一组内容指定优先顺序来体现层次感以获取更好的可读性。

API

参数说明类型默认值
type类型: normal 普通类型; href: 带连接; select 点击可选择stringnormal
title标题string
titleAfterEle标题描述角标elementnull
href链接只有当type为href时才会生效string
thumb左侧图标string
thumbHeight左侧图标的高度number30
brief辅助描述信息,可理解为副标题,辅助信息,可接受字符串或者rax elementstring或element
rightEle自定义右侧内容,支持string或者elementstring或element
isSelect是否默认选中,type为select时生效boolfalse
disabled是否为disable状态(不可点击不可跳转)boolfalse
hasBorder是否显示底边线booltrue
clickHandle点击Item时,会传递给List父回调函数(便于统一处理Item点击)function(item, e)noop

Keywords

rox

FAQs

Package last updated on 06 Jul 2018

Did you know?

Socket

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