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.
@@ -18,7 +18,7 @@ interface Params {
18
18
  /** 背景色,用于调试输入框的位置 */
19
19
  bgColor?: string;
20
20
  /** 输入类型 */
21
- type?: "number" | "text";
21
+ type?: "number" | "text" | "password";
22
22
  /** 字体颜色 */
23
23
  color?: string;
24
24
  /** 初始值 */
@@ -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 (type === "text")
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 (type2 === "text")
58228
+ if (["text", "password"].includes(type2))
58229
58229
  return text;
58230
58230
  if (this._input.value === "")
58231
58231
  text = min2.toString();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.12.30",
3
+ "version": "1.12.32",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {