Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 AEM(6.4) 触摸 UI 对话框中创建了一个数字字段。我添加了 step 属性0.1。我也试过用0.01 & 0.001。但是对于某些数字,没有任何模式,它不允许选择它们。对话框/编号字段给出验证错误并且不允许关闭对话框。
0.1
0.01 & 0.001
step应该是一个double,而不是一个String。
step
double
String
关于这个问题,Usingstep-String-0.0002允许我输入最多 3 位的十进制值,并显示超出此范围的验证错误。
step-String-0.0002
现在,使用step-String-any. 虽然,它的步长值为 1,但允许我输入任何十进制值。
step-String-any
参考 - https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/表单/数字字段/index.html
更新:在上述场景中,用作 String 或 double 的 step 产生相同的结果