form-custom-test 3.0.95 → 3.0.96

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.
package/dist/render.es.js CHANGED
@@ -1339,6 +1339,9 @@ var enLocale = {
1339
1339
  isPositiveIntegerZeroValidator: "0\u62161-4\u4F4D\u7684\u6B63\u6574\u6570",
1340
1340
  maxLen10Decimals2Validator: "\u6574\u6570\u90E8\u5206\u6700\u591A10\u4F4D\uFF0C\u5C0F\u6570\u90E8\u5206\u6700\u591A2\u4F4D\u7684\u6570\u5B57",
1341
1341
  maxLen12Decimals2Validator: "\u6574\u6570\u90E8\u5206\u6700\u591A12\u4F4D\uFF0C\u5C0F\u6570\u90E8\u5206\u6700\u591A2\u4F4D\u7684\u6570\u5B57",
1342
+ latitude: "\u8D1F90\u523090\u7684\u6570\u5B57\uFF0C\u5C0F\u6570\u70B9\u540E\u6700\u591A\u56DB\u4F4D",
1343
+ sixFigures: "\u6574\u6570\u90E8\u5206\u6700\u591A6\u4F4D\uFF0C\u5C0F\u6570\u90E8\u5206\u6700\u591A6\u4F4D\u7684\u6570\u5B57",
1344
+ percentage: "0-100\u7684\u6570\u5B57\uFF0C\u5C0F\u6570\u70B9\u540E\u6700\u591A\u56DB\u4F4D",
1342
1345
  rowspanNotConsistentForMergeEntireRow: "Cells in this row don't have the same rowspan, operation failed.",
1343
1346
  colspanNotConsistentForMergeEntireColumn: "Cells in this column don't have the same colspan, operation failed.",
1344
1347
  rowspanNotConsistentForDeleteEntireRow: "Cells in this row don't have the same rowspan, operation failed.",
@@ -1662,6 +1665,9 @@ var zhLocale = {
1662
1665
  isPositiveIntegerZeroValidator: "0\u62161-4\u4F4D\u7684\u6B63\u6574\u6570",
1663
1666
  maxLen10Decimals2Validator: "\u6574\u6570\u90E8\u5206\u6700\u591A10\u4F4D\uFF0C\u5C0F\u6570\u90E8\u5206\u6700\u591A2\u4F4D\u7684\u6570\u5B57",
1664
1667
  maxLen12Decimals2Validator: "\u6574\u6570\u90E8\u5206\u6700\u591A12\u4F4D\uFF0C\u5C0F\u6570\u90E8\u5206\u6700\u591A2\u4F4D\u7684\u6570\u5B57",
1668
+ latitude: "\u8D1F90\u523090\u7684\u6570\u5B57\uFF0C\u5C0F\u6570\u70B9\u540E\u6700\u591A\u56DB\u4F4D",
1669
+ sixFigures: "\u6574\u6570\u90E8\u5206\u6700\u591A6\u4F4D\uFF0C\u5C0F\u6570\u90E8\u5206\u6700\u591A6\u4F4D\u7684\u6570\u5B57",
1670
+ percentage: "0-100\u7684\u6570\u5B57\uFF0C\u5C0F\u6570\u70B9\u540E\u6700\u591A\u56DB\u4F4D",
1665
1671
  rowspanNotConsistentForMergeEntireRow: "\u5B58\u5728\u884C\u9AD8\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u65E0\u6CD5\u5408\u5E76\u6574\u884C.",
1666
1672
  colspanNotConsistentForMergeEntireColumn: "\u5B58\u5728\u5217\u5BBD\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u65E0\u6CD5\u5408\u5E76\u6574\u5217.",
1667
1673
  rowspanNotConsistentForDeleteEntireRow: "\u5B58\u5728\u884C\u9AD8\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u4E0D\u53EF\u5220\u9664\u6574\u884C.",
@@ -3038,7 +3044,10 @@ const getRegExp = function(validatorName2) {
3038
3044
  isPositiveIntegerLength: "/^([1-9]\\d{0,3})$/",
3039
3045
  isPositiveIntegerZero: "/^0$|^([1-9]\\d{0,3})$/",
3040
3046
  maxLen10Decimals2: "/^\\d{1,10}(\\.\\d{1,2})?$/",
3041
- maxLen12Decimals2: "/^\\d{1,12}(\\.\\d{1,2})?$/"
3047
+ maxLen12Decimals2: "/^\\d{1,12}(\\.\\d{1,2})?$/",
3048
+ latitude: "/^-?(?:90(?:.0{0,4})?|[1-8]?d(?:.d{0,4})?|0(?:.d{0,4})?)$/",
3049
+ sixFigures: "/^d{1,6}(.d{1,6})?$/",
3050
+ percentage: "/^(?:100(?:.0{0,4})?|[1-9]?d(?:.d{0,4})?|0(?:.d{0,4})?)$/"
3042
3051
  };
3043
3052
  return commonRegExp[validatorName2];
3044
3053
  };
@@ -3102,6 +3111,15 @@ const FormValidators = {
3102
3111
  maxLen12Decimals2(rule2, value2, callback2) {
3103
3112
  validateFn("maxLen12Decimals2", rule2, value2, callback2, rule2.label + "\u8BF7\u8F93\u5165\u6574\u6570\u90E8\u5206\u6700\u591A12\u4F4D\uFF0C\u5C0F\u6570\u90E8\u5206\u6700\u591A2\u4F4D\u7684\u6570\u5B57");
3104
3113
  },
3114
+ latitude(rule2, value2, callback2) {
3115
+ validateFn("latitude", rule2, value2, callback2, rule2.label + "\u8BF7\u8F93\u5165\u8D1F90\u523090\u7684\u6570\u5B57\uFF0C\u5C0F\u6570\u70B9\u540E\u6700\u591A\u56DB\u4F4D\u7684\u6570\u5B57");
3116
+ },
3117
+ sixFigures(rule2, value2, callback2) {
3118
+ validateFn("sixFigures", rule2, value2, callback2, rule2.label + "\u8BF7\u8F93\u5165\u6574\u6570\u90E8\u5206\u6700\u591A6\u4F4D\uFF0C\u5C0F\u6570\u90E8\u5206\u6700\u591A6\u4F4D\u7684\u6570\u5B57");
3119
+ },
3120
+ percentage(rule2, value2, callback2) {
3121
+ validateFn("percentage", rule2, value2, callback2, rule2.label + "\u8BF7\u8F93\u51650-100\u7684\u6570\u5B57\uFF0C\u5C0F\u6570\u70B9\u540E\u6700\u591A\u56DB\u4F4D");
3122
+ },
3105
3123
  regExp(rule, value, callback) {
3106
3124
  if (isNull(value) || value.length <= 0) {
3107
3125
  callback();
@@ -26066,13 +26084,13 @@ function registerIcon(app) {
26066
26084
  if (typeof window !== "undefined") {
26067
26085
  let loadSvg = function() {
26068
26086
  var body = document.body;
26069
- var svgDom = document.getElementById("__svg__icons__dom__1776905196217__");
26087
+ var svgDom = document.getElementById("__svg__icons__dom__1776990901317__");
26070
26088
  if (!svgDom) {
26071
26089
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
26072
26090
  svgDom.style.position = "absolute";
26073
26091
  svgDom.style.width = "0";
26074
26092
  svgDom.style.height = "0";
26075
- svgDom.id = "__svg__icons__dom__1776905196217__";
26093
+ svgDom.id = "__svg__icons__dom__1776990901317__";
26076
26094
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
26077
26095
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
26078
26096
  }