UNPKG

iep-ui

Version:

An enterprise-class UI design language and Vue-based implementation

34 lines (32 loc) 628 B
import { IepIcon } from 'rk-web-icon'; export default { props: { type: { type: String } }, methods: { handleTap: function handleTap(event) { event.stopPropagation(); event.preventDefault(); this.$emit('click'); } }, render: function render() { var _this = this; var h = arguments[0]; var type = this.$props.type; return h( 'div', { 'class': 'iep-button-icon', on: { 'click': function click(e) { return _this.handleTap(e); } } }, [h(IepIcon, { attrs: { type: type } })] ); } };