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