@caido-utils/components 0.2.3 → 0.3.0

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.
@@ -4,6 +4,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_With
4
4
  field: string;
5
5
  header: string;
6
6
  sortable?: boolean;
7
+ style?: Record<string, string>;
7
8
  }[];
8
9
  rowHeight?: number;
9
10
  selectable?: boolean | "single" | "multiple";
@@ -21,6 +22,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_With
21
22
  field: string;
22
23
  header: string;
23
24
  sortable?: boolean;
25
+ style?: Record<string, string>;
24
26
  }[];
25
27
  rowHeight?: number;
26
28
  selectable?: boolean | "single" | "multiple";
@@ -21,6 +21,7 @@ type ColumnDef = {
21
21
  field: string;
22
22
  header: string;
23
23
  sortable?: boolean;
24
+ style?: Record<string, string>;
24
25
  };
25
26
 
26
27
  const props = withDefaults(
@@ -228,7 +229,7 @@ const columnPt = {
228
229
  },
229
230
  bodyCell: {
230
231
  class:
231
- "px-2.5 py-0.5 font-mono text-sm font-semibold overflow-hidden text-ellipsis whitespace-nowrap !border-surface-700/50",
232
+ "px-2.5 py-0.5 font-mono text-sm font-normal overflow-hidden text-ellipsis whitespace-nowrap !border-surface-700/50",
232
233
  },
233
234
  };
234
235
  </script>
@@ -270,7 +271,7 @@ const columnPt = {
270
271
  :field="col.field"
271
272
  :header="col.header"
272
273
  :sortable="col.sortable"
273
- :style="{ height: `${props.rowHeight}px` }"
274
+ :style="{ height: `${props.rowHeight}px`, ...col.style }"
274
275
  :pt="columnPt"
275
276
  >
276
277
  <template v-if="col.sortable" #sorticon="{ sorted, sortOrder }">
@@ -4,6 +4,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_With
4
4
  field: string;
5
5
  header: string;
6
6
  sortable?: boolean;
7
+ style?: Record<string, string>;
7
8
  }[];
8
9
  rowHeight?: number;
9
10
  selectable?: boolean | "single" | "multiple";
@@ -21,6 +22,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_With
21
22
  field: string;
22
23
  header: string;
23
24
  sortable?: boolean;
25
+ style?: Record<string, string>;
24
26
  }[];
25
27
  rowHeight?: number;
26
28
  selectable?: boolean | "single" | "multiple";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caido-utils/components",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"