@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,21 +1,22 @@
1
- var U = Object.defineProperty, $ = Object.defineProperties;
2
- var j = Object.getOwnPropertyDescriptors;
3
- var E = Object.getOwnPropertySymbols;
4
- var z = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
5
- var R = (i, l, e) => l in i ? U(i, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[l] = e, m = (i, l) => {
6
- for (var e in l || (l = {}))
7
- z.call(l, e) && R(i, e, l[e]);
8
- if (E)
9
- for (var e of E(l))
10
- G.call(l, e) && R(i, e, l[e]);
11
- return i;
12
- }, p = (i, l) => $(i, j(l));
13
- import { defineComponent as J, ref as n, computed as D, resolveComponent as T, createElementBlock as K, openBlock as O, normalizeClass as Q, createVNode as u, mergeProps as f, withCtx as h, createTextVNode as W, toDisplayString as X, nextTick as B } from "vue";
14
- import s from "dayjs";
15
- import { conclude as w } from "vue-global-config";
16
- import { globalProps as I } from "../global-props.js";
17
- import { range as y } from "./pro-date-range-picker.js";
18
- const Y = "keyblade-pro-date-range-picker", re = /* @__PURE__ */ J({
1
+ var j = Object.defineProperty, z = Object.defineProperties;
2
+ var G = Object.getOwnPropertyDescriptors;
3
+ var B = Object.getOwnPropertySymbols;
4
+ var J = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
5
+ var I = (r, d, e) => d in r ? j(r, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[d] = e, c = (r, d) => {
6
+ for (var e in d || (d = {}))
7
+ J.call(d, e) && I(r, e, d[e]);
8
+ if (B)
9
+ for (var e of B(d))
10
+ K.call(d, e) && I(r, e, d[e]);
11
+ return r;
12
+ }, f = (r, d) => z(r, G(d));
13
+ import { defineComponent as O, ref as s, computed as h, createElementBlock as Q, openBlock as W, normalizeClass as X, createVNode as u, unref as m, mergeProps as P, withCtx as y, createTextVNode as Y, toDisplayString as Z, nextTick as w } from "vue";
14
+ import { FormItem as F, DatePicker as N } from "@arco-design/web-vue";
15
+ import i from "dayjs";
16
+ import { conclude as q } from "vue-global-config";
17
+ import { globalProps as x } from "../global-props.js";
18
+ import { range as g } from "./pro-date-range-picker.js";
19
+ const ee = "keyblade-pro-date-range-picker", se = /* @__PURE__ */ O({
19
20
  __name: "pro-date-range-picker",
20
21
  props: {
21
22
  modelValue: {},
@@ -33,137 +34,134 @@ const Y = "keyblade-pro-date-range-picker", re = /* @__PURE__ */ J({
33
34
  disabledEndDate: {}
34
35
  },
35
36
  emits: ["update:modelValue"],
36
- setup(i, { emit: l }) {
37
- const e = i, g = l, P = n(), b = n(), k = n(), F = n(), S = n(), c = n(), v = D({
37
+ setup(r, { emit: d }) {
38
+ const e = r, S = d, b = s(), k = s(), v = s(), E = s(), C = s(), p = s(), V = h({
38
39
  get: () => e.modelValue[e.startField],
39
40
  set: (t) => {
40
- t ? P.value = "success" : P.value = void 0, g("update:modelValue", p(m({}, e.modelValue), {
41
+ t ? b.value = "success" : b.value = void 0, S("update:modelValue", f(c({}, e.modelValue), {
41
42
  [e.startField]: t
42
43
  }));
43
44
  }
44
- }), _ = D({
45
+ }), R = h({
45
46
  get: () => e.modelValue[e.endField],
46
47
  set: (t) => {
47
- t ? b.value = "success" : b.value = void 0, g("update:modelValue", p(m({}, e.modelValue), {
48
+ t ? k.value = "success" : k.value = void 0, S("update:modelValue", f(c({}, e.modelValue), {
48
49
  [e.endField]: t
49
50
  }));
50
51
  }
51
- }), N = (t) => {
52
+ }), A = (t) => {
52
53
  const a = () => {
53
- var r;
54
+ var n;
54
55
  if (!e.modelValue[e.endField]) return !1;
55
- let o = s(e.modelValue[e.endField]);
56
- return e.intraday && !((r = e.datePickerProps) != null && r.showTime) && (o = o.add(1, "day")), s(t).isAfter(o);
56
+ let l = i(e.modelValue[e.endField]);
57
+ return e.intraday && !((n = e.datePickerProps) != null && n.showTime) && (l = l.add(1, "day")), i(t).isAfter(l);
57
58
  };
58
59
  return e.disabledStartDate ? e.disabledStartDate({ current: t, enabled: a() }) : a();
59
- }, q = (t) => {
60
+ }, H = (t) => {
60
61
  const a = () => {
61
- var d;
62
- return e.modelValue[e.startField] ? (e.intraday && ((d = e.datePickerProps) != null && d.showTime) && t.setDate(t.getDate() + 1), s(t).isBefore(s(e.modelValue[e.startField]))) : !1;
62
+ var o;
63
+ return e.modelValue[e.startField] ? (e.intraday && ((o = e.datePickerProps) != null && o.showTime) && t.setDate(t.getDate() + 1), i(t).isBefore(i(e.modelValue[e.startField]))) : !1;
63
64
  };
64
65
  return e.disabledEndDate ? e.disabledEndDate({ current: t, enabled: a() }) : a();
65
- }, x = (t) => {
66
+ }, L = (t) => {
66
67
  if (!e.modelValue[e.startField] || !t || !e.intraday) {
67
- c.value = {};
68
+ p.value = {};
68
69
  return;
69
70
  }
70
- const a = s(e.modelValue[e.startField]), o = s(t);
71
- if (!a.isSame(o, "day")) {
72
- c.value = {};
71
+ const a = i(e.modelValue[e.startField]), l = i(t);
72
+ if (!a.isSame(l, "day")) {
73
+ p.value = {};
73
74
  return;
74
75
  }
75
- const d = a.hour(), r = a.minute(), L = a.second();
76
- c.value = {
77
- disabledHours: () => y(0, d),
78
- disabledMinutes: (V) => V === d ? y(0, r) : [],
79
- disabledSeconds: (V, M) => V === d && M === r ? y(0, L) : []
76
+ const o = a.hour(), n = a.minute(), _ = a.second();
77
+ p.value = {
78
+ disabledHours: () => g(0, o),
79
+ disabledMinutes: (D) => D === o ? g(0, n) : [],
80
+ disabledSeconds: (D, $) => D === o && $ === n ? g(0, _) : []
80
81
  };
81
- }, A = () => {
82
+ }, M = () => {
82
83
  setTimeout(() => {
83
84
  const t = e.modelValue[e.endField], a = e.modelValue[e.startField];
84
- a && t && s(a).isAfter(s(t)) && (v.value = t), !t && a && B(() => {
85
- var d;
86
- const o = (d = S.value) == null ? void 0 : d.$el.parentElement.querySelector("input");
87
- o && o.click();
85
+ a && t && i(a).isAfter(i(t)) && (V.value = t), !t && a && w(() => {
86
+ var o;
87
+ const l = (o = C.value) == null ? void 0 : o.$el.parentElement.querySelector("input");
88
+ l && l.click();
88
89
  });
89
90
  });
90
- }, H = () => {
91
+ }, U = () => {
91
92
  setTimeout(() => {
92
- e.modelValue[e.endField] && !e.modelValue[e.startField] && B(() => {
93
+ e.modelValue[e.endField] && !e.modelValue[e.startField] && w(() => {
93
94
  var a;
94
- const t = (a = F.value) == null ? void 0 : a.$el.parentElement.querySelector("input");
95
+ const t = (a = E.value) == null ? void 0 : a.$el.parentElement.querySelector("input");
95
96
  t && t.click();
96
97
  });
97
98
  });
98
- }, C = D(() => {
99
+ }, T = h(() => {
99
100
  var t, a;
100
- return p(m({}, w([e.datePickerProps, (t = I.dateRangePicker) == null ? void 0 : t.datePickerProps, {}])), {
101
- timePickerProps: w([e.timePickerProps, (a = I.dateRangePicker) == null ? void 0 : a.timePickerProps], {})
101
+ return f(c({}, q([e.datePickerProps, (t = x.dateRangePicker) == null ? void 0 : t.datePickerProps, {}])), {
102
+ timePickerProps: q([e.timePickerProps, (a = x.dateRangePicker) == null ? void 0 : a.timePickerProps], {})
102
103
  });
103
104
  });
104
- return (t, a) => {
105
- const o = T("a-date-picker"), d = T("a-form-item");
106
- return O(), K("div", {
107
- class: Q(Y),
108
- ref_key: "dateRef",
109
- ref: k
110
- }, [
111
- u(d, f(t.formItemProps, {
112
- "validate-status": P.value,
113
- field: t.startField,
114
- "hide-label": t.hideLabel
115
- }), {
116
- default: h(() => [
117
- u(o, f({
118
- ref_key: "startDatePickerRef",
119
- ref: F,
120
- modelValue: v.value,
121
- "onUpdate:modelValue": a[0] || (a[0] = (r) => v.value = r)
122
- }, C.value, {
123
- "popup-container": k.value,
124
- placeholder: t.startPlaceholder,
125
- "disabled-date": (r) => N(r),
126
- onChange: A
127
- }), null, 16, ["modelValue", "popup-container", "placeholder", "disabled-date"])
128
- ]),
129
- _: 1
130
- }, 16, ["validate-status", "field", "hide-label"]),
131
- u(d, {
132
- "hide-label": "",
133
- style: { "max-height": "32px", top: "0px" }
134
- }, {
135
- default: h(() => [
136
- W(X(t.separator), 1)
137
- ]),
138
- _: 1
139
- }),
140
- u(d, f(t.formItemProps, {
141
- "validate-status": b.value,
142
- field: t.endField,
143
- "hide-label": "",
144
- style: { "margin-right": "0px" }
145
- }), {
146
- default: h(() => [
147
- u(o, f({
148
- ref_key: "endDatePickerRef",
149
- ref: S,
150
- modelValue: _.value,
151
- "onUpdate:modelValue": a[1] || (a[1] = (r) => _.value = r)
152
- }, C.value, {
153
- "popup-container": k.value,
154
- placeholder: t.endPlaceholder,
155
- "disabled-date": (r) => q(r),
156
- "disabled-time": () => c.value,
157
- onSelect: x,
158
- onChange: H
159
- }), null, 16, ["modelValue", "popup-container", "placeholder", "disabled-date", "disabled-time"])
160
- ]),
161
- _: 1
162
- }, 16, ["validate-status", "field"])
163
- ], 512);
164
- };
105
+ return (t, a) => (W(), Q("div", {
106
+ class: X(ee),
107
+ ref_key: "dateRef",
108
+ ref: v
109
+ }, [
110
+ u(m(F), P(t.formItemProps, {
111
+ "validate-status": b.value,
112
+ field: t.startField,
113
+ "hide-label": t.hideLabel
114
+ }), {
115
+ default: y(() => [
116
+ u(m(N), P({
117
+ ref_key: "startDatePickerRef",
118
+ ref: E,
119
+ modelValue: V.value,
120
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => V.value = l)
121
+ }, T.value, {
122
+ "popup-container": v.value,
123
+ placeholder: t.startPlaceholder,
124
+ "disabled-date": (l) => A(l),
125
+ onChange: M
126
+ }), null, 16, ["modelValue", "popup-container", "placeholder", "disabled-date"])
127
+ ]),
128
+ _: 1
129
+ }, 16, ["validate-status", "field", "hide-label"]),
130
+ u(m(F), {
131
+ "hide-label": "",
132
+ style: { "max-height": "32px", top: "0px" }
133
+ }, {
134
+ default: y(() => [
135
+ Y(Z(t.separator), 1)
136
+ ]),
137
+ _: 1
138
+ }),
139
+ u(m(F), P(t.formItemProps, {
140
+ "validate-status": k.value,
141
+ field: t.endField,
142
+ "hide-label": "",
143
+ style: { "margin-right": "0px" }
144
+ }), {
145
+ default: y(() => [
146
+ u(m(N), P({
147
+ ref_key: "endDatePickerRef",
148
+ ref: C,
149
+ modelValue: R.value,
150
+ "onUpdate:modelValue": a[1] || (a[1] = (l) => R.value = l)
151
+ }, T.value, {
152
+ "popup-container": v.value,
153
+ placeholder: t.endPlaceholder,
154
+ "disabled-date": (l) => H(l),
155
+ "disabled-time": () => p.value,
156
+ onSelect: L,
157
+ onChange: U
158
+ }), null, 16, ["modelValue", "popup-container", "placeholder", "disabled-date", "disabled-time"])
159
+ ]),
160
+ _: 1
161
+ }, 16, ["validate-status", "field"])
162
+ ], 512));
165
163
  }
166
164
  });
167
165
  export {
168
- re as default
166
+ se as default
169
167
  };
@@ -1,14 +1,14 @@
1
1
  import { App } from 'vue';
2
2
  declare const ProDatesPicker: {
3
3
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./interface').IProDatesPickerProps> & Readonly<{
4
- onClear?: ((ev: FocusEvent) => any) | undefined;
5
4
  "onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
5
+ onClear?: ((ev: FocusEvent) => any) | undefined;
6
6
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
- clear: (ev: FocusEvent) => any;
8
7
  "update:modelValue": (value: string | string[]) => any;
8
+ clear: (ev: FocusEvent) => any;
9
9
  }, import('vue').PublicProps, {
10
- maxLength: number;
11
10
  allowClear: boolean;
11
+ maxLength: number;
12
12
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
13
13
  datePickerRef: HTMLDivElement;
14
14
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
@@ -19,28 +19,31 @@ declare const ProDatesPicker: {
19
19
  M: {};
20
20
  Defaults: {};
21
21
  }, Readonly<import('./interface').IProDatesPickerProps> & Readonly<{
22
- onClear?: ((ev: FocusEvent) => any) | undefined;
23
22
  "onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
23
+ onClear?: ((ev: FocusEvent) => any) | undefined;
24
24
  }>, {}, {}, {}, {}, {
25
- maxLength: number;
26
25
  allowClear: boolean;
26
+ maxLength: number;
27
27
  }>;
28
28
  __isFragment?: never;
29
29
  __isTeleport?: never;
30
30
  __isSuspense?: never;
31
31
  } & import('vue').ComponentOptionsBase<Readonly<import('./interface').IProDatesPickerProps> & Readonly<{
32
- onClear?: ((ev: FocusEvent) => any) | undefined;
33
32
  "onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
33
+ onClear?: ((ev: FocusEvent) => any) | undefined;
34
34
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
35
- clear: (ev: FocusEvent) => any;
36
35
  "update:modelValue": (value: string | string[]) => any;
36
+ clear: (ev: FocusEvent) => any;
37
37
  }, string, {
38
- maxLength: number;
39
38
  allowClear: boolean;
39
+ maxLength: number;
40
40
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
41
41
  $slots: Partial<Record<NonNullable<string | number>, (_: any) => any>>;
42
42
  }) & {
43
43
  install: (app: App) => void;
44
44
  };
45
+ /** 导出类型 */
46
+ export * from './interface';
47
+ /** 导出组件 */
45
48
  export { ProDatesPicker };
46
49
  export default ProDatesPicker;
@@ -1,13 +1,13 @@
1
- import { DatePicker as r, Popover as t } from "@arco-design/web-vue";
2
- import e from "./index.vue.js";
1
+ import { DatePicker as r, Popover as t, Input as s } from "@arco-design/web-vue";
2
+ import o from "./index.vue.js";
3
3
  /* empty css */
4
- import { IconCalendar as s } from "@arco-design/web-vue/es/icon";
5
- const a = Object.assign(e, {
6
- install: (o) => {
7
- o.use(r), o.use(t), o.use(s), o.component("KbProDatesPicker", e);
4
+ import { IconCalendar as i } from "@arco-design/web-vue/es/icon";
5
+ const u = Object.assign(o, {
6
+ install: (e) => {
7
+ e.use(r), e.use(t), e.use(s), e.use(i), e.component("KbProDatesPicker", o);
8
8
  }
9
9
  });
10
10
  export {
11
- a as ProDatesPicker,
12
- a as default
11
+ u as ProDatesPicker,
12
+ u as default
13
13
  };
@@ -9,14 +9,14 @@ declare function __VLS_template(): {
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: import('vue').DefineComponent<IProDatesPickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
- clear: (ev: FocusEvent) => any;
13
12
  "update:modelValue": (value: string | string[]) => any;
13
+ clear: (ev: FocusEvent) => any;
14
14
  }, string, import('vue').PublicProps, Readonly<IProDatesPickerProps> & Readonly<{
15
- onClear?: ((ev: FocusEvent) => any) | undefined;
16
15
  "onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
16
+ onClear?: ((ev: FocusEvent) => any) | undefined;
17
17
  }>, {
18
- maxLength: number;
19
18
  allowClear: boolean;
19
+ maxLength: number;
20
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
21
21
  datePickerRef: HTMLDivElement;
22
22
  }, HTMLDivElement>;
@@ -1,20 +1,22 @@
1
- var V = Object.getOwnPropertySymbols;
2
- var j = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
3
- var P = (n, g) => {
4
- var u = {};
5
- for (var a in n)
6
- j.call(n, a) && g.indexOf(a) < 0 && (u[a] = n[a]);
7
- if (n != null && V)
8
- for (var a of V(n))
9
- g.indexOf(a) < 0 && O.call(n, a) && (u[a] = n[a]);
10
- return u;
1
+ var C = Object.getOwnPropertySymbols;
2
+ var N = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
3
+ var y = (s, k) => {
4
+ var m = {};
5
+ for (var r in s)
6
+ N.call(s, r) && k.indexOf(r) < 0 && (m[r] = s[r]);
7
+ if (s != null && C)
8
+ for (var r of C(s))
9
+ k.indexOf(r) < 0 && A.call(s, r) && (m[r] = s[r]);
10
+ return m;
11
11
  };
12
- import { defineComponent as T, ref as k, useSlots as U, useAttrs as W, computed as x, onMounted as q, resolveComponent as Y, createElementBlock as F, openBlock as G, normalizeClass as H, createVNode as _, withCtx as v, mergeProps as M, unref as h, withModifiers as J, createSlots as K, createElementVNode as $, normalizeStyle as Q, toDisplayString as X, renderList as Z, renderSlot as ee, normalizeProps as te, guardReactiveProps as oe } from "vue";
13
- import { conclude as b } from "vue-global-config";
14
- import { globalProps as w } from "../global-props.js";
15
- import p from "dayjs";
16
- import { initSelected as re, transDatesString as B } from "./util.js";
17
- const ae = ["onClick"], le = "keyblade-pro-dates-picker", de = /* @__PURE__ */ T({
12
+ import { defineComponent as j, ref as Y, useSlots as O, useAttrs as T, computed as x, onMounted as U, createElementBlock as W, openBlock as q, normalizeClass as F, createVNode as P, unref as u, withCtx as g, mergeProps as M, withModifiers as G, createSlots as H, createElementVNode as S, normalizeStyle as J, toDisplayString as K, renderList as Q, renderSlot as X, normalizeProps as Z, guardReactiveProps as ee } from "vue";
13
+ import { conclude as V } from "vue-global-config";
14
+ import { Popover as te, Input as re, DatePicker as oe } from "@arco-design/web-vue";
15
+ import { IconCalendar as le } from "@arco-design/web-vue/es/icon";
16
+ import { globalProps as $ } from "../global-props.js";
17
+ import d from "dayjs";
18
+ import { initSelected as ae, transDatesString as b } from "./util.js";
19
+ const ne = ["onClick"], se = "keyblade-pro-dates-picker", ge = /* @__PURE__ */ j({
18
20
  __name: "index",
19
21
  props: {
20
22
  modelValue: {},
@@ -36,101 +38,98 @@ const ae = ["onClick"], le = "keyblade-pro-dates-picker", de = /* @__PURE__ */ T
36
38
  datePickerProps: {}
37
39
  },
38
40
  emits: ["update:modelValue", "clear"],
39
- setup(n, { emit: g }) {
40
- const u = {
41
+ setup(s, { emit: k }) {
42
+ const m = {
41
43
  placeholder: "请选择日期",
42
44
  datePickerProps: {
43
45
  hideTrigger: !0
44
46
  }
45
- }, a = g, c = n, C = k(), S = k(null), d = k(re(c.modelValue)), L = U(), R = W(), y = k(), z = x(() => {
46
- const i = c, { datePickerProps: e } = i, l = P(i, ["datePickerProps"]), t = u, { datePickerProps: s } = t, m = P(t, ["datePickerProps"]);
47
- return b([l, w.datesPicker || {}, m]);
48
- }), E = x(() => {
47
+ }, r = k, c = s, h = Y(), _ = Y(null), f = Y(ae(c.modelValue)), w = O(), B = T(), D = Y(), I = x(() => {
48
+ const v = c, { datePickerProps: e } = v, a = y(v, ["datePickerProps"]), n = m, { datePickerProps: o } = n, i = y(n, ["datePickerProps"]);
49
+ return V([a, $.datesPicker || {}, i]);
50
+ }), L = x(() => {
49
51
  var e;
50
- return b([c.datePickerProps, ((e = w.datesPicker) == null ? void 0 : e.datePickerProps) || {}, u.datePickerProps]);
51
- }), r = x({
52
+ return V([c.datePickerProps, ((e = $.datesPicker) == null ? void 0 : e.datePickerProps) || {}, m.datePickerProps]);
53
+ }), t = x({
52
54
  get: () => c.modelValue,
53
55
  set: (e) => {
54
- typeof e == "string" ? a("update:modelValue", e || "") : a("update:modelValue", e || []);
56
+ typeof e == "string" ? r("update:modelValue", e || "") : r("update:modelValue", e || []);
55
57
  }
56
58
  });
57
- q(() => {
58
- (c.modelValue === null || c.modelValue === void 0) && (r.value = []);
59
+ U(() => {
60
+ (c.modelValue === null || c.modelValue === void 0) && (t.value = []);
59
61
  });
60
- const I = (e) => {
61
- var m, f, i;
62
- const l = p(e).format("YYYY-MM-DD"), s = d.value.findIndex((t) => p(t).format("YYYY-MM-DD") === p(e).format("YYYY-MM-DD"));
63
- if (s !== -1) {
64
- if (d.value.splice(s, 1), typeof r.value == "string") {
65
- const t = l.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
66
- let o = (m = B(r.value)) == null ? void 0 : m.replace(new RegExp(`${t}, `, "g"), "");
67
- o = o == null ? void 0 : o.replace(new RegExp(`${t}`, "g"), ""), o = o == null ? void 0 : o.replace(/^, |, $/g, "").replace(/,{2,}/g, ",").trim(), r.value = o || "";
68
- } else if (r.value) {
69
- const t = (f = r.value) == null ? void 0 : f.findIndex((o) => p(o).format("YYYY-MM-DD") === p(e).format("YYYY-MM-DD"));
70
- t !== -1 && r.value.splice(t, 1);
62
+ const R = (e) => {
63
+ var i, p, v;
64
+ const a = d(e).format("YYYY-MM-DD"), o = f.value.findIndex((n) => d(n).format("YYYY-MM-DD") === d(e).format("YYYY-MM-DD"));
65
+ if (o !== -1) {
66
+ if (f.value.splice(o, 1), typeof t.value == "string") {
67
+ const n = a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
68
+ let l = (i = b(t.value)) == null ? void 0 : i.replace(new RegExp(`${n}, `, "g"), "");
69
+ l = l == null ? void 0 : l.replace(new RegExp(`${n}`, "g"), ""), l = l == null ? void 0 : l.replace(/^, |, $/g, "").replace(/,{2,}/g, ",").trim(), t.value = l || "";
70
+ } else if (t.value) {
71
+ const n = (p = t.value) == null ? void 0 : p.findIndex((l) => d(l).format("YYYY-MM-DD") === d(e).format("YYYY-MM-DD"));
72
+ n !== -1 && t.value.splice(n, 1);
71
73
  }
72
- y.value = e.getDate();
74
+ D.value = e.getDate();
73
75
  } else
74
- d.value.length < c.maxLength && (d.value.push(e), typeof r.value == "string" ? r.value += r.value ? `, ${l}` : l : (i = r.value) == null || i.push(l)), y.value = void 0;
75
- }, N = (e) => y.value === e.getDate() ? { backgroundColor: "transparent", color: "var(--color-text-1)" } : d.value.some((s) => p(s).format("YYYY-MM-DD") === p(e).format("YYYY-MM-DD")) ? { backgroundColor: "rgb(var(--primary-6))", color: "var(--color-white)" } : {}, A = (e) => {
76
- d.value = [], r.value = typeof r.value == "string" ? "" : [], a("clear", e);
77
- };
78
- return (e, l) => {
79
- const s = Y("icon-calendar"), m = Y("a-input"), f = Y("a-date-picker"), i = Y("a-popover");
80
- return G(), F("div", {
81
- class: H(le),
82
- ref_key: "datePickerRef",
83
- ref: C
84
- }, [
85
- _(i, {
86
- position: "bl",
87
- "popup-container": C.value,
88
- trigger: "click"
89
- }, {
90
- content: v(() => [
91
- _(f, M(E.value, {
92
- pickerValue: S.value,
93
- "onUpdate:pickerValue": l[0] || (l[0] = (t) => S.value = t),
94
- style: { width: "268px" }
95
- }), K({
96
- cell: v(({ date: t }) => [
97
- $("div", {
98
- class: "arco-picker-date",
99
- onClick: (o) => I(t)
100
- }, [
101
- $("div", {
102
- style: Q(N(t)),
103
- class: "arco-picker-date-value"
104
- }, X(t.getDate()), 5)
105
- ], 8, ae)
106
- ]),
107
- _: 2
108
- }, [
109
- Z(h(L), (t, o) => ({
110
- name: o,
111
- fn: v((D) => [
112
- ee(e.$slots, o, te(oe(D != null ? D : {})))
113
- ])
114
- }))
115
- ]), 1040, ["pickerValue"])
116
- ]),
117
- default: v(() => [
118
- _(m, M(M(z.value, h(R)), {
119
- "model-value": h(B)(r.value),
120
- onClear: J(A, ["stop"])
121
- }), {
122
- suffix: v(() => [
123
- _(s)
124
- ]),
125
- _: 1
126
- }, 16, ["model-value"])
127
- ]),
128
- _: 3
129
- }, 8, ["popup-container"])
130
- ], 512);
76
+ f.value.length < c.maxLength && (f.value.push(e), typeof t.value == "string" ? t.value += t.value ? `, ${a}` : a : (v = t.value) == null || v.push(a)), D.value = void 0;
77
+ }, z = (e) => D.value === e.getDate() ? { backgroundColor: "transparent", color: "var(--color-text-1)" } : f.value.some((o) => d(o).format("YYYY-MM-DD") === d(e).format("YYYY-MM-DD")) ? { backgroundColor: "rgb(var(--primary-6))", color: "var(--color-white)" } : {}, E = (e) => {
78
+ f.value = [], t.value = typeof t.value == "string" ? "" : [], r("clear", e);
131
79
  };
80
+ return (e, a) => (q(), W("div", {
81
+ class: F(se),
82
+ ref_key: "datePickerRef",
83
+ ref: h
84
+ }, [
85
+ P(u(te), {
86
+ position: "bl",
87
+ "popup-container": h.value,
88
+ trigger: "click"
89
+ }, {
90
+ content: g(() => [
91
+ P(u(oe), M(L.value, {
92
+ pickerValue: _.value,
93
+ "onUpdate:pickerValue": a[0] || (a[0] = (o) => _.value = o),
94
+ style: { width: "268px" }
95
+ }), H({
96
+ cell: g(({ date: o }) => [
97
+ S("div", {
98
+ class: "arco-picker-date",
99
+ onClick: (i) => R(o)
100
+ }, [
101
+ S("div", {
102
+ style: J(z(o)),
103
+ class: "arco-picker-date-value"
104
+ }, K(o.getDate()), 5)
105
+ ], 8, ne)
106
+ ]),
107
+ _: 2
108
+ }, [
109
+ Q(u(w), (o, i) => ({
110
+ name: i,
111
+ fn: g((p) => [
112
+ X(e.$slots, i, Z(ee(p != null ? p : {})))
113
+ ])
114
+ }))
115
+ ]), 1040, ["pickerValue"])
116
+ ]),
117
+ default: g(() => [
118
+ P(u(re), M(M(I.value, u(B)), {
119
+ "model-value": u(b)(t.value),
120
+ onClear: G(E, ["stop"])
121
+ }), {
122
+ suffix: g(() => [
123
+ P(u(le))
124
+ ]),
125
+ _: 1
126
+ }, 16, ["model-value"])
127
+ ]),
128
+ _: 3
129
+ }, 8, ["popup-container"])
130
+ ], 512));
132
131
  }
133
132
  });
134
133
  export {
135
- de as default
134
+ ge as default
136
135
  };
@@ -4,6 +4,8 @@ type ProFindPasswordType = typeof _ProFindPassword & {
4
4
  install: (app: App) => void;
5
5
  };
6
6
  declare const ProFindPassword: ProFindPasswordType;
7
+ /** 导出类型 */
7
8
  export * from './interface';
9
+ /** 导出组件 */
8
10
  export { ProFindPassword };
9
11
  export default ProFindPassword;
@@ -1,12 +1,12 @@
1
1
  import o from "./index.vue.js";
2
2
  /* empty css */
3
- import { Form as t, Input as r, Card as e, Button as n, Steps as i } from "@arco-design/web-vue";
4
- const c = Object.assign(o, {
3
+ import { Card as t, Space as e, Steps as r, Form as n, Input as u, Button as i } from "@arco-design/web-vue";
4
+ const f = Object.assign(o, {
5
5
  install: (s) => {
6
- s.use(t), s.use(r), s.use(e), s.use(n), s.use(i), s.component("KbProFindPassword", o);
6
+ s.use(t), s.use(e), s.use(r), s.use(n), s.use(u), s.use(i), s.component("KbProFindPassword", o);
7
7
  }
8
8
  });
9
9
  export {
10
- c as ProFindPassword,
11
- c as default
10
+ f as ProFindPassword,
11
+ f as default
12
12
  };