fix: Correct spelling of words(aciton →action)
This commit is contained in:
parent
c2ca2d736c
commit
eb405b2a90
|
@ -71,7 +71,7 @@ const getTableList = async (params?: Params) => {
|
||||||
|
|
||||||
getTableList()
|
getTableList()
|
||||||
|
|
||||||
const acitonFn = (data: TableSlotDefault) => {
|
const actionFn = (data: TableSlotDefault) => {
|
||||||
console.log(data)
|
console.log(data)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -80,7 +80,7 @@ const acitonFn = (data: TableSlotDefault) => {
|
||||||
<ContentWrap :title="t('userDemo.title')" :message="t('userDemo.message')">
|
<ContentWrap :title="t('userDemo.title')" :message="t('userDemo.message')">
|
||||||
<Table :columns="columns" :data="tableDataList" :loading="loading" :selection="false">
|
<Table :columns="columns" :data="tableDataList" :loading="loading" :selection="false">
|
||||||
<template #action="data">
|
<template #action="data">
|
||||||
<ElButton type="primary" @click="acitonFn(data as TableSlotDefault)">
|
<ElButton type="primary" @click="actionFn(data as TableSlotDefault)">
|
||||||
{{ t('tableDemo.action') }}
|
{{ t('tableDemo.action') }}
|
||||||
</ElButton>
|
</ElButton>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -71,7 +71,7 @@ const getTableList = async (params?: Params) => {
|
||||||
|
|
||||||
getTableList()
|
getTableList()
|
||||||
|
|
||||||
const acitonFn = (data: TableSlotDefault) => {
|
const actionFn = (data: TableSlotDefault) => {
|
||||||
console.log(data)
|
console.log(data)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -80,7 +80,7 @@ const acitonFn = (data: TableSlotDefault) => {
|
||||||
<ContentWrap :title="t('userDemo.title')" :message="t('userDemo.message')">
|
<ContentWrap :title="t('userDemo.title')" :message="t('userDemo.message')">
|
||||||
<Table :columns="columns" :data="tableDataList" :loading="loading" :selection="false">
|
<Table :columns="columns" :data="tableDataList" :loading="loading" :selection="false">
|
||||||
<template #action="data">
|
<template #action="data">
|
||||||
<ElButton type="primary" @click="acitonFn(data as TableSlotDefault)">
|
<ElButton type="primary" @click="actionFn(data as TableSlotDefault)">
|
||||||
{{ t('tableDemo.action') }}
|
{{ t('tableDemo.action') }}
|
||||||
</ElButton>
|
</ElButton>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -83,7 +83,7 @@ const getTableList = async (params?: Params) => {
|
||||||
|
|
||||||
getTableList()
|
getTableList()
|
||||||
|
|
||||||
const acitonFn = (data: TableSlotDefault) => {
|
const actionFn = (data: TableSlotDefault) => {
|
||||||
console.log(data)
|
console.log(data)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -92,7 +92,7 @@ const acitonFn = (data: TableSlotDefault) => {
|
||||||
<ContentWrap :title="t('tableDemo.table')" :message="t('tableDemo.tableDes')">
|
<ContentWrap :title="t('tableDemo.table')" :message="t('tableDemo.tableDes')">
|
||||||
<Table :columns="columns" :data="tableDataList" :loading="loading">
|
<Table :columns="columns" :data="tableDataList" :loading="loading">
|
||||||
<template #action="data">
|
<template #action="data">
|
||||||
<ElButton type="primary" @click="acitonFn(data as TableSlotDefault)">
|
<ElButton type="primary" @click="actionFn(data as TableSlotDefault)">
|
||||||
{{ t('tableDemo.action') }}
|
{{ t('tableDemo.action') }}
|
||||||
</ElButton>
|
</ElButton>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -80,7 +80,7 @@ getList()
|
||||||
|
|
||||||
const tableRef = ref<TableExpose>()
|
const tableRef = ref<TableExpose>()
|
||||||
|
|
||||||
const acitonFn = (data: TableSlotDefault) => {
|
const actionFn = (data: TableSlotDefault) => {
|
||||||
console.log(data)
|
console.log(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ const selectAllNone = () => {
|
||||||
@register="register"
|
@register="register"
|
||||||
>
|
>
|
||||||
<template #action="data">
|
<template #action="data">
|
||||||
<ElButton type="primary" @click="acitonFn(data as TableSlotDefault)">
|
<ElButton type="primary" @click="actionFn(data as TableSlotDefault)">
|
||||||
{{ t('tableDemo.action') }}
|
{{ t('tableDemo.action') }}
|
||||||
</ElButton>
|
</ElButton>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -75,7 +75,7 @@ const columns = reactive<TableColumn[]>([
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|
||||||
const acitonFn = (data: TableSlotDefault) => {
|
const actionFn = (data: TableSlotDefault) => {
|
||||||
console.log(data)
|
console.log(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ const selectAllNone = () => {
|
||||||
@register="register"
|
@register="register"
|
||||||
>
|
>
|
||||||
<template #action="data">
|
<template #action="data">
|
||||||
<ElButton type="primary" @click="acitonFn(data as TableSlotDefault)">
|
<ElButton type="primary" @click="actionFn(data as TableSlotDefault)">
|
||||||
{{ t('tableDemo.action') }}
|
{{ t('tableDemo.action') }}
|
||||||
</ElButton>
|
</ElButton>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue