Skip to content

Commit

Permalink
fix: Correct spelling of words(aciton →action)
Browse files Browse the repository at this point in the history
  • Loading branch information
one-zen committed Oct 17, 2022
1 parent c2ca2d7 commit eb405b2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/views/Authorization/Role.vue
Expand Up @@ -71,7 +71,7 @@ const getTableList = async (params?: Params) => {
getTableList()
const acitonFn = (data: TableSlotDefault) => {
const actionFn = (data: TableSlotDefault) => {
console.log(data)
}
</script>
Expand All @@ -80,7 +80,7 @@ const acitonFn = (data: TableSlotDefault) => {
<ContentWrap :title="t('userDemo.title')" :message="t('userDemo.message')">
<Table :columns="columns" :data="tableDataList" :loading="loading" :selection="false">
<template #action="data">
<ElButton type="primary" @click="acitonFn(data as TableSlotDefault)">
<ElButton type="primary" @click="actionFn(data as TableSlotDefault)">
{{ t('tableDemo.action') }}
</ElButton>
</template>
Expand Down
4 changes: 2 additions & 2 deletions src/views/Authorization/User.vue
Expand Up @@ -71,7 +71,7 @@ const getTableList = async (params?: Params) => {
getTableList()
const acitonFn = (data: TableSlotDefault) => {
const actionFn = (data: TableSlotDefault) => {
console.log(data)
}
</script>
Expand All @@ -80,7 +80,7 @@ const acitonFn = (data: TableSlotDefault) => {
<ContentWrap :title="t('userDemo.title')" :message="t('userDemo.message')">
<Table :columns="columns" :data="tableDataList" :loading="loading" :selection="false">
<template #action="data">
<ElButton type="primary" @click="acitonFn(data as TableSlotDefault)">
<ElButton type="primary" @click="actionFn(data as TableSlotDefault)">
{{ t('tableDemo.action') }}
</ElButton>
</template>
Expand Down
4 changes: 2 additions & 2 deletions src/views/Components/Table/DefaultTable.vue
Expand Up @@ -83,7 +83,7 @@ const getTableList = async (params?: Params) => {
getTableList()
const acitonFn = (data: TableSlotDefault) => {
const actionFn = (data: TableSlotDefault) => {
console.log(data)
}
</script>
Expand All @@ -92,7 +92,7 @@ const acitonFn = (data: TableSlotDefault) => {
<ContentWrap :title="t('tableDemo.table')" :message="t('tableDemo.tableDes')">
<Table :columns="columns" :data="tableDataList" :loading="loading">
<template #action="data">
<ElButton type="primary" @click="acitonFn(data as TableSlotDefault)">
<ElButton type="primary" @click="actionFn(data as TableSlotDefault)">
{{ t('tableDemo.action') }}
</ElButton>
</template>
Expand Down
4 changes: 2 additions & 2 deletions src/views/Components/Table/RefTable.vue
Expand Up @@ -80,7 +80,7 @@ getList()
const tableRef = ref<TableExpose>()
const acitonFn = (data: TableSlotDefault) => {
const actionFn = (data: TableSlotDefault) => {
console.log(data)
}
Expand Down Expand Up @@ -165,7 +165,7 @@ const selectAllNone = () => {
@register="register"
>
<template #action="data">
<ElButton type="primary" @click="acitonFn(data as TableSlotDefault)">
<ElButton type="primary" @click="actionFn(data as TableSlotDefault)">
{{ t('tableDemo.action') }}
</ElButton>
</template>
Expand Down
4 changes: 2 additions & 2 deletions src/views/Components/Table/UseTableDemo.vue
Expand Up @@ -75,7 +75,7 @@ const columns = reactive<TableColumn[]>([
}
])
const acitonFn = (data: TableSlotDefault) => {
const actionFn = (data: TableSlotDefault) => {
console.log(data)
}
Expand Down Expand Up @@ -164,7 +164,7 @@ const selectAllNone = () => {
@register="register"
>
<template #action="data">
<ElButton type="primary" @click="acitonFn(data as TableSlotDefault)">
<ElButton type="primary" @click="actionFn(data as TableSlotDefault)">
{{ t('tableDemo.action') }}
</ElButton>
</template>
Expand Down

0 comments on commit eb405b2

Please sign in to comment.