通過vue元件化方式實現常見動態圖示

Guoch發表於2018-01-19

vue-dynatic-icon

one dynamic icon by vue

show it online: vue-dynatic-icon

通過vue元件化方式實現常見動態圖示

Build Setup


// install dependencies
npm install

// serve with hot reload at localhost:8080
npm run dev

// build for production with minification
npm run build

複製程式碼

example:

<template>
    <div>
        <setting></setting>
    </div>
</templage>

<script>
  ...
  import setting from "vue-dynatic-icon"
  ...
  
  export default{
      data() {},
      components:{
        setting
      }
  }
  
</script>
複製程式碼

相關文章