Skip to content

Commit 5ccec4c

Browse files
committed
Vue 3
1 parent 293b083 commit 5ccec4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/resources/views/admin/index.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44

55
@section('content')
66
<item-list url-base="/api/things" fields="id,image_id,status,title" table="things" title="things" include="image" :exportable="true" :searchable="['title']" :sorting="['title_translated']">
7-
<template slot="add-button" v-if="$can('create things')">
7+
<template #add-button v-if="$can('create things')">
88
@include('core::admin._button-create', ['module' => 'things'])
99
</template>
1010

11-
<template slot="columns" slot-scope="{ sortArray }">
11+
<template #columns="{ sortArray }">
1212
<item-list-column-header name="checkbox" v-if="$can('update things')||$can('delete things')"></item-list-column-header>
1313
<item-list-column-header name="edit" v-if="$can('update things')"></item-list-column-header>
1414
<item-list-column-header name="status_translated" sortable :sort-array="sortArray" :label="$t('Status')"></item-list-column-header>
1515
<item-list-column-header name="image" :label="$t('Image')"></item-list-column-header>
1616
<item-list-column-header name="title_translated" sortable :sort-array="sortArray" :label="$t('Title')"></item-list-column-header>
1717
</template>
1818

19-
<template slot="table-row" slot-scope="{ model, checkedModels, loading }">
19+
<template #table-row="{ model, checkedModels, loading }">
2020
<td class="checkbox" v-if="$can('update things')||$can('delete things')">
2121
<item-list-checkbox :model="model" :checked-models-prop="checkedModels" :loading="loading"></item-list-checkbox>
2222
</td>

0 commit comments

Comments
 (0)