hailin
2023-07-19 7b230899435f64c2191af136d8d43e273eb19d70
src/layout/components/Sidebar/Item.vue
@@ -3,6 +3,10 @@
  name: 'MenuItem',
  functional: true,
  props: {
    // show: {
    //   type: Boolean,
    //   default: true
    // },
    icon: {
      type: String,
      default: ''
@@ -15,7 +19,9 @@
  render(h, context) {
    const { icon, title } = context.props
    const vnodes = []
    // console.log(show)
    // if (!show) return
    console.log(icon, title)
    if (icon) {
      if (icon.includes('el-icon')) {
        vnodes.push(<i class={[icon, 'sub-el-icon']} />)