Answer the question
In order to leave comments, you need to log in
How in this component to set a class at the top level?
Vue.component('v-dropdown-list', {
render(h) {
const items = this.$slots.default;
return h('div', [
items.slice(0, this.minShow),
h('div', {
ref: 'dropdown',
attrs: {
style: `overflow: hidden; transition: height ${this.duration}ms`
},
}, items.slice(this.minShow)),
]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question