UNPKG

kui-vue

Version:

A high quality UI Toolkit built on Vue.js 2.0

27 lines (26 loc) 443 B
export default { name: 'ImageGroup', provide() { return { ImageGroup: this, } }, data() { return { data: [] } }, methods: { updateCollection(mount, src) { if (mount) { this.data.push(src) } else { let index = this.data.indexOf(src) this.data.splice(index, 1) } } }, render() { return <div class="k-image-group">{this.$slots.default}</div> } }