diff --git a/src/components/VnTable/VnChip.vue b/src/components/VnTable/VnChip.vue index 74207b943..f70ba7423 100644 --- a/src/components/VnTable/VnChip.vue +++ b/src/components/VnTable/VnChip.vue @@ -35,7 +35,9 @@ function stopEventPropagation(event) { dense square > - {{ row[col.name] }} + + {{ col.format ? col.format(row) : row[col.name] }} + diff --git a/src/components/VnTable/VnColumn.vue b/src/components/VnTable/VnColumn.vue index 3af58226f..9f6c6d53d 100644 --- a/src/components/VnTable/VnColumn.vue +++ b/src/components/VnTable/VnColumn.vue @@ -147,7 +147,7 @@ const col = computed(() => { } if ( (newColumn.name.startsWith('is') || newColumn.name.startsWith('has')) && - !newColumn.component + newColumn.component == null ) newColumn.component = 'checkbox'; if ($props.default && !newColumn.component) newColumn.component = $props.default; diff --git a/src/components/VnTable/VnFilter.vue b/src/components/VnTable/VnFilter.vue index 285e2338e..e1faec0a0 100644 --- a/src/components/VnTable/VnFilter.vue +++ b/src/components/VnTable/VnFilter.vue @@ -75,6 +75,7 @@ const components = { attrs: { ...defaultAttrs, clearable: true, + type: 'number', }, forceAttrs, }, diff --git a/src/components/VnTable/VnOrder.vue b/src/components/VnTable/VnOrder.vue index 1e1dc9e01..98c7ab392 100644 --- a/src/components/VnTable/VnOrder.vue +++ b/src/components/VnTable/VnOrder.vue @@ -1,7 +1,7 @@