mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Docs typing updates
This commit is contained in:
parent
ca65d7dfdb
commit
cfc8136b25
739 changed files with 2027 additions and 3969 deletions
|
@ -36,8 +36,7 @@ export default {
|
|||
{ field: 'price', header: 'Price' }
|
||||
],
|
||||
code: {
|
||||
basic: `
|
||||
<DataTable :value="products" editMode="cell" @cell-edit-complete="onCellEditComplete" tableClass="editable-cells-table" tableStyle="min-width: 50rem">
|
||||
basic: `<DataTable :value="products" editMode="cell" @cell-edit-complete="onCellEditComplete" tableClass="editable-cells-table" tableStyle="min-width: 50rem">
|
||||
<Column v-for="col of columns" :key="col.field" :field="col.field" :header="col.header" style="width: 25%">
|
||||
<template #body="{ data, field }">
|
||||
{{ field === 'price' ? formatCurrency(data[field]) : data[field] }}
|
||||
|
@ -52,8 +51,7 @@ export default {
|
|||
</template>
|
||||
</Column>
|
||||
</DataTable>`,
|
||||
options: `
|
||||
<template>
|
||||
options: `<template>
|
||||
<div class="card p-fluid">
|
||||
<DataTable :value="products" editMode="cell" @cell-edit-complete="onCellEditComplete" tableClass="editable-cells-table" tableStyle="min-width: 50rem">
|
||||
<Column v-for="col of columns" :key="col.field" :field="col.field" :header="col.header" style="width: 25%">
|
||||
|
@ -135,8 +133,7 @@ export default {
|
|||
padding-bottom: 0;
|
||||
}
|
||||
</style>`,
|
||||
composition: `
|
||||
<template>
|
||||
composition: `<template>
|
||||
<div class="card p-fluid">
|
||||
<DataTable :value="products" editMode="cell" @cell-edit-complete="onCellEditComplete" tableClass="editable-cells-table" tableStyle="min-width: 50rem">
|
||||
<Column v-for="col of columns" :key="col.field" :field="col.field" :header="col.header" style="width: 25%">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue