lyb-pixi-js 1.12.30 → 1.12.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,7 +16,7 @@ export class LibPixiInput extends LibPixiContainer {
|
|
|
16
16
|
const { type = "text", integer = false, min = 1, max = Infinity, } = this._params;
|
|
17
17
|
let text = this._input.value.trim();
|
|
18
18
|
//如果类型为字符串,则不参与校验
|
|
19
|
-
if (
|
|
19
|
+
if (["text", "password"].includes(type))
|
|
20
20
|
return text;
|
|
21
21
|
//如果为空,则使用最小值
|
|
22
22
|
if (this._input.value === "")
|
package/lyb-pixi.js
CHANGED
|
@@ -58225,7 +58225,7 @@ void main(void){
|
|
|
58225
58225
|
max: max2 = Infinity
|
|
58226
58226
|
} = this._params;
|
|
58227
58227
|
let text = this._input.value.trim();
|
|
58228
|
-
if (
|
|
58228
|
+
if (["text", "password"].includes(type2))
|
|
58229
58229
|
return text;
|
|
58230
58230
|
if (this._input.value === "")
|
|
58231
58231
|
text = min2.toString();
|