content: import React from 'react'
  import Svg from 'utils/Svg'
  
  export default class SvgEnum extends React.Component {
    static propTypes = {
      name: React.PropTypes.string,
    }
  
    constructor(props) {
      super(props)
    }
  
    componentDidMount() {
      // 动态列举svg
      var svg = document.getElementById('svg')
      var symbolLists = Array.from(svg.getElementsByTagName('symbol'))
      symbolLists.map((item) => {
        this.svgLists.push(item.id.replace('icon-', ''))
      })
    }
  
    svgLists = []
  
    render() {
      return (
        <div>
          {
            this.svgLists.map((item)=>(
              <div key={item}><Svg name={item}/><div>{item}</div></div>
            ))
          }
        </div>
      )
    }
  }
  
  