iking-web-ui-pro 0.1.33 → 0.1.34

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 { defineComponent as h, ref as u, computed as _, watch as b, nextTick as k, openBlock as c, createBlock as w, unref as p, withCtx as C, withDirectives as U, createElementBlock as x, createCommentVNode as A } from "vue";
2
- import { ElDialog as D, vLoading as B } from "element-plus";
3
- const F = (e, t) => {
2
+ import { ElDialog as D, vLoading as F } from "element-plus";
3
+ const B = (e, t) => {
4
4
  if (e.install = (r) => {
5
5
  for (const o of [e, ...Object.values(t ?? {})])
6
6
  r.component(o.name, o);
@@ -17,7 +17,7 @@ const g = typeof TextEncoder == "function" ? new TextEncoder() : void 0, S = "AB
17
17
  })(s);
18
18
  const l = String.fromCharCode.bind(String);
19
19
  typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array);
20
- const V = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "_"), E = (e) => {
20
+ const V = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "_"), $ = (e) => {
21
21
  let t, r, o, f, i = "";
22
22
  const n = e.length % 3;
23
23
  for (let a = 0; a < e.length; ) {
@@ -26,12 +26,12 @@ const V = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "
26
26
  t = r << 16 | o << 8 | f, i += s[t >> 18 & 63] + s[t >> 12 & 63] + s[t >> 6 & 63] + s[t & 63];
27
27
  }
28
28
  return n ? i.slice(0, n - 3) + "===".substring(n) : i;
29
- }, v = typeof btoa == "function" ? (e) => btoa(e) : d ? (e) => Buffer.from(e, "binary").toString("base64") : E, T = d ? (e) => Buffer.from(e).toString("base64") : (e) => {
29
+ }, v = typeof btoa == "function" ? (e) => btoa(e) : d ? (e) => Buffer.from(e, "binary").toString("base64") : $, E = d ? (e) => Buffer.from(e).toString("base64") : (e) => {
30
30
  let r = [];
31
31
  for (let o = 0, f = e.length; o < f; o += 4096)
32
32
  r.push(l.apply(null, e.subarray(o, o + 4096)));
33
33
  return v(r.join(""));
34
- }, $ = (e) => {
34
+ }, T = (e) => {
35
35
  if (e.length < 2) {
36
36
  var t = e.charCodeAt(0);
37
37
  return t < 128 ? e : t < 2048 ? l(192 | t >>> 6) + l(128 | t & 63) : l(224 | t >>> 12 & 15) + l(128 | t >>> 6 & 63) + l(128 | t & 63);
@@ -39,11 +39,11 @@ const V = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "
39
39
  var t = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
40
40
  return l(240 | t >>> 18 & 7) + l(128 | t >>> 12 & 63) + l(128 | t >>> 6 & 63) + l(128 | t & 63);
41
41
  }
42
- }, I = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, P = (e) => e.replace(I, $), y = d ? (e) => Buffer.from(e, "utf8").toString("base64") : g ? (e) => T(g.encode(e)) : (e) => v(P(e)), N = (e, t = !1) => t ? V(y(e)) : y(e), j = {
42
+ }, I = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, P = (e) => e.replace(I, T), y = d ? (e) => Buffer.from(e, "utf8").toString("base64") : g ? (e) => E(g.encode(e)) : (e) => v(P(e)), N = (e, t = !1) => t ? V(y(e)) : y(e), j = (e, t) => t ? t.startsWith("http") ? t : `${e}${t}` : "", R = {
43
43
  "element-loading-text": "加载中...",
44
44
  "element-loading-background": "rgba(122, 122, 122, 0.8)",
45
45
  class: "w-full h-full overflow-hidden flex-center"
46
- }, R = ["src"], q = /* @__PURE__ */ h({
46
+ }, q = ["src"], O = /* @__PURE__ */ h({
47
47
  __name: "IkPreviewFileDialog",
48
48
  props: {
49
49
  modelValue: {
@@ -79,7 +79,7 @@ const V = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "
79
79
  return "";
80
80
  const n = t.loadUrl ? t.loadUrl : location.href;
81
81
  return `${t.kkUrl}/onlinePreview?url=${encodeURIComponent(
82
- N(`${n}${t.url}${t.fileName ? `&fullfilename=${t.fileName}` : ""}`)
82
+ N(`${j(n, t.url)}${t.fileName ? `&fullfilename=${t.fileName}` : ""}`)
83
83
  )}`;
84
84
  }), f = u(t.modelValue), i = u(!0);
85
85
  return b(() => t.modelValue, (n) => {
@@ -99,7 +99,7 @@ const V = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "
99
99
  class: "ik-file-preview"
100
100
  }, {
101
101
  default: C(() => [
102
- U((c(), x("div", j, [
102
+ U((c(), x("div", R, [
103
103
  o.value ? (c(), x("iframe", {
104
104
  key: 0,
105
105
  ref_key: "freamRef",
@@ -109,9 +109,9 @@ const V = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "
109
109
  frameborder: "0",
110
110
  allowfullscreen: "",
111
111
  seamless: ""
112
- }, null, 8, R)) : A("v-if", !0)
112
+ }, null, 8, q)) : A("v-if", !0)
113
113
  ])), [
114
- [p(B), i.value]
114
+ [p(F), i.value]
115
115
  ])
116
116
  ]),
117
117
  _: 1
@@ -119,7 +119,7 @@ const V = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "
119
119
  }, 8, ["modelValue"]));
120
120
  }
121
121
  });
122
- const z = F(q);
122
+ const z = B(O);
123
123
  export {
124
124
  z as IkPreviewFileDialog,
125
125
  z as default
@@ -1 +1 @@
1
- (function(a,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],o):(a=typeof globalThis<"u"?globalThis:a||self,o(a.index={},a.vue,a["element-plus"]))})(this,function(a,o,p){"use strict";const _=(e,t)=>{if(e.install=l=>{for(const r of[e,...Object.values(t??{})])l.component(r.name,r)},t)for(const[l,r]of Object.entries(t))e[l]=r;return e},d=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const m=typeof TextEncoder=="function"?new TextEncoder:void 0,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=Array.prototype.slice.call(b);(e=>{let t={};return e.forEach((l,r)=>t[l]=r),t})(c);const n=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const k=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),x=typeof btoa=="function"?e=>btoa(e):d?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,l,r,s,u="";const f=e.length%3;for(let i=0;i<e.length;){if((l=e.charCodeAt(i++))>255||(r=e.charCodeAt(i++))>255||(s=e.charCodeAt(i++))>255)throw new TypeError("invalid character found");t=l<<16|r<<8|s,u+=c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[t&63]}return f?u.slice(0,f-3)+"===".substring(f):u},w=d?e=>Buffer.from(e).toString("base64"):e=>{let l=[];for(let r=0,s=e.length;r<s;r+=4096)l.push(n.apply(null,e.subarray(r,r+4096)));return x(l.join(""))},v=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?n(192|t>>>6)+n(128|t&63):n(224|t>>>12&15)+n(128|t>>>6&63)+n(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return n(240|t>>>18&7)+n(128|t>>>12&63)+n(128|t>>>6&63)+n(128|t&63)}},C=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,U=e=>e.replace(C,v),y=d?e=>Buffer.from(e,"utf8").toString("base64"):m?e=>w(m.encode(e)):e=>x(U(e)),D=(e,t=!1)=>t?k(y(e)):y(e),A={"element-loading-text":"加载中...","element-loading-background":"rgba(122, 122, 122, 0.8)",class:"w-full h-full overflow-hidden flex-center"},B=["src"],S=o.defineComponent({__name:"IkPreviewFileDialog",props:{modelValue:{type:Boolean,default:!1},kkUrl:{required:!0,type:String,default:""},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},fileName:{type:String,default:""}},setup(e){const t=e,l=o.ref(null),r=o.computed(()=>{if(!t.kkUrl||!t.url)return"";const f=t.loadUrl?t.loadUrl:location.href;return`${t.kkUrl}/onlinePreview?url=${encodeURIComponent(D(`${f}${t.url}${t.fileName?`&fullfilename=${t.fileName}`:""}`))}`}),s=o.ref(t.modelValue),u=o.ref(!0);return o.watch(()=>t.modelValue,f=>{s.value=f,u.value=!0,o.nextTick(()=>{l.value.onload=()=>{u.value=!1}})}),(f,i)=>(o.openBlock(),o.createBlock(o.unref(p.ElDialog),{fullscreen:"",modelValue:s.value,"onUpdate:modelValue":i[0]||(i[0]=h=>s.value=h),"destroy-on-close":"","append-to-body":"","modal-class":"ik-file-preview-modal",onClose:i[1]||(i[1]=h=>f.$emit("update:modelValue",!1)),class:"ik-file-preview"},{default:o.withCtx(()=>[o.withDirectives((o.openBlock(),o.createElementBlock("div",A,[r.value?(o.openBlock(),o.createElementBlock("iframe",{key:0,ref_key:"freamRef",ref:l,"cross-origin":"",src:r.value,frameborder:"0",allowfullscreen:"",seamless:""},null,8,B)):o.createCommentVNode("v-if",!0)])),[[o.unref(p.vLoading),u.value]])]),_:1},8,["modelValue"]))}}),T="",g=_(S);a.IkPreviewFileDialog=g,a.default=g,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(a,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],o):(a=typeof globalThis<"u"?globalThis:a||self,o(a.index={},a.vue,a["element-plus"]))})(this,function(a,o,p){"use strict";const _=(e,t)=>{if(e.install=l=>{for(const r of[e,...Object.values(t??{})])l.component(r.name,r)},t)for(const[l,r]of Object.entries(t))e[l]=r;return e},d=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const m=typeof TextEncoder=="function"?new TextEncoder:void 0,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=Array.prototype.slice.call(b);(e=>{let t={};return e.forEach((l,r)=>t[l]=r),t})(c);const n=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const k=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),x=typeof btoa=="function"?e=>btoa(e):d?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,l,r,s,u="";const f=e.length%3;for(let i=0;i<e.length;){if((l=e.charCodeAt(i++))>255||(r=e.charCodeAt(i++))>255||(s=e.charCodeAt(i++))>255)throw new TypeError("invalid character found");t=l<<16|r<<8|s,u+=c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[t&63]}return f?u.slice(0,f-3)+"===".substring(f):u},w=d?e=>Buffer.from(e).toString("base64"):e=>{let l=[];for(let r=0,s=e.length;r<s;r+=4096)l.push(n.apply(null,e.subarray(r,r+4096)));return x(l.join(""))},v=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?n(192|t>>>6)+n(128|t&63):n(224|t>>>12&15)+n(128|t>>>6&63)+n(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return n(240|t>>>18&7)+n(128|t>>>12&63)+n(128|t>>>6&63)+n(128|t&63)}},C=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,U=e=>e.replace(C,v),y=d?e=>Buffer.from(e,"utf8").toString("base64"):m?e=>w(m.encode(e)):e=>x(U(e)),D=(e,t=!1)=>t?k(y(e)):y(e),A=(e,t)=>t?t.startsWith("http")?t:`${e}${t}`:"",B={"element-loading-text":"加载中...","element-loading-background":"rgba(122, 122, 122, 0.8)",class:"w-full h-full overflow-hidden flex-center"},F=["src"],S=o.defineComponent({__name:"IkPreviewFileDialog",props:{modelValue:{type:Boolean,default:!1},kkUrl:{required:!0,type:String,default:""},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},fileName:{type:String,default:""}},setup(e){const t=e,l=o.ref(null),r=o.computed(()=>{if(!t.kkUrl||!t.url)return"";const f=t.loadUrl?t.loadUrl:location.href;return`${t.kkUrl}/onlinePreview?url=${encodeURIComponent(D(`${A(f,t.url)}${t.fileName?`&fullfilename=${t.fileName}`:""}`))}`}),s=o.ref(t.modelValue),u=o.ref(!0);return o.watch(()=>t.modelValue,f=>{s.value=f,u.value=!0,o.nextTick(()=>{l.value.onload=()=>{u.value=!1}})}),(f,i)=>(o.openBlock(),o.createBlock(o.unref(p.ElDialog),{fullscreen:"",modelValue:s.value,"onUpdate:modelValue":i[0]||(i[0]=h=>s.value=h),"destroy-on-close":"","append-to-body":"","modal-class":"ik-file-preview-modal",onClose:i[1]||(i[1]=h=>f.$emit("update:modelValue",!1)),class:"ik-file-preview"},{default:o.withCtx(()=>[o.withDirectives((o.openBlock(),o.createElementBlock("div",B,[r.value?(o.openBlock(),o.createElementBlock("iframe",{key:0,ref_key:"freamRef",ref:l,"cross-origin":"",src:r.value,frameborder:"0",allowfullscreen:"",seamless:""},null,8,F)):o.createCommentVNode("v-if",!0)])),[[o.unref(p.vLoading),u.value]])]),_:1},8,["modelValue"]))}}),E="",g=_(S);a.IkPreviewFileDialog=g,a.default=g,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});