mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:18:03 +08:00
equals 优化
This commit is contained in:
parent
bf75028e61
commit
1bc48f1743
@ -244,11 +244,10 @@ export const filters: {
|
|||||||
? RegExp.$2
|
? RegExp.$2
|
||||||
: resolveVariable(arg1, this as any)
|
: resolveVariable(arg1, this as any)
|
||||||
: '';
|
: '';
|
||||||
// 比对的值是空时直接返回。
|
if (arg1 !== undefined && arg1 !== null) {
|
||||||
if (!arg1) {
|
|
||||||
return input;
|
return input;
|
||||||
}
|
}
|
||||||
fn = value => arg1 == value;
|
fn = value => arg1 === value;
|
||||||
} else {
|
} else {
|
||||||
if (directive !== 'match') {
|
if (directive !== 'match') {
|
||||||
directive = 'match';
|
directive = 'match';
|
||||||
|
Loading…
Reference in New Issue
Block a user