alaska-field-text
Advanced tools
Comparing version 0.12.2 to 0.12.3
{ | ||
"name": "alaska-field-text", | ||
"version": "0.12.2", | ||
"version": "0.12.3", | ||
"description": "Alaska text field", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -23,7 +23,10 @@ // @flow | ||
super(props); | ||
let v = props.value || {}; | ||
if (typeof v === 'string') { | ||
v = { value: v }; | ||
let value: { | ||
value?: string, | ||
inverse?: boolean | ||
// $Flow | ||
} = props.value || {}; | ||
if (typeof value === 'string') { | ||
value = { value }; | ||
} | ||
let value: Alaska$filter = v; | ||
this.state = { | ||
@@ -33,3 +36,3 @@ mode: value.exact === false || value.exact === 'false' ? 2 : 1, // 1 精确匹配 2 包含 | ||
error: !value.value, | ||
inverse: value.inverse || false | ||
inverse: value.inverse === true || value.inverse === 'true' | ||
}; | ||
@@ -36,0 +39,0 @@ this.handleMode1 = this.handleMode.bind(this, 1); |
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
9422
275