Docs typing updates

This commit is contained in:
Tuğçe Küçükoğlu 2023-08-16 16:58:31 +03:00
parent ca65d7dfdb
commit cfc8136b25
739 changed files with 2027 additions and 3969 deletions

View file

@ -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%">