@gx-design-vue/pro-utils 0.0.21 → 0.0.23

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.
@@ -1,6 +1,6 @@
1
1
  import { createVNode as l, Fragment as E } from "vue";
2
- import { Tooltip as L } from "ant-design-vue";
3
- import { InfoCircleOutlined as R } from "@ant-design/icons-vue";
2
+ import { Tooltip as R } from "ant-design-vue";
3
+ import { InfoCircleOutlined as L } from "@ant-design/icons-vue";
4
4
  import { cloneDeep as I } from "lodash-unified";
5
5
  const w = typeof window > "u";
6
6
  process.env.NODE_ENV !== "production" && Object.freeze({});
@@ -22,7 +22,7 @@ const D = (e) => {
22
22
  } catch {
23
23
  return e.style[t];
24
24
  }
25
- }, j = (e, t) => w ? void 0 : (t == null ? x(e, "overflow") : t ? x(e, "overflow-y") : x(e, "overflow-x")).match(/(scroll|auto|overlay)/), Q = (e, t) => {
25
+ }, j = (e, t) => w ? void 0 : (t == null ? x(e, "overflow") : t ? x(e, "overflow-y") : x(e, "overflow-x")).match(/(scroll|auto|overlay)/), Z = (e, t) => {
26
26
  if (w)
27
27
  return;
28
28
  let n = e;
@@ -34,7 +34,7 @@ const D = (e) => {
34
34
  n = n.parentNode;
35
35
  }
36
36
  return n;
37
- }, Z = (e, t) => {
37
+ }, k = (e, t) => {
38
38
  if (w || !e || !t)
39
39
  return !1;
40
40
  const n = e.getBoundingClientRect();
@@ -75,14 +75,14 @@ function $(e, t, n, i) {
75
75
  const r = n - t;
76
76
  return e /= i / 2, e < 1 ? r / 2 * e * e * e + t : r / 2 * ((e -= 2) * e * e + 2) + t;
77
77
  }
78
- function k(e, t = {}) {
78
+ function K(e, t = {}) {
79
79
  const { getContainer: n = () => window, callback: i, duration: r = 450 } = t, o = n(), c = P(o, !0), u = Date.now(), s = () => {
80
80
  const a = Date.now() - u, h = $(a > r ? r : a, c, e, r);
81
81
  y(o) ? o.scrollTo(window.pageXOffset, h) : o instanceof HTMLDocument || o.constructor.name === "HTMLDocument" ? o.documentElement.scrollTop = h : o.scrollTop = h, a < r ? g(s) : typeof i == "function" && i();
82
82
  };
83
83
  g(s);
84
84
  }
85
- function K(e) {
85
+ function ee(e) {
86
86
  let t;
87
87
  const n = (r) => () => {
88
88
  t = null, e(...r);
@@ -123,29 +123,29 @@ const p = {
123
123
  function T(e, t) {
124
124
  return M.call(e) === `[object ${t}]`;
125
125
  }
126
- function O(e) {
126
+ function F(e) {
127
127
  return T(e, "Boolean");
128
128
  }
129
- function ee(e) {
129
+ function te(e) {
130
130
  return typeof e == "number";
131
131
  }
132
- function te(e) {
132
+ function ne(e) {
133
133
  return typeof Array.isArray > "u" ? Object.prototype.toString.call(e) === "[object Array]" : Array.isArray(e);
134
134
  }
135
- function v(e) {
135
+ function b(e) {
136
136
  return e !== null && T(e, "Object");
137
137
  }
138
- function ne(e) {
138
+ function ie(e) {
139
139
  return typeof e == "string" || e instanceof String;
140
140
  }
141
- function ie(e) {
141
+ function re(e) {
142
142
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
143
143
  }
144
144
  const N = ({ suffixCls: e, customizePrefixCls: t, isPor: n, className: i }) => {
145
145
  const r = i || (n ? "gx-pro" : "gx");
146
146
  return t || (e ? `${r}-${e}` : r);
147
- }, re = (e, t) => e ? Array.isArray(e) ? e.join("-") : e.toString() : `${t}`;
148
- function oe(e, { align: t, showIndex: n }) {
147
+ }, oe = (e, t) => e ? Array.isArray(e) ? e.join("-") : e.toString() : `${t}`;
148
+ function ce(e, { align: t, showIndex: n }) {
149
149
  const i = I(e);
150
150
  if (n && e.length && e.every((r) => r.dataIndex !== "sortIndex")) {
151
151
  const r = e[0];
@@ -162,44 +162,44 @@ function oe(e, { align: t, showIndex: n }) {
162
162
  i.filter((r) => r.dataIndex !== "sortIndex");
163
163
  return i;
164
164
  }
165
- function ce(e, ...t) {
165
+ function ue(e, ...t) {
166
166
  return typeof e == "function" ? e(...t) : e;
167
167
  }
168
- function F(e) {
168
+ function O(e) {
169
169
  return JSON.parse(JSON.stringify(e));
170
170
  }
171
- function ue(e, t) {
172
- if (v(e)) {
171
+ function se(e, t) {
172
+ if (b(e)) {
173
173
  const { pageSize: n = 10, total: i = 0 } = e;
174
174
  let { current: r = 1 } = e;
175
175
  return i - t <= n * (r - 1) && (r = r - 1), r === 0 ? 1 : r;
176
176
  }
177
177
  return 1;
178
178
  }
179
- function se(e = [], t, n = "children") {
179
+ function ae(e = [], t, n = "children") {
180
180
  function i(r, o) {
181
181
  return o.map((c, u) => {
182
182
  const s = `${r}-${u + 1}`;
183
183
  return c[n] && (c[n] = i(s, c[n])), c.sortIndex = s, c;
184
184
  });
185
185
  }
186
- return F(e).map((r, o) => {
186
+ return O(e).map((r, o) => {
187
187
  let c = o;
188
- const u = v(t) && t.current || 1, s = v(t) && t.pageSize || 10;
188
+ const u = b(t) && t.current || 1, s = b(t) && t.pageSize || 10;
189
189
  return c = u ? (u - 1) * s + (o + 1) : o + 1, r[n] && (r[n] = i(`${c}`, r[n])), r.sortIndex = c, r;
190
190
  });
191
191
  }
192
- function ae(e, t, n, i) {
192
+ function le(e, t, n, i) {
193
193
  const r = e[n], o = t[n];
194
194
  let c = 0;
195
195
  return r < o ? c = i === 0 ? -1 : 0 : r > o && (c = i === 0 ? 0 : -1), c;
196
196
  }
197
- function le(e) {
198
- let t = F(e);
197
+ function fe(e) {
198
+ let t = O(e);
199
199
  const n = new Set(t);
200
200
  return t = Array.from(n), t;
201
201
  }
202
- function fe(e, t) {
202
+ function de(e, t) {
203
203
  const n = ["null", "undefined"];
204
204
  let i = !0;
205
205
  return e === 0 ? i = !0 : n.includes(e) ? i = !1 : e || (i = !1), i ? {
@@ -210,7 +210,7 @@ function fe(e, t) {
210
210
  success: i
211
211
  };
212
212
  }
213
- function de(e) {
213
+ function me(e) {
214
214
  let t = "";
215
215
  if (e > -1) {
216
216
  const n = Math.floor(e / 3600), i = Math.floor(e / 60) % 60, r = parseInt(String(e % 60));
@@ -250,7 +250,7 @@ function V() {
250
250
  }
251
251
  };
252
252
  }
253
- function me(e = []) {
253
+ function pe(e = []) {
254
254
  let t = 0;
255
255
  function n(i = [], r) {
256
256
  i.forEach((o) => {
@@ -265,7 +265,7 @@ function H(e, t = "children") {
265
265
  n.push(i), i[t] && i[t].length > 0 && (n = n.concat(H(i[t])));
266
266
  }), n;
267
267
  }
268
- function pe(e, t, n, i, r) {
268
+ function ge(e, t, n, i, r) {
269
269
  t = t || "id", n = n || "parentId", i = i || "children", r = r || 0;
270
270
  const o = JSON.parse(JSON.stringify(e));
271
271
  return o.filter((c) => {
@@ -273,16 +273,16 @@ function pe(e, t, n, i, r) {
273
273
  return u.length > 0 ? c[i || "children"] = u : delete c[i || "children"], c[n || "parentId"] === r;
274
274
  });
275
275
  }
276
- function ge(e) {
276
+ function we(e) {
277
277
  return URL.createObjectURL(e);
278
278
  }
279
- function we(e) {
279
+ function he(e) {
280
280
  return new Promise((t, n) => {
281
281
  const i = new FileReader();
282
282
  i.readAsDataURL(e), i.onload = () => t(i.result), i.onerror = (r) => n(r);
283
283
  });
284
284
  }
285
- function he(e) {
285
+ function xe(e) {
286
286
  const t = e.split(","), n = t[0].match(/:(.*?);/)[1], i = atob(t[1]);
287
287
  let r = i.length;
288
288
  const o = new Uint8Array(r);
@@ -290,7 +290,7 @@ function he(e) {
290
290
  o[r] = i.charCodeAt(r);
291
291
  return new Blob([o], { type: n });
292
292
  }
293
- function xe(e, t) {
293
+ function ye(e, t) {
294
294
  const n = e.split(","), i = n[0].match(/:(.*?);/)[1], r = atob(n[1]);
295
295
  let o = r.length;
296
296
  const c = new Uint8Array(o);
@@ -298,14 +298,14 @@ function xe(e, t) {
298
298
  c[o] = r.charCodeAt(o);
299
299
  return new File([c], t, { type: i });
300
300
  }
301
- function ye(e, t, n) {
301
+ function be(e, t, n) {
302
302
  return new window.File([e], t, { type: n });
303
303
  }
304
304
  function W(e = "") {
305
305
  const t = e.indexOf("?");
306
306
  return t > 0 ? `${e.substring(0, t)}` : e;
307
307
  }
308
- function b(e = "") {
308
+ function S(e = "") {
309
309
  e = W(e);
310
310
  const t = e.lastIndexOf(".");
311
311
  return t > 0 ? `${e.substring(t).split("?")[0]}`.split(".")[1] : "";
@@ -316,12 +316,12 @@ function m(e, t) {
316
316
  if (!e || e === "data:")
317
317
  return "4";
318
318
  let n = "4";
319
- return S(e) ? e.includes("data:image/") ? n = "png" : e.includes("data:video/") ? n = "mp4" : e.includes("data:audio/") && (n = "mp3") : e instanceof Blob ? (e = String(e), e.includes("image") ? n = "png" : e.includes("video") ? n = "mp4" : e.includes("audio") && (n = "mp3")) : n = b(e).toLowerCase(), p.imageType.includes(n) ? "1" : p.videoType.includes(n) ? "3" : p.audioType.includes(n) ? "2" : "4";
319
+ return v(e) ? e.includes("data:image/") ? n = "png" : e.includes("data:video/") ? n = "mp4" : e.includes("data:audio/") && (n = "mp3") : e instanceof Blob ? (e = String(e), e.includes("image") ? n = "png" : e.includes("video") ? n = "mp4" : e.includes("audio") && (n = "mp3")) : n = S(e).toLowerCase(), p.imageType.includes(n) ? "1" : p.videoType.includes(n) ? "3" : p.audioType.includes(n) ? "2" : "4";
320
320
  }
321
321
  function q(e) {
322
322
  const { url: t = "", fileType: n = "1" } = e;
323
323
  let i = "";
324
- return t instanceof File ? i = URL.createObjectURL(t) : S(t) ? i = t : t instanceof Blob ? i = URL.createObjectURL(t) : (t.includes("https") || t.includes("http")) && (i = t), new Promise(function(r) {
324
+ return t instanceof File ? i = URL.createObjectURL(t) : v(t) ? i = t : t instanceof Blob ? i = URL.createObjectURL(t) : (t.includes("https") || t.includes("http")) && (i = t), new Promise(function(r) {
325
325
  let o;
326
326
  n === "1" ? (o = document.createElement("img"), o.src = i) : n === "2" ? (o = document.createElement("audio"), o.src = i) : n === "3" && (o = document.createElement("video"), o.src = i), n === "1" ? o.onload = function() {
327
327
  r({
@@ -343,10 +343,10 @@ function q(e) {
343
343
  };
344
344
  });
345
345
  }
346
- async function ve(e) {
346
+ async function Se(e) {
347
347
  const { url: t = "", currentTime: n, videoSuffix: i = "", vidoeAllowPlay: r = !1 } = e;
348
348
  let o = "", c = i, u = "1", s;
349
- return t instanceof File ? (o = URL.createObjectURL(t), c = b(t.name), u = m(t.name)) : t instanceof Blob ? (o = URL.createObjectURL(t), u = m(t)) : S(t) ? (o = t, u = m(t)) : (t.includes("https") || t.includes("http")) && (o = t, c = b(t), u = m(t)), (c ? p.videoAllowType.includes(c.toLowerCase()) : !1) ? r ? A(o, n) : (s = await q({
349
+ return t instanceof File ? (o = URL.createObjectURL(t), c = S(t.name), u = m(t.name)) : t instanceof Blob ? (o = URL.createObjectURL(t), u = m(t)) : v(t) ? (o = t, u = m(t)) : (t.includes("https") || t.includes("http")) && (o = t, c = S(t), u = m(t)), (c ? p.videoAllowType.includes(c.toLowerCase()) : !1) ? r ? A(o, n) : (s = await q({
350
350
  url: o,
351
351
  fileType: u
352
352
  }), s.play ? A(o, n) : new Promise(function(a) {
@@ -368,20 +368,20 @@ async function A(e, t) {
368
368
  }, !1);
369
369
  });
370
370
  }
371
- function S(e = "") {
371
+ function v(e = "") {
372
372
  return !!(e && [
373
373
  "data:image/",
374
374
  "data:video/",
375
375
  "data:audio/"
376
376
  ].find((n) => e.includes(n)));
377
377
  }
378
- function be(e, t, n, i = !1) {
378
+ function ve(e, t, n, i = !1) {
379
379
  e && t && n && e.addEventListener(t, n, i);
380
380
  }
381
- function Se(e, t, n, i = !1) {
381
+ function Ae(e, t, n, i = !1) {
382
382
  e && t && n && e.removeEventListener(t, n, i);
383
383
  }
384
- const Ae = (e) => {
384
+ const Te = (e) => {
385
385
  const {
386
386
  label: t,
387
387
  tooltip: n,
@@ -395,7 +395,7 @@ const Ae = (e) => {
395
395
  isPor: !0
396
396
  }), c = typeof n == "string" ? {
397
397
  title: n
398
- } : n, u = (c == null ? void 0 : c.icon) || l(R, null, null);
398
+ } : n, u = (c == null ? void 0 : c.icon) || l(L, null, null);
399
399
  return l("div", {
400
400
  class: o,
401
401
  onMousedown: (s) => s.stopPropagation(),
@@ -408,83 +408,88 @@ const Ae = (e) => {
408
408
  }
409
409
  }, [t]), r && l("div", {
410
410
  class: `${o}-subtitle`
411
- }, [r]), n && l(L, c, {
411
+ }, [r]), n && l(R, c, {
412
412
  default: () => [l("span", {
413
413
  class: `${o}-icon`
414
414
  }, [u])]
415
415
  })]);
416
- }, z = typeof process < "u" && process.versions != null && process.versions.node != null, Te = () => process.env.NODE_ENV === "TEST" ? !0 : typeof window < "u" && typeof window.document < "u" && typeof window.matchMedia < "u" && !z, Oe = (e) => {
416
+ }, z = typeof process < "u" && process.versions != null && process.versions.node != null, Fe = () => process.env.NODE_ENV === "TEST" ? !0 : typeof window < "u" && typeof window.document < "u" && typeof window.matchMedia < "u" && !z, Oe = (e) => {
417
417
  if (e && e !== !0)
418
418
  return e;
419
- }, Fe = (e) => {
419
+ }, Ee = (e) => {
420
420
  const t = {};
421
421
  if (Object.keys(e || {}).forEach((n) => {
422
422
  e[n] !== void 0 && (t[n] = e[n]);
423
423
  }), !(Object.keys(t).length < 1))
424
424
  return t;
425
- };
426
- function Ee(e, t, n = "default") {
427
- return t[n] === !1 ? !1 : O(t[n]) && t[n] ? (e == null ? void 0 : e[n]) || !1 : t[n] || e[n];
425
+ }, J = (e) => e.length === 1 && (String(e[0].type) === String(Symbol("Comment")) || String(e[0].type) === String(Symbol("Fragment")) || String(e[0].type) === String(Symbol()));
426
+ function Re(e) {
427
+ return J(e) ? e[0].children : e;
428
+ }
429
+ function Le(e, t, n = "default") {
430
+ return t[n] === !1 ? !1 : F(t[n]) && t[n] ? (e == null ? void 0 : e[n]) || !1 : t[n] || e[n];
428
431
  }
429
- function J(e, t, n = "default") {
432
+ function _(e, t, n = "default") {
430
433
  var i, r;
431
- return t[n] === !1 ? !1 : O(t[n]) && t[n] ? ((i = e == null ? void 0 : e[n]) == null ? void 0 : i.call(e)) || !1 : t[n] || ((r = e[n]) == null ? void 0 : r.call(e));
434
+ return t[n] === !1 ? !1 : F(t[n]) && t[n] ? ((i = e == null ? void 0 : e[n]) == null ? void 0 : i.call(e)) || !1 : t[n] || ((r = e[n]) == null ? void 0 : r.call(e));
432
435
  }
433
- function Le(e, t, n) {
436
+ function Ie(e, t, n) {
434
437
  const i = {};
435
438
  return e.forEach((r) => {
436
- i[r] = J(t, n, r);
439
+ i[r] = _(t, n, r);
437
440
  }), i;
438
441
  }
439
442
  export {
440
- Ae as LabelIconTip,
441
- le as arrayRepeat,
442
- ye as blobToDataURL,
443
+ Te as LabelIconTip,
444
+ fe as arrayRepeat,
445
+ be as blobToDataURL,
443
446
  m as checkFileType,
444
- ae as compareArray,
445
- he as dataURLtoBlob,
446
- xe as dataURLtoFile,
447
- F as deepCopy,
448
- de as formatDuraton,
449
- re as genColumnKey,
447
+ le as compareArray,
448
+ xe as dataURLtoBlob,
449
+ ye as dataURLtoFile,
450
+ O as deepCopy,
451
+ me as formatDuraton,
452
+ oe as genColumnKey,
450
453
  A as generateVidoePicture,
451
- we as getBase64,
452
- ge as getBlobUrl,
453
- b as getFileSuffix,
454
+ he as getBase64,
455
+ we as getBlobUrl,
456
+ S as getFileSuffix,
454
457
  H as getLevelData,
455
- me as getMaxFloor,
458
+ pe as getMaxFloor,
456
459
  q as getMediaInfos,
457
460
  N as getPrefixCls,
458
461
  V as getRandomNumber,
462
+ Re as getRealVNode,
459
463
  P as getScroll,
460
- Q as getScrollContainer,
461
- Ee as getSlot,
462
- J as getSlotVNode,
463
- Le as getSlotsProps,
464
- se as getSortIndex,
465
- ve as getVideoCoverPicture,
464
+ Z as getScrollContainer,
465
+ Le as getSlot,
466
+ _ as getSlotVNode,
467
+ Ie as getSlotsProps,
468
+ ae as getSortIndex,
469
+ Se as getVideoCoverPicture,
466
470
  W as getVideoFileUrl,
467
- ue as handleCurrentPage,
468
- oe as handleShowIndex,
469
- fe as hanndleField,
471
+ se as handleCurrentPage,
472
+ ce as handleShowIndex,
473
+ de as hanndleField,
470
474
  T as is,
471
- te as isArray,
472
- S as isBase64,
473
- O as isBoolean,
474
- Te as isBrowser,
475
- ie as isFunction,
476
- Z as isInContainer,
477
- ee as isNumber,
478
- v as isObject,
475
+ ne as isArray,
476
+ v as isBase64,
477
+ F as isBoolean,
478
+ Fe as isBrowser,
479
+ re as isFunction,
480
+ k as isInContainer,
481
+ te as isNumber,
482
+ b as isObject,
479
483
  j as isScroll,
480
484
  w as isServer,
481
- ne as isString,
482
- Se as off,
485
+ J as isSlotFragment,
486
+ ie as isString,
487
+ Ae as off,
483
488
  Oe as omitBoolean,
484
- Fe as omitUndefined,
485
- be as on,
486
- ce as runFunction,
487
- k as scrollTo,
488
- K as throttleByAnimationFrame,
489
- pe as treeData
489
+ Ee as omitUndefined,
490
+ ve as on,
491
+ ue as runFunction,
492
+ K as scrollTo,
493
+ ee as throttleByAnimationFrame,
494
+ ge as treeData
490
495
  };
@@ -1 +1 @@
1
- (function(c,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue"),require("ant-design-vue"),require("@ant-design/icons-vue"),require("lodash-unified")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue","@ant-design/icons-vue","lodash-unified"],s):(c=typeof globalThis<"u"?globalThis:c||self,s(c.PorUtils={},c.vue,c.antDesignVue$1,c.iconsVue,c.lodashUnified))})(this,function(c,s,j,N,V){"use strict";const Oe="",Ue="",Le="",Re="",Ie="",De="",g=typeof window>"u";process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const M=e=>{const n=Object.create(null);return t=>n[t]||(n[t]=e(t))},$=/-(\w)/g,q=M(e=>e.replace($,(n,t)=>t?t.toUpperCase():"")),S=function(e,n){var t;if(g||!e||!n)return"";n=q(n),n==="float"&&(n="cssFloat");try{const i=e.style[n];if(i)return i;const o=(t=document==null?void 0:document.defaultView)==null?void 0:t.getComputedStyle(e,"");return o?o[n]:""}catch{return e.style[n]}},R=(e,n)=>g?void 0:(n==null?S(e,"overflow"):n?S(e,"overflow-y"):S(e,"overflow-x")).match(/(scroll|auto|overlay)/),H=(e,n)=>{if(g)return;let t=e;for(;t;){if([window,document,document.documentElement].includes(t))return window;if(R(t,n))return t;t=t.parentNode}return t},W=(e,n)=>{if(g||!e||!n)return!1;const t=e.getBoundingClientRect();let i;return[window,document,document.documentElement,null,void 0].includes(n)?i={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:i=n.getBoundingClientRect(),t.top<i.bottom&&t.bottom>i.top&&t.right>i.left&&t.left<i.right};let _=0;const d={};function h(e,n=1){const t=_++;let i=n;function o(){i-=1,i<=0?(e(),delete d[t]):d[t]=requestAnimationFrame(o)}return d[t]=requestAnimationFrame(o),t}h.cancel=function(n){n!==void 0&&(cancelAnimationFrame(d[n]),delete d[n])},h.ids=d;function T(e){return e!=null&&e===e.window}function I(e,n){var o;if(typeof window>"u")return 0;const t=n?"scrollTop":"scrollLeft";let i=0;return T(e)?i=e[n?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[t]:e&&(i=e[t]),e&&!T(e)&&typeof i!="number"&&(i=(o=(e.ownerDocument||e).documentElement)==null?void 0:o[t]),i}function z(e,n,t,i){const o=t-n;return e/=i/2,e<1?o/2*e*e*e+n:o/2*((e-=2)*e*e+2)+n}function J(e,n={}){const{getContainer:t=()=>window,callback:i,duration:o=450}=n,r=t(),u=I(r,!0),a=Date.now(),l=()=>{const f=Date.now()-a,L=z(f>o?o:f,u,e,o);T(r)?r.scrollTo(window.pageXOffset,L):r instanceof HTMLDocument||r.constructor.name==="HTMLDocument"?r.documentElement.scrollTop=L:r.scrollTop=L,f<o?h(l):typeof i=="function"&&i()};h(l)}function X(e){let n;const t=o=>()=>{n=null,e(...o)},i=(...o)=>{n==null&&(n=requestAnimationFrame(t(o)))};return i.cancel=()=>cancelAnimationFrame(n),i}const w={videoAllowType:["mp4","webm","ogg"],audioAllowType:["mp3"],imageType:["bmp","png","gif","jpg","jpeg","psd","tif"],videoType:["mp4","swf","rmvb","avi","flv","mpg","rm","mov","asf","3gp","mkv","ts","f4v","webm","m4v","3g2","m3u8"],audioType:["mp3","mpeg","aac","wav","wma","mp2","flac","midi","ra","ape","aac","cda"]},Y=Object.prototype.toString;function F(e,n){return Y.call(e)===`[object ${n}]`}function A(e){return F(e,"Boolean")}function k(e){return typeof e=="number"}function G(e){return typeof Array.isArray>"u"?Object.prototype.toString.call(e)==="[object Array]":Array.isArray(e)}function y(e){return e!==null&&F(e,"Object")}function Q(e){return typeof e=="string"||e instanceof String}function Z(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}const D=({suffixCls:e,customizePrefixCls:n,isPor:t,className:i})=>{const o=i||(t?"gx-pro":"gx");return n||(e?`${o}-${e}`:o)},K=(e,n)=>e?Array.isArray(e)?e.join("-"):e.toString():`${n}`;function ee(e,{align:n,showIndex:t}){const i=V.cloneDeep(e);if(t&&e.length&&e.every(o=>o.dataIndex!=="sortIndex")){const o=e[0];i.unshift({title:"\u5E8F\u53F7",align:n,fixed:o.fixed,width:60,uuid:x().uuid(15),dataIndex:"sortIndex",key:"sortIndex"})}else i.filter(o=>o.dataIndex!=="sortIndex");return i}function ne(e,...n){return typeof e=="function"?e(...n):e}function O(e){return JSON.parse(JSON.stringify(e))}function te(e,n){if(y(e)){const{pageSize:t=10,total:i=0}=e;let{current:o=1}=e;return i-n<=t*(o-1)&&(o=o-1),o===0?1:o}return 1}function ie(e=[],n,t="children"){function i(o,r){return r.map((u,a)=>{const l=`${o}-${a+1}`;return u[t]&&(u[t]=i(l,u[t])),u.sortIndex=l,u})}return O(e).map((o,r)=>{let u=r;const a=y(n)&&n.current||1,l=y(n)&&n.pageSize||10;return u=a?(a-1)*l+(r+1):r+1,o[t]&&(o[t]=i(`${u}`,o[t])),o.sortIndex=u,o})}function oe(e,n,t,i){const o=e[t],r=n[t];let u=0;return o<r?u=i===0?-1:0:o>r&&(u=i===0?0:-1),u}function re(e){let n=O(e);const t=new Set(n);return n=Array.from(t),n}function ce(e,n){const t=["null","undefined"];let i=!0;return e===0?i=!0:t.includes(e)?i=!1:e||(i=!1),i?{value:e,success:i}:{value:n===""?n:n||"-",success:i}}function ue(e){let n="";if(e>-1){const t=Math.floor(e/3600),i=Math.floor(e/60)%60,o=parseInt(String(e%60));t<10?n="0"+t+":":n=t+":",i<10&&(n+="0"),n+=i+":",o<10&&(n+="0"),n+=o}return n.split(":")[0]==="00"?`${n.split(":")[1]}:${n.split(":")[2]}`:n}function x(){const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");return{uuid(n,t){const i=e,o=[],r=t||i.length;let u,a;if(n)for(u=0;u<n;u+=1)o[u]=i[parseInt(String(Math.random()*r))];else for(o[8]="-",o[13]="-",o[18]="-",o[23]="-",o[14]="4",u=0;u<36;u+=1)o[u]||(a=Math.random()*16,o[u]=i[u===19?a&&3||8:a]);return o.join("")},uuidFast(){const n=e,t=new Array(36);let i=0,o,r;for(r=0;r<36;r+=1)r===8||r===13||r===18||r===23?t[r]="-":r===14?t[r]="4":(i<=2&&(i=33554432+Math.random()*16777216||0),o=i&&15,i=i>4,t[r]=n[r===19?o&&3||8:o]);return t.join("")},uuidString(){return this.uuidFast().replace(new RegExp("-","g"),"")},uuidCompact(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const t=Math.random()*16||0;return(n==="x"?t:t&&3||8).toString(16)})}}}function ae(e=[]){let n=0;function t(i=[],o){i.forEach(r=>{r.floor=o,o>n&&(n=o),r.children&&r.children.length>0&&t(r.children,o+1)})}return t(e,1),n}function E(e,n="children"){let t=[];return e.forEach(i=>{t.push(i),i[n]&&i[n].length>0&&(t=t.concat(E(i[n])))}),t}function le(e,n,t,i,o){n=n||"id",t=t||"parentId",i=i||"children",o=o||0;const r=JSON.parse(JSON.stringify(e));return r.filter(u=>{const a=r.filter(l=>u[n]===l[t||"parentId"]);return a.length>0?u[i||"children"]=a:delete u[i||"children"],u[t||"parentId"]===o})}function se(e){return URL.createObjectURL(e)}function fe(e){return new Promise((n,t)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>n(i.result),i.onerror=o=>t(o)})}function de(e){const n=e.split(","),t=n[0].match(/:(.*?);/)[1],i=atob(n[1]);let o=i.length;const r=new Uint8Array(o);for(;o--;)r[o]=i.charCodeAt(o);return new Blob([r],{type:t})}function ge(e,n){const t=e.split(","),i=t[0].match(/:(.*?);/)[1],o=atob(t[1]);let r=o.length;const u=new Uint8Array(r);for(;r--;)u[r]=o.charCodeAt(r);return new File([u],n,{type:i})}function me(e,n,t){return new window.File([e],n,{type:t})}function C(e=""){const n=e.indexOf("?");return n>0?`${e.substring(0,n)}`:e}function p(e=""){e=C(e);const n=e.lastIndexOf(".");return n>0?`${e.substring(n).split("?")[0]}`.split(".")[1]:""}function m(e,n){if(n)return n;if(!e||e==="data:")return"4";let t="4";return v(e)?e.includes("data:image/")?t="png":e.includes("data:video/")?t="mp4":e.includes("data:audio/")&&(t="mp3"):e instanceof Blob?(e=String(e),e.includes("image")?t="png":e.includes("video")?t="mp4":e.includes("audio")&&(t="mp3")):t=p(e).toLowerCase(),w.imageType.includes(t)?"1":w.videoType.includes(t)?"3":w.audioType.includes(t)?"2":"4"}function B(e){const{url:n="",fileType:t="1"}=e;let i="";return n instanceof File?i=URL.createObjectURL(n):v(n)?i=n:n instanceof Blob?i=URL.createObjectURL(n):(n.includes("https")||n.includes("http"))&&(i=n),new Promise(function(o){let r;t==="1"?(r=document.createElement("img"),r.src=i):t==="2"?(r=document.createElement("audio"),r.src=i):t==="3"&&(r=document.createElement("video"),r.src=i),t==="1"?r.onload=function(){o({play:!0,width:r.width||0,height:r.height||0}),r=null}:r.oncanplay=function(){o({play:!0,duration:r.duration,width:(r==null?void 0:r.videoWidth)||0,height:(r==null?void 0:r.videoHeight)||0}),r=null},r.onerror=function(){o({play:!1}),r=null}})}async function he(e){const{url:n="",currentTime:t,videoSuffix:i="",vidoeAllowPlay:o=!1}=e;let r="",u=i,a="1",l;return n instanceof File?(r=URL.createObjectURL(n),u=p(n.name),a=m(n.name)):n instanceof Blob?(r=URL.createObjectURL(n),a=m(n)):v(n)?(r=n,a=m(n)):(n.includes("https")||n.includes("http"))&&(r=n,u=p(n),a=m(n)),(u?w.videoAllowType.includes(u.toLowerCase()):!1)?o?U(r,t):(l=await B({url:r,fileType:a}),l.play?U(r,t):new Promise(function(f){f("")})):new Promise(function(f){f("")})}async function U(e,n){let t=document.createElement("video");t.style.display="none",t.controls=!0,t.muted=!0,n&&(t.currentTime=n),t.setAttribute("src",e),t.setAttribute("muted",String(!0)),t.setAttribute("crossorigin","anonymous"),t.setAttribute("autoplay",String(!0));const i=document.createElement("canvas"),o=.8,r=100,u=i.getContext("2d");return new Promise(function(a){t&&t.addEventListener("canplay",function(){setTimeout(function(){const l=(t==null?void 0:t.videoWidth)||0*o,b=(t==null?void 0:t.videoHeight)||0*o,f=0;i.width=(t==null?void 0:t.videoWidth)||0*o,i.height=(t==null?void 0:t.videoHeight)||0*o,u.drawImage(t,0,0,l+f,b+f),t=null,a(l===0||b===0?"":i.toDataURL("image/png",1))},r)},!1)})}function v(e=""){return!!(e&&["data:image/","data:video/","data:audio/"].find(t=>e.includes(t)))}function we(e,n,t,i=!1){e&&n&&t&&e.addEventListener(n,t,i)}function ye(e,n,t,i=!1){e&&n&&t&&e.removeEventListener(n,t,i)}const xe="",pe=e=>{const{label:n,tooltip:t,ellipsis:i,subTitle:o}=e;if(!t&&!o)return s.createVNode(s.Fragment,null,[n]);const r=D({suffixCls:"core-label-tip",isPor:!0}),u=typeof t=="string"?{title:t}:t,a=(u==null?void 0:u.icon)||s.createVNode(N.InfoCircleOutlined,null,null);return s.createVNode("div",{class:r,onMousedown:l=>l.stopPropagation(),onMouseleave:l=>l.stopPropagation(),onMousemove:l=>l.stopPropagation()},[s.createVNode("div",{class:{[`${r}-title`]:!0,[`${r}-title-ellipsis`]:i}},[n]),o&&s.createVNode("div",{class:`${r}-subtitle`},[o]),t&&s.createVNode(j.Tooltip,u,{default:()=>[s.createVNode("span",{class:`${r}-icon`},[a])]})])},ve=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,be=()=>process.env.NODE_ENV==="TEST"?!0:typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!ve,Se=e=>{if(e&&e!==!0)return e},Te=e=>{const n={};if(Object.keys(e||{}).forEach(t=>{e[t]!==void 0&&(n[t]=e[t])}),!(Object.keys(n).length<1))return n};function Fe(e,n,t="default"){return n[t]===!1?!1:A(n[t])&&n[t]?(e==null?void 0:e[t])||!1:n[t]||e[t]}function P(e,n,t="default"){var i,o;return n[t]===!1?!1:A(n[t])&&n[t]?((i=e==null?void 0:e[t])==null?void 0:i.call(e))||!1:n[t]||((o=e[t])==null?void 0:o.call(e))}function Ae(e,n,t){const i={};return e.forEach(o=>{i[o]=P(n,t,o)}),i}c.LabelIconTip=pe,c.arrayRepeat=re,c.blobToDataURL=me,c.checkFileType=m,c.compareArray=oe,c.dataURLtoBlob=de,c.dataURLtoFile=ge,c.deepCopy=O,c.formatDuraton=ue,c.genColumnKey=K,c.generateVidoePicture=U,c.getBase64=fe,c.getBlobUrl=se,c.getFileSuffix=p,c.getLevelData=E,c.getMaxFloor=ae,c.getMediaInfos=B,c.getPrefixCls=D,c.getRandomNumber=x,c.getScroll=I,c.getScrollContainer=H,c.getSlot=Fe,c.getSlotVNode=P,c.getSlotsProps=Ae,c.getSortIndex=ie,c.getVideoCoverPicture=he,c.getVideoFileUrl=C,c.handleCurrentPage=te,c.handleShowIndex=ee,c.hanndleField=ce,c.is=F,c.isArray=G,c.isBase64=v,c.isBoolean=A,c.isBrowser=be,c.isFunction=Z,c.isInContainer=W,c.isNumber=k,c.isObject=y,c.isScroll=R,c.isServer=g,c.isString=Q,c.off=ye,c.omitBoolean=Se,c.omitUndefined=Te,c.on=we,c.runFunction=ne,c.scrollTo=J,c.throttleByAnimationFrame=X,c.treeData=le,Object.defineProperties(c,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(c,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue"),require("ant-design-vue"),require("@ant-design/icons-vue"),require("lodash-unified")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue","@ant-design/icons-vue","lodash-unified"],s):(c=typeof globalThis<"u"?globalThis:c||self,s(c.PorUtils={},c.vue,c.antDesignVue$1,c.iconsVue,c.lodashUnified))})(this,function(c,s,V,j,M){"use strict";const Ue="",Le="",Ie="",De="",Ce="",Ee="",g=typeof window>"u";process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const $=e=>{const n=Object.create(null);return t=>n[t]||(n[t]=e(t))},q=/-(\w)/g,H=$(e=>e.replace(q,(n,t)=>t?t.toUpperCase():"")),v=function(e,n){var t;if(g||!e||!n)return"";n=H(n),n==="float"&&(n="cssFloat");try{const i=e.style[n];if(i)return i;const r=(t=document==null?void 0:document.defaultView)==null?void 0:t.getComputedStyle(e,"");return r?r[n]:""}catch{return e.style[n]}},L=(e,n)=>g?void 0:(n==null?v(e,"overflow"):n?v(e,"overflow-y"):v(e,"overflow-x")).match(/(scroll|auto|overlay)/),W=(e,n)=>{if(g)return;let t=e;for(;t;){if([window,document,document.documentElement].includes(t))return window;if(L(t,n))return t;t=t.parentNode}return t},_=(e,n)=>{if(g||!e||!n)return!1;const t=e.getBoundingClientRect();let i;return[window,document,document.documentElement,null,void 0].includes(n)?i={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:i=n.getBoundingClientRect(),t.top<i.bottom&&t.bottom>i.top&&t.right>i.left&&t.left<i.right};let z=0;const d={};function h(e,n=1){const t=z++;let i=n;function r(){i-=1,i<=0?(e(),delete d[t]):d[t]=requestAnimationFrame(r)}return d[t]=requestAnimationFrame(r),t}h.cancel=function(n){n!==void 0&&(cancelAnimationFrame(d[n]),delete d[n])},h.ids=d;function F(e){return e!=null&&e===e.window}function I(e,n){var r;if(typeof window>"u")return 0;const t=n?"scrollTop":"scrollLeft";let i=0;return F(e)?i=e[n?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[t]:e&&(i=e[t]),e&&!F(e)&&typeof i!="number"&&(i=(r=(e.ownerDocument||e).documentElement)==null?void 0:r[t]),i}function J(e,n,t,i){const r=t-n;return e/=i/2,e<1?r/2*e*e*e+n:r/2*((e-=2)*e*e+2)+n}function X(e,n={}){const{getContainer:t=()=>window,callback:i,duration:r=450}=n,o=t(),u=I(o,!0),a=Date.now(),l=()=>{const f=Date.now()-a,U=J(f>r?r:f,u,e,r);F(o)?o.scrollTo(window.pageXOffset,U):o instanceof HTMLDocument||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=U:o.scrollTop=U,f<r?h(l):typeof i=="function"&&i()};h(l)}function Y(e){let n;const t=r=>()=>{n=null,e(...r)},i=(...r)=>{n==null&&(n=requestAnimationFrame(t(r)))};return i.cancel=()=>cancelAnimationFrame(n),i}const w={videoAllowType:["mp4","webm","ogg"],audioAllowType:["mp3"],imageType:["bmp","png","gif","jpg","jpeg","psd","tif"],videoType:["mp4","swf","rmvb","avi","flv","mpg","rm","mov","asf","3gp","mkv","ts","f4v","webm","m4v","3g2","m3u8"],audioType:["mp3","mpeg","aac","wav","wma","mp2","flac","midi","ra","ape","aac","cda"]},k=Object.prototype.toString;function T(e,n){return k.call(e)===`[object ${n}]`}function A(e){return T(e,"Boolean")}function G(e){return typeof e=="number"}function Q(e){return typeof Array.isArray>"u"?Object.prototype.toString.call(e)==="[object Array]":Array.isArray(e)}function y(e){return e!==null&&T(e,"Object")}function Z(e){return typeof e=="string"||e instanceof String}function K(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}const D=({suffixCls:e,customizePrefixCls:n,isPor:t,className:i})=>{const r=i||(t?"gx-pro":"gx");return n||(e?`${r}-${e}`:r)},ee=(e,n)=>e?Array.isArray(e)?e.join("-"):e.toString():`${n}`;function ne(e,{align:n,showIndex:t}){const i=M.cloneDeep(e);if(t&&e.length&&e.every(r=>r.dataIndex!=="sortIndex")){const r=e[0];i.unshift({title:"\u5E8F\u53F7",align:n,fixed:r.fixed,width:60,uuid:C().uuid(15),dataIndex:"sortIndex",key:"sortIndex"})}else i.filter(r=>r.dataIndex!=="sortIndex");return i}function te(e,...n){return typeof e=="function"?e(...n):e}function R(e){return JSON.parse(JSON.stringify(e))}function ie(e,n){if(y(e)){const{pageSize:t=10,total:i=0}=e;let{current:r=1}=e;return i-n<=t*(r-1)&&(r=r-1),r===0?1:r}return 1}function re(e=[],n,t="children"){function i(r,o){return o.map((u,a)=>{const l=`${r}-${a+1}`;return u[t]&&(u[t]=i(l,u[t])),u.sortIndex=l,u})}return R(e).map((r,o)=>{let u=o;const a=y(n)&&n.current||1,l=y(n)&&n.pageSize||10;return u=a?(a-1)*l+(o+1):o+1,r[t]&&(r[t]=i(`${u}`,r[t])),r.sortIndex=u,r})}function oe(e,n,t,i){const r=e[t],o=n[t];let u=0;return r<o?u=i===0?-1:0:r>o&&(u=i===0?0:-1),u}function ce(e){let n=R(e);const t=new Set(n);return n=Array.from(t),n}function ue(e,n){const t=["null","undefined"];let i=!0;return e===0?i=!0:t.includes(e)?i=!1:e||(i=!1),i?{value:e,success:i}:{value:n===""?n:n||"-",success:i}}function ae(e){let n="";if(e>-1){const t=Math.floor(e/3600),i=Math.floor(e/60)%60,r=parseInt(String(e%60));t<10?n="0"+t+":":n=t+":",i<10&&(n+="0"),n+=i+":",r<10&&(n+="0"),n+=r}return n.split(":")[0]==="00"?`${n.split(":")[1]}:${n.split(":")[2]}`:n}function C(){const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");return{uuid(n,t){const i=e,r=[],o=t||i.length;let u,a;if(n)for(u=0;u<n;u+=1)r[u]=i[parseInt(String(Math.random()*o))];else for(r[8]="-",r[13]="-",r[18]="-",r[23]="-",r[14]="4",u=0;u<36;u+=1)r[u]||(a=Math.random()*16,r[u]=i[u===19?a&&3||8:a]);return r.join("")},uuidFast(){const n=e,t=new Array(36);let i=0,r,o;for(o=0;o<36;o+=1)o===8||o===13||o===18||o===23?t[o]="-":o===14?t[o]="4":(i<=2&&(i=33554432+Math.random()*16777216||0),r=i&&15,i=i>4,t[o]=n[o===19?r&&3||8:r]);return t.join("")},uuidString(){return this.uuidFast().replace(new RegExp("-","g"),"")},uuidCompact(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const t=Math.random()*16||0;return(n==="x"?t:t&&3||8).toString(16)})}}}function le(e=[]){let n=0;function t(i=[],r){i.forEach(o=>{o.floor=r,r>n&&(n=r),o.children&&o.children.length>0&&t(o.children,r+1)})}return t(e,1),n}function E(e,n="children"){let t=[];return e.forEach(i=>{t.push(i),i[n]&&i[n].length>0&&(t=t.concat(E(i[n])))}),t}function se(e,n,t,i,r){n=n||"id",t=t||"parentId",i=i||"children",r=r||0;const o=JSON.parse(JSON.stringify(e));return o.filter(u=>{const a=o.filter(l=>u[n]===l[t||"parentId"]);return a.length>0?u[i||"children"]=a:delete u[i||"children"],u[t||"parentId"]===r})}function fe(e){return URL.createObjectURL(e)}function de(e){return new Promise((n,t)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>n(i.result),i.onerror=r=>t(r)})}function ge(e){const n=e.split(","),t=n[0].match(/:(.*?);/)[1],i=atob(n[1]);let r=i.length;const o=new Uint8Array(r);for(;r--;)o[r]=i.charCodeAt(r);return new Blob([o],{type:t})}function me(e,n){const t=e.split(","),i=t[0].match(/:(.*?);/)[1],r=atob(t[1]);let o=r.length;const u=new Uint8Array(o);for(;o--;)u[o]=r.charCodeAt(o);return new File([u],n,{type:i})}function he(e,n,t){return new window.File([e],n,{type:t})}function x(e=""){const n=e.indexOf("?");return n>0?`${e.substring(0,n)}`:e}function p(e=""){e=x(e);const n=e.lastIndexOf(".");return n>0?`${e.substring(n).split("?")[0]}`.split(".")[1]:""}function m(e,n){if(n)return n;if(!e||e==="data:")return"4";let t="4";return S(e)?e.includes("data:image/")?t="png":e.includes("data:video/")?t="mp4":e.includes("data:audio/")&&(t="mp3"):e instanceof Blob?(e=String(e),e.includes("image")?t="png":e.includes("video")?t="mp4":e.includes("audio")&&(t="mp3")):t=p(e).toLowerCase(),w.imageType.includes(t)?"1":w.videoType.includes(t)?"3":w.audioType.includes(t)?"2":"4"}function B(e){const{url:n="",fileType:t="1"}=e;let i="";return n instanceof File?i=URL.createObjectURL(n):S(n)?i=n:n instanceof Blob?i=URL.createObjectURL(n):(n.includes("https")||n.includes("http"))&&(i=n),new Promise(function(r){let o;t==="1"?(o=document.createElement("img"),o.src=i):t==="2"?(o=document.createElement("audio"),o.src=i):t==="3"&&(o=document.createElement("video"),o.src=i),t==="1"?o.onload=function(){r({play:!0,width:o.width||0,height:o.height||0}),o=null}:o.oncanplay=function(){r({play:!0,duration:o.duration,width:(o==null?void 0:o.videoWidth)||0,height:(o==null?void 0:o.videoHeight)||0}),o=null},o.onerror=function(){r({play:!1}),o=null}})}async function we(e){const{url:n="",currentTime:t,videoSuffix:i="",vidoeAllowPlay:r=!1}=e;let o="",u=i,a="1",l;return n instanceof File?(o=URL.createObjectURL(n),u=p(n.name),a=m(n.name)):n instanceof Blob?(o=URL.createObjectURL(n),a=m(n)):S(n)?(o=n,a=m(n)):(n.includes("https")||n.includes("http"))&&(o=n,u=p(n),a=m(n)),(u?w.videoAllowType.includes(u.toLowerCase()):!1)?r?O(o,t):(l=await B({url:o,fileType:a}),l.play?O(o,t):new Promise(function(f){f("")})):new Promise(function(f){f("")})}async function O(e,n){let t=document.createElement("video");t.style.display="none",t.controls=!0,t.muted=!0,n&&(t.currentTime=n),t.setAttribute("src",e),t.setAttribute("muted",String(!0)),t.setAttribute("crossorigin","anonymous"),t.setAttribute("autoplay",String(!0));const i=document.createElement("canvas"),r=.8,o=100,u=i.getContext("2d");return new Promise(function(a){t&&t.addEventListener("canplay",function(){setTimeout(function(){const l=(t==null?void 0:t.videoWidth)||0*r,b=(t==null?void 0:t.videoHeight)||0*r,f=0;i.width=(t==null?void 0:t.videoWidth)||0*r,i.height=(t==null?void 0:t.videoHeight)||0*r,u.drawImage(t,0,0,l+f,b+f),t=null,a(l===0||b===0?"":i.toDataURL("image/png",1))},o)},!1)})}function S(e=""){return!!(e&&["data:image/","data:video/","data:audio/"].find(t=>e.includes(t)))}function ye(e,n,t,i=!1){e&&n&&t&&e.addEventListener(n,t,i)}function pe(e,n,t,i=!1){e&&n&&t&&e.removeEventListener(n,t,i)}const xe="",Se=e=>{const{label:n,tooltip:t,ellipsis:i,subTitle:r}=e;if(!t&&!r)return s.createVNode(s.Fragment,null,[n]);const o=D({suffixCls:"core-label-tip",isPor:!0}),u=typeof t=="string"?{title:t}:t,a=(u==null?void 0:u.icon)||s.createVNode(j.InfoCircleOutlined,null,null);return s.createVNode("div",{class:o,onMousedown:l=>l.stopPropagation(),onMouseleave:l=>l.stopPropagation(),onMousemove:l=>l.stopPropagation()},[s.createVNode("div",{class:{[`${o}-title`]:!0,[`${o}-title-ellipsis`]:i}},[n]),r&&s.createVNode("div",{class:`${o}-subtitle`},[r]),t&&s.createVNode(V.Tooltip,u,{default:()=>[s.createVNode("span",{class:`${o}-icon`},[a])]})])},be=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,ve=()=>process.env.NODE_ENV==="TEST"?!0:typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!be,Fe=e=>{if(e&&e!==!0)return e},Te=e=>{const n={};if(Object.keys(e||{}).forEach(t=>{e[t]!==void 0&&(n[t]=e[t])}),!(Object.keys(n).length<1))return n},N=e=>e.length===1&&(String(e[0].type)===String(Symbol("Comment"))||String(e[0].type)===String(Symbol("Fragment"))||String(e[0].type)===String(Symbol()));function Ae(e){return N(e)?e[0].children:e}function Re(e,n,t="default"){return n[t]===!1?!1:A(n[t])&&n[t]?(e==null?void 0:e[t])||!1:n[t]||e[t]}function P(e,n,t="default"){var i,r;return n[t]===!1?!1:A(n[t])&&n[t]?((i=e==null?void 0:e[t])==null?void 0:i.call(e))||!1:n[t]||((r=e[t])==null?void 0:r.call(e))}function Oe(e,n,t){const i={};return e.forEach(r=>{i[r]=P(n,t,r)}),i}c.LabelIconTip=Se,c.arrayRepeat=ce,c.blobToDataURL=he,c.checkFileType=m,c.compareArray=oe,c.dataURLtoBlob=ge,c.dataURLtoFile=me,c.deepCopy=R,c.formatDuraton=ae,c.genColumnKey=ee,c.generateVidoePicture=O,c.getBase64=de,c.getBlobUrl=fe,c.getFileSuffix=p,c.getLevelData=E,c.getMaxFloor=le,c.getMediaInfos=B,c.getPrefixCls=D,c.getRandomNumber=C,c.getRealVNode=Ae,c.getScroll=I,c.getScrollContainer=W,c.getSlot=Re,c.getSlotVNode=P,c.getSlotsProps=Oe,c.getSortIndex=re,c.getVideoCoverPicture=we,c.getVideoFileUrl=x,c.handleCurrentPage=ie,c.handleShowIndex=ne,c.hanndleField=ue,c.is=T,c.isArray=Q,c.isBase64=S,c.isBoolean=A,c.isBrowser=ve,c.isFunction=K,c.isInContainer=_,c.isNumber=G,c.isObject=y,c.isScroll=L,c.isServer=g,c.isSlotFragment=N,c.isString=Z,c.off=pe,c.omitBoolean=Fe,c.omitUndefined=Te,c.on=ye,c.runFunction=te,c.scrollTo=X,c.throttleByAnimationFrame=Y,c.treeData=se,Object.defineProperties(c,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,5 +1,7 @@
1
- import { Slots } from 'vue';
1
+ import type { Slots, VNode } from 'vue';
2
2
  import type { CustomRender, WithFalse } from '../typings';
3
+ export declare const isSlotFragment: (slots: VNode[]) => boolean;
4
+ export declare function getRealVNode(vnode: VNode[]): VNode[];
3
5
  export declare function getSlot<T>(slots: Slots, props: Record<string, unknown>, prop?: string): T | false;
4
6
  export declare function getSlotVNode<T>(slots: Slots, props: Record<string, unknown>, prop?: string): T | false;
5
7
  declare type KeyValue<T extends keyof any, K> = Record<T, K>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gx-design-vue/pro-utils",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "vite build",
@@ -23,7 +23,8 @@
23
23
  },
24
24
  "./dist/style.css": "./dist/style.css",
25
25
  "./dist/style.less": "./dist/style.less",
26
- "./dist/proUtils.less": "./dist/proUtils.less"
26
+ "./dist/proUtils.less": "./dist/proUtils.less",
27
+ "./dist/components/LabelIconTip/index.less": "./dist/components/LabelIconTip/index.less"
27
28
  },
28
29
  "dependencies": {
29
30
  "@vueuse/core": "^6.8.0",