Switch to new slot syntax
This commit is contained in:
parent
9989291941
commit
e49c40cc08
|
|
@ -7,7 +7,7 @@
|
||||||
:pagination-options="tableOptions.pagination"
|
:pagination-options="tableOptions.pagination"
|
||||||
style-class="vgt-table striped"
|
style-class="vgt-table striped"
|
||||||
>
|
>
|
||||||
<template slot="table-row" slot-scope="props">
|
<template #table-row="props">
|
||||||
<span v-if="props.column.field === 'title'">
|
<span v-if="props.column.field === 'title'">
|
||||||
<strong>{{ props.formattedRow[props.column.field] }}</strong>
|
<strong>{{ props.formattedRow[props.column.field] }}</strong>
|
||||||
<div>{{ props.row.name }}</div>
|
<div>{{ props.row.name }}</div>
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
@on-search="onSearch"
|
@on-search="onSearch"
|
||||||
@on-per-page-change="onPerPageChange"
|
@on-per-page-change="onPerPageChange"
|
||||||
>
|
>
|
||||||
<template slot="table-row" slot-scope="props">
|
<template #table-row="props">
|
||||||
<span v-if="props.column.field === 'name'">
|
<span v-if="props.column.field === 'name'">
|
||||||
{{ props.formattedRow[props.column.field] }}
|
{{ props.formattedRow[props.column.field] }}
|
||||||
<a :title="$t('admin.changePlayerName')" data-test="name" @click="changeName(props.row)">
|
<a :title="$t('admin.changePlayerName')" data-test="name" @click="changeName(props.row)">
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
style-class="vgt-table striped"
|
style-class="vgt-table striped"
|
||||||
:row-style-class="rowStyleClassFn"
|
:row-style-class="rowStyleClassFn"
|
||||||
>
|
>
|
||||||
<template slot="table-row" slot-scope="props">
|
<template #table-row="props">
|
||||||
<span v-if="props.column.field === 'title'">
|
<span v-if="props.column.field === 'title'">
|
||||||
<strong>{{ props.formattedRow[props.column.field] }}</strong>
|
<strong>{{ props.formattedRow[props.column.field] }}</strong>
|
||||||
<div v-if="props.row.enabled" class="actions">
|
<div v-if="props.row.enabled" class="actions">
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
@on-search="onSearch"
|
@on-search="onSearch"
|
||||||
@on-per-page-change="onPerPageChange"
|
@on-per-page-change="onPerPageChange"
|
||||||
>
|
>
|
||||||
<template slot="table-row" slot-scope="props">
|
<template #table-row="props">
|
||||||
<span v-if="props.column.field === 'email'">
|
<span v-if="props.column.field === 'email'">
|
||||||
{{ props.formattedRow[props.column.field] }}
|
{{ props.formattedRow[props.column.field] }}
|
||||||
<a :title="$t('admin.changeEmail')" data-test="email" @click="changeEmail(props.row)">
|
<a :title="$t('admin.changeEmail')" data-test="email" @click="changeEmail(props.row)">
|
||||||
|
|
|
||||||
|
|
@ -29,15 +29,19 @@
|
||||||
:placeholder="$t('vendor.datatable.search')"
|
:placeholder="$t('vendor.datatable.search')"
|
||||||
clearable
|
clearable
|
||||||
>
|
>
|
||||||
<el-select slot="prepend" v-model="filter" class="texture-type-select">
|
<template #prepend>
|
||||||
<el-option :label="$t('general.skin')" value="skin" />
|
<el-select v-model="filter" class="texture-type-select">
|
||||||
<el-option label="Steve" value="steve" />
|
<el-option :label="$t('general.skin')" value="skin" />
|
||||||
<el-option label="Alex" value="alex" />
|
<el-option label="Steve" value="steve" />
|
||||||
<el-option :label="$t('general.cape')" value="cape" />
|
<el-option label="Alex" value="alex" />
|
||||||
</el-select>
|
<el-option :label="$t('general.cape')" value="cape" />
|
||||||
<el-button slot="append" data-test="btn-search" @click="fetchData">
|
</el-select>
|
||||||
{{ $t('general.submit') }}
|
</template>
|
||||||
</el-button>
|
<template #append>
|
||||||
|
<el-button data-test="btn-search" @click="fetchData">
|
||||||
|
{{ $t('general.submit') }}
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
:cape="type === 'cape' ? textureUrl : ''"
|
:cape="type === 'cape' ? textureUrl : ''"
|
||||||
:init-position-z="60"
|
:init-position-z="60"
|
||||||
>
|
>
|
||||||
<template slot="footer">
|
<template #footer>
|
||||||
<el-button v-if="!auth" disabled :title="$t('skinlib.show.anonymous')">
|
<el-button v-if="!auth" disabled :title="$t('skinlib.show.anonymous')">
|
||||||
{{ $t('skinlib.addToCloset') }}
|
{{ $t('skinlib.addToCloset') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@
|
||||||
<!-- Right col -->
|
<!-- Right col -->
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<previewer closet-mode :skin="skinUrl" :cape="capeUrl">
|
<previewer closet-mode :skin="skinUrl" :cape="capeUrl">
|
||||||
<template slot="footer">
|
<template #footer>
|
||||||
<button
|
<button
|
||||||
v-t="'user.useAs'"
|
v-t="'user.useAs'"
|
||||||
class="btn btn-primary"
|
class="btn btn-primary"
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@
|
||||||
:cape="capeUrl"
|
:cape="capeUrl"
|
||||||
title="user.player.player-info"
|
title="user.player.player-info"
|
||||||
>
|
>
|
||||||
<template slot="footer">
|
<template #footer>
|
||||||
<button
|
<button
|
||||||
v-t="'user.switch2dPreview'"
|
v-t="'user.switch2dPreview'"
|
||||||
class="btn btn-default"
|
class="btn btn-default"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user