New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@ldesign/docs-desktop

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ldesign/docs-desktop

latest
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

title: Tag 标签 description: 用于标记关键词和概括主要内容。 isComponent: true usage: { title: '', description: '' } spline: message author: swimly

基本用法

通过contentdefault可设置标签的文本内容,支持插槽和属性设置。

提示:还支持函数返回组件,仅在jsx下生效

{{ base }}

不同主题

通过theme可设置不同颜色的标签,可选:primarywarningsuccessdangerdefault,默认为:default

{{ theme }}

不同形式

通过variant可设置不同形式的标签,适用所有颜色主题。

{{ variant }}

不同形状

通过shape可设置不同形状的标签,主要用来控制圆角,可选:roundmark

{{ shape }}

不同大小

通过size可设置标签的大小,可选:smallmediumlarge,默认为:medium

{{ size }}

带图标

通过icon属性或者插槽可设置标签前面的图标,仅做装饰作用。

{{ icon }}

超出省略

通过max-width属性可设置标签的最大宽度,当超出此宽度的时候会自动省略。

{{ ellipsis }}

可编辑

通过设置closable属性,让标签可编辑,这时候标签后面会出现一个关闭图标,点击的时候会触发close事件。

{{ editable }}

FAQs

Package last updated on 11 Nov 2022

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