Skip to content

Commit 37fb9fc

Browse files
committed
chore: rename CTable component to CDataTable
1 parent fea4577 commit 37fb9fc

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/components/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ export declare class CSwitch extends Vue {
557557
type: string
558558
}
559559

560-
export declare class CTable extends Vue {
560+
export declare class CDataTable extends Vue {
561561
items: Array<any>
562562
fields: Array<any>
563563
itemsPerPage: number

src/components/table/CTable.vue renamed to src/components/table/CDataTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ import { arrowTop, ban } from '@coreui/icons'
213213
const CIcon = Object.assign({}, CIconRaw, { icons : { arrowTop, ban }})
214214
215215
export default {
216-
name: 'CTable',
216+
name: 'CDataTable',
217217
components: {
218218
CPagination,
219219
CSpinner,

src/components/table/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import CTable from './CTable'
1+
import CDataTable from './CDataTable'
22

33
export {
4-
CTable
4+
CDataTable
55
}

src/components/table/tests/CTable.spec.js renamed to src/components/table/tests/CDataTable.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { mount } from '@vue/test-utils'
2-
import Component from '../CTable'
2+
import Component from '../CDataTable'
33

4-
const ComponentName = 'CTable'
4+
const ComponentName = 'CDataTable'
55
const defaultWrapper = mount(Component)
66

77
const items = [

src/components/table/tests/__snapshots__/CTable.spec.js.snap renamed to src/components/table/tests/__snapshots__/CDataTable.spec.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`CTable renders correctly 1`] = `
3+
exports[`CDataTable renders correctly 1`] = `
44
<div>
55
<!---->
66
@@ -68,7 +68,7 @@ exports[`CTable renders correctly 1`] = `
6868
</div>
6969
`;
7070

71-
exports[`CTable renders correctly 2`] = `
71+
exports[`CDataTable renders correctly 2`] = `
7272
<div>
7373
<div
7474
class="row my-2 mx-0"

0 commit comments

Comments
 (0)