fix: fix a few typos
This commit is contained in:
@@ -31,7 +31,7 @@ interface Props {
|
||||
items?: AcquiredType[];
|
||||
infoOnly?: boolean;
|
||||
showAll?: boolean;
|
||||
ignoredColums?: string[] | string;
|
||||
ignoredColumns?: string[] | string;
|
||||
defaultSortKey?: string;
|
||||
}
|
||||
|
||||
@@ -44,24 +44,24 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
items: () => [],
|
||||
infoOnly: false,
|
||||
showAll: false,
|
||||
ignoredColums: () => [],
|
||||
ignoredColumns: () => [],
|
||||
defaultSortKey: 'precentProfit',
|
||||
});
|
||||
defineEmits<Emits>();
|
||||
|
||||
const columnsToIgnore = computed(() => {
|
||||
const ignoredColums = typeof props.ignoredColums === 'string' ? [props.ignoredColums] : [...props.ignoredColums];
|
||||
const ignoredColumns = typeof props.ignoredColumns === 'string' ? [props.ignoredColumns] : [...props.ignoredColumns];
|
||||
|
||||
if (props.infoOnly && !ignoredColums.includes('buttons')) {
|
||||
ignoredColums.push('buttons');
|
||||
if (props.infoOnly && !ignoredColumns.includes('buttons')) {
|
||||
ignoredColumns.push('buttons');
|
||||
}
|
||||
if (!props.showAll && !ignoredColums.includes('ledger')) {
|
||||
ignoredColums.push('ledger');
|
||||
if (!props.showAll && !ignoredColumns.includes('ledger')) {
|
||||
ignoredColumns.push('ledger');
|
||||
}
|
||||
if (ignoredColums.includes('ledger')) {
|
||||
ignoredColums.push('ledgerName');
|
||||
if (ignoredColumns.includes('ledger')) {
|
||||
ignoredColumns.push('ledgerName');
|
||||
}
|
||||
return ignoredColums;
|
||||
return ignoredColumns;
|
||||
});
|
||||
|
||||
const marketTaxStore = useMarketTaxStore();
|
||||
@@ -136,7 +136,7 @@ const { sortedArray, headerProps, showColumn } = useSort<Result>(computed(() =>
|
||||
}), {
|
||||
defaultSortKey: props.defaultSortKey,
|
||||
defaultSortDirection: 'desc',
|
||||
ignoredColums: columnsToIgnore
|
||||
ignoredColumns: columnsToIgnore
|
||||
})
|
||||
const getLineColor = (result: Result) => {
|
||||
if (result.precentProfit >= (threshold.value / 100)) {
|
||||
|
||||
Reference in New Issue
Block a user