# Icon 图标组件

提示

本组件使用的是自制图标字体库,有关所有可用图标,请访问 YL-ICONS (opens new window)

# 基础用法

  • check_order

  • running_order

  • sign_order

  • start_order

  • summary_order

  • verify_order

  • complete_order

  • finish_order

  • control_system

  • power_management

  • power_station

  • pv_monitor

  • pv

  • turbine_monitor

  • weather_station

  • wind_farm

示例

<template>
  <div>
    <ul class="icon-list">
      <li
        v-for="(icon, index) in icons"
        :key="index"
      >
        <yl-icon
          size="32px"
          :icon="icon"
        />
        <p>{{ icon }}</p>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      icons: [
        'check_order',
        'running_order',
        'sign_order',
        'start_order',
        'summary_order',
        'verify_order',
        'complete_order',
        'finish_order',
        'control_system',
        'power_management',
        'power_station',
        'pv_monitor',
        'pv',
        'turbine_monitor',
        'weather_station',
        'wind_farm'
      ]
    }
  }
}
</script>


<style>
.icon-list {
  display: flex;
  flex-flow: wrap;
}

.icon-list li{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
}

.icon-list li p {
  font-size: 14px;
  font-weight: 800;
  margin-top: 4px;
}
</style>
显示代码 复制代码

# Attribute

参数 类型 说明 可选值 默认值
icon string 图标 例如:check_order --
size string 图标大小 rgb(255, 222, 222) / red / #333333 --
最后更新时间: 2021-3-19 10:00:04