Icon
Demos
abstract
align-center
align-left
align-right
anticlockwise
apps
apps-settings
arrow-down
arrow-left
arrow-right
arrow-to-bottom
arrow-to-top
arrow-up
asterisk
attribute
audio
background
bar-chart
bar-chart-alt
bell
bold
book
bookmark
books-bookmark
bullseye
bullseye-hit
calendar
camera
caret-down
caret-left
caret-right
caret-up
cellphone
chat
check
check-circle
check-circle-solid
check-desktop
check-square
check-square-solid
chevron-double-down
chevron-double-left
chevron-double-right
chevron-double-up
chevron-down
chevron-left
chevron-right
chevron-right-circle
chevron-right-circle-solid
chevron-up
circle-extend
clock
clockwise
cny-circle
coin
color-palette
compass
component
copy
crop
cut
data
data-market
database
desktop
double-circle
download
edit
element
ellipsis
ellipsis-circle
ellipsis-vertical
envelope
exclamation-circle
exclamation-circle-solid
expand
expand-square
external-link
eye
eye-bright
eye-slash
feed
file
file-add
file-edit
file-error
filter
filter-solid
flag
folder
folder-open
gateway
gift
hamburger
headphones
heart
heart-cancel
heart-solid
hierarchy
home
id-card
id-card-back
image
image-add
indent
info-circle
info-circle-solid
intelligence
italic
layer
line-chart
link
link-alt
loading
location
location-copy
lock
long-video
market
media-add
mini-app-baidu
minimize
minus
minus-circle
mobile-app
motion-graphics
move
music
mute
one-repl-expand
one-repl-shrink
one-to-one
order
outdent
outstanding
paper-clip
paper-plane
pause
pause-circle
pencil
play
play-circle
plus
plus-circle
plus-square
plus-square-solid
power-off
puzzle-piece
pv-shield
qrcode
question-circle
question-circle-solid
question-comment
recommendation
redo
report
report-check
road
save
scan
search
search-desktop
search-history
settings
share
shopping-bag
short-video
shrink
sign-out
sliders-square
sort
sort-alt
sort-asc
sort-desc
square-rotation
star
star-solid
stop
strikethrough
sync
tag
telephone
template
text-square
thumb-down
thumb-down-solid
thumb-up
thumb-up-solid
times
times-circle
times-circle-solid
toolbox
trash
trend-desktop
trend-monitor
trend-pages
underline
undo
unlock
upload
upload-desktop
user
user-bookmark
user-circle
user-combined
user-filter
user-intersection
user-label
user-mobile
user-search
user-sync
user-tieba
video
video-add
volume
whirlpool
zoom-in
zoom-out
<template>
<article>
<div
v-for="name in names"
:key="name"
class="item"
>
<div class="icon">
<veui-icon :name="name"/>
</div>
<div class="name">
{{ name }}
</div>
</div>
</article>
</template>
<script>
import { Icon } from 'veui'
import 'veui-theme-dls-icons'
export default {
components: {
'veui-icon': Icon
},
data () {
return {
names: Object.keys(Icon.icons)
.filter(name => !name.startsWith('one-demo-') && Icon.icons[name])
.sort()
}
}
}
</script>
<style lang="less" scoped>
article {
overflow: hidden;
}
.item {
@grid-size: 120px;
float: left;
width: @grid-size;
height: calc(@grid-size + 3em);
text-align: center;
margin: 1em 2em;
.icon {
width: @grid-size;
height: @grid-size;
border: 1px solid transparent;
font-size: 1.5em;
line-height: @grid-size;
border-radius: 4px;
transition: border-color 0.2s;
&:hover {
border-color: #ccc;
}
}
.name {
margin-top: 0.6em;
color: #333;
font-size: 0.8em;
white-space: nowrap;
}
}
</style>
API
Props
Name | Type | Default | Description |
---|---|---|---|
name | string | Object | - | The name of the icon or its component definition. |
label | string | - | The descriptive label for the icon, which is accessible to assistive devices. The icon is hidden for assistive devices if label doesn't exist. |
scale | number | - | The size scale of the icon. Doesn't scale by default. |
spin | boolean | false | Whether the icon should be spinning. |
pulse | boolean | false | Whether the icon should be pulsing. |
inverse | boolean | false | Whether to inverse the color. (Having a white foreground to be used against dark backgrounds.) |
flip | string | - | How to flip an icon. Can be either 'horizontal' or 'vertical' . |
Slots
Name | Description |
---|---|
default | Can be used to implement a stacked icon. The embedded Icon components will be stacked together, being centered. The wrapper Icon doesn't require the name prop. |