@bdsoft/element 1.1.12 → 1.1.13
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/BdElement.js +402 -81
- package/index.js +3 -3
- package/package.json +7 -2
package/dist/BdElement.js
CHANGED
|
@@ -18100,6 +18100,325 @@ const { ElLoading: ElLoading2, ElMessage: ElMessage2, ElMessageBox: ElMessageBox
|
|
|
18100
18100
|
const { useSlots: useSlots, ref: ref, computed: computed, watch: watch, onMounted: onMounted, onBeforeUnmount: onBeforeUnmount, createBlock: createBlock, provide: provide, openBlock: openBlock, resolveDynamicComponent: resolveDynamicComponent, inject: inject, getCurrentInstance: getCurrentInstance, createElementBlock: createElementBlock, normalizeStyle: normalizeStyle, unref: unref, renderSlot: renderSlot, nextTick: nextTick, h: h, createVNode: createVNode, resolveComponent: resolveComponent, createElementVNode: createElementVNode, toDisplayString: toDisplayString, useAttrs: useAttrs, Fragment: Fragment, renderList: renderList, normalizeClass: normalizeClass, createCommentVNode: createCommentVNode, createTextVNode: createTextVNode, mergeProps: mergeProps, withCtx: withCtx, withKeys: withKeys, withDirectives: withDirectives, isRef: isRef, withModifiers: withModifiers, vShow: vShow, useCssVars: useCssVars, defineComponent: defineComponent, toRefs: toRefs, reactive: reactive, onBeforeMount: onBeforeMount, onUnmounted: onUnmounted, Teleport: Teleport, Transition: Transition, createStaticVNode: createStaticVNode } = Vue;
|
|
18101
18101
|
const ElementPlusIconsVue = ElementPlusIconVue;
|
|
18102
18102
|
const { Search: Search, Warning: Warning } = ElementPlusIconVue;
|
|
18103
|
+
function _mergeNamespaces(n2, m) {
|
|
18104
|
+
for (var i = 0; i < m.length; i++) {
|
|
18105
|
+
const e = m[i];
|
|
18106
|
+
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
18107
|
+
for (const k in e) {
|
|
18108
|
+
if (k !== "default" && !(k in n2)) {
|
|
18109
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
18110
|
+
if (d) {
|
|
18111
|
+
Object.defineProperty(n2, k, d.get ? d : {
|
|
18112
|
+
enumerable: true,
|
|
18113
|
+
get: () => e[k]
|
|
18114
|
+
});
|
|
18115
|
+
}
|
|
18116
|
+
}
|
|
18117
|
+
}
|
|
18118
|
+
}
|
|
18119
|
+
}
|
|
18120
|
+
return Object.freeze(Object.defineProperty(n2, Symbol.toStringTag, { value: "Module" }));
|
|
18121
|
+
}
|
|
18122
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
18123
|
+
function getDefaultExportFromCjs(x) {
|
|
18124
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
18125
|
+
}
|
|
18126
|
+
var dayjs_min$1 = { exports: {} };
|
|
18127
|
+
(function(module, exports) {
|
|
18128
|
+
!function(t, e) {
|
|
18129
|
+
module.exports = e();
|
|
18130
|
+
}(commonjsGlobal, function() {
|
|
18131
|
+
var t = 1e3, e = 6e4, n2 = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h2 = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, M2 = { 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(t2) {
|
|
18132
|
+
var e2 = ["th", "st", "nd", "rd"], n3 = t2 % 100;
|
|
18133
|
+
return "[" + t2 + (e2[(n3 - 20) % 10] || e2[n3] || e2[0]) + "]";
|
|
18134
|
+
} }, m = function(t2, e2, n3) {
|
|
18135
|
+
var r2 = String(t2);
|
|
18136
|
+
return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n3) + t2;
|
|
18137
|
+
}, v = { s: m, z: function(t2) {
|
|
18138
|
+
var e2 = -t2.utcOffset(), n3 = Math.abs(e2), r2 = Math.floor(n3 / 60), i2 = n3 % 60;
|
|
18139
|
+
return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
|
|
18140
|
+
}, m: function t2(e2, n3) {
|
|
18141
|
+
if (e2.date() < n3.date())
|
|
18142
|
+
return -t2(n3, e2);
|
|
18143
|
+
var r2 = 12 * (n3.year() - e2.year()) + (n3.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n3 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
|
|
18144
|
+
return +(-(r2 + (n3 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
|
|
18145
|
+
}, a: function(t2) {
|
|
18146
|
+
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
|
18147
|
+
}, p: function(t2) {
|
|
18148
|
+
return { M: c, y: h2, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
|
18149
|
+
}, u: function(t2) {
|
|
18150
|
+
return void 0 === t2;
|
|
18151
|
+
} }, g = "en", D = {};
|
|
18152
|
+
D[g] = M2;
|
|
18153
|
+
var p2 = "$isDayjsObject", S2 = function(t2) {
|
|
18154
|
+
return t2 instanceof _ || !(!t2 || !t2[p2]);
|
|
18155
|
+
}, w2 = function t2(e2, n3, r2) {
|
|
18156
|
+
var i2;
|
|
18157
|
+
if (!e2)
|
|
18158
|
+
return g;
|
|
18159
|
+
if ("string" == typeof e2) {
|
|
18160
|
+
var s2 = e2.toLowerCase();
|
|
18161
|
+
D[s2] && (i2 = s2), n3 && (D[s2] = n3, i2 = s2);
|
|
18162
|
+
var u2 = e2.split("-");
|
|
18163
|
+
if (!i2 && u2.length > 1)
|
|
18164
|
+
return t2(u2[0]);
|
|
18165
|
+
} else {
|
|
18166
|
+
var a2 = e2.name;
|
|
18167
|
+
D[a2] = e2, i2 = a2;
|
|
18168
|
+
}
|
|
18169
|
+
return !r2 && i2 && (g = i2), i2 || !r2 && g;
|
|
18170
|
+
}, O = function(t2, e2) {
|
|
18171
|
+
if (S2(t2))
|
|
18172
|
+
return t2.clone();
|
|
18173
|
+
var n3 = "object" == typeof e2 ? e2 : {};
|
|
18174
|
+
return n3.date = t2, n3.args = arguments, new _(n3);
|
|
18175
|
+
}, b = v;
|
|
18176
|
+
b.l = w2, b.i = S2, b.w = function(t2, e2) {
|
|
18177
|
+
return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
18178
|
+
};
|
|
18179
|
+
var _ = function() {
|
|
18180
|
+
function M3(t2) {
|
|
18181
|
+
this.$L = w2(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p2] = true;
|
|
18182
|
+
}
|
|
18183
|
+
var m2 = M3.prototype;
|
|
18184
|
+
return m2.parse = function(t2) {
|
|
18185
|
+
this.$d = function(t3) {
|
|
18186
|
+
var e2 = t3.date, n3 = t3.utc;
|
|
18187
|
+
if (null === e2)
|
|
18188
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
18189
|
+
if (b.u(e2))
|
|
18190
|
+
return /* @__PURE__ */ new Date();
|
|
18191
|
+
if (e2 instanceof Date)
|
|
18192
|
+
return new Date(e2);
|
|
18193
|
+
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
18194
|
+
var r2 = e2.match($);
|
|
18195
|
+
if (r2) {
|
|
18196
|
+
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
|
|
18197
|
+
return n3 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
|
|
18198
|
+
}
|
|
18199
|
+
}
|
|
18200
|
+
return new Date(e2);
|
|
18201
|
+
}(t2), this.init();
|
|
18202
|
+
}, m2.init = function() {
|
|
18203
|
+
var t2 = this.$d;
|
|
18204
|
+
this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
|
|
18205
|
+
}, m2.$utils = function() {
|
|
18206
|
+
return b;
|
|
18207
|
+
}, m2.isValid = function() {
|
|
18208
|
+
return !(this.$d.toString() === l);
|
|
18209
|
+
}, m2.isSame = function(t2, e2) {
|
|
18210
|
+
var n3 = O(t2);
|
|
18211
|
+
return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
|
|
18212
|
+
}, m2.isAfter = function(t2, e2) {
|
|
18213
|
+
return O(t2) < this.startOf(e2);
|
|
18214
|
+
}, m2.isBefore = function(t2, e2) {
|
|
18215
|
+
return this.endOf(e2) < O(t2);
|
|
18216
|
+
}, m2.$g = function(t2, e2, n3) {
|
|
18217
|
+
return b.u(t2) ? this[e2] : this.set(n3, t2);
|
|
18218
|
+
}, m2.unix = function() {
|
|
18219
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
18220
|
+
}, m2.valueOf = function() {
|
|
18221
|
+
return this.$d.getTime();
|
|
18222
|
+
}, m2.startOf = function(t2, e2) {
|
|
18223
|
+
var n3 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
|
|
18224
|
+
var i2 = b.w(n3.$u ? Date.UTC(n3.$y, e3, t3) : new Date(n3.$y, e3, t3), n3);
|
|
18225
|
+
return r2 ? i2 : i2.endOf(a);
|
|
18226
|
+
}, $2 = function(t3, e3) {
|
|
18227
|
+
return b.w(n3.toDate()[t3].apply(n3.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
|
|
18228
|
+
}, y2 = this.$W, M4 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
18229
|
+
switch (f2) {
|
|
18230
|
+
case h2:
|
|
18231
|
+
return r2 ? l2(1, 0) : l2(31, 11);
|
|
18232
|
+
case c:
|
|
18233
|
+
return r2 ? l2(1, M4) : l2(0, M4 + 1);
|
|
18234
|
+
case o:
|
|
18235
|
+
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
18236
|
+
return l2(r2 ? m3 - D2 : m3 + (6 - D2), M4);
|
|
18237
|
+
case a:
|
|
18238
|
+
case d:
|
|
18239
|
+
return $2(v2 + "Hours", 0);
|
|
18240
|
+
case u:
|
|
18241
|
+
return $2(v2 + "Minutes", 1);
|
|
18242
|
+
case s:
|
|
18243
|
+
return $2(v2 + "Seconds", 2);
|
|
18244
|
+
case i:
|
|
18245
|
+
return $2(v2 + "Milliseconds", 3);
|
|
18246
|
+
default:
|
|
18247
|
+
return this.clone();
|
|
18248
|
+
}
|
|
18249
|
+
}, m2.endOf = function(t2) {
|
|
18250
|
+
return this.startOf(t2, false);
|
|
18251
|
+
}, m2.$set = function(t2, e2) {
|
|
18252
|
+
var n3, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a] = f2 + "Date", n3[d] = f2 + "Date", n3[c] = f2 + "Month", n3[h2] = f2 + "FullYear", n3[u] = f2 + "Hours", n3[s] = f2 + "Minutes", n3[i] = f2 + "Seconds", n3[r] = f2 + "Milliseconds", n3)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
|
|
18253
|
+
if (o2 === c || o2 === h2) {
|
|
18254
|
+
var y2 = this.clone().set(d, 1);
|
|
18255
|
+
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
18256
|
+
} else
|
|
18257
|
+
l2 && this.$d[l2]($2);
|
|
18258
|
+
return this.init(), this;
|
|
18259
|
+
}, m2.set = function(t2, e2) {
|
|
18260
|
+
return this.clone().$set(t2, e2);
|
|
18261
|
+
}, m2.get = function(t2) {
|
|
18262
|
+
return this[b.p(t2)]();
|
|
18263
|
+
}, m2.add = function(r2, f2) {
|
|
18264
|
+
var d2, l2 = this;
|
|
18265
|
+
r2 = Number(r2);
|
|
18266
|
+
var $2 = b.p(f2), y2 = function(t2) {
|
|
18267
|
+
var e2 = O(l2);
|
|
18268
|
+
return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
|
|
18269
|
+
};
|
|
18270
|
+
if ($2 === c)
|
|
18271
|
+
return this.set(c, this.$M + r2);
|
|
18272
|
+
if ($2 === h2)
|
|
18273
|
+
return this.set(h2, this.$y + r2);
|
|
18274
|
+
if ($2 === a)
|
|
18275
|
+
return y2(1);
|
|
18276
|
+
if ($2 === o)
|
|
18277
|
+
return y2(7);
|
|
18278
|
+
var M4 = (d2 = {}, d2[s] = e, d2[u] = n2, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M4;
|
|
18279
|
+
return b.w(m3, this);
|
|
18280
|
+
}, m2.subtract = function(t2, e2) {
|
|
18281
|
+
return this.add(-1 * t2, e2);
|
|
18282
|
+
}, m2.format = function(t2) {
|
|
18283
|
+
var e2 = this, n3 = this.$locale();
|
|
18284
|
+
if (!this.isValid())
|
|
18285
|
+
return n3.invalidDate || l;
|
|
18286
|
+
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n3.weekdays, c2 = n3.months, f2 = n3.meridiem, h3 = function(t3, n4, i3, s3) {
|
|
18287
|
+
return t3 && (t3[n4] || t3(e2, r2)) || i3[n4].slice(0, s3);
|
|
18288
|
+
}, d2 = function(t3) {
|
|
18289
|
+
return b.s(s2 % 12 || 12, t3, "0");
|
|
18290
|
+
}, $2 = f2 || function(t3, e3, n4) {
|
|
18291
|
+
var r3 = t3 < 12 ? "AM" : "PM";
|
|
18292
|
+
return n4 ? r3.toLowerCase() : r3;
|
|
18293
|
+
};
|
|
18294
|
+
return r2.replace(y, function(t3, r3) {
|
|
18295
|
+
return r3 || function(t4) {
|
|
18296
|
+
switch (t4) {
|
|
18297
|
+
case "YY":
|
|
18298
|
+
return String(e2.$y).slice(-2);
|
|
18299
|
+
case "YYYY":
|
|
18300
|
+
return b.s(e2.$y, 4, "0");
|
|
18301
|
+
case "M":
|
|
18302
|
+
return a2 + 1;
|
|
18303
|
+
case "MM":
|
|
18304
|
+
return b.s(a2 + 1, 2, "0");
|
|
18305
|
+
case "MMM":
|
|
18306
|
+
return h3(n3.monthsShort, a2, c2, 3);
|
|
18307
|
+
case "MMMM":
|
|
18308
|
+
return h3(c2, a2);
|
|
18309
|
+
case "D":
|
|
18310
|
+
return e2.$D;
|
|
18311
|
+
case "DD":
|
|
18312
|
+
return b.s(e2.$D, 2, "0");
|
|
18313
|
+
case "d":
|
|
18314
|
+
return String(e2.$W);
|
|
18315
|
+
case "dd":
|
|
18316
|
+
return h3(n3.weekdaysMin, e2.$W, o2, 2);
|
|
18317
|
+
case "ddd":
|
|
18318
|
+
return h3(n3.weekdaysShort, e2.$W, o2, 3);
|
|
18319
|
+
case "dddd":
|
|
18320
|
+
return o2[e2.$W];
|
|
18321
|
+
case "H":
|
|
18322
|
+
return String(s2);
|
|
18323
|
+
case "HH":
|
|
18324
|
+
return b.s(s2, 2, "0");
|
|
18325
|
+
case "h":
|
|
18326
|
+
return d2(1);
|
|
18327
|
+
case "hh":
|
|
18328
|
+
return d2(2);
|
|
18329
|
+
case "a":
|
|
18330
|
+
return $2(s2, u2, true);
|
|
18331
|
+
case "A":
|
|
18332
|
+
return $2(s2, u2, false);
|
|
18333
|
+
case "m":
|
|
18334
|
+
return String(u2);
|
|
18335
|
+
case "mm":
|
|
18336
|
+
return b.s(u2, 2, "0");
|
|
18337
|
+
case "s":
|
|
18338
|
+
return String(e2.$s);
|
|
18339
|
+
case "ss":
|
|
18340
|
+
return b.s(e2.$s, 2, "0");
|
|
18341
|
+
case "SSS":
|
|
18342
|
+
return b.s(e2.$ms, 3, "0");
|
|
18343
|
+
case "Z":
|
|
18344
|
+
return i2;
|
|
18345
|
+
}
|
|
18346
|
+
return null;
|
|
18347
|
+
}(t3) || i2.replace(":", "");
|
|
18348
|
+
});
|
|
18349
|
+
}, m2.utcOffset = function() {
|
|
18350
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
18351
|
+
}, m2.diff = function(r2, d2, l2) {
|
|
18352
|
+
var $2, y2 = this, M4 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
|
|
18353
|
+
return b.m(y2, m3);
|
|
18354
|
+
};
|
|
18355
|
+
switch (M4) {
|
|
18356
|
+
case h2:
|
|
18357
|
+
$2 = D2() / 12;
|
|
18358
|
+
break;
|
|
18359
|
+
case c:
|
|
18360
|
+
$2 = D2();
|
|
18361
|
+
break;
|
|
18362
|
+
case f:
|
|
18363
|
+
$2 = D2() / 3;
|
|
18364
|
+
break;
|
|
18365
|
+
case o:
|
|
18366
|
+
$2 = (g2 - v2) / 6048e5;
|
|
18367
|
+
break;
|
|
18368
|
+
case a:
|
|
18369
|
+
$2 = (g2 - v2) / 864e5;
|
|
18370
|
+
break;
|
|
18371
|
+
case u:
|
|
18372
|
+
$2 = g2 / n2;
|
|
18373
|
+
break;
|
|
18374
|
+
case s:
|
|
18375
|
+
$2 = g2 / e;
|
|
18376
|
+
break;
|
|
18377
|
+
case i:
|
|
18378
|
+
$2 = g2 / t;
|
|
18379
|
+
break;
|
|
18380
|
+
default:
|
|
18381
|
+
$2 = g2;
|
|
18382
|
+
}
|
|
18383
|
+
return l2 ? $2 : b.a($2);
|
|
18384
|
+
}, m2.daysInMonth = function() {
|
|
18385
|
+
return this.endOf(c).$D;
|
|
18386
|
+
}, m2.$locale = function() {
|
|
18387
|
+
return D[this.$L];
|
|
18388
|
+
}, m2.locale = function(t2, e2) {
|
|
18389
|
+
if (!t2)
|
|
18390
|
+
return this.$L;
|
|
18391
|
+
var n3 = this.clone(), r2 = w2(t2, e2, true);
|
|
18392
|
+
return r2 && (n3.$L = r2), n3;
|
|
18393
|
+
}, m2.clone = function() {
|
|
18394
|
+
return b.w(this.$d, this);
|
|
18395
|
+
}, m2.toDate = function() {
|
|
18396
|
+
return new Date(this.valueOf());
|
|
18397
|
+
}, m2.toJSON = function() {
|
|
18398
|
+
return this.isValid() ? this.toISOString() : null;
|
|
18399
|
+
}, m2.toISOString = function() {
|
|
18400
|
+
return this.$d.toISOString();
|
|
18401
|
+
}, m2.toString = function() {
|
|
18402
|
+
return this.$d.toUTCString();
|
|
18403
|
+
}, M3;
|
|
18404
|
+
}(), k = _.prototype;
|
|
18405
|
+
return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h2], ["$D", d]].forEach(function(t2) {
|
|
18406
|
+
k[t2[1]] = function(e2) {
|
|
18407
|
+
return this.$g(e2, t2[0], t2[1]);
|
|
18408
|
+
};
|
|
18409
|
+
}), O.extend = function(t2, e2) {
|
|
18410
|
+
return t2.$i || (t2(e2, _, O), t2.$i = true), O;
|
|
18411
|
+
}, O.locale = w2, O.isDayjs = S2, O.unix = function(t2) {
|
|
18412
|
+
return O(1e3 * t2);
|
|
18413
|
+
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
18414
|
+
});
|
|
18415
|
+
})(dayjs_min$1);
|
|
18416
|
+
var dayjs_minExports = dayjs_min$1.exports;
|
|
18417
|
+
const dayjs_min = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
18418
|
+
const dayjsModule = /* @__PURE__ */ _mergeNamespaces({
|
|
18419
|
+
__proto__: null,
|
|
18420
|
+
default: dayjs_min
|
|
18421
|
+
}, [dayjs_minExports]);
|
|
18103
18422
|
/*! Element Plus v2.13.1 */
|
|
18104
18423
|
var zhCn = {
|
|
18105
18424
|
name: "zh-cn",
|
|
@@ -20018,8 +20337,8 @@ var CountUp = function(target, startVal, endVal, decimals, duration, options) {
|
|
|
20018
20337
|
clearTimeout(id);
|
|
20019
20338
|
};
|
|
20020
20339
|
}
|
|
20021
|
-
var
|
|
20022
|
-
|
|
20340
|
+
var self2 = this;
|
|
20341
|
+
self2.options = {
|
|
20023
20342
|
useEasing: true,
|
|
20024
20343
|
// toggle easing
|
|
20025
20344
|
useGrouping: true,
|
|
@@ -20035,127 +20354,127 @@ var CountUp = function(target, startVal, endVal, decimals, duration, options) {
|
|
|
20035
20354
|
};
|
|
20036
20355
|
for (var key in options) {
|
|
20037
20356
|
if (options.hasOwnProperty(key)) {
|
|
20038
|
-
|
|
20357
|
+
self2.options[key] = options[key];
|
|
20039
20358
|
}
|
|
20040
20359
|
}
|
|
20041
|
-
if (
|
|
20042
|
-
|
|
20043
|
-
}
|
|
20044
|
-
if (!
|
|
20045
|
-
|
|
20046
|
-
if (!
|
|
20047
|
-
|
|
20048
|
-
|
|
20049
|
-
|
|
20050
|
-
|
|
20051
|
-
|
|
20052
|
-
|
|
20053
|
-
|
|
20054
|
-
|
|
20055
|
-
|
|
20056
|
-
|
|
20057
|
-
nStr = nStr.toFixed(
|
|
20360
|
+
if (self2.options.separator === "") {
|
|
20361
|
+
self2.options.useGrouping = false;
|
|
20362
|
+
}
|
|
20363
|
+
if (!self2.options.prefix)
|
|
20364
|
+
self2.options.prefix = "";
|
|
20365
|
+
if (!self2.options.suffix)
|
|
20366
|
+
self2.options.suffix = "";
|
|
20367
|
+
self2.d = typeof target === "string" ? document.getElementById(target) : target;
|
|
20368
|
+
self2.startVal = Number(startVal);
|
|
20369
|
+
self2.endVal = Number(endVal);
|
|
20370
|
+
self2.countDown = self2.startVal > self2.endVal;
|
|
20371
|
+
self2.frameVal = self2.startVal;
|
|
20372
|
+
self2.decimals = Math.max(0, decimals || 0);
|
|
20373
|
+
self2.dec = Math.pow(10, self2.decimals);
|
|
20374
|
+
self2.duration = Number(duration) * 1e3 || 2e3;
|
|
20375
|
+
self2.formatNumber = function(nStr) {
|
|
20376
|
+
nStr = nStr.toFixed(self2.decimals);
|
|
20058
20377
|
nStr += "";
|
|
20059
20378
|
var x2, x1, x22, rgx;
|
|
20060
20379
|
x2 = nStr.split(".");
|
|
20061
20380
|
x1 = x2[0];
|
|
20062
|
-
x22 = x2.length > 1 ?
|
|
20381
|
+
x22 = x2.length > 1 ? self2.options.decimal + x2[1] : "";
|
|
20063
20382
|
rgx = /(\d+)(\d{3})/;
|
|
20064
|
-
if (
|
|
20383
|
+
if (self2.options.useGrouping) {
|
|
20065
20384
|
while (rgx.test(x1)) {
|
|
20066
|
-
x1 = x1.replace(rgx, "$1" +
|
|
20385
|
+
x1 = x1.replace(rgx, "$1" + self2.options.separator + "$2");
|
|
20067
20386
|
}
|
|
20068
20387
|
}
|
|
20069
|
-
return
|
|
20388
|
+
return self2.options.prefix + x1 + x22 + self2.options.suffix;
|
|
20070
20389
|
};
|
|
20071
|
-
|
|
20390
|
+
self2.easeOutExpo = function(t, b, c, d) {
|
|
20072
20391
|
return c * (-Math.pow(2, -10 * t / d) + 1) * 1024 / 1023 + b;
|
|
20073
20392
|
};
|
|
20074
|
-
|
|
20075
|
-
|
|
20076
|
-
|
|
20393
|
+
self2.easingFn = self2.options.easingFn ? self2.options.easingFn : self2.easeOutExpo;
|
|
20394
|
+
self2.formattingFn = self2.options.formattingFn ? self2.options.formattingFn : self2.formatNumber;
|
|
20395
|
+
self2.version = function() {
|
|
20077
20396
|
return "1.7.1";
|
|
20078
20397
|
};
|
|
20079
|
-
|
|
20398
|
+
self2.printValue = function(value) {
|
|
20080
20399
|
var _a, _b, _c;
|
|
20081
|
-
var result =
|
|
20082
|
-
if (((_a =
|
|
20400
|
+
var result = self2.formattingFn(value);
|
|
20401
|
+
if (((_a = self2.d) == null ? void 0 : _a.tagName) === "INPUT") {
|
|
20083
20402
|
this.d.value = result;
|
|
20084
|
-
} else if (((_b =
|
|
20403
|
+
} else if (((_b = self2.d) == null ? void 0 : _b.tagName) === "text" || ((_c = self2.d) == null ? void 0 : _c.tagName) === "tspan") {
|
|
20085
20404
|
this.d.textContent = result;
|
|
20086
20405
|
} else {
|
|
20087
20406
|
this.d.innerHTML = result;
|
|
20088
20407
|
}
|
|
20089
20408
|
};
|
|
20090
|
-
|
|
20091
|
-
if (!
|
|
20092
|
-
|
|
20409
|
+
self2.count = function(timestamp) {
|
|
20410
|
+
if (!self2.startTime) {
|
|
20411
|
+
self2.startTime = timestamp;
|
|
20093
20412
|
}
|
|
20094
|
-
|
|
20095
|
-
var progress2 = timestamp -
|
|
20096
|
-
|
|
20097
|
-
if (
|
|
20098
|
-
if (
|
|
20099
|
-
|
|
20413
|
+
self2.timestamp = timestamp;
|
|
20414
|
+
var progress2 = timestamp - self2.startTime;
|
|
20415
|
+
self2.remaining = self2.duration - progress2;
|
|
20416
|
+
if (self2.options.useEasing) {
|
|
20417
|
+
if (self2.countDown) {
|
|
20418
|
+
self2.frameVal = self2.startVal - self2.easingFn(progress2, 0, self2.startVal - self2.endVal, self2.duration);
|
|
20100
20419
|
} else {
|
|
20101
|
-
|
|
20420
|
+
self2.frameVal = self2.easingFn(progress2, self2.startVal, self2.endVal - self2.startVal, self2.duration);
|
|
20102
20421
|
}
|
|
20103
20422
|
} else {
|
|
20104
|
-
if (
|
|
20105
|
-
|
|
20423
|
+
if (self2.countDown) {
|
|
20424
|
+
self2.frameVal = self2.startVal - (self2.startVal - self2.endVal) * (progress2 / self2.duration);
|
|
20106
20425
|
} else {
|
|
20107
|
-
|
|
20426
|
+
self2.frameVal = self2.startVal + (self2.endVal - self2.startVal) * (progress2 / self2.duration);
|
|
20108
20427
|
}
|
|
20109
20428
|
}
|
|
20110
|
-
if (
|
|
20111
|
-
|
|
20429
|
+
if (self2.countDown) {
|
|
20430
|
+
self2.frameVal = self2.frameVal < self2.endVal ? self2.endVal : self2.frameVal;
|
|
20112
20431
|
} else {
|
|
20113
|
-
|
|
20432
|
+
self2.frameVal = self2.frameVal > self2.endVal ? self2.endVal : self2.frameVal;
|
|
20114
20433
|
}
|
|
20115
|
-
|
|
20116
|
-
|
|
20117
|
-
if (progress2 <
|
|
20118
|
-
|
|
20434
|
+
self2.frameVal = Math.round(self2.frameVal * self2.dec) / self2.dec;
|
|
20435
|
+
self2.printValue(self2.frameVal);
|
|
20436
|
+
if (progress2 < self2.duration) {
|
|
20437
|
+
self2.rAF = requestAnimationFrame(self2.count);
|
|
20119
20438
|
} else {
|
|
20120
|
-
if (
|
|
20121
|
-
|
|
20439
|
+
if (self2.callback) {
|
|
20440
|
+
self2.callback();
|
|
20122
20441
|
}
|
|
20123
20442
|
}
|
|
20124
20443
|
};
|
|
20125
|
-
|
|
20126
|
-
|
|
20127
|
-
|
|
20444
|
+
self2.start = function(callback) {
|
|
20445
|
+
self2.callback = callback;
|
|
20446
|
+
self2.rAF = requestAnimationFrame(self2.count);
|
|
20128
20447
|
return false;
|
|
20129
20448
|
};
|
|
20130
|
-
|
|
20131
|
-
if (!
|
|
20132
|
-
|
|
20133
|
-
cancelAnimationFrame(
|
|
20449
|
+
self2.pauseResume = function() {
|
|
20450
|
+
if (!self2.paused) {
|
|
20451
|
+
self2.paused = true;
|
|
20452
|
+
cancelAnimationFrame(self2.rAF);
|
|
20134
20453
|
} else {
|
|
20135
|
-
|
|
20136
|
-
delete
|
|
20137
|
-
|
|
20138
|
-
|
|
20139
|
-
requestAnimationFrame(
|
|
20454
|
+
self2.paused = false;
|
|
20455
|
+
delete self2.startTime;
|
|
20456
|
+
self2.duration = self2.remaining;
|
|
20457
|
+
self2.startVal = self2.frameVal;
|
|
20458
|
+
requestAnimationFrame(self2.count);
|
|
20140
20459
|
}
|
|
20141
20460
|
};
|
|
20142
|
-
|
|
20143
|
-
|
|
20144
|
-
delete
|
|
20145
|
-
|
|
20146
|
-
cancelAnimationFrame(
|
|
20147
|
-
|
|
20461
|
+
self2.reset = function() {
|
|
20462
|
+
self2.paused = false;
|
|
20463
|
+
delete self2.startTime;
|
|
20464
|
+
self2.startVal = startVal;
|
|
20465
|
+
cancelAnimationFrame(self2.rAF);
|
|
20466
|
+
self2.printValue(self2.startVal);
|
|
20148
20467
|
};
|
|
20149
|
-
|
|
20150
|
-
cancelAnimationFrame(
|
|
20151
|
-
|
|
20152
|
-
delete
|
|
20153
|
-
|
|
20154
|
-
|
|
20155
|
-
|
|
20156
|
-
|
|
20468
|
+
self2.update = function(newEndVal) {
|
|
20469
|
+
cancelAnimationFrame(self2.rAF);
|
|
20470
|
+
self2.paused = false;
|
|
20471
|
+
delete self2.startTime;
|
|
20472
|
+
self2.startVal = self2.frameVal;
|
|
20473
|
+
self2.endVal = Number(newEndVal);
|
|
20474
|
+
self2.countDown = self2.startVal > self2.endVal;
|
|
20475
|
+
self2.rAF = requestAnimationFrame(self2.count);
|
|
20157
20476
|
};
|
|
20158
|
-
|
|
20477
|
+
self2.printValue(self2.startVal);
|
|
20159
20478
|
};
|
|
20160
20479
|
const _hoisted_1$9 = {
|
|
20161
20480
|
key: 0,
|
|
@@ -23011,6 +23330,7 @@ function usePage(changeFn) {
|
|
|
23011
23330
|
handlePagination
|
|
23012
23331
|
};
|
|
23013
23332
|
}
|
|
23333
|
+
const dayjs = dayjs_min || dayjsModule;
|
|
23014
23334
|
window.ElementPlus = ElementPlus;
|
|
23015
23335
|
window.ElementPlusIconVue = ElementPlusIconsVue;
|
|
23016
23336
|
const useElement = {
|
|
@@ -23090,6 +23410,7 @@ export {
|
|
|
23090
23410
|
index$7 as StatisticalCard,
|
|
23091
23411
|
closeLoading,
|
|
23092
23412
|
confirm,
|
|
23413
|
+
dayjs,
|
|
23093
23414
|
debounce,
|
|
23094
23415
|
useElement as default,
|
|
23095
23416
|
getUrlKey,
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ElementPlus from 'element-plus'
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import * as dayjsModule from 'dayjs';
|
|
3
|
+
const dayjs = dayjsModule.default || dayjsModule;
|
|
4
4
|
|
|
5
5
|
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
|
6
6
|
window.ElementPlus = ElementPlus
|
|
@@ -81,6 +81,6 @@ export * from 'utils/index.js'
|
|
|
81
81
|
export * from 'global/index'
|
|
82
82
|
export * from 'utils/hookDialog.js'
|
|
83
83
|
export * from 'utils/hookPage.js' // 分页hook函数
|
|
84
|
-
|
|
84
|
+
export { dayjs }
|
|
85
85
|
// 导出所有组件
|
|
86
86
|
export * from '@/index.js'
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bdsoft/element",
|
|
3
3
|
"description": "内部UI组件",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.13",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
7
|
-
"files":[
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"package.json",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
8
12
|
"scripts": {
|
|
9
13
|
"dev": "vite",
|
|
10
14
|
"build": "vite build",
|
|
@@ -12,6 +16,7 @@
|
|
|
12
16
|
},
|
|
13
17
|
"dependencies": {
|
|
14
18
|
"@element-plus/icons-vue": "^2.3.2",
|
|
19
|
+
"dayjs": "^1.11.19",
|
|
15
20
|
"element-plus": "2.13.1",
|
|
16
21
|
"splitpanes": "4.0.4"
|
|
17
22
|
}
|