Skip to content

Icon 图标 ​

线框和实底从同一张画板拆成两枚图标,用法与 Ant Design 一样按名称取用。默认是线框。

基础用法 ​

vue
<CkIcon name="search" />
<CkIcon name="search" theme="filled" />
<CkButton type="primary">
  <CkIcon name="add" />
  新建
</CkButton>

图标列表 ​

API ​

属性说明类型默认
name图标名string—
theme线框或实底'outlined' | 'filled''outlined'
size尺寸,数字为像素number | string'1em'

颜色跟随 currentColor。只有线框、没有实底的图标,传入 theme="filled" 时仍显示线框。