nbb-component-ui 1.7.2 → 1.7.4

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/index.es.js CHANGED
@@ -1,391 +1,391 @@
1
- import { defineComponent as ue, resolveComponent as J, openBlock as D, createElementBlock as B, createElementVNode as A, toDisplayString as g, unref as E, createCommentVNode as L, createVNode as te, withCtx as K, Fragment as he, renderList as Ne, createBlock as re, createTextVNode as ae, ref as X, watch as _e } from "vue";
1
+ import { defineComponent as pe, resolveComponent as Y, openBlock as P, createElementBlock as L, Fragment as fe, createVNode as X, withCtx as Q, createTextVNode as Z, createElementVNode as D, toDisplayString as m, unref as $, createCommentVNode as O, renderList as Ne, createBlock as re, ref as ee, watch as _e } from "vue";
2
2
  import "element-plus";
3
- var pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
- function me(d) {
5
- return d && d.__esModule && Object.prototype.hasOwnProperty.call(d, "default") ? d.default : d;
3
+ var me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
+ function be(r) {
5
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
6
6
  }
7
- var be = { exports: {} };
8
- (function(d, c) {
9
- (function(f, y) {
10
- d.exports = y();
11
- })(pe, function() {
12
- var f = 1e3, y = 6e4, w = 36e5, k = "millisecond", T = "second", v = "minute", u = "hour", $ = "day", R = "week", b = "month", C = "quarter", a = "year", F = "date", s = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, q = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, U = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(o) {
13
- var t = ["th", "st", "nd", "rd"], e = o % 100;
14
- return "[" + o + (t[(e - 20) % 10] || t[e] || t[0]) + "]";
15
- } }, x = function(o, t, e) {
16
- var i = String(o);
17
- return !i || i.length >= t ? o : "" + Array(t + 1 - i.length).join(e) + o;
18
- }, G = { s: x, z: function(o) {
19
- var t = -o.utcOffset(), e = Math.abs(t), i = Math.floor(e / 60), n = e % 60;
20
- return (t <= 0 ? "+" : "-") + x(i, 2, "0") + ":" + x(n, 2, "0");
21
- }, m: function o(t, e) {
22
- if (t.date() < e.date())
23
- return -o(e, t);
24
- var i = 12 * (e.year() - t.year()) + (e.month() - t.month()), n = t.clone().add(i, b), l = e - n < 0, r = t.clone().add(i + (l ? -1 : 1), b);
25
- return +(-(i + (e - n) / (l ? n - r : r - n)) || 0);
26
- }, a: function(o) {
27
- return o < 0 ? Math.ceil(o) || 0 : Math.floor(o);
28
- }, p: function(o) {
29
- return { M: b, y: a, w: R, d: $, D: F, h: u, m: v, s: T, ms: k, Q: C }[o] || String(o || "").toLowerCase().replace(/s$/, "");
30
- }, u: function(o) {
31
- return o === void 0;
32
- } }, z = "en", O = {};
33
- O[z] = U;
34
- var Y = "$isDayjsObject", Z = function(o) {
35
- return o instanceof se || !(!o || !o[Y]);
36
- }, H = function o(t, e, i) {
7
+ var ge = { exports: {} };
8
+ (function(r, b) {
9
+ (function(d, g) {
10
+ r.exports = g();
11
+ })(me, function() {
12
+ var d = 1e3, g = 6e4, S = 36e5, h = "millisecond", N = "second", v = "minute", c = "hour", A = "day", R = "week", p = "month", z = "quarter", y = "year", C = "date", e = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, F = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, q = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
13
+ var a = ["th", "st", "nd", "rd"], t = s % 100;
14
+ return "[" + s + (a[(t - 20) % 10] || a[t] || a[0]) + "]";
15
+ } }, E = function(s, a, t) {
16
+ var i = String(s);
17
+ return !i || i.length >= a ? s : "" + Array(a + 1 - i.length).join(t) + s;
18
+ }, G = { s: E, z: function(s) {
19
+ var a = -s.utcOffset(), t = Math.abs(a), i = Math.floor(t / 60), n = t % 60;
20
+ return (a <= 0 ? "+" : "-") + E(i, 2, "0") + ":" + E(n, 2, "0");
21
+ }, m: function s(a, t) {
22
+ if (a.date() < t.date())
23
+ return -s(t, a);
24
+ var i = 12 * (t.year() - a.year()) + (t.month() - a.month()), n = a.clone().add(i, p), o = t - n < 0, l = a.clone().add(i + (o ? -1 : 1), p);
25
+ return +(-(i + (t - n) / (o ? n - l : l - n)) || 0);
26
+ }, a: function(s) {
27
+ return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
28
+ }, p: function(s) {
29
+ return { M: p, y, w: R, d: A, D: C, h: c, m: v, s: N, ms: h, Q: z }[s] || String(s || "").toLowerCase().replace(/s$/, "");
30
+ }, u: function(s) {
31
+ return s === void 0;
32
+ } }, B = "en", I = {};
33
+ I[B] = q;
34
+ var J = "$isDayjsObject", te = function(s) {
35
+ return s instanceof se || !(!s || !s[J]);
36
+ }, H = function s(a, t, i) {
37
37
  var n;
38
- if (!t)
39
- return z;
40
- if (typeof t == "string") {
41
- var l = t.toLowerCase();
42
- O[l] && (n = l), e && (O[l] = e, n = l);
43
- var r = t.split("-");
44
- if (!n && r.length > 1)
45
- return o(r[0]);
38
+ if (!a)
39
+ return B;
40
+ if (typeof a == "string") {
41
+ var o = a.toLowerCase();
42
+ I[o] && (n = o), t && (I[o] = t, n = o);
43
+ var l = a.split("-");
44
+ if (!n && l.length > 1)
45
+ return s(l[0]);
46
46
  } else {
47
- var m = t.name;
48
- O[m] = t, n = m;
47
+ var u = a.name;
48
+ I[u] = a, n = u;
49
49
  }
50
- return !i && n && (z = n), n || !i && z;
51
- }, N = function(o, t) {
52
- if (Z(o))
53
- return o.clone();
54
- var e = typeof t == "object" ? t : {};
55
- return e.date = o, e.args = arguments, new se(e);
56
- }, p = G;
57
- p.l = H, p.i = Z, p.w = function(o, t) {
58
- return N(o, { locale: t.$L, utc: t.$u, x: t.$x, $offset: t.$offset });
50
+ return !i && n && (B = n), n || !i && B;
51
+ }, _ = function(s, a) {
52
+ if (te(s))
53
+ return s.clone();
54
+ var t = typeof a == "object" ? a : {};
55
+ return t.date = s, t.args = arguments, new se(t);
56
+ }, f = G;
57
+ f.l = H, f.i = te, f.w = function(s, a) {
58
+ return _(s, { locale: a.$L, utc: a.$u, x: a.$x, $offset: a.$offset });
59
59
  };
60
60
  var se = function() {
61
- function o(e) {
62
- this.$L = H(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[Y] = !0;
61
+ function s(t) {
62
+ this.$L = H(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[J] = !0;
63
63
  }
64
- var t = o.prototype;
65
- return t.parse = function(e) {
64
+ var a = s.prototype;
65
+ return a.parse = function(t) {
66
66
  this.$d = function(i) {
67
- var n = i.date, l = i.utc;
67
+ var n = i.date, o = i.utc;
68
68
  if (n === null)
69
69
  return /* @__PURE__ */ new Date(NaN);
70
- if (p.u(n))
70
+ if (f.u(n))
71
71
  return /* @__PURE__ */ new Date();
72
72
  if (n instanceof Date)
73
73
  return new Date(n);
74
74
  if (typeof n == "string" && !/Z$/i.test(n)) {
75
- var r = n.match(M);
76
- if (r) {
77
- var m = r[2] - 1 || 0, h = (r[7] || "0").substring(0, 3);
78
- return l ? new Date(Date.UTC(r[1], m, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, h)) : new Date(r[1], m, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, h);
75
+ var l = n.match(M);
76
+ if (l) {
77
+ var u = l[2] - 1 || 0, w = (l[7] || "0").substring(0, 3);
78
+ return o ? new Date(Date.UTC(l[1], u, l[3] || 1, l[4] || 0, l[5] || 0, l[6] || 0, w)) : new Date(l[1], u, l[3] || 1, l[4] || 0, l[5] || 0, l[6] || 0, w);
79
79
  }
80
80
  }
81
81
  return new Date(n);
82
- }(e), this.init();
83
- }, t.init = function() {
84
- var e = this.$d;
85
- this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
86
- }, t.$utils = function() {
87
- return p;
88
- }, t.isValid = function() {
89
- return this.$d.toString() !== s;
90
- }, t.isSame = function(e, i) {
91
- var n = N(e);
82
+ }(t), this.init();
83
+ }, a.init = function() {
84
+ var t = this.$d;
85
+ this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
86
+ }, a.$utils = function() {
87
+ return f;
88
+ }, a.isValid = function() {
89
+ return this.$d.toString() !== e;
90
+ }, a.isSame = function(t, i) {
91
+ var n = _(t);
92
92
  return this.startOf(i) <= n && n <= this.endOf(i);
93
- }, t.isAfter = function(e, i) {
94
- return N(e) < this.startOf(i);
95
- }, t.isBefore = function(e, i) {
96
- return this.endOf(i) < N(e);
97
- }, t.$g = function(e, i, n) {
98
- return p.u(e) ? this[i] : this.set(n, e);
99
- }, t.unix = function() {
93
+ }, a.isAfter = function(t, i) {
94
+ return _(t) < this.startOf(i);
95
+ }, a.isBefore = function(t, i) {
96
+ return this.endOf(i) < _(t);
97
+ }, a.$g = function(t, i, n) {
98
+ return f.u(t) ? this[i] : this.set(n, t);
99
+ }, a.unix = function() {
100
100
  return Math.floor(this.valueOf() / 1e3);
101
- }, t.valueOf = function() {
101
+ }, a.valueOf = function() {
102
102
  return this.$d.getTime();
103
- }, t.startOf = function(e, i) {
104
- var n = this, l = !!p.u(i) || i, r = p.p(e), m = function(V, P) {
105
- var j = p.w(n.$u ? Date.UTC(n.$y, P, V) : new Date(n.$y, P, V), n);
106
- return l ? j : j.endOf($);
107
- }, h = function(V, P) {
108
- return p.w(n.toDate()[V].apply(n.toDate("s"), (l ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(P)), n);
109
- }, _ = this.$W, S = this.$M, I = this.$D, Q = "set" + (this.$u ? "UTC" : "");
110
- switch (r) {
111
- case a:
112
- return l ? m(1, 0) : m(31, 11);
113
- case b:
114
- return l ? m(1, S) : m(0, S + 1);
103
+ }, a.startOf = function(t, i) {
104
+ var n = this, o = !!f.u(i) || i, l = f.p(t), u = function(V, k) {
105
+ var j = f.w(n.$u ? Date.UTC(n.$y, k, V) : new Date(n.$y, k, V), n);
106
+ return o ? j : j.endOf(A);
107
+ }, w = function(V, k) {
108
+ return f.w(n.toDate()[V].apply(n.toDate("s"), (o ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(k)), n);
109
+ }, T = this.$W, x = this.$M, U = this.$D, K = "set" + (this.$u ? "UTC" : "");
110
+ switch (l) {
111
+ case y:
112
+ return o ? u(1, 0) : u(31, 11);
113
+ case p:
114
+ return o ? u(1, x) : u(0, x + 1);
115
115
  case R:
116
- var W = this.$locale().weekStart || 0, ee = (_ < W ? _ + 7 : _) - W;
117
- return m(l ? I - ee : I + (6 - ee), S);
118
- case $:
119
- case F:
120
- return h(Q + "Hours", 0);
121
- case u:
122
- return h(Q + "Minutes", 1);
116
+ var W = this.$locale().weekStart || 0, ne = (T < W ? T + 7 : T) - W;
117
+ return u(o ? U - ne : U + (6 - ne), x);
118
+ case A:
119
+ case C:
120
+ return w(K + "Hours", 0);
121
+ case c:
122
+ return w(K + "Minutes", 1);
123
123
  case v:
124
- return h(Q + "Seconds", 2);
125
- case T:
126
- return h(Q + "Milliseconds", 3);
124
+ return w(K + "Seconds", 2);
125
+ case N:
126
+ return w(K + "Milliseconds", 3);
127
127
  default:
128
128
  return this.clone();
129
129
  }
130
- }, t.endOf = function(e) {
131
- return this.startOf(e, !1);
132
- }, t.$set = function(e, i) {
133
- var n, l = p.p(e), r = "set" + (this.$u ? "UTC" : ""), m = (n = {}, n[$] = r + "Date", n[F] = r + "Date", n[b] = r + "Month", n[a] = r + "FullYear", n[u] = r + "Hours", n[v] = r + "Minutes", n[T] = r + "Seconds", n[k] = r + "Milliseconds", n)[l], h = l === $ ? this.$D + (i - this.$W) : i;
134
- if (l === b || l === a) {
135
- var _ = this.clone().set(F, 1);
136
- _.$d[m](h), _.init(), this.$d = _.set(F, Math.min(this.$D, _.daysInMonth())).$d;
130
+ }, a.endOf = function(t) {
131
+ return this.startOf(t, !1);
132
+ }, a.$set = function(t, i) {
133
+ var n, o = f.p(t), l = "set" + (this.$u ? "UTC" : ""), u = (n = {}, n[A] = l + "Date", n[C] = l + "Date", n[p] = l + "Month", n[y] = l + "FullYear", n[c] = l + "Hours", n[v] = l + "Minutes", n[N] = l + "Seconds", n[h] = l + "Milliseconds", n)[o], w = o === A ? this.$D + (i - this.$W) : i;
134
+ if (o === p || o === y) {
135
+ var T = this.clone().set(C, 1);
136
+ T.$d[u](w), T.init(), this.$d = T.set(C, Math.min(this.$D, T.daysInMonth())).$d;
137
137
  } else
138
- m && this.$d[m](h);
138
+ u && this.$d[u](w);
139
139
  return this.init(), this;
140
- }, t.set = function(e, i) {
141
- return this.clone().$set(e, i);
142
- }, t.get = function(e) {
143
- return this[p.p(e)]();
144
- }, t.add = function(e, i) {
145
- var n, l = this;
146
- e = Number(e);
147
- var r = p.p(i), m = function(S) {
148
- var I = N(l);
149
- return p.w(I.date(I.date() + Math.round(S * e)), l);
140
+ }, a.set = function(t, i) {
141
+ return this.clone().$set(t, i);
142
+ }, a.get = function(t) {
143
+ return this[f.p(t)]();
144
+ }, a.add = function(t, i) {
145
+ var n, o = this;
146
+ t = Number(t);
147
+ var l = f.p(i), u = function(x) {
148
+ var U = _(o);
149
+ return f.w(U.date(U.date() + Math.round(x * t)), o);
150
150
  };
151
- if (r === b)
152
- return this.set(b, this.$M + e);
153
- if (r === a)
154
- return this.set(a, this.$y + e);
155
- if (r === $)
156
- return m(1);
157
- if (r === R)
158
- return m(7);
159
- var h = (n = {}, n[v] = y, n[u] = w, n[T] = f, n)[r] || 1, _ = this.$d.getTime() + e * h;
160
- return p.w(_, this);
161
- }, t.subtract = function(e, i) {
162
- return this.add(-1 * e, i);
163
- }, t.format = function(e) {
151
+ if (l === p)
152
+ return this.set(p, this.$M + t);
153
+ if (l === y)
154
+ return this.set(y, this.$y + t);
155
+ if (l === A)
156
+ return u(1);
157
+ if (l === R)
158
+ return u(7);
159
+ var w = (n = {}, n[v] = g, n[c] = S, n[N] = d, n)[l] || 1, T = this.$d.getTime() + t * w;
160
+ return f.w(T, this);
161
+ }, a.subtract = function(t, i) {
162
+ return this.add(-1 * t, i);
163
+ }, a.format = function(t) {
164
164
  var i = this, n = this.$locale();
165
165
  if (!this.isValid())
166
- return n.invalidDate || s;
167
- var l = e || "YYYY-MM-DDTHH:mm:ssZ", r = p.z(this), m = this.$H, h = this.$m, _ = this.$M, S = n.weekdays, I = n.months, Q = n.meridiem, W = function(P, j, ne, oe) {
168
- return P && (P[j] || P(i, l)) || ne[j].slice(0, oe);
169
- }, ee = function(P) {
170
- return p.s(m % 12 || 12, P, "0");
171
- }, V = Q || function(P, j, ne) {
172
- var oe = P < 12 ? "AM" : "PM";
173
- return ne ? oe.toLowerCase() : oe;
166
+ return n.invalidDate || e;
167
+ var o = t || "YYYY-MM-DDTHH:mm:ssZ", l = f.z(this), u = this.$H, w = this.$m, T = this.$M, x = n.weekdays, U = n.months, K = n.meridiem, W = function(k, j, ae, oe) {
168
+ return k && (k[j] || k(i, o)) || ae[j].slice(0, oe);
169
+ }, ne = function(k) {
170
+ return f.s(u % 12 || 12, k, "0");
171
+ }, V = K || function(k, j, ae) {
172
+ var oe = k < 12 ? "AM" : "PM";
173
+ return ae ? oe.toLowerCase() : oe;
174
174
  };
175
- return l.replace(q, function(P, j) {
176
- return j || function(ne) {
177
- switch (ne) {
175
+ return o.replace(F, function(k, j) {
176
+ return j || function(ae) {
177
+ switch (ae) {
178
178
  case "YY":
179
179
  return String(i.$y).slice(-2);
180
180
  case "YYYY":
181
- return p.s(i.$y, 4, "0");
181
+ return f.s(i.$y, 4, "0");
182
182
  case "M":
183
- return _ + 1;
183
+ return T + 1;
184
184
  case "MM":
185
- return p.s(_ + 1, 2, "0");
185
+ return f.s(T + 1, 2, "0");
186
186
  case "MMM":
187
- return W(n.monthsShort, _, I, 3);
187
+ return W(n.monthsShort, T, U, 3);
188
188
  case "MMMM":
189
- return W(I, _);
189
+ return W(U, T);
190
190
  case "D":
191
191
  return i.$D;
192
192
  case "DD":
193
- return p.s(i.$D, 2, "0");
193
+ return f.s(i.$D, 2, "0");
194
194
  case "d":
195
195
  return String(i.$W);
196
196
  case "dd":
197
- return W(n.weekdaysMin, i.$W, S, 2);
197
+ return W(n.weekdaysMin, i.$W, x, 2);
198
198
  case "ddd":
199
- return W(n.weekdaysShort, i.$W, S, 3);
199
+ return W(n.weekdaysShort, i.$W, x, 3);
200
200
  case "dddd":
201
- return S[i.$W];
201
+ return x[i.$W];
202
202
  case "H":
203
- return String(m);
203
+ return String(u);
204
204
  case "HH":
205
- return p.s(m, 2, "0");
205
+ return f.s(u, 2, "0");
206
206
  case "h":
207
- return ee(1);
207
+ return ne(1);
208
208
  case "hh":
209
- return ee(2);
209
+ return ne(2);
210
210
  case "a":
211
- return V(m, h, !0);
211
+ return V(u, w, !0);
212
212
  case "A":
213
- return V(m, h, !1);
213
+ return V(u, w, !1);
214
214
  case "m":
215
- return String(h);
215
+ return String(w);
216
216
  case "mm":
217
- return p.s(h, 2, "0");
217
+ return f.s(w, 2, "0");
218
218
  case "s":
219
219
  return String(i.$s);
220
220
  case "ss":
221
- return p.s(i.$s, 2, "0");
221
+ return f.s(i.$s, 2, "0");
222
222
  case "SSS":
223
- return p.s(i.$ms, 3, "0");
223
+ return f.s(i.$ms, 3, "0");
224
224
  case "Z":
225
- return r;
225
+ return l;
226
226
  }
227
227
  return null;
228
- }(P) || r.replace(":", "");
228
+ }(k) || l.replace(":", "");
229
229
  });
230
- }, t.utcOffset = function() {
230
+ }, a.utcOffset = function() {
231
231
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
232
- }, t.diff = function(e, i, n) {
233
- var l, r = this, m = p.p(i), h = N(e), _ = (h.utcOffset() - this.utcOffset()) * y, S = this - h, I = function() {
234
- return p.m(r, h);
232
+ }, a.diff = function(t, i, n) {
233
+ var o, l = this, u = f.p(i), w = _(t), T = (w.utcOffset() - this.utcOffset()) * g, x = this - w, U = function() {
234
+ return f.m(l, w);
235
235
  };
236
- switch (m) {
237
- case a:
238
- l = I() / 12;
236
+ switch (u) {
237
+ case y:
238
+ o = U() / 12;
239
239
  break;
240
- case b:
241
- l = I();
240
+ case p:
241
+ o = U();
242
242
  break;
243
- case C:
244
- l = I() / 3;
243
+ case z:
244
+ o = U() / 3;
245
245
  break;
246
246
  case R:
247
- l = (S - _) / 6048e5;
247
+ o = (x - T) / 6048e5;
248
248
  break;
249
- case $:
250
- l = (S - _) / 864e5;
249
+ case A:
250
+ o = (x - T) / 864e5;
251
251
  break;
252
- case u:
253
- l = S / w;
252
+ case c:
253
+ o = x / S;
254
254
  break;
255
255
  case v:
256
- l = S / y;
256
+ o = x / g;
257
257
  break;
258
- case T:
259
- l = S / f;
258
+ case N:
259
+ o = x / d;
260
260
  break;
261
261
  default:
262
- l = S;
262
+ o = x;
263
263
  }
264
- return n ? l : p.a(l);
265
- }, t.daysInMonth = function() {
266
- return this.endOf(b).$D;
267
- }, t.$locale = function() {
268
- return O[this.$L];
269
- }, t.locale = function(e, i) {
270
- if (!e)
264
+ return n ? o : f.a(o);
265
+ }, a.daysInMonth = function() {
266
+ return this.endOf(p).$D;
267
+ }, a.$locale = function() {
268
+ return I[this.$L];
269
+ }, a.locale = function(t, i) {
270
+ if (!t)
271
271
  return this.$L;
272
- var n = this.clone(), l = H(e, i, !0);
273
- return l && (n.$L = l), n;
274
- }, t.clone = function() {
275
- return p.w(this.$d, this);
276
- }, t.toDate = function() {
272
+ var n = this.clone(), o = H(t, i, !0);
273
+ return o && (n.$L = o), n;
274
+ }, a.clone = function() {
275
+ return f.w(this.$d, this);
276
+ }, a.toDate = function() {
277
277
  return new Date(this.valueOf());
278
- }, t.toJSON = function() {
278
+ }, a.toJSON = function() {
279
279
  return this.isValid() ? this.toISOString() : null;
280
- }, t.toISOString = function() {
280
+ }, a.toISOString = function() {
281
281
  return this.$d.toISOString();
282
- }, t.toString = function() {
282
+ }, a.toString = function() {
283
283
  return this.$d.toUTCString();
284
- }, o;
284
+ }, s;
285
285
  }(), ce = se.prototype;
286
- return N.prototype = ce, [["$ms", k], ["$s", T], ["$m", v], ["$H", u], ["$W", $], ["$M", b], ["$y", a], ["$D", F]].forEach(function(o) {
287
- ce[o[1]] = function(t) {
288
- return this.$g(t, o[0], o[1]);
286
+ return _.prototype = ce, [["$ms", h], ["$s", N], ["$m", v], ["$H", c], ["$W", A], ["$M", p], ["$y", y], ["$D", C]].forEach(function(s) {
287
+ ce[s[1]] = function(a) {
288
+ return this.$g(a, s[0], s[1]);
289
289
  };
290
- }), N.extend = function(o, t) {
291
- return o.$i || (o(t, se, N), o.$i = !0), N;
292
- }, N.locale = H, N.isDayjs = Z, N.unix = function(o) {
293
- return N(1e3 * o);
294
- }, N.en = O[z], N.Ls = O, N.p = {}, N;
290
+ }), _.extend = function(s, a) {
291
+ return s.$i || (s(a, se, _), s.$i = !0), _;
292
+ }, _.locale = H, _.isDayjs = te, _.unix = function(s) {
293
+ return _(1e3 * s);
294
+ }, _.en = I[B], _.Ls = I, _.p = {}, _;
295
295
  });
296
- })(be);
297
- var Te = be.exports;
298
- const ge = /* @__PURE__ */ me(Te);
299
- var ye = { exports: {} };
300
- (function(d, c) {
301
- (function(f, y) {
302
- d.exports = y();
303
- })(pe, function() {
304
- var f = "minute", y = /[+-]\d\d(?::?\d\d)?/g, w = /([+-]|\d\d)/g;
305
- return function(k, T, v) {
306
- var u = T.prototype;
307
- v.utc = function(s) {
308
- var M = { date: s, utc: !0, args: arguments };
309
- return new T(M);
310
- }, u.utc = function(s) {
296
+ })(ge);
297
+ var Te = ge.exports;
298
+ const ye = /* @__PURE__ */ be(Te);
299
+ var we = { exports: {} };
300
+ (function(r, b) {
301
+ (function(d, g) {
302
+ r.exports = g();
303
+ })(me, function() {
304
+ var d = "minute", g = /[+-]\d\d(?::?\d\d)?/g, S = /([+-]|\d\d)/g;
305
+ return function(h, N, v) {
306
+ var c = N.prototype;
307
+ v.utc = function(e) {
308
+ var M = { date: e, utc: !0, args: arguments };
309
+ return new N(M);
310
+ }, c.utc = function(e) {
311
311
  var M = v(this.toDate(), { locale: this.$L, utc: !0 });
312
- return s ? M.add(this.utcOffset(), f) : M;
313
- }, u.local = function() {
312
+ return e ? M.add(this.utcOffset(), d) : M;
313
+ }, c.local = function() {
314
314
  return v(this.toDate(), { locale: this.$L, utc: !1 });
315
315
  };
316
- var $ = u.parse;
317
- u.parse = function(s) {
318
- s.utc && (this.$u = !0), this.$utils().u(s.$offset) || (this.$offset = s.$offset), $.call(this, s);
316
+ var A = c.parse;
317
+ c.parse = function(e) {
318
+ e.utc && (this.$u = !0), this.$utils().u(e.$offset) || (this.$offset = e.$offset), A.call(this, e);
319
319
  };
320
- var R = u.init;
321
- u.init = function() {
320
+ var R = c.init;
321
+ c.init = function() {
322
322
  if (this.$u) {
323
- var s = this.$d;
324
- this.$y = s.getUTCFullYear(), this.$M = s.getUTCMonth(), this.$D = s.getUTCDate(), this.$W = s.getUTCDay(), this.$H = s.getUTCHours(), this.$m = s.getUTCMinutes(), this.$s = s.getUTCSeconds(), this.$ms = s.getUTCMilliseconds();
323
+ var e = this.$d;
324
+ this.$y = e.getUTCFullYear(), this.$M = e.getUTCMonth(), this.$D = e.getUTCDate(), this.$W = e.getUTCDay(), this.$H = e.getUTCHours(), this.$m = e.getUTCMinutes(), this.$s = e.getUTCSeconds(), this.$ms = e.getUTCMilliseconds();
325
325
  } else
326
326
  R.call(this);
327
327
  };
328
- var b = u.utcOffset;
329
- u.utcOffset = function(s, M) {
330
- var q = this.$utils().u;
331
- if (q(s))
332
- return this.$u ? 0 : q(this.$offset) ? b.call(this) : this.$offset;
333
- if (typeof s == "string" && (s = function(z) {
334
- z === void 0 && (z = "");
335
- var O = z.match(y);
336
- if (!O)
328
+ var p = c.utcOffset;
329
+ c.utcOffset = function(e, M) {
330
+ var F = this.$utils().u;
331
+ if (F(e))
332
+ return this.$u ? 0 : F(this.$offset) ? p.call(this) : this.$offset;
333
+ if (typeof e == "string" && (e = function(B) {
334
+ B === void 0 && (B = "");
335
+ var I = B.match(g);
336
+ if (!I)
337
337
  return null;
338
- var Y = ("" + O[0]).match(w) || ["-", 0, 0], Z = Y[0], H = 60 * +Y[1] + +Y[2];
339
- return H === 0 ? 0 : Z === "+" ? H : -H;
340
- }(s), s === null))
338
+ var J = ("" + I[0]).match(S) || ["-", 0, 0], te = J[0], H = 60 * +J[1] + +J[2];
339
+ return H === 0 ? 0 : te === "+" ? H : -H;
340
+ }(e), e === null))
341
341
  return this;
342
- var U = Math.abs(s) <= 16 ? 60 * s : s;
343
- if (U === 0)
342
+ var q = Math.abs(e) <= 16 ? 60 * e : e;
343
+ if (q === 0)
344
344
  return this.utc(M);
345
- var x = this.clone();
345
+ var E = this.clone();
346
346
  if (M)
347
- return x.$offset = U, x.$u = !1, x;
347
+ return E.$offset = q, E.$u = !1, E;
348
348
  var G = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
349
- return (x = this.local().add(U + G, f)).$offset = U, x.$x.$localOffset = G, x;
349
+ return (E = this.local().add(q + G, d)).$offset = q, E.$x.$localOffset = G, E;
350
350
  };
351
- var C = u.format;
352
- u.format = function(s) {
353
- var M = s || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
354
- return C.call(this, M);
355
- }, u.valueOf = function() {
356
- var s = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
357
- return this.$d.valueOf() - 6e4 * s;
358
- }, u.isUTC = function() {
351
+ var z = c.format;
352
+ c.format = function(e) {
353
+ var M = e || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
354
+ return z.call(this, M);
355
+ }, c.valueOf = function() {
356
+ var e = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
357
+ return this.$d.valueOf() - 6e4 * e;
358
+ }, c.isUTC = function() {
359
359
  return !!this.$u;
360
- }, u.toISOString = function() {
360
+ }, c.toISOString = function() {
361
361
  return this.toDate().toISOString();
362
- }, u.toString = function() {
362
+ }, c.toString = function() {
363
363
  return this.toDate().toUTCString();
364
364
  };
365
- var a = u.toDate;
366
- u.toDate = function(s) {
367
- return s === "s" && this.$offset ? v(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : a.call(this);
365
+ var y = c.toDate;
366
+ c.toDate = function(e) {
367
+ return e === "s" && this.$offset ? v(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : y.call(this);
368
368
  };
369
- var F = u.diff;
370
- u.diff = function(s, M, q) {
371
- if (s && this.$u === s.$u)
372
- return F.call(this, s, M, q);
373
- var U = this.local(), x = v(s).local();
374
- return F.call(U, x, M, q);
369
+ var C = c.diff;
370
+ c.diff = function(e, M, F) {
371
+ if (e && this.$u === e.$u)
372
+ return C.call(this, e, M, F);
373
+ var q = this.local(), E = v(e).local();
374
+ return C.call(q, E, M, F);
375
375
  };
376
376
  };
377
377
  });
378
- })(ye);
379
- var ve = ye.exports;
380
- const Me = /* @__PURE__ */ me(ve);
381
- ge.extend(Me);
378
+ })(we);
379
+ var ve = we.exports;
380
+ const Me = /* @__PURE__ */ be(ve);
381
+ ye.extend(Me);
382
382
  function Se() {
383
- let d = (/* @__PURE__ */ new Date()).getTimezoneOffset();
384
- const c = Math.abs(Math.floor(d / 60)), f = d < 0 ? "+" : "-";
385
- return d = Math.abs(d % 60), f + c.toString().padStart(2, "0") + d.toString().padStart(2, "0");
383
+ let r = (/* @__PURE__ */ new Date()).getTimezoneOffset();
384
+ const b = Math.abs(Math.floor(r / 60)), d = r < 0 ? "+" : "-";
385
+ return r = Math.abs(r % 60), d + b.toString().padStart(2, "0") + r.toString().padStart(2, "0");
386
386
  }
387
- function le(d, c, f) {
388
- return d ? (c === void 0 && (c = "YYYY-MM-DD HH:mm:ss"), f || (f = Se()), ge.utc(d).utcOffset(f).format(c)) : "";
387
+ function le(r, b, d) {
388
+ return r ? (b === void 0 && (b = "YYYY-MM-DD HH:mm:ss"), d || (d = Se()), ye.utc(r).utcOffset(d).format(b)) : "";
389
389
  }
390
390
  const xe = {
391
391
  cn: {
@@ -401,14 +401,14 @@ const xe = {
401
401
  days: "d"
402
402
  }
403
403
  };
404
- function fe(d, c = "cn") {
405
- const f = xe[c], y = Math.floor(d / (24 * 60 * 60 * 1e3)), w = Math.floor(d / (60 * 60 * 1e3) - y * 24), k = Math.floor(d / (60 * 1e3) - y * 24 * 60 - w * 60), T = Math.floor(d / 1e3 - y * 24 * 60 * 60 - w * 60 * 60 - k * 60);
406
- return y > 0 ? y + f.days + w + f.hours + k + f.minutes : w > 0 ? w + f.hours + k + f.minutes : k > 0 ? k + f.minutes : T > 0 ? T + f.seconds : 0 + f.seconds;
404
+ function ue(r, b = "cn") {
405
+ const d = xe[b], g = Math.floor(r / (24 * 60 * 60 * 1e3)), S = Math.floor(r / (60 * 60 * 1e3) - g * 24), h = Math.floor(r / (60 * 1e3) - g * 24 * 60 - S * 60), N = Math.floor(r / 1e3 - g * 24 * 60 * 60 - S * 60 * 60 - h * 60);
406
+ return g > 0 ? g + d.days + S + d.hours + h + d.minutes : S > 0 ? S + d.hours + h + d.minutes : h > 0 ? h + d.minutes : N > 0 ? N + d.seconds : 0 + d.seconds;
407
407
  }
408
408
  const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-between" }, $e = { class: "text-18px font-bold" }, Pe = {
409
409
  class: "text-14px font-bold",
410
410
  style: { color: "#005aae" }
411
- }, Ae = { class: "flex items-center" }, ke = { class: "flow-start" }, Fe = { key: 0 }, Ie = { class: "mt-30px block" }, Be = ["src"], Ce = { style: { "font-weight": "700" } }, Ue = {
411
+ }, Ae = { class: "flex items-center" }, ke = { class: "flow-start" }, Fe = { key: 0 }, Ie = { class: "mt-30px block" }, Ce = ["src"], Be = { style: { "font-weight": "700" } }, Ue = {
412
412
  key: 0,
413
413
  style: { "margin-right": "30px", "font-weight": "normal" }
414
414
  }, Le = {
@@ -432,15 +432,19 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
432
432
  }, je = {
433
433
  key: 5,
434
434
  style: { "font-weight": "normal", color: "#8a909c" }
435
- }, Ge = { key: 2 }, We = /* @__PURE__ */ ue({
435
+ }, Ge = { key: 2 }, We = /* @__PURE__ */ pe({
436
436
  name: "BpmProcessInstanceTaskList",
437
437
  __name: "CmcFlowList",
438
438
  props: {
439
439
  processInstance: {},
440
440
  tasks: {}
441
441
  },
442
- setup(d) {
443
- const c = en(), f = {
442
+ setup(r) {
443
+ const b = () => {
444
+ console.log(d("processFlow.flow"));
445
+ }, d = et();
446
+ console.log("ttttttttttttttttttttttt", d);
447
+ const g = {
444
448
  1: "svg-icon:approvalPending",
445
449
  // 审批中
446
450
  2: "svg-icon:approvalPass",
@@ -449,131 +453,139 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
449
453
  // 拒绝
450
454
  4: "svg-icon:approvalCanceled"
451
455
  // 取消
452
- }, y = (w) => [0, 1, 6, 7].includes(w.status) ? "primary" : w.status === 2 ? "success" : w.status === 3 ? "danger" : w.status === 4 ? "info" : w.status === 5 ? "warning" : "";
453
- return (w, k) => {
456
+ }, S = (h) => [0, 1, 6, 7].includes(h.status) ? "primary" : h.status === 2 ? "success" : h.status === 3 ? "danger" : h.status === 4 ? "info" : h.status === 5 ? "warning" : "";
457
+ return (h, N) => {
454
458
  var C;
455
- const T = J("Icon"), v = J("dict-tag"), u = J("el-tag"), $ = J("el-card"), R = J("el-timeline-item"), b = J("el-timeline");
456
- return D(), B("div", Ee, [
457
- A("div", De, [
458
- A("div", $e, [
459
- A("span", null, g(E(c)("processFlow.flow")), 1),
460
- A("span", null, g(d.processInstance.id), 1)
459
+ const v = Y("el-button"), c = Y("Icon"), A = Y("dict-tag"), R = Y("el-tag"), p = Y("el-card"), z = Y("el-timeline-item"), y = Y("el-timeline");
460
+ return P(), L(fe, null, [
461
+ X(v, { onClick: b }, {
462
+ default: Q(() => [...N[0] || (N[0] = [
463
+ Z("获取国际化值", -1)
464
+ ])]),
465
+ _: 1
466
+ }),
467
+ D("div", Ee, [
468
+ D("div", De, [
469
+ D("div", $e, [
470
+ D("span", null, m($(d)("processFlow.flow")), 1),
471
+ D("span", null, m(r.processInstance.id), 1)
472
+ ]),
473
+ D("div", Pe, [
474
+ D("span", null, m(r.processInstance.name), 1)
475
+ ])
461
476
  ]),
462
- A("div", Pe, [
463
- A("span", null, g(d.processInstance.name), 1)
464
- ])
465
- ]),
466
- A("div", Ae, [
467
- A("div", ke, [
468
- A("p", null, g(E(c)("processFlow.startTime")) + g(E(le)(d.processInstance.startTime)), 1),
469
- A("p", null, g(E(c)("processFlow.endTime")) + g(E(le)(d.processInstance.endTime)), 1),
470
- d.processInstance.durationInMillis ? (D(), B("p", Fe, g(E(c)("processFlow.duration")) + g(E(fe)((C = d.processInstance) == null ? void 0 : C.durationInMillis)), 1)) : L("", !0)
477
+ D("div", Ae, [
478
+ D("div", ke, [
479
+ D("p", null, m($(d)("processFlow.startTime")) + m($(le)(r.processInstance.startTime)), 1),
480
+ D("p", null, m($(d)("processFlow.endTime")) + m($(le)(r.processInstance.endTime)), 1),
481
+ r.processInstance.durationInMillis ? (P(), L("p", Fe, m($(d)("processFlow.duration")) + m($(ue)((C = r.processInstance) == null ? void 0 : C.durationInMillis)), 1)) : O("", !0)
482
+ ]),
483
+ X(c, {
484
+ size: 100,
485
+ icon: g[r.processInstance.status] || "svg-icon:approvalPending"
486
+ }, null, 8, ["icon"])
471
487
  ]),
472
- te(T, {
473
- size: 100,
474
- icon: f[d.processInstance.status] || "svg-icon:approvalPending"
475
- }, null, 8, ["icon"])
476
- ]),
477
- A("div", Ie, [
478
- te(b, null, {
479
- default: K(() => [
480
- (D(!0), B(he, null, Ne(d.tasks, (a, F) => (D(), re(R, {
481
- key: F,
482
- type: y(a) || "info"
483
- }, {
484
- dot: K(() => {
485
- var s;
486
- return [
487
- A("img", {
488
- src: ((s = a == null ? void 0 : a.assigneeUser) == null ? void 0 : s.avatar) || "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
489
- class: "avatar-wrap"
490
- }, null, 8, Be)
491
- ];
492
- }),
493
- default: K(() => [
494
- A("p", Ce, [
495
- ae(g(a.name) + " ", 1),
496
- a.status ? (D(), re(v, {
497
- key: 0,
498
- type: "bpm_task_status",
499
- value: a.status || ""
500
- }, null, 8, ["value"])) : L("", !0)
488
+ D("div", Ie, [
489
+ X(y, null, {
490
+ default: Q(() => [
491
+ (P(!0), L(fe, null, Ne(r.tasks, (e, M) => (P(), re(z, {
492
+ key: M,
493
+ type: S(e) || "info"
494
+ }, {
495
+ dot: Q(() => {
496
+ var F;
497
+ return [
498
+ D("img", {
499
+ src: ((F = e == null ? void 0 : e.assigneeUser) == null ? void 0 : F.avatar) || "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
500
+ class: "avatar-wrap"
501
+ }, null, 8, Ce)
502
+ ];
503
+ }),
504
+ default: Q(() => [
505
+ D("p", Be, [
506
+ Z(m(e.name) + " ", 1),
507
+ e.status ? (P(), re(A, {
508
+ key: 0,
509
+ type: "bpm_task_status",
510
+ value: e.status || ""
511
+ }, null, 8, ["value"])) : O("", !0)
512
+ ]),
513
+ X(p, { "body-style": { padding: "10px" } }, {
514
+ default: Q(() => {
515
+ var F, q, E, G;
516
+ return [
517
+ M === 0 ? (P(), L("label", Ue, [
518
+ Z(m(((F = e.assigneeUser) == null ? void 0 : F.nickname) || ((q = e.ownerUser) == null ? void 0 : q.nickname)) + " ", 1),
519
+ X(R, {
520
+ size: "small",
521
+ type: "info",
522
+ style: { "vertical-align": "1px" }
523
+ }, {
524
+ default: Q(() => {
525
+ var B, I;
526
+ return [
527
+ Z(m((I = (B = r.processInstance) == null ? void 0 : B.startUser) == null ? void 0 : I.deptName), 1)
528
+ ];
529
+ }),
530
+ _: 1
531
+ })
532
+ ])) : O("", !0),
533
+ e.assigneeUser ? (P(), L("label", Le, [
534
+ Z(m($(d)("processFlow.approver")) + m(((E = e.assigneeUser) == null ? void 0 : E.nickname) || ((G = e.ownerUser) == null ? void 0 : G.nickname)) + " ", 1),
535
+ X(R, {
536
+ size: "small",
537
+ type: "info",
538
+ style: { "vertical-align": "1px" }
539
+ }, {
540
+ default: Q(() => [
541
+ Z(m(e.assigneeUser.deptName), 1)
542
+ ]),
543
+ _: 2
544
+ }, 1024)
545
+ ])) : O("", !0),
546
+ D("div", null, [
547
+ e.createTime && !e.endTime ? (P(), L("label", Re, m($(d)("processFlow.createTime")), 1)) : O("", !0),
548
+ e.createTime && !e.endTime ? (P(), L("label", qe, m($(le)(e == null ? void 0 : e.createTime, "MM-DD HH:mm")), 1)) : O("", !0),
549
+ e.endTime ? (P(), L("label", Oe, m($(d)("processFlow.approvalTime")), 1)) : O("", !0),
550
+ e.endTime ? (P(), L("label", ze, m($(le)(e == null ? void 0 : e.endTime, "MM-DD HH:mm")), 1)) : O("", !0),
551
+ e.durationInMillis ? (P(), L("label", He, m($(d)("processFlow.duration")), 1)) : O("", !0),
552
+ e.durationInMillis ? (P(), L("label", je, m($(ue)(e == null ? void 0 : e.durationInMillis)), 1)) : O("", !0)
553
+ ]),
554
+ e.reason ? (P(), L("div", Ge, m($(d)("processFlow.approvalSuggestion")) + m(e.reason), 1)) : O("", !0)
555
+ ];
556
+ }),
557
+ _: 2
558
+ }, 1024)
501
559
  ]),
502
- te($, { "body-style": { padding: "10px" } }, {
503
- default: K(() => {
504
- var s, M, q, U;
505
- return [
506
- F === 0 ? (D(), B("label", Ue, [
507
- ae(g(((s = a.assigneeUser) == null ? void 0 : s.nickname) || ((M = a.ownerUser) == null ? void 0 : M.nickname)) + " ", 1),
508
- te(u, {
509
- size: "small",
510
- type: "info",
511
- style: { "vertical-align": "1px" }
512
- }, {
513
- default: K(() => {
514
- var x, G;
515
- return [
516
- ae(g((G = (x = d.processInstance) == null ? void 0 : x.startUser) == null ? void 0 : G.deptName), 1)
517
- ];
518
- }),
519
- _: 1
520
- })
521
- ])) : L("", !0),
522
- a.assigneeUser ? (D(), B("label", Le, [
523
- ae(g(E(c)("processFlow.approver")) + g(((q = a.assigneeUser) == null ? void 0 : q.nickname) || ((U = a.ownerUser) == null ? void 0 : U.nickname)) + " ", 1),
524
- te(u, {
525
- size: "small",
526
- type: "info",
527
- style: { "vertical-align": "1px" }
528
- }, {
529
- default: K(() => [
530
- ae(g(a.assigneeUser.deptName), 1)
531
- ]),
532
- _: 2
533
- }, 1024)
534
- ])) : L("", !0),
535
- A("div", null, [
536
- a.createTime && !a.endTime ? (D(), B("label", Re, g(E(c)("processFlow.createTime")), 1)) : L("", !0),
537
- a.createTime && !a.endTime ? (D(), B("label", qe, g(E(le)(a == null ? void 0 : a.createTime, "MM-DD HH:mm")), 1)) : L("", !0),
538
- a.endTime ? (D(), B("label", Oe, g(E(c)("processFlow.approvalTime")), 1)) : L("", !0),
539
- a.endTime ? (D(), B("label", ze, g(E(le)(a == null ? void 0 : a.endTime, "MM-DD HH:mm")), 1)) : L("", !0),
540
- a.durationInMillis ? (D(), B("label", He, g(E(c)("processFlow.duration")), 1)) : L("", !0),
541
- a.durationInMillis ? (D(), B("label", je, g(E(fe)(a == null ? void 0 : a.durationInMillis)), 1)) : L("", !0)
542
- ]),
543
- a.reason ? (D(), B("div", Ge, g(E(c)("processFlow.approvalSuggestion")) + g(a.reason), 1)) : L("", !0)
544
- ];
545
- }),
546
- _: 2
547
- }, 1024)
548
- ]),
549
- _: 2
550
- }, 1032, ["type"]))), 128))
551
- ]),
552
- _: 1
553
- })
560
+ _: 2
561
+ }, 1032, ["type"]))), 128))
562
+ ]),
563
+ _: 1
564
+ })
565
+ ])
554
566
  ])
555
- ]);
567
+ ], 64);
556
568
  };
557
569
  }
558
570
  });
559
- const we = (d, c) => {
560
- const f = d.__vccOpts || d;
561
- for (const [y, w] of c)
562
- f[y] = w;
563
- return f;
564
- }, Ve = /* @__PURE__ */ we(We, [["__scopeId", "data-v-95aa4717"]]), Ye = /* @__PURE__ */ ue({
571
+ const he = (r, b) => {
572
+ const d = r.__vccOpts || r;
573
+ for (const [g, S] of b)
574
+ d[g] = S;
575
+ return d;
576
+ }, Ve = /* @__PURE__ */ he(We, [["__scopeId", "data-v-e07cfd42"]]), Ye = /* @__PURE__ */ pe({
565
577
  __name: "CmcProcessFlow",
566
578
  props: {
567
579
  processInstanceId: {}
568
580
  },
569
- setup(d) {
570
- const c = d, f = X(!1), y = X({}), w = X({}), k = X(""), T = X([]), v = X(""), u = (b) => {
571
- v.value = b, $(), R();
572
- }, $ = async () => {
573
- var b, C;
581
+ setup(r) {
582
+ const b = r, d = ee(!1), g = ee({}), S = ee({}), h = ee(""), N = ee([]), v = ee(""), c = (p) => {
583
+ v.value = p, A(), R();
584
+ }, A = async () => {
585
+ var p, z;
574
586
  try {
575
- f.value = !0;
576
- const a = {
587
+ d.value = !0;
588
+ const y = {
577
589
  status: 1,
578
590
  activityNodes: [
579
591
  {
@@ -1093,12 +1105,12 @@ const we = (d, c) => {
1093
1105
  tasks: null
1094
1106
  }
1095
1107
  };
1096
- y.value = a == null ? void 0 : a.processInstance, k.value = (C = (b = a == null ? void 0 : a.processInstance) == null ? void 0 : b.formVariables) == null ? void 0 : C.applicationPrefix, w.value = a == null ? void 0 : a.todoTask;
1108
+ g.value = y == null ? void 0 : y.processInstance, h.value = (z = (p = y == null ? void 0 : y.processInstance) == null ? void 0 : p.formVariables) == null ? void 0 : z.applicationPrefix, S.value = y == null ? void 0 : y.todoTask;
1097
1109
  } finally {
1098
- f.value = !1;
1110
+ d.value = !1;
1099
1111
  }
1100
1112
  }, R = async () => {
1101
- T.value = [
1113
+ N.value = [
1102
1114
  {
1103
1115
  id: "0fff48cd-2f25-11f1-9259-fa163e43f4f0",
1104
1116
  name: "发起人",
@@ -1222,18 +1234,18 @@ const we = (d, c) => {
1222
1234
  ];
1223
1235
  };
1224
1236
  return _e(
1225
- () => c.processInstanceId,
1226
- (b) => {
1227
- b && b !== v.value && u(b);
1237
+ () => b.processInstanceId,
1238
+ (p) => {
1239
+ p && p !== v.value && c(p);
1228
1240
  },
1229
1241
  { immediate: !0, deep: !0 }
1230
- ), (b, C) => (D(), re(Ve, {
1231
- "process-instance": y.value,
1232
- tasks: T.value
1242
+ ), (p, z) => (P(), re(Ve, {
1243
+ "process-instance": g.value,
1244
+ tasks: N.value
1233
1245
  }, null, 8, ["process-instance", "tasks"]));
1234
1246
  }
1235
1247
  });
1236
- const Qe = /* @__PURE__ */ we(Ye, [["__scopeId", "data-v-a4649f52"]]), Je = {
1248
+ const Qe = /* @__PURE__ */ he(Ye, [["__scopeId", "data-v-a4649f52"]]), Je = {
1237
1249
  taskNotExist: "任务不不在"
1238
1250
  }, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1239
1251
  __proto__: null,
@@ -1245,26 +1257,26 @@ const Qe = /* @__PURE__ */ we(Ye, [["__scopeId", "data-v-a4649f52"]]), Je = {
1245
1257
  bpm: Xe
1246
1258
  }, Symbol.toStringTag, { value: "Module" }));
1247
1259
  let de = null, ie = null;
1248
- const an = {
1249
- install(d, c) {
1250
- if (console.log("插件install执行,options:", c), !(c != null && c.request))
1260
+ const at = {
1261
+ install(r, b) {
1262
+ if (console.log("插件install执行,options:", b), !(b != null && b.request))
1251
1263
  throw new Error("请在 app.use(NbbComponentUi) 时传入 { request }");
1252
- de = c.request, ie = c.i18n, ie.global.mergeLocaleMessage("zh-CN", Ke), ie.global.mergeLocaleMessage("en", Ze), d.component("CmcProcessFlow", Qe);
1264
+ de = b.request, ie = b.i18n, ie.global.mergeLocaleMessage("zh-CN", Ke), ie.global.mergeLocaleMessage("en", Ze), r.component("CmcProcessFlow", Qe);
1253
1265
  }
1254
1266
  };
1255
- function en() {
1267
+ function et() {
1256
1268
  if (!ie)
1257
- throw new Error("没有_request对象");
1269
+ throw new Error("没有_i18n对象");
1258
1270
  return ie;
1259
1271
  }
1260
- function sn() {
1272
+ function it() {
1261
1273
  if (!de)
1262
1274
  throw new Error("没有_request对象");
1263
1275
  return de;
1264
1276
  }
1265
1277
  export {
1266
1278
  Qe as CmcProcessFlow,
1267
- an as default,
1268
- en as getI18n,
1269
- sn as getRequest
1279
+ at as default,
1280
+ et as getI18n,
1281
+ it as getRequest
1270
1282
  };