@keyblade/pro-components 1.13.8-alpha.39 → 1.13.8-alpha.40

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.
Files changed (67) hide show
  1. package/es/index.js +1 -1
  2. package/es/pro-calendar/index.d.ts +2 -0
  3. package/es/pro-calendar/index.js +1 -0
  4. package/es/pro-date-range-picker/index.d.ts +176 -7
  5. package/es/pro-date-range-picker/interface.d.ts +2 -2
  6. package/es/pro-date-range-picker/pro-date-range-picker.vue.d.ts +171 -5
  7. package/es/pro-date-range-picker/pro-date-range-picker.vue.js +1 -1
  8. package/es/pro-date-range-picker/pro-date-range-picker.vue2.js +111 -113
  9. package/es/pro-dates-picker/index.d.ts +11 -8
  10. package/es/pro-dates-picker/index.js +8 -8
  11. package/es/pro-dates-picker/index.vue.d.ts +3 -3
  12. package/es/pro-dates-picker/index.vue.js +96 -97
  13. package/es/pro-find-password/index.d.ts +2 -0
  14. package/es/pro-find-password/index.js +5 -5
  15. package/es/pro-find-password/index.vue.d.ts +830 -66
  16. package/es/pro-find-password/index.vue.js +132 -134
  17. package/es/pro-find-password/reset-password.vue.d.ts +192 -1
  18. package/es/pro-find-password/reset-password.vue.js +120 -122
  19. package/es/pro-find-password/verify-user-name.vue.d.ts +384 -2
  20. package/es/pro-find-password/verify-user-name.vue.js +74 -76
  21. package/es/pro-footer-bar/index.d.ts +3 -0
  22. package/es/pro-footer-bar/index.vue.js +2 -2
  23. package/es/pro-footer-bar/index.vue2.js +24 -26
  24. package/es/pro-form-group/index.d.ts +1 -0
  25. package/es/pro-form-group/index.vue.js +1 -1
  26. package/es/pro-form-group/index.vue2.js +31 -32
  27. package/es/pro-image-upload/cropper.vue.js +2 -2
  28. package/es/pro-image-upload/cropper.vue2.js +198 -199
  29. package/es/pro-image-upload/image-upload.vue.d.ts +648 -2
  30. package/es/pro-image-upload/image-upload.vue.js +74 -75
  31. package/es/pro-image-upload/index.d.ts +327 -1
  32. package/es/pro-image-upload/index.js +1 -1
  33. package/es/pro-keep-alive-router-view/index.d.ts +1 -0
  34. package/es/pro-layout/index.d.ts +4 -3
  35. package/es/pro-layout/index.js +1 -1
  36. package/es/pro-layout/pro-layout.vue.d.ts +1 -1
  37. package/es/pro-layout/pro-layout.vue.js +222 -218
  38. package/es/pro-loader/index.d.ts +2 -0
  39. package/es/pro-login/form-mobile.vue.d.ts +384 -2
  40. package/es/pro-login/form-mobile.vue.js +97 -99
  41. package/es/pro-login/form-password.vue.d.ts +192 -1
  42. package/es/pro-login/form-password.vue.js +72 -74
  43. package/es/pro-login/index.d.ts +2 -0
  44. package/es/pro-login/index.vue.d.ts +831 -67
  45. package/es/pro-login/index.vue.js +62 -64
  46. package/es/pro-menu/index.d.ts +2 -0
  47. package/es/pro-menu/menu-item.vue.js +13 -13
  48. package/es/pro-menu/pro-menu.vue.js +28 -30
  49. package/es/pro-menu/sub-menu.vue.js +20 -19
  50. package/es/pro-page-container/index.d.ts +3 -0
  51. package/es/pro-page-container/pro-page-container.vue.js +46 -44
  52. package/es/pro-page-header/index.d.ts +3 -0
  53. package/es/pro-page-header/index.js +6 -6
  54. package/es/pro-page-header/pro-page-header.vue.js +78 -77
  55. package/es/pro-reuse-tabs/index.d.ts +5 -3
  56. package/es/pro-reuse-tabs/index.js +1 -1
  57. package/es/pro-reuse-tabs/pro-reuse-tabs.vue.d.ts +1 -1
  58. package/es/pro-reuse-tabs/pro-reuse-tabs.vue.js +33 -35
  59. package/es/pro-table/index.d.ts +6 -3
  60. package/es/pro-table/index.js +7 -7
  61. package/es/pro-table/index.vue.d.ts +2 -2
  62. package/es/pro-table/index.vue.js +68 -70
  63. package/es/pro-textarea/index.d.ts +7 -5
  64. package/es/pro-textarea/index.vue.js +2 -2
  65. package/es/pro-textarea/index.vue2.js +14 -16
  66. package/es/style.css +1 -1
  67. package/package.json +1 -1
@@ -1,6 +1,7 @@
1
- import { defineComponent as U, ref as i, onBeforeUnmount as q, resolveComponent as m, createBlock as V, openBlock as g, normalizeClass as f, withCtx as s, createVNode as t, mergeProps as n, createElementBlock as R, createTextVNode as N, toDisplayString as T, normalizeProps as E, guardReactiveProps as _ } from "vue";
2
- import { regexp as x, message as D } from "../pro-login/regexp.js";
3
- const j = /* @__PURE__ */ U({
1
+ import { defineComponent as B, ref as i, onBeforeUnmount as U, createBlock as I, openBlock as c, unref as o, normalizeClass as f, withCtx as r, createVNode as s, mergeProps as u, createElementBlock as q, createTextVNode as V, toDisplayString as F, normalizeProps as R, guardReactiveProps as T } from "vue";
2
+ import { regexp as E, message as x } from "../pro-login/regexp.js";
3
+ import { Form as D, FormItem as p, Input as b, Button as C, InputPassword as N } from "@arco-design/web-vue";
4
+ const G = /* @__PURE__ */ B({
4
5
  __name: "reset-password",
5
6
  props: {
6
7
  current: {},
@@ -26,156 +27,153 @@ const j = /* @__PURE__ */ U({
26
27
  required: !0,
27
28
  message: "请输入新密码"
28
29
  }, {
29
- validator: (o, e) => {
30
- x.password.test(o) || e(D.password);
30
+ validator: (a, e) => {
31
+ E.password.test(a) || e(x.password);
31
32
  }
32
33
  }],
33
34
  again: [{
34
35
  required: !0,
35
36
  message: "请再次输入新密码"
36
37
  }, {
37
- validator: (o, e) => {
38
- l.value.password !== o && e("两次输入的密码不同");
38
+ validator: (a, e) => {
39
+ t.value.password !== a && e("两次输入的密码不同");
39
40
  }
40
41
  }],
41
42
  captcha: [{
42
43
  required: !0,
43
44
  message: "请输入验证码"
44
45
  }]
45
- }, d = i(), l = i({
46
+ }, m = i(), t = i({
46
47
  password: "",
47
48
  again: "",
48
49
  captcha: ""
49
- }), u = i(), r = i(v.countdown), P = k;
50
- q(() => {
51
- u.value && w();
50
+ }), d = i(), n = i(v.countdown), P = k;
51
+ U(() => {
52
+ d.value && w();
52
53
  });
53
54
  const $ = () => {
54
- P("submit", l.value);
55
- }, c = (o) => {
55
+ P("submit", t.value);
56
+ }, g = (a) => {
56
57
  var e;
57
- (e = d.value) == null || e.clearValidate(o);
58
+ (e = m.value) == null || e.clearValidate(a);
58
59
  }, w = () => {
59
- r.value = v.countdown, clearInterval(u.value), u.value = void 0;
60
+ n.value = v.countdown, clearInterval(d.value), d.value = void 0;
60
61
  }, z = () => {
61
- var o;
62
- (o = d.value) == null || o.validateField("mobile", (e) => {
63
- if (!e && r.value >= 60) {
64
- if (u.value)
62
+ var a;
63
+ (a = m.value) == null || a.validateField("mobile", (e) => {
64
+ if (!e && n.value >= 60) {
65
+ if (d.value)
65
66
  return;
66
- P("send-sms-code"), r.value--, u.value = setInterval(() => {
67
- r.value > 0 ? r.value-- : w();
67
+ P("send-sms-code"), n.value--, d.value = setInterval(() => {
68
+ n.value > 0 ? n.value-- : w();
68
69
  }, 1e3);
69
70
  }
70
71
  });
71
72
  };
72
73
  return h({
73
- formRef: d,
74
+ formRef: m,
74
75
  resetTime: w
75
- }), (o, e) => {
76
- const b = m("a-input"), p = m("a-form-item"), C = m("a-button"), I = m("a-input-password"), B = m("a-form");
77
- return g(), V(B, {
78
- ref_key: "formRef",
79
- ref: d,
80
- model: l.value,
81
- rules: S,
82
- class: f(`${o.prefixClsName}-reset-password`),
83
- onSubmitSuccess: $
84
- }, {
85
- default: s(() => [
86
- t(p, n({ field: "phoneNum" }, o.formItemProps), {
87
- default: s(() => [
88
- t(b, n(o.inputProps, {
89
- "default-value": o.phoneNum,
90
- "max-length": 16,
91
- disabled: ""
92
- }), null, 16, ["default-value"])
93
- ]),
94
- _: 1
95
- }, 16),
96
- t(p, n({ field: "captcha" }, o.formItemProps), {
97
- default: s(() => [
98
- t(b, n(o.inputProps, {
99
- modelValue: l.value.captcha,
100
- "onUpdate:modelValue": e[0] || (e[0] = (a) => l.value.captcha = a),
101
- "max-length": 6,
102
- placeholder: "请输入短信验证码",
103
- autocomplete: "off",
104
- onInput: e[1] || (e[1] = (a) => c("captcha"))
105
- }), {
106
- append: s(() => [
107
- r.value >= v.countdown ? (g(), V(C, {
108
- key: 0,
109
- type: "outline",
110
- class: f(`${o.prefixClsName}-mobile-send-code`),
111
- onClick: z
112
- }, {
113
- default: s(() => e[6] || (e[6] = [
114
- N(" 获取短信验证码 ")
115
- ])),
116
- _: 1
117
- }, 8, ["class"])) : (g(), R("div", {
118
- key: 1,
119
- class: f(`${o.prefixClsName}-mobile-time`)
120
- }, T(r.value) + "秒后可重新发送 ", 3))
121
- ]),
122
- _: 1
123
- }, 16, ["modelValue"])
124
- ]),
125
- _: 1
126
- }, 16),
127
- t(p, n({ field: "password" }, o.formItemProps), {
128
- default: s(() => [
129
- t(I, n(o.inputProps, {
130
- modelValue: l.value.password,
131
- "onUpdate:modelValue": e[2] || (e[2] = (a) => l.value.password = a),
132
- "max-length": 32,
133
- placeholder: "请输入您新的登录密码",
134
- autocomplete: "new-password",
135
- onInput: e[3] || (e[3] = (a) => c("password"))
136
- }), null, 16, ["modelValue"])
137
- ]),
138
- _: 1
139
- }, 16),
140
- t(p, n({ field: "again" }, o.formItemProps), {
141
- default: s(() => [
142
- t(I, n(o.inputProps, {
143
- modelValue: l.value.again,
144
- "onUpdate:modelValue": e[4] || (e[4] = (a) => l.value.again = a),
145
- "max-length": 32,
146
- placeholder: "请再次输入您新的登录密码",
147
- autocomplete: "new-password",
148
- onInput: e[5] || (e[5] = (a) => c("again"))
149
- }), null, 16, ["modelValue"])
150
- ]),
151
- _: 1
152
- }, 16),
153
- t(p, E(_(o.formItemProps)), {
154
- default: s(() => {
155
- var a;
156
- return [
157
- t(C, {
158
- type: "primary",
159
- long: "",
160
- "html-type": "submit",
161
- size: (a = o.inputProps) == null ? void 0 : a.size,
162
- class: f(`${o.prefixClsName}-reset-password-submit`)
76
+ }), (a, e) => (c(), I(o(D), {
77
+ ref_key: "formRef",
78
+ ref: m,
79
+ model: t.value,
80
+ rules: S,
81
+ class: f(`${a.prefixClsName}-reset-password`),
82
+ onSubmitSuccess: $
83
+ }, {
84
+ default: r(() => [
85
+ s(o(p), u({ field: "phoneNum" }, a.formItemProps), {
86
+ default: r(() => [
87
+ s(o(b), u(a.inputProps, {
88
+ "default-value": a.phoneNum,
89
+ "max-length": 16,
90
+ disabled: ""
91
+ }), null, 16, ["default-value"])
92
+ ]),
93
+ _: 1
94
+ }, 16),
95
+ s(o(p), u({ field: "captcha" }, a.formItemProps), {
96
+ default: r(() => [
97
+ s(o(b), u(a.inputProps, {
98
+ modelValue: t.value.captcha,
99
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.captcha = l),
100
+ "max-length": 6,
101
+ placeholder: "请输入短信验证码",
102
+ autocomplete: "off",
103
+ onInput: e[1] || (e[1] = (l) => g("captcha"))
104
+ }), {
105
+ append: r(() => [
106
+ n.value >= v.countdown ? (c(), I(o(C), {
107
+ key: 0,
108
+ type: "outline",
109
+ class: f(`${a.prefixClsName}-mobile-send-code`),
110
+ onClick: z
163
111
  }, {
164
- default: s(() => e[7] || (e[7] = [
165
- N(" 确认 ")
112
+ default: r(() => e[6] || (e[6] = [
113
+ V(" 获取短信验证码 ")
166
114
  ])),
167
115
  _: 1
168
- }, 8, ["size", "class"])
169
- ];
170
- }),
171
- _: 1
172
- }, 16)
173
- ]),
174
- _: 1
175
- }, 8, ["model", "class"]);
176
- };
116
+ }, 8, ["class"])) : (c(), q("div", {
117
+ key: 1,
118
+ class: f(`${a.prefixClsName}-mobile-time`)
119
+ }, F(n.value) + "秒后可重新发送 ", 3))
120
+ ]),
121
+ _: 1
122
+ }, 16, ["modelValue"])
123
+ ]),
124
+ _: 1
125
+ }, 16),
126
+ s(o(p), u({ field: "password" }, a.formItemProps), {
127
+ default: r(() => [
128
+ s(o(N), u(a.inputProps, {
129
+ modelValue: t.value.password,
130
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => t.value.password = l),
131
+ "max-length": 32,
132
+ placeholder: "请输入您新的登录密码",
133
+ autocomplete: "new-password",
134
+ onInput: e[3] || (e[3] = (l) => g("password"))
135
+ }), null, 16, ["modelValue"])
136
+ ]),
137
+ _: 1
138
+ }, 16),
139
+ s(o(p), u({ field: "again" }, a.formItemProps), {
140
+ default: r(() => [
141
+ s(o(N), u(a.inputProps, {
142
+ modelValue: t.value.again,
143
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => t.value.again = l),
144
+ "max-length": 32,
145
+ placeholder: "请再次输入您新的登录密码",
146
+ autocomplete: "new-password",
147
+ onInput: e[5] || (e[5] = (l) => g("again"))
148
+ }), null, 16, ["modelValue"])
149
+ ]),
150
+ _: 1
151
+ }, 16),
152
+ s(o(p), R(T(a.formItemProps)), {
153
+ default: r(() => {
154
+ var l;
155
+ return [
156
+ s(o(C), {
157
+ type: "primary",
158
+ long: "",
159
+ "html-type": "submit",
160
+ size: (l = a.inputProps) == null ? void 0 : l.size,
161
+ class: f(`${a.prefixClsName}-reset-password-submit`)
162
+ }, {
163
+ default: r(() => e[7] || (e[7] = [
164
+ V(" 确认 ")
165
+ ])),
166
+ _: 1
167
+ }, 8, ["size", "class"])
168
+ ];
169
+ }),
170
+ _: 1
171
+ }, 16)
172
+ ]),
173
+ _: 1
174
+ }, 8, ["model", "class"]));
177
175
  }
178
176
  });
179
177
  export {
180
- j as default
178
+ G as default
181
179
  };