import Routeable from '@/mixins/routable' ; import mixins from '@/utils/mixins' ; export default mixins ( Routeable ) . extend ( { name : 'w-grid-item' , methods : { onClick ( ) { this . $emit ( 'click' ) ; this . routeLink ( ) ; } , } , render ( ) { return ( < div class = "weui-grid" onClick = { ( ) => { this . onClick ( ) ; } } > { this . $slots . icon && < div class = "weui-grid__icon" > { this . $slots . icon } < /div>} { this . $slots . label && < p class = "weui-grid__label" > { this . $slots . label } < /p>} { this . $slots . default } < /div>); } , } ) ;