auto-auth.js
361 Bytes
export default {
name: 'AutoAuth',
functional: true,
props: {
tag: {
type: String,
default: 'dev'
}
},
render(h, { scopedSlots, props, data, parent }) {
return h(props.props, {
'!click': this.onClick
}, [h(scopedSlots.defaults(), data)]);
},
methods: {
onClick() {
console.log('on-click');
}
}
};