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
8 changed files with 16 additions and 16 deletions

View File

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