Skip to content

Commit 2fe1d27

Browse files
fix: fix type error
1 parent f56f937 commit 2fe1d27

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/components/pivottable-ui/VAggregatorCell.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,18 @@ const emit = defineEmits<{
5353
type OrderType = 'key_a_to_z' | 'value_a_to_z' | 'value_z_to_a'
5454
5555
interface AggregatorCellProps {
56-
aggregatorItems: Record<string, AggregatorTemplate>
57-
aggregatorName: string
56+
aggregatorItems?: Record<string, AggregatorTemplate>
57+
aggregatorName?: string
5858
rowOrder: OrderType
5959
colOrder: OrderType
60-
vals: string[]
61-
attributeNames: string[]
62-
hiddenFromAggregators: string[]
60+
vals?: string[]
61+
attributeNames?: string[]
62+
hiddenFromAggregators?: string[]
6363
}
6464
6565
const props = withDefaults(defineProps<AggregatorCellProps>(), {
6666
aggregatorItems: () => ({}),
6767
aggregatorName: 'Count',
68-
rowOrder: 'key_a_to_z',
69-
colOrder: 'key_a_to_z',
7068
vals: () => [],
7169
attributeNames: () => [],
7270
hiddenFromAggregators: () => []

src/components/pivottable-ui/VPivottableUi.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ const props = withDefaults(
165165
hiddenFromDragDrop: () => [],
166166
restrictedFromDragDrop: () => [],
167167
menuLimit: 500,
168-
hideFilterBoxOfUnusedAttributes: false
168+
hideFilterBoxOfUnusedAttributes: false,
169+
rowOrder: 'key_a_to_z',
170+
colOrder: 'key_a_to_z'
169171
}
170172
)
171173

src/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ export interface RendererDefinition {
3232
name: string
3333
props?: Record<string, any>
3434
setup: (props: any) => () => VNode
35-
}
35+
}

0 commit comments

Comments
 (0)