UNPKG
@itools-front/ifrontui
Version:
latest (2.8.6)
2.8.6
2.8.5
2.8.4
2.8.3
2.8.2
2.8.1
2.8.0
Vue Material Component Framework
@itools-front/ifrontui
/
src
/
mixins
/
comparable
/
index.ts
14 lines
(12 loc)
•
302 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
Vue
from
'vue'
import
{
PropValidator
}
from
'vue/types/options'
import
{ deepEqual }
from
'../../util/helpers'
export
default
Vue
.
extend
({
name
:
'comparable'
,
props
: {
valueComparator
: {
type
:
Function
,
default
: deepEqual, }
as
PropValidator
<
typeof
deepEqual>, }, })