@coreui/vue-pro 4.1.3 → 4.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/smart-table/CSmartTableBody.d.ts +0 -11
- package/dist/components/smart-table/CSmartTableHead.d.ts +1 -1
- package/dist/index.es.js +2 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/smart-table/CSmartTable.ts +2 -3
- package/src/components/smart-table/CSmartTableBody.ts +0 -5
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
Several quick start options are available:
|
|
45
45
|
|
|
46
|
-
- [Download the latest release](https://github.com/coreui/coreui-vue-pro/archive/v4.1.
|
|
46
|
+
- [Download the latest release](https://github.com/coreui/coreui-vue-pro/archive/v4.1.4.zip)
|
|
47
47
|
- Clone the repo: `git clone https://github.com/coreui/coreui-vue-pro.git`
|
|
48
48
|
- Install with [npm](https://www.npmjs.com/): `npm install @coreui/vue-pro`
|
|
49
49
|
- Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/vue-pro`
|
|
@@ -20,11 +20,6 @@ declare const CSmartTableBody: import("vue").DefineComponent<{
|
|
|
20
20
|
default: undefined;
|
|
21
21
|
require: boolean;
|
|
22
22
|
};
|
|
23
|
-
columns: {
|
|
24
|
-
type: ArrayConstructor;
|
|
25
|
-
default: () => never[];
|
|
26
|
-
require: boolean;
|
|
27
|
-
};
|
|
28
23
|
rawColumnNames: {
|
|
29
24
|
type: PropType<string[]>;
|
|
30
25
|
default: () => never[];
|
|
@@ -58,11 +53,6 @@ declare const CSmartTableBody: import("vue").DefineComponent<{
|
|
|
58
53
|
default: undefined;
|
|
59
54
|
require: boolean;
|
|
60
55
|
};
|
|
61
|
-
columns: {
|
|
62
|
-
type: ArrayConstructor;
|
|
63
|
-
default: () => never[];
|
|
64
|
-
require: boolean;
|
|
65
|
-
};
|
|
66
56
|
rawColumnNames: {
|
|
67
57
|
type: PropType<string[]>;
|
|
68
58
|
default: () => never[];
|
|
@@ -82,7 +72,6 @@ declare const CSmartTableBody: import("vue").DefineComponent<{
|
|
|
82
72
|
currentItems: Item[];
|
|
83
73
|
firstItemOnActivePageIndex: number;
|
|
84
74
|
noItemLabel: string;
|
|
85
|
-
columns: unknown[];
|
|
86
75
|
rawColumnNames: string[];
|
|
87
76
|
scopedSlots: Record<string, any>;
|
|
88
77
|
selectable: boolean;
|
|
@@ -81,10 +81,10 @@ declare const CSmartTableHead: import("vue").DefineComponent<{
|
|
|
81
81
|
onSortClick?: ((...args: any[]) => any) | undefined;
|
|
82
82
|
}, {
|
|
83
83
|
component: string;
|
|
84
|
-
columns: string[] | Column[];
|
|
85
84
|
selectable: boolean;
|
|
86
85
|
clearSorterAndFilter: string;
|
|
87
86
|
columnSorter: boolean | Sorter;
|
|
87
|
+
columns: string[] | Column[];
|
|
88
88
|
sorterState: SorterValue;
|
|
89
89
|
}>;
|
|
90
90
|
export { CSmartTableHead };
|
package/dist/index.es.js
CHANGED
|
@@ -8550,11 +8550,6 @@ const CSmartTableBody = defineComponent({
|
|
|
8550
8550
|
default: undefined,
|
|
8551
8551
|
require: false,
|
|
8552
8552
|
},
|
|
8553
|
-
columns: {
|
|
8554
|
-
type: Array,
|
|
8555
|
-
default: () => [],
|
|
8556
|
-
require: true,
|
|
8557
|
-
},
|
|
8558
8553
|
rawColumnNames: {
|
|
8559
8554
|
type: Array,
|
|
8560
8555
|
default: () => [],
|
|
@@ -9668,7 +9663,7 @@ const CSmartTable = defineComponent({
|
|
|
9668
9663
|
...props.tableHeadProps,
|
|
9669
9664
|
columnFilter: props.columnFilter,
|
|
9670
9665
|
columnFilterValue: columnFilterState.value,
|
|
9671
|
-
columns: rawColumnNames.value,
|
|
9666
|
+
columns: props.columns ? props.columns : rawColumnNames.value,
|
|
9672
9667
|
columnSorter: props.columnSorter,
|
|
9673
9668
|
selectable: props.selectable,
|
|
9674
9669
|
selectAll: selectedAll.value,
|
|
@@ -9715,7 +9710,6 @@ const CSmartTable = defineComponent({
|
|
|
9715
9710
|
currentItems: currentItems.value,
|
|
9716
9711
|
firstItemOnActivePageIndex: firstItemOnActivePageIndex.value,
|
|
9717
9712
|
noItemsLabel: props.noItemsLabel,
|
|
9718
|
-
columns: rawColumnNames.value,
|
|
9719
9713
|
scopedSlots: slots,
|
|
9720
9714
|
selectable: props.selectable,
|
|
9721
9715
|
onRowChecked: (id, value) => handleRowChecked(id, value),
|
|
@@ -9730,7 +9724,7 @@ const CSmartTable = defineComponent({
|
|
|
9730
9724
|
...props.tableFootProps,
|
|
9731
9725
|
columnFilter: false,
|
|
9732
9726
|
columnSorter: false,
|
|
9733
|
-
columns: rawColumnNames.value,
|
|
9727
|
+
columns: props.columns ? props.columns : rawColumnNames.value,
|
|
9734
9728
|
selectable: props.selectable,
|
|
9735
9729
|
selectAll: selectedAll.value,
|
|
9736
9730
|
onFilterInput: (key, value) => columnFilterChange(key, value, 'input'),
|