@acarat/vue-grouped-table 中文文档教程
vue-grouped-table
Usage
Install
npm install @acarat/vue-grouped-table
Import the component
import { GroupedTable } from "@acarat/vue-grouped-table";
Use the component in your Vue project
<GroupedTable :headers="[
'city',
'name',
'age',
'genre'
]"
:entries="[
{ city: 'Dublin', name: 'Antoine', age: 23, genre: 'M' },
{ city: 'Dublin', name: 'Margaux', age: 24, genre: 'F' },
{ city: 'Nantes', name: 'Mattis', age: 23, genre: 'M' },
{ city: 'Nantes', name: 'Hugo', age: 24, genre: 'M' },
{ city: 'Nantes', name: 'Laurie', age: 23, genre: 'F' },
{ city: 'Marrakech', name: 'Amr', age: 25, genre: 'M' }
]"
/>
Props
headers
headers 必须是包含表头的数组,即数据分组所依据的属性。
entries
条目是原始数据本身,必须是对象数组。
vue-grouped-table
Usage
Install
npm install @acarat/vue-grouped-table
Import the component
import { GroupedTable } from "@acarat/vue-grouped-table";
Use the component in your Vue project
<GroupedTable :headers="[
'city',
'name',
'age',
'genre'
]"
:entries="[
{ city: 'Dublin', name: 'Antoine', age: 23, genre: 'M' },
{ city: 'Dublin', name: 'Margaux', age: 24, genre: 'F' },
{ city: 'Nantes', name: 'Mattis', age: 23, genre: 'M' },
{ city: 'Nantes', name: 'Hugo', age: 24, genre: 'M' },
{ city: 'Nantes', name: 'Laurie', age: 23, genre: 'F' },
{ city: 'Marrakech', name: 'Amr', age: 25, genre: 'M' }
]"
/>
Props
headers
headers must be an Array containing the headers of the table, ie the properties by which the data is grouped.
entries
entries is the raw data itself and must be an Array of Object.
更多
你可能也喜欢
- 2020315045_lab-7 中文文档教程
- @0x/contract-artifacts 中文文档教程
- @0xcap/loot-table 中文文档教程
- @11ty/eleventy-plugin-syntaxhighlight 中文文档教程
- @1f8/eslint-config-react 中文文档教程
- @36node/template-cli 中文文档教程
- @42.nl/authentication 中文文档教程
- @4geit/rct-dummy-store 中文文档教程
- @5280-giving/lcu-giving-common 中文文档教程
- @54696d654a6f6c74/html-injector 中文文档教程