Preparing search index...
The search index is not available
@eqian/utils-vue
@eqian/utils-vue
ISort
Interface ISort<T>
interface
ISort
<
T
>
{
compareFn
?:
(
(
a
,
b
)
=>
number
)
;
key
?:
keyof
T
;
order
?:
"dec"
|
"asc"
;
}
Type Parameters
T
Index
Properties
compare
Fn?
key?
order?
Properties
Optional
compare
Fn
compare
Fn
?:
(
(
a
,
b
)
=>
number
)
自定义排序,同sort一致
Type declaration
(
a
,
b
)
:
number
Parameters
a
:
T
b
:
T
Returns
number
Optional
key
key
?:
keyof
T
需要排序的键,如果数据是一个对象的情况下使用指定键
Optional
order
order
?:
"dec"
|
"asc"
排序方式
Default
dec
Copy
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
compare
Fn
key
order
@eqian/utils-vue
Loading...
自定义排序,同sort一致