@naptics/vue-collection 0.2.10 → 0.2.11
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/components/NTable.d.ts +4 -0
- package/components/NTable.js +1 -1
- package/package.json +1 -1
package/components/NTable.d.ts
CHANGED
|
@@ -43,6 +43,10 @@ export type TableRow = Record<string, TableItem> & {
|
|
|
43
43
|
* This classes will be applied to the whole table row.
|
|
44
44
|
*/
|
|
45
45
|
rowClass?: string;
|
|
46
|
+
/**
|
|
47
|
+
* This classes will be applied to the whole details section of the row.
|
|
48
|
+
*/
|
|
49
|
+
detailsClass?: string;
|
|
46
50
|
};
|
|
47
51
|
export declare const nTableProps: {
|
|
48
52
|
/**
|
package/components/NTable.js
CHANGED
|
@@ -99,7 +99,7 @@ const Component = createComponent('NTable', nTableProps, props => {
|
|
|
99
99
|
"icon": isDetailsOpen(itemIndex) ? ChevronDownIcon : ChevronUpIcon,
|
|
100
100
|
"onClick": () => toggleDetailsOpen(itemIndex)
|
|
101
101
|
}, null)])]))])]), showDetails.value && isDetailsOpen(itemIndex) && _createVNode("tbody", {
|
|
102
|
-
"class": itemIndex % 2 === 0 ? 'bg-white' : 'bg-default-50'
|
|
102
|
+
"class": [itemIndex % 2 === 0 ? 'bg-white' : 'bg-default-50', item.detailsClass]
|
|
103
103
|
}, [details.value.map((detail, detailIndex) => _createVNode("tr", {
|
|
104
104
|
"key": `detail-${detailIndex}`
|
|
105
105
|
}, [_createVNode("td", {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@naptics/vue-collection",
|
|
3
3
|
"author": "Timo Siegenthaler",
|
|
4
4
|
"description": "Vue Collection is a collection of styled and fully functional Vue components which can easily be integrated into our projects.",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.11",
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|