UNPKG

v-uikit

Version:

基于 UIKit 和 Vue2 开发的界面套件

21 lines (18 loc) 374 B
export default { props: ['type'], render (h) { const attrs = {} if (this.type === 'checkbox') attrs['data-uk-button-checkbox'] = true if (this.type === 'radio') attrs['data-uk-button-radio'] = true return h('div', { class: { 'uk-button-group': true }, attrs }, this.$slots.default) } }