UNPKG

vue-ant-patterns

Version:

vue-ant-patterns

32 lines (28 loc) 647 B
import PropTypes from 'ant-design-vue/es/_util/vue-types'; var LogoBox = { name: 'DLogoBox', props: { prefixCls: PropTypes.string.def('depot-logo-box'), link: PropTypes.string.def('/'), title: PropTypes.string }, render: function render() { var h = arguments[0]; var prefixCls = this.prefixCls, link = this.link, title = this.title; var props = { 'class': prefixCls, props: {}, attrs: { href: link, title: title } }; return h('a', props); } }; LogoBox.install = function (Vue) { Vue.component(LogoBox.name, LogoBox); }; export default LogoBox;