@vunk/form 1.1.33 → 1.1.35
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/components/button/src/ctx.d.ts +2 -2
- package/components/button/src/index.vue.d.ts +11 -11
- package/components/cascader/src/ctx.d.ts +2 -2
- package/components/cascader/src/index.vue.d.ts +27 -27
- package/components/checkbox/src/ctx.d.ts +2 -2
- package/components/checkbox/src/index.vue.d.ts +10 -10
- package/components/color-picker/src/ctx.d.ts +1 -1
- package/components/color-picker/src/index.vue.d.ts +10 -10
- package/components/date-picker/src/ctx.d.ts +1 -1
- package/components/date-picker/src/index.vue.d.ts +22 -22
- package/components/esri-input-geojson/src/append.vue.d.ts +1 -1
- package/components/esri-input-geojson/src/ctx.d.ts +4 -4
- package/components/esri-input-geojson/src/index.vue.d.ts +17 -17
- package/components/form/src/ctx.d.ts +12 -12
- package/components/form/src/index.vue.d.ts +37 -37
- package/components/form-item/src/ctx.d.ts +1 -1
- package/components/form-item/src/index.vue.d.ts +3 -3
- package/components/form-item-renderer/src/index.vue.d.ts +1 -1
- package/components/geoinput/src/ctx.d.ts +2 -2
- package/components/geoinput/src/index.vue.d.ts +27 -27
- package/components/geoinput-read/src/core.vue.d.ts +17 -17
- package/components/geoinput-read/src/ctx.d.ts +4 -4
- package/components/geoinput-read/src/index.vue.d.ts +18 -18
- package/components/geoinput-update/src/ctx.d.ts +4 -4
- package/components/geoinput-update/src/index.vue.d.ts +17 -17
- package/components/input/src/ctx.d.ts +4 -4
- package/components/input/src/index.vue.d.ts +17 -17
- package/components/input-link/src/ctx.d.ts +2 -2
- package/components/input-link/src/index.vue.d.ts +19 -19
- package/components/input-number/src/ctx.d.ts +3 -3
- package/components/input-number/src/index.vue.d.ts +15 -15
- package/components/radio/src/ctx.d.ts +1 -1
- package/components/radio/src/index.vue.d.ts +9 -9
- package/components/select/src/ctx.d.ts +4 -4
- package/components/select/src/index.vue.d.ts +49 -49
- package/components/slider/src/ctx.d.ts +1 -1
- package/components/slider/src/index.vue.d.ts +12 -12
- package/components/switch/src/ctx.d.ts +1 -1
- package/components/switch/src/index.vue.d.ts +8 -8
- package/components/upload/src/ctx.d.ts +2 -2
- package/components/upload/src/file.vue.d.ts +2 -2
- package/components/upload/src/index.vue.d.ts +11 -11
- package/components/upload-plus/src/ctx.d.ts +1 -1
- package/components/upload-plus/src/index.vue.d.ts +4 -4
- package/components/van-cascader/src/ctx.d.ts +1 -1
- package/components/van-cascader/src/index.vue.d.ts +18 -18
- package/package.json +1 -1
- package/shared/const/index.d.ts +4 -0
- package/shared/const/index.js +56 -0
- package/shared/element-plus/ctx.d.ts +11 -11
- package/shared/index.d.ts +1 -0
- package/shared/index.js +55 -0
- package/shared/rules/index.d.ts +4 -0
- package/shared/rules/index.js +7 -1
package/shared/rules/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const PATTERN = {
|
|
2
2
|
normal: /^[\u4e00-\u9fa5_a-zA-Z0-9]+$/,
|
|
3
|
+
normalName: /^[\u4e00-\u9fa5_a-zA-Z]+$/,
|
|
3
4
|
code: /^[a-zA-Z][a-zA-Z0-9_]*$/,
|
|
4
5
|
strictCode: /^[a-zA-Z][a-zA-Z0-9]*$/,
|
|
5
6
|
password: /^[a-zA-Z0-9~!@#$%^&*()_+|<>?:{}\.]{8,16}$/,
|
|
@@ -7,7 +8,12 @@ const PATTERN = {
|
|
|
7
8
|
phone: /^1[3456789]\d{9}$/
|
|
8
9
|
};
|
|
9
10
|
const PATTERN_OPTIONS = [
|
|
10
|
-
{ label: "\
|
|
11
|
+
{ label: "\u5E38\u89C4", value: PATTERN.normal, title: "\u7531\u6570\u5B57\u300126\u4E2A\u82F1\u6587\u5B57\u6BCD\u6216\u8005\u4E0B\u5212\u7EBF\u4EE5\u53CA\u4E2D\u6587\u7EC4\u6210\u7684\u5B57\u7B26\u4E32" },
|
|
12
|
+
{
|
|
13
|
+
label: "\u5E38\u89C4\u59D3\u540D",
|
|
14
|
+
value: PATTERN.normalName,
|
|
15
|
+
title: "\u53EA\u80FD\u7531 \u4E2D\u6587 \u548C \u82F1\u6587 \u7EC4\u6210"
|
|
16
|
+
},
|
|
11
17
|
{ label: "\u5BC6\u7801", value: PATTERN.password, title: "\u53EA\u80FD\u7531\u5B57\u6BCD\u3001\u6570\u5B57\u6216\u7279\u6B8A\u5B57\u7B26\u7EC4\u6210\uFF0C\u4E14\u957F\u5EA6\u57288\u523016\u4E4B\u95F4" },
|
|
12
18
|
{ label: "\u4E25\u683C\u5BC6\u7801", value: PATTERN.strictPassword, title: "\u8981\u6C42\u5BC6\u7801\u5FC5\u987B\u540C\u65F6\u5305\u542B\u81F3\u5C11\u4E00\u4E2A\u5C0F\u5199\u5B57\u6BCD\u3001\u4E00\u4E2A\u5927\u5199\u5B57\u6BCD\u548C\u4E00\u4E2A\u6570\u5B57\uFF0C\u4E14\u957F\u5EA6\u57288\u523016\u4E4B\u95F4" },
|
|
13
19
|
{ label: "\u624B\u673A\u53F7", value: PATTERN.phone, title: "\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801" },
|