Comparing version 0.0.15 to 0.0.16
{ | ||
"name": "fuzzy-ui", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"main": "src/index.ts", | ||
@@ -5,0 +5,0 @@ "scripts": { |
import { ComputedRef, InjectionKey, Ref, Slots, WritableComputedRef } from 'vue' | ||
export type UpdateFnType = (index: number, field: string, value: unknown) => any | Promise<any> | ||
export type UpdateFnType = ( | ||
index: number, | ||
field: any, | ||
value: any, | ||
data: Ref<Row[]>, | ||
dataIndex: number | ||
) => any | Promise<any> | ||
export type Row = Record<string, unknown> | ||
@@ -11,7 +17,8 @@ export type Data = Row[] | ||
class?: string | Array<any> | object | ||
colAttrs?: (row: Row, col: ColConfig) => Record<string, unknown> | undefined | ||
editable?: boolean | ((row: Row) => boolean) | ||
colAttrs?: (row: any, col: ColConfig) => Record<string, unknown> | undefined | ||
editable?: boolean | ((row: any) => boolean) | ||
filterable?: boolean | ||
fixed?: string | boolean | ||
getter: (row: Row, col: ColConfig) => unknown | ||
format: (value: any) => unknown | ||
getter: (row: any, col: ColConfig) => unknown | ||
getterOnEdit?: boolean | ||
@@ -26,6 +33,6 @@ hasCustomSetter: boolean | ||
prop: string | ||
setter: (row: Row, value: unknown) => void | ||
setter: (row: any, value: unknown) => void | ||
slots: Slots | ||
sortDirection?: 'asc' | 'desc' | ||
sortable?: boolean | ((rowA: Row, rowB: Row, col: ColConfig) => number) | ||
sortable?: boolean | ((rowA: any, rowB: any, col: ColConfig) => number) | ||
width?: string | number | ||
@@ -41,3 +48,3 @@ } | ||
registerCol: (colKey: string, config: ColConfig) => void | ||
setActiveCell: (rowIndex: number, colIndex: number, direction: string, row: Row) => void | ||
setActiveCell: (x: number, direction: [dx: number, dy: number], row: Row) => void | ||
setCheckedRow: (row: Row, checked: boolean) => void | ||
@@ -44,0 +51,0 @@ setSort: (colKey: string, direction: 'asc' | 'desc' | undefined) => void |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106602
270