小编Ash*_*yan的帖子

ngx-mask 不允许货币输入为负值

我需要阻止负值的类型,并且不允许99,999,999.99输入比我输入更多的数字。

这是我用于货币输入的代码。

<input mask="separator.2" thousandSeparator="," placeholder="Currency">
Run Code Online (Sandbox Code Playgroud)

任何帮助将不胜感激。

这里也是 Stackblitz 的例子。

https://stackblitz.com/edit/ngx-mask-currency-input?file=src/app/app.component.html

更新

我找到了问题第二部分的答案。现在输入看起来像这样

<input mask="separator.2" thousandSeparator="," separatorLimit="10000000"  placeholder="Currency">
Run Code Online (Sandbox Code Playgroud)

现在只需要屏蔽-字符的类型

angular ngx-mask

4
推荐指数
1
解决办法
2377
查看次数

如何在运行时更改 ng-zorro 主题

我做了很多研究,但找不到生成 ng-zorro 主题并在运行时更改它的方法。

最后,我找到了一种方法来做到这一点。

angular ng-zorro-antd angular9

2
推荐指数
1
解决办法
4792
查看次数

标签 统计

angular ×2

angular9 ×1

ng-zorro-antd ×1

ngx-mask ×1