vue 手风琴
Vue常见问题手风琴 (vue-faq-accordion)
Simple and smooth vue accordion. Perfect for your FAQ section.
简单流畅的vue手风琴。 非常适合您的常见问题解答部分。
View demo 查看演示 Download Source 下载源
安装 (Install)
npm i vue-faq-accordion
yarn add vue-faq-accordion
🚀用法 (🚀 Usage)
⚙道具 (⚙ Props)
props: {/*** Array of items* Object style {questionProperty: string, answerProperty: string, tabName: string}* You can change object keys names using other props (questionProperty, answerProperty, tabName)*/items: {type: Array,required: true},/*** Key name of object in items array for specifying title of question*/questionProperty: {type: String,default: 'title'},/*** Key name of object in items array for specifying content text of open question*/answerProperty: {type: String,default: 'value'},/*** Key name of object in items array for specifying navigation tab name*/tabName: {type: String,default: 'category'},/*** Color for hover and active tab/question* possible format: 'red', '#F00', 'rgba(255, 0, 0, 1)'*/activeColor: {type: String,default: '#D50000'},/*** Color for borders*/borderColor: {type: String,default: '#9E9E9E'},/*** Color for fonts*/fontColor: {type: String,default: '#000000'}}
翻译自: https://vuejsexamples.com/simple-and-smooth-vue-accordion/
vue 手风琴