refactor: use v-slot shorthand instead of deprecated scoped-slot

This commit is contained in:
Justineo 2021-09-20 23:58:04 +08:00
parent 1f175a1702
commit 28459eaa42
No known key found for this signature in database
GPG Key ID: B73F0979CF18A0EA
8 changed files with 16 additions and 16 deletions

View File

@ -7,7 +7,7 @@
Press any key to continue... Press any key to continue...
</veui-alert> </veui-alert>
<veui-alert type="warning"> <veui-alert type="warning">
<code>scope</code> is deprecated. Use <code>slot-scope</code> instead. <code>slot-scope</code> is deprecated. Use <code>v-slot</code> instead.
</veui-alert> </veui-alert>
<veui-alert <veui-alert
type="error" type="error"

View File

@ -4,7 +4,7 @@
title="Browsers" title="Browsers"
:datasource="browsersDatasource" :datasource="browsersDatasource"
> >
<template slot-scope="{ items }"> <template #default="{ items }">
<div <div
v-for="item in items" v-for="item in items"
v-show="!item.hidden" v-show="!item.hidden"

View File

@ -63,7 +63,7 @@
width="160" width="160"
align="right" align="right"
> >
<template slot-scope="{ bid }"> <template #default="{ bid }">
{{ bid | currency }} {{ bid | currency }}
</template> </template>
<template #foot> <template #foot>
@ -75,7 +75,7 @@
title="Last updated" title="Last updated"
align="center" align="center"
> >
<template slot-scope="{ id, updateDate }"> <template #default="{ id, updateDate }">
<span :ref="`time-a-${id}`">{{ updateDate | date }}</span> <span :ref="`time-a-${id}`">{{ updateDate | date }}</span>
<veui-tooltip :target="`time-a-${id}`"> <veui-tooltip :target="`time-a-${id}`">
{{ updateDate | time }} {{ updateDate | time }}
@ -87,7 +87,7 @@
field="operation" field="operation"
title="Opertaions" title="Opertaions"
> >
<template slot-scope="{ index }"> <template #default="{ index }">
<veui-button <veui-button
ui="text" ui="text"
@click="del(index)" @click="del(index)"

View File

@ -41,7 +41,7 @@
width="160" width="160"
align="right" align="right"
> >
<template slot-scope="{ bid }"> <template #default="{ bid }">
{{ bid | currency }} {{ bid | currency }}
</template> </template>
</veui-table-column> </veui-table-column>
@ -50,7 +50,7 @@
title="Last updated" title="Last updated"
align="center" align="center"
> >
<template slot-scope="{ updateDate }"> <template #default="{ updateDate }">
{{ updateDate | date }} {{ updateDate | date }}
</template> </template>
</veui-table-column> </veui-table-column>
@ -58,7 +58,7 @@
field="operation" field="operation"
title="Operations" title="Operations"
> >
<template slot-scope="{ index }"> <template #default="{ index }">
<veui-button <veui-button
ui="text" ui="text"
@click="remove(index)" @click="remove(index)"

View File

@ -20,7 +20,7 @@
width="160" width="160"
align="right" align="right"
> >
<template slot-scope="{ bid }"> <template #default="{ bid }">
{{ bid | currency }} {{ bid | currency }}
</template> </template>
<template #desc="{ close }"> <template #desc="{ close }">

View File

@ -20,7 +20,7 @@
width="160" width="160"
align="right" align="right"
> >
<template slot-scope="{ bid }"> <template #default="{ bid }">
{{ bid | currency }} {{ bid | currency }}
</template> </template>
</veui-table-column> </veui-table-column>
@ -29,7 +29,7 @@
title="Last updated" title="Last updated"
align="center" align="center"
> >
<template slot-scope="{ updateDate }"> <template #default="{ updateDate }">
{{ updateDate | date }} {{ updateDate | date }}
</template> </template>
</veui-table-column> </veui-table-column>

View File

@ -29,7 +29,7 @@
width="160" width="160"
align="right" align="right"
> >
<template slot-scope="{ bid }"> <template #default="{ bid }">
{{ bid | currency }} {{ bid | currency }}
</template> </template>
</veui-table-column> </veui-table-column>
@ -39,7 +39,7 @@
align="center" align="center"
width="200" width="200"
> >
<template slot-scope="{ updateDate }"> <template #default="{ updateDate }">
{{ updateDate | date }} {{ updateDate | date }}
</template> </template>
</veui-table-column> </veui-table-column>
@ -49,7 +49,7 @@
width="140" width="140"
fixed="right" fixed="right"
> >
<template slot-scope="{ index }"> <template #default="{ index }">
<veui-button <veui-button
ui="text" ui="text"
@click="remove(index)" @click="remove(index)"

View File

@ -20,7 +20,7 @@
width="160" width="160"
align="right" align="right"
> >
<template slot-scope="{ bid }"> <template #default="{ bid }">
{{ bid | currency }} {{ bid | currency }}
</template> </template>
</veui-table-column> </veui-table-column>
@ -29,7 +29,7 @@
title="Last updated" title="Last updated"
align="center" align="center"
> >
<template slot-scope="{ updateDate }"> <template #default="{ updateDate }">
{{ updateDate | date }} {{ updateDate | date }}
</template> </template>
</veui-table-column> </veui-table-column>