next-ui3 1.4.3 → 1.4.5
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.css +1 -1
- package/dist/index.full.min.js +18 -18
- package/dist/index.full.min.mjs +18 -18
- package/dist/locale/en.min.js +1 -0
- package/dist/locale/en.min.mjs +1 -0
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/utils/index.min.js +1 -1
- package/dist/utils/index.min.mjs +1 -1
- package/es/components/_base/config/usePresetComponents.d.ts +3 -0
- package/es/components/building/src/index.vue.d.ts +1 -7
- package/es/components/cascader/src/index.vue.d.ts +1 -4
- package/es/components/checkbox/src/index.vue.d.ts +1 -1
- package/es/components/checkbox-group/src/index.vue.d.ts +1 -7
- package/es/components/date-picker/src/QuarterPicker.vue.d.ts +1 -1
- package/es/components/date-picker/src/SemiAnnualPicker.vue.d.ts +1 -1
- package/es/components/filter/src/index.vue.d.ts +0 -6
- package/es/components/input-number/src/index.vue.d.ts +1 -1
- package/es/components/radio-group/src/index.vue.d.ts +1 -10
- package/es/components/select/src/index.vue.d.ts +1 -7
- package/es/components/tag/src/index.vue.d.ts +1 -1
- package/es/components/tree-panel/src/index.vue.d.ts +1 -16
- package/es/components/tree-select/src/index.vue.d.ts +1 -7
- package/es/locale/lang/en.d.ts +91 -0
- package/es/locale/lang/zh-cn.d.ts +84 -2
- package/es/version.d.ts +1 -1
- package/lib/components/_base/config/usePresetComponents.d.ts +3 -0
- package/lib/components/building/src/index.vue.d.ts +1 -7
- package/lib/components/cascader/src/index.vue.d.ts +1 -4
- package/lib/components/checkbox/src/index.vue.d.ts +1 -1
- package/lib/components/checkbox-group/src/index.vue.d.ts +1 -7
- package/lib/components/date-picker/src/QuarterPicker.vue.d.ts +1 -1
- package/lib/components/date-picker/src/SemiAnnualPicker.vue.d.ts +1 -1
- package/lib/components/filter/src/index.vue.d.ts +0 -6
- package/lib/components/input-number/src/index.vue.d.ts +1 -1
- package/lib/components/radio-group/src/index.vue.d.ts +1 -10
- package/lib/components/select/src/index.vue.d.ts +1 -7
- package/lib/components/tag/src/index.vue.d.ts +1 -1
- package/lib/components/tree-panel/src/index.vue.d.ts +1 -16
- package/lib/components/tree-select/src/index.vue.d.ts +1 -7
- package/lib/locale/lang/en.d.ts +91 -0
- package/lib/locale/lang/zh-cn.d.ts +84 -2
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/nt-filter.css +1 -1
- package/theme-chalk/src/filter.scss +5 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! Next UI v1.4.5 */(function(e,l){typeof exports=="object"&&typeof module!="undefined"?module.exports=l():typeof define=="function"&&define.amd?define(l):(e=typeof globalThis!="undefined"?globalThis:e||self,e.NextUILocaleEn=l())})(this,function(){"use strict";var e={name:"en",nt:{common:{loading:"Loading...",loadError:"Load failed, click to retry",empty:"No data",noMatch:"No matching data",success:"Operation successful",checkAll:"Check all",all:"All",more:"More",pleaseInput:"Please input {label}",pleaseSelect:"Please select {label}",to:"To",startDate:"Start date",endDate:"End date",startTime:"Start time",endTime:"End time"},building:{text:"Building..."},datePicker:{quarter:{year:"{year}",firstQuarter:"1st quarter",secondQuarter:"2nd quarter",thirdQuarter:"3rd quarter",fourthQuarter:"4th quarter",first:"1",second:"2",third:"3",fourth:"4",format:"q [quarter], YYYY"},semiAnnual:{year:"{year}",firstHalf:"1st half",secondHalf:"2nd half"}},downloadButton:{downloadError:"Download failed"},fileSelect:{dragAndDrop:"Drag and drop files here, or",selectFile:"Select file",changeFile:"Change file",supportFileTypes:"Only support {fileTypes} files",maxFileSize:"File size cannot exceed {maxSize}",maxFileCount:"Max {maxCount} files can be selected"},fileUpload:{drop:"Drop files here to upload",drag:"Click or drag files here to upload",unsupportedFileType:"Unsupported upload {ext} file, the current selected file {filename} has been discarded",maxFileSize:"File size cannot exceed {maxSize}, the current selected file {filename} has been discarded",maxFileCount:"File total cannot exceed {maxCount}, the files exceeding have been discarded",someFilesFailed:"Some files have not been successfully uploaded",uploadFailed:"Upload failed",retryTip:"Upload failed, click to retry"},filter:{search:"Search",reset:"Reset",expand:"Expand",collapse:"Collapse"},form:{requiredInput:"Please input {label}",requiredSelect:"Please select {label}"},table:{confirm:"Confirm",reset:"Reset"},treePanel:{filterPlaceholder:"Please input keyword",currentSelected:"Current selected"},upload:{upload:"Upload",uploadFailed:"Upload failed",supportFileTypes:"Only support {fileTypes} files",maxFileSize:"File size cannot exceed {maxSize}",maxFileCount:"Max {maxCount} files can be selected"}}};return e});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! Next UI v1.4.5 */var e={name:"en",nt:{common:{loading:"Loading...",loadError:"Load failed, click to retry",empty:"No data",noMatch:"No matching data",success:"Operation successful",checkAll:"Check all",all:"All",more:"More",pleaseInput:"Please input {label}",pleaseSelect:"Please select {label}",to:"To",startDate:"Start date",endDate:"End date",startTime:"Start time",endTime:"End time"},building:{text:"Building..."},datePicker:{quarter:{year:"{year}",firstQuarter:"1st quarter",secondQuarter:"2nd quarter",thirdQuarter:"3rd quarter",fourthQuarter:"4th quarter",first:"1",second:"2",third:"3",fourth:"4",format:"q [quarter], YYYY"},semiAnnual:{year:"{year}",firstHalf:"1st half",secondHalf:"2nd half"}},downloadButton:{downloadError:"Download failed"},fileSelect:{dragAndDrop:"Drag and drop files here, or",selectFile:"Select file",changeFile:"Change file",supportFileTypes:"Only support {fileTypes} files",maxFileSize:"File size cannot exceed {maxSize}",maxFileCount:"Max {maxCount} files can be selected"},fileUpload:{drop:"Drop files here to upload",drag:"Click or drag files here to upload",unsupportedFileType:"Unsupported upload {ext} file, the current selected file {filename} has been discarded",maxFileSize:"File size cannot exceed {maxSize}, the current selected file {filename} has been discarded",maxFileCount:"File total cannot exceed {maxCount}, the files exceeding have been discarded",someFilesFailed:"Some files have not been successfully uploaded",uploadFailed:"Upload failed",retryTip:"Upload failed, click to retry"},filter:{search:"Search",reset:"Reset",expand:"Expand",collapse:"Collapse"},form:{requiredInput:"Please input {label}",requiredSelect:"Please select {label}"},table:{confirm:"Confirm",reset:"Reset"},treePanel:{filterPlaceholder:"Please input keyword",currentSelected:"Current selected"},upload:{upload:"Upload",uploadFailed:"Upload failed",supportFileTypes:"Only support {fileTypes} files",maxFileSize:"File size cannot exceed {maxSize}",maxFileCount:"Max {maxCount} files can be selected"}}};export{e as default};
|
package/dist/locale/zh-cn.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! Next UI v1.4.
|
|
1
|
+
/*! Next UI v1.4.5 */(function(u,e){typeof exports=="object"&&typeof module!="undefined"?module.exports=e():typeof define=="function"&&define.amd?define(e):(u=typeof globalThis!="undefined"?globalThis:u||self,u.NextUILocaleZhCn=e())})(this,function(){"use strict";var u={name:"zh-cn",nt:{common:{loading:"\u6B63\u5728\u52A0\u8F7D...",loadError:"\u52A0\u8F7D\u5931\u8D25\uFF0C\u70B9\u51FB\u91CD\u8BD5",empty:"\u6682\u65E0\u6570\u636E",noMatch:"\u6682\u65E0\u5339\u914D\u6570\u636E",success:"\u64CD\u4F5C\u6210\u529F",checkAll:"\u5168\u9009",all:"\u5168\u90E8",more:"\u66F4\u591A",pleaseInput:"\u8BF7\u8F93\u5165{label}",pleaseSelect:"\u8BF7\u9009\u62E9{label}",to:"\u81F3",startDate:"\u5F00\u59CB\u65E5\u671F",endDate:"\u7ED3\u675F\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endTime:"\u7ED3\u675F\u65F6\u95F4"},building:{text:"\u6B63\u5728\u5EFA\u8BBE\u4E2D..."},datePicker:{quarter:{year:"{year}\u5E74",firstQuarter:"\u7B2C\u4E00\u5B63\u5EA6",secondQuarter:"\u7B2C\u4E8C\u5B63\u5EA6",thirdQuarter:"\u7B2C\u4E09\u5B63\u5EA6",fourthQuarter:"\u7B2C\u56DB\u5B63\u5EA6",first:"\u4E00",second:"\u4E8C",third:"\u4E09",fourth:"\u56DB",format:"YYYY\u5E74\u7B2Cq\u5B63\u5EA6"},semiAnnual:{year:"{year}\u5E74",firstHalf:"\u4E0A\u534A\u5E74",secondHalf:"\u4E0B\u534A\u5E74"}},downloadButton:{downloadError:"\u4E0B\u8F7D\u5931\u8D25"},fileSelect:{dragAndDrop:"\u62D6\u62FD\u6587\u4EF6\u81F3\u6B64\uFF0C\u6216\u8005",selectFile:"\u9009\u62E9\u6587\u4EF6",changeFile:"\u66F4\u6362\u6587\u4EF6",supportFileTypes:"\u53EA\u652F\u6301 {fileTypes} \u683C\u5F0F\u7684\u6587\u4EF6",maxFileSize:"\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 {maxSize}",maxFileCount:"\u6700\u591A\u9009\u62E9 {maxCount} \u4E2A\u6587\u4EF6"},fileUpload:{drop:"\u91CA\u653E\u6587\u4EF6\u5230\u6B64\u5904\u4E0A\u4F20",drag:"\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u5904\u4E0A\u4F20",unsupportedFileType:"\u4E0D\u652F\u6301\u4E0A\u4F20{ext}\u6587\u4EF6\uFF0C\u5F53\u524D\u9009\u4E2D\u6587\u4EF6{filename}\u5DF2\u4F5C\u5E9F",maxFileSize:"\u6587\u4EF6\u6700\u5927\u4E0D\u8D85\u8FC7{maxSize}\uFF0C\u5F53\u524D\u9009\u4E2D\u6587\u4EF6{filename}\u5DF2\u4F5C\u5E9F",maxFileCount:"\u6587\u4EF6\u603B\u6570\u4E0D\u80FD\u8D85\u8FC7{maxCount}\u4E2A\uFF0C\u8D85\u51FA\u7684\u6587\u4EF6\u5DF2\u5E9F\u5F03",someFilesFailed:"\u8FD8\u6709\u6587\u4EF6\u672A\u6210\u529F\u4E0A\u4F20",uploadFailed:"\u4E0A\u4F20\u5931\u8D25",retryTip:"\u4E0A\u4F20\u5931\u8D25\uFF0C\u70B9\u51FB\u91CD\u8BD5"},filter:{search:"\u641C\u7D22",reset:"\u91CD\u7F6E",expand:"\u5C55\u5F00",collapse:"\u6536\u8D77"},form:{requiredInput:"\u8BF7\u8F93\u5165{label}",requiredSelect:"\u8BF7\u9009\u62E9{label}"},table:{confirm:"\u786E\u8BA4",reset:"\u91CD\u7F6E"},treePanel:{filterPlaceholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57",currentSelected:"\u5F53\u524D\u9009\u4E2D"},upload:{upload:"\u4E0A\u4F20",uploadFailed:"\u4E0A\u4F20\u5931\u8D25",supportFileTypes:"\u53EA\u652F\u6301 {fileTypes} \u683C\u5F0F\u7684\u6587\u4EF6",maxFileSize:"\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 {maxSize}",maxFileCount:"\u6700\u591A\u9009\u62E9 {maxCount} \u4E2A\u6587\u4EF6"}}};return u});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! Next UI v1.4.
|
|
1
|
+
/*! Next UI v1.4.5 */var u={name:"zh-cn",nt:{common:{loading:"\u6B63\u5728\u52A0\u8F7D...",loadError:"\u52A0\u8F7D\u5931\u8D25\uFF0C\u70B9\u51FB\u91CD\u8BD5",empty:"\u6682\u65E0\u6570\u636E",noMatch:"\u6682\u65E0\u5339\u914D\u6570\u636E",success:"\u64CD\u4F5C\u6210\u529F",checkAll:"\u5168\u9009",all:"\u5168\u90E8",more:"\u66F4\u591A",pleaseInput:"\u8BF7\u8F93\u5165{label}",pleaseSelect:"\u8BF7\u9009\u62E9{label}",to:"\u81F3",startDate:"\u5F00\u59CB\u65E5\u671F",endDate:"\u7ED3\u675F\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endTime:"\u7ED3\u675F\u65F6\u95F4"},building:{text:"\u6B63\u5728\u5EFA\u8BBE\u4E2D..."},datePicker:{quarter:{year:"{year}\u5E74",firstQuarter:"\u7B2C\u4E00\u5B63\u5EA6",secondQuarter:"\u7B2C\u4E8C\u5B63\u5EA6",thirdQuarter:"\u7B2C\u4E09\u5B63\u5EA6",fourthQuarter:"\u7B2C\u56DB\u5B63\u5EA6",first:"\u4E00",second:"\u4E8C",third:"\u4E09",fourth:"\u56DB",format:"YYYY\u5E74\u7B2Cq\u5B63\u5EA6"},semiAnnual:{year:"{year}\u5E74",firstHalf:"\u4E0A\u534A\u5E74",secondHalf:"\u4E0B\u534A\u5E74"}},downloadButton:{downloadError:"\u4E0B\u8F7D\u5931\u8D25"},fileSelect:{dragAndDrop:"\u62D6\u62FD\u6587\u4EF6\u81F3\u6B64\uFF0C\u6216\u8005",selectFile:"\u9009\u62E9\u6587\u4EF6",changeFile:"\u66F4\u6362\u6587\u4EF6",supportFileTypes:"\u53EA\u652F\u6301 {fileTypes} \u683C\u5F0F\u7684\u6587\u4EF6",maxFileSize:"\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 {maxSize}",maxFileCount:"\u6700\u591A\u9009\u62E9 {maxCount} \u4E2A\u6587\u4EF6"},fileUpload:{drop:"\u91CA\u653E\u6587\u4EF6\u5230\u6B64\u5904\u4E0A\u4F20",drag:"\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u5904\u4E0A\u4F20",unsupportedFileType:"\u4E0D\u652F\u6301\u4E0A\u4F20{ext}\u6587\u4EF6\uFF0C\u5F53\u524D\u9009\u4E2D\u6587\u4EF6{filename}\u5DF2\u4F5C\u5E9F",maxFileSize:"\u6587\u4EF6\u6700\u5927\u4E0D\u8D85\u8FC7{maxSize}\uFF0C\u5F53\u524D\u9009\u4E2D\u6587\u4EF6{filename}\u5DF2\u4F5C\u5E9F",maxFileCount:"\u6587\u4EF6\u603B\u6570\u4E0D\u80FD\u8D85\u8FC7{maxCount}\u4E2A\uFF0C\u8D85\u51FA\u7684\u6587\u4EF6\u5DF2\u5E9F\u5F03",someFilesFailed:"\u8FD8\u6709\u6587\u4EF6\u672A\u6210\u529F\u4E0A\u4F20",uploadFailed:"\u4E0A\u4F20\u5931\u8D25",retryTip:"\u4E0A\u4F20\u5931\u8D25\uFF0C\u70B9\u51FB\u91CD\u8BD5"},filter:{search:"\u641C\u7D22",reset:"\u91CD\u7F6E",expand:"\u5C55\u5F00",collapse:"\u6536\u8D77"},form:{requiredInput:"\u8BF7\u8F93\u5165{label}",requiredSelect:"\u8BF7\u9009\u62E9{label}"},table:{confirm:"\u786E\u8BA4",reset:"\u91CD\u7F6E"},treePanel:{filterPlaceholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57",currentSelected:"\u5F53\u524D\u9009\u4E2D"},upload:{upload:"\u4E0A\u4F20",uploadFailed:"\u4E0A\u4F20\u5931\u8D25",supportFileTypes:"\u53EA\u652F\u6301 {fileTypes} \u683C\u5F0F\u7684\u6587\u4EF6",maxFileSize:"\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 {maxSize}",maxFileCount:"\u6700\u591A\u9009\u62E9 {maxCount} \u4E2A\u6587\u4EF6"}}};export{u as default};
|
package/dist/utils/index.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Next UI utils v1.4.
|
|
1
|
+
/*! Next UI utils v1.4.5 */(function(c,M){typeof exports=="object"&&typeof module!="undefined"?M(exports,require("element-plus")):typeof define=="function"&&define.amd?define(["exports","element-plus"],M):(c=typeof globalThis!="undefined"?globalThis:c||self,M(c.NextUI={},c.ElementPlus))})(this,function(c,M){"use strict";const Z=(e,t)=>{try{if(e.install=n=>{for(const r of[e,...Object.values(t!=null?t:{})])r.name&&n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e}catch(n){}};function x(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")}function A(e){return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"}function B(e){if(typeof e=="boolean"||typeof e=="number")return!1;if(Array.isArray(e)){if(e.length===0)return!0}else if(e instanceof Object&&JSON.stringify(e)==="{}")return!0;return e==null||e==="null"||e==="undefined"||e===""}function Q(){return window.top!==window}function ee(e){return toString.call(e)==="[object Blob]"}function te(e){if(e.startsWith("data:image"))return!0;const t=e.lastIndexOf("."),n=t>=0?e.slice(t+1).toLowerCase():"";return["png","jpg","jpeg","gif","bmp","webp","svg"].includes(n)}function ne(e,t){for(;e;){if(e===t)return!0;e=Object.getPrototypeOf(e)}return!1}const k=(e,t)=>{const n=A(e),r=A(t);return n&&r?JSON.stringify(e)===JSON.stringify(t):!n&&!r?String(e)===String(t):!1},$=(e,t)=>{if(e=e||[],t=t||[],e.length!==t.length)return!1;for(const[n,r]of e.entries())if(!k(r,t[n]))return!1;return!0},re=(e,t)=>Array.isArray(e)&&Array.isArray(t)?$(e,t):k(e,t);function ie(e,t,n){const r={};let i;typeof n=="function"?i=n:n?i=d=>d[n]:i=d=>d,(e||[]).forEach(d=>{const h=i(d);r[h]={item:d,count:-1}}),(t||[]).forEach(d=>{const h=i(d);r[h]?r[h].count=0:r[h]={item:d,count:1}});const o=[],l=[];for(const d in r)Object.prototype.hasOwnProperty.call(r,d)&&(r[d].count===1?l.push(r[d].item):r[d].count===-1&&o.push(r[d].item));return{changed:o.length+l.length>0,removed:o.length>0,added:l.length>0,removedItems:o,addedItems:l}}const oe=(e,...t)=>{const n=[];return e.forEach(r=>{t.includes(r)||n.push(r)}),n},ae=e=>B(e)?[]:Array.isArray(e)?e:[e],ue=(e,t)=>{if(typeof t!="function"){const n=t;t=r=>String(r[n])}return(e||[]).reduce((n,r)=>{const i=t(r);return n[i]||(n[i]=[]),n[i].push(r),n},{})};function se(e){return e.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase()}function H(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").toLowerCase()}function ce(e){return e.replace(/-([a-z])/g,(t,n)=>n.toUpperCase()).replace(/_([a-z])/g,(t,n)=>n.toUpperCase())}const W=(e,t,...n)=>{const r={};return t=(t?[].concat(t):[]).concat(n),e&&t.forEach(i=>{Object.hasOwnProperty.call(e,i)&&(r[i]=e[i])}),r},le=(e,t,...n)=>{const r={};return t=(t?[].concat(t):[]).concat(n),e&&Object.keys(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),r},fe=(e,...t)=>{for(const n of t)Object.assign(e,W(n,Object.keys(e)));return e};function z(e,...t){A(e)||(e={});for(const n of t)if(A(n))for(const r in n)r==="__proto__"||e===n[r]||(A(n[r])?e[r]=z(e[r],n[r]):e[r]=n[r]);return e}const de=e=>{const t={};if(e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(B(e[n])||(t[n]=e[n]));return t};function he(e){const t=new WeakMap,n=r=>{if(typeof r=="object"&&r!==null){if(t.has(r))return t.get(r);const i=Array.isArray(r)?[]:{};t.set(r,i);for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=n(r[o]));return i}return r};return n(e)}function Y(e,t){try{return JSON.parse(e)}catch(n){return console.error("parse json error:",e),t}}function me(e,t,n){if(!e||!t)return;const r=t.split(".");let i;for(;(i=r.shift())!==void 0&&r.length!==0;)e[i]||(e[i]={}),e=e[i];i&&(e[i]=n)}function S(e,t){if(!e||!t)return;const n=t.split(".");for(const r of n){if(!e)return;e=e[r]}return e}const J=(e,t)=>{for(const n in e)Object.getOwnPropertyDescriptor(t,n)?A(e[n])&&J(e[n],t[n]):t[n]=e[n];return t},ge=(e,t)=>{var n;return(n=e[t])!=null?n:e[H(t)]};function pe(e,t){let{key:n,parentKey:r}=t||{};n=n||"id",r=r||"pid";const i=(e||[]).reduce((l,d)=>(l[S(d,n)]=d,l),{}),o=[];return(e||[]).forEach(l=>{const d=i[S(l,r)];d?(d.children||(d.children=[])).push(l):o.push(l)}),o}function V(e,t){const n=[];return(e||[]).forEach(r=>{let{children:i,...o}=r;i&&i.length>0&&(i=V(i,t),i.length>0&&(o.children=i)),t(o)&&n.push(o)}),n}function ye(e,t){const n=e?[...e]:[];for(;n.length>0;){const r=n.shift();if(t(r))return r;r.children&&r.children.length>0&&n.push(...r.children)}return null}function we(e,t){const n=(r,i)=>{for(const o of r){if(t(o))return[...i,o];if(o.children&&o.children.length>0){const l=n(o.children,[...i,o]);if(l)return l}}return null};return n(e||[],[])}function be(e,t){const n={children:e||[]},r=[n];let i,o=-1;for(;r.length>0;){i=r.shift();const{children:l}=i;if(l&&l.length>0){for(const[d,h]of l.entries())if(t(h)){o=d;break}if(o!==-1)break;r.push(...l)}}return{found:o!==-1,parent:i===n?null:i,index:o}}function Ee(e,t){const n=(e||[]).map(r=>({node:r,parent:null}));for(;n.length>0;){const r=n.shift(),{node:i,parent:o}=r;if(t(i,o)===!1)break;i.children&&i.children.length>0&&n.push(...i.children.map(d=>({node:d,parent:i})))}}function ve(e){const t=[];if(e&&e.length>0){t.push(...e);let n=0;for(;n<t.length;){const{children:r}=t[n];r&&r.length>0&&t.push(...r),n++}}return t}function Oe(e,t,n){n||(n=t);const r=i=>(i||[]).reduce((o,l)=>(l[n]=l[t]+(l.children?r(l.children):0),o+l[n]),0);r(e)}function Fe(e,t){if(!e)return"";const n=new Date(e);if(n.getTime()===0)return"";t=t||"yyyy-MM-dd";let r;const i={"Y+":n.getFullYear().toString(),"y+":n.getFullYear().toString(),"M+":(n.getMonth()+1).toString(),"D+":n.getDate().toString(),"d+":n.getDate().toString(),"h+":(n.getHours()%12||12).toString(),"H+":n.getHours().toString(),"m+":n.getMinutes().toString(),"s+":n.getSeconds().toString(),a:n.getHours()<12?"am":"pm",A:n.getHours()<12?"AM":"PM"};for(const o in i)r=new RegExp(`(${o})`).exec(t),r&&(t=t.replace(r[1],r[1].length===1?i[o]:i[o].padStart(r[1].length,"0")));return t}function Te(e,t){if(B(e))return"";let{minPrecision:n,maxPrecision:r,decimalPoint:i,thousandSeparator:o,grouping:l}=t||{};n=n!=null?n:0,r=r!=null?r:2,i=i||".",o=o!=null?o:",",l=l!=null?l:3;let[d,h]=`${e}`.split(".");return d=d.replace(new RegExp(`(?<!^-?)(?=(\\d{${l}})+$)`,"g"),o),h=(h||"").slice(0,r).padEnd(n,"0"),h&&(h=i+h),d+h}function Ie(e,t){if(t){const i=B(e[0])||e[0]===Number.NEGATIVE_INFINITY?"-\u221E":e[0],o=B(e[1])||e[1]===+Number.POSITIVE_INFINITY?"+\u221E":e[1];return`${i+(i==="-\u221E"?" < ":" \u2264 ")+t} < ${o}`}const n=B(e[0])||e[0]==="-\u221E"||e[0]==="-Infinity"?"-\u221E":e[0],r=B(e[1])||e[1]==="+\u221E"||e[1]==="Infinity"?"+\u221E":e[1];return`${n==="-\u221E"?"(":"["} ${n}, ${r} )`}function De(e){if(e=Number(e),Number.isNaN(e))return"";const t=["B","KB","MB","GB","TB","PB"];let n=0;for(;e>=1024&&n<t.length-1;)e/=1024,n++;return e=Math.round(e*100)/100,`${e} ${t[n]}`}function Pe(e){return Number.isNaN(Number(e))?e||"":`${Number(e)}px`}const _=e=>new Promise(t=>{setTimeout(t,e)}),Ae=(e,t)=>new Promise((n,r)=>{(async()=>{try{const o=Date.now(),l=await e(),d=Date.now()-o;d<t&&await _(t-d),n(l)}catch(o){r(o)}})()}),Be=()=>{const e=Date.now();return{delayTo:async n=>{const r=Date.now()-e;r<n&&await _(n-r)}}},Ce=(e,t,n)=>{let r,i=!1,o;const l=()=>{if(i||e()){r(void 0),clearTimeout(o);return}requestAnimationFrame(l)};return n&&(o=setTimeout(()=>{i=!0},n)),new Promise(d=>{r=d,t?setTimeout(l,t):requestAnimationFrame(l)})},Me=(e,t)=>Math.floor(e+Math.random()*(t-e));function Ue(e){return new Promise((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=()=>{if(r.status===200){const i=new FileReader;i.readAsDataURL(r.response),i.onload=o=>{t(o.target.result)},i.onerror=o=>n(o)}else n(new Error("Failed to load file"))},r.onerror=()=>{n(new Error("Failed to load file"))},r.send()})}function Le(e){return new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=i=>{t(i.target.result)},r.onerror=i=>n(i)})}function ke(e){return URL.createObjectURL(e)}function Se(e){return new Promise((t,n)=>{const r=new FileReader;r.readAsArrayBuffer(e),r.onload=i=>{t(new Blob([i.target.result]))},r.onerror=i=>n(i)})}async function _e(e){if(!e)throw new Error("url is empty");return(await fetch(e)).blob()}async function Re(e){if(!e)throw new Error("url is empty");return new Promise((t,n)=>{const r=new Image;r.onload=()=>{const i=document.createElement("canvas");i.width=r.width,i.height=r.height;const o=i.getContext("2d");o==null||o.drawImage(r,0,0,r.width,r.height),i.toBlob(l=>{l?t(l):n(new Error("transform image to blob failed"))},"image/png")},r.onerror=n,r.src=e})}function je(e,t){if(!e)return"";if(typeof e=="string"&&(e=new URL(e)),t)for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.searchParams.append(n,t[n]);return e.toString()}function Ne(e){return e.replace(/[<>&]/g,t=>`&#${t.charCodeAt(0)};`)}function qe(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText}async function*$e(e,t){const n=new TextDecoder("utf-8"),{original:r}=t||{};let i="";for(;;){const{value:o,done:l}=await e.read();if(l)return;i+=n.decode(o);const d=i.split(`
|
|
2
2
|
`);i=d.pop()||"";for(let h of d)if(h=h.trim(),!!h)if(r)yield h;else{if(h==="event: ping")continue;const I=h.match(/^(?:(\w*):)?(.*)$/);if(!I){console.error("[BufferedReader] parse line failed:",h);continue}const O=I[1],D=Y(I[2].trim());if(!D){console.error("[BufferedReader] parse json failed:",I[2].trim());continue}yield{event:O,data:D}}}}const He=e=>{let{url:t,filename:n}=e;if(n=n||"\u672A\u547D\u540D",t||e.blob&&(t=URL.createObjectURL(e.blob),setTimeout(()=>{URL.revokeObjectURL(t)},1e4)),!t)throw new Error("No URL provided");const r=document.createElement("a");r.href=t,r.download=n,r.click()};function We(e,t,n){let r,i,o,l,d,h,I=0,O=!1,D=!1,U=!0;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0,n&&A(n)&&(O=!!n.leading,D="maxWait"in n,o=D?Math.max(+n.maxWait||0,t):o,U="trailing"in n?!!n.trailing:U);function T(p){const v=r,F=i;return r=i=void 0,I=p,l=e.apply(F,v),l}function C(p,v){return setTimeout(p,v)}function a(p){clearTimeout(p)}function f(p){return I=p,d=C(g,t),O?T(p):l}function s(p){const v=p-h,F=p-I,P=t-v;return D?Math.min(P,o-F):P}function u(p){const v=p-h,F=p-I;return h===void 0||v>=t||v<0||D&&F>=o}function g(){const p=Date.now();if(u(p))return y(p);d=C(g,s(p))}function y(p){return d=void 0,U&&r?T(p):(r=i=void 0,l)}function E(){d!==void 0&&a(d),I=0,r=h=i=d=void 0}function m(){return d===void 0?l:y(Date.now())}function b(){return d!==void 0}function w(...p){const v=Date.now(),F=u(v);if(r=p,i=this,h=v,F){if(d===void 0)return f(h);if(D)return d=C(g,t),T(h)}return d===void 0&&(d=C(g,t)),l}return w.cancel=E,w.flush=m,w.pending=b,w}function ze(e){const{el:t,msg:n}=e||{},r=n===void 0?"\u8BF7\u5B8C\u5584\u8868\u5355\u5185\u5BB9":n;if(r&&M.ElMessage.error(r),!t)return;const i=t.querySelector(".is-error");i&&i.scrollIntoView({behavior:"smooth",inline:"nearest",block:"center"})}async function Ye(e,t={successText:"\u590D\u5236\u6210\u529F"}){const{successText:n}=t||{};try{if(navigator.clipboard){await navigator.clipboard.writeText(e),n&&M.ElMessage.success(n);return}}catch(i){}const r=document.createElement("textarea");document.body.appendChild(r),r.style.position="fixed",r.style.clip="rect(0 0 0 0)",r.style.top="10px",r.value=e,r.select(),document.execCommand("copy",!0),document.body.removeChild(r),n&&M.ElMessage.success(n)}function Je(e,...t){if(!e)return;const n=document.createElement("a");n.addEventListener("click",r=>{r.preventDefault(),window.open(e,...t)}),n.click()}function Ve(e){if(!e)return[];const t=[`${e.slice(0,2)}0000`,`${e.slice(0,4)}00`,e.slice(0,6),e.slice(0,9),e.slice(0,12)],n=0,r=t.indexOf(e)+1;return t.slice(n,r)}class R{constructor(t){this._enumItems={};var n;if(t)if(Array.isArray(t))for(const[r,i]of t.entries())this.add((n=i.key)!=null?n:`${r}`,i);else for(const r in t){const i=t[r];this.add(r,i)}}add(t,n){if(this[t])throw new Error(`\u679A\u4E3E\u9879 ${t} \u5DF2\u5B58\u5728`);const r=n.value;return this[t]=r,this._enumItems[r]={...n},this}keys(){return Object.keys(this).filter(t=>t!=="_enumItems")}*[Symbol.iterator](){for(const t of this.keys())yield this.getItem(this[t])}getItem(t){return this._enumItems[t]}getLabel(t){var n;return(n=this.getItem(t))==null?void 0:n.label}getProps(t){var n;return(n=this.getItem(t))==null?void 0:n.props}filter(t){const n=new R;for(const r of this.keys()){const i=this.getItem(this[r]);t(i,r)&&n.add(r,i)}return n}clone(){return this.filter(()=>!0)}set(t,n){const r=this.getItem(this[t]);return r&&Object.assign(r,n),this}remove(t){const n=this[t];return n!==void 0&&(delete this[t],delete this._enumItems[n]),this}forEach(t){for(const n of this.keys())t(this.getItem(this[n]),n)}}const Ge=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)};function Ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var G={exports:{}},j={exports:{}},K;function Xe(){return K||(K=1,function(e,t){(function(n,r){e.exports=r()})(window,function(){return function(n){var r={};function i(o){if(r[o])return r[o].exports;var l=r[o]={i:o,l:!1,exports:{}};return n[o].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=n,i.c=r,i.d=function(o,l,d){i.o(o,l)||Object.defineProperty(o,l,{enumerable:!0,get:d})},i.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.t=function(o,l){if(1&l&&(o=i(o)),8&l||4&l&&typeof o=="object"&&o&&o.__esModule)return o;var d=Object.create(null);if(i.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:o}),2&l&&typeof o!="string")for(var h in o)i.d(d,h,function(I){return o[I]}.bind(null,h));return d},i.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(l,"a",l),l},i.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},i.p="",i(i.s=0)}([function(n,r,i){i.r(r);var o=window,l=/^image\//,d=/\.\w+$/,h={},I={file:null,quality:.8,convertSize:2048e3,loose:!0,redressOrientation:!0},O=function(a){return typeof a=="function"},D=function(a){return l.test(a)};function U(a){a=Object.assign({},I,a),this.options=a,this.file=a.file,this.image=null,this.ParsedOrientationInfo=null,this.init()}var T=U.prototype;for(var C in r.default=U,T.init=function(){var a=this,f=this.file,s=this.options;f&&D(f.type)?(D(s.mimeType)||(s.mimeType=f.type),h.file2Image(f,function(u){O(a.beforeCompress)&&(a.image=u,f.width=u.naturalWidth,f.height=u.naturalHeight,a.beforeCompress(f)),f.type==="image/jpeg"&&s.redressOrientation?a.getParsedOrientationInfo(function(g){a.parsedOrientationInfo=g,a.rendCanvas()}):(a.parsedOrientationInfo={rotate:0,scaleX:1,scaleY:1},a.rendCanvas())},a.error)):a.error("\u8BF7\u4E0A\u4F20\u56FE\u7247\u6587\u4EF6!")},T.rendCanvas=function(){var a=this,f=this.options,s=this.image,u=this.getExpectedEdge(),g=u.dWidth,y=u.dHeight,E=u.width,m=u.height,b=h.image2Canvas(s,g,y,a.beforeDraw.bind(a),a.afterDraw.bind(a),E,m);h.canvas2Blob(b,function(w){w&&(w.width=b.width,w.height=b.height),a.success(w)},f.quality,f.mimeType)},T.beforeCompress=function(){O(this.options.beforeCompress)&&this.options.beforeCompress(this.file)},T.getExpectedEdge=function(){var a,f=this.image,s=this.parsedOrientationInfo.rotate,u=this.options,g=f.naturalWidth,y=f.naturalHeight,E=Math.abs(s)%180==90;E&&(a=y,y=g,g=a);var m=g/y,b=Math.max(u.maxWidth,0)||1/0,w=Math.max(u.maxHeight,0)||1/0,p=Math.max(u.minWidth,0)||0,v=Math.max(u.minHeight,0)||0,F=Math.max(u.width,0)||g,P=Math.max(u.height,0)||y;b<1/0&&w<1/0?w*m>b?w=b/m:b=w*m:b<1/0?w=b/m:w<1/0&&(b=w*m),p>0&&v>0?v*m>p?v=p/m:p=v*m:p>0?v=p/m:v>0&&(p=v*m),P*m>F?P=F/m:F=P*m;var N=F=Math.floor(Math.min(Math.max(F,p),b)),q=P=Math.floor(Math.min(Math.max(P,v),w));return E&&(a=q,q=N,N=a),{dWidth:N,dHeight:q,width:F,height:P}},T.getParsedOrientationInfo=function(a){var f=this;this.getOrientation(function(s){O(a)&&a(f.parseOrientation(s))})},T.getOrientation=function(a){var f=this;h.file2ArrayBuffer(this.file,function(s){O(a)&&a(f.resetAndGetOrientation(s))})},T.resetAndGetOrientation=function(a){var f,s=new DataView(a);try{var u,g,y;if(s.getUint8(0)===255&&s.getUint8(1)===216)for(var E=s.byteLength,m=2;m+1<E;){if(s.getUint8(m)===255&&s.getUint8(m+1)===225){g=m;break}m+=1}if(g){var b=g+4,w=g+10;if(h.getStringFromCharCode(s,b,4)==="Exif"){var p=s.getUint16(w);if(((u=p===18761)||p===19789)&&s.getUint16(w+2,u)===42){var v=s.getUint32(w+4,u);v>=8&&(y=w+v)}}}if(y){var F;for(E=s.getUint16(y,u),F=0;F<E;F+=1)if(m=y+12*F+2,s.getUint16(m,u)===274){m+=8,f=s.getUint16(m,u),s.setUint16(m,1,u);break}}}catch(P){console.error(P),f=1}return f},T.parseOrientation=function(a){var f=0,s=1,u=1;switch(a){case 2:s=-1;break;case 3:f=-180;break;case 4:u=-1;break;case 5:f=90,u=-1;break;case 6:f=90;break;case 7:f=90,s=-1;break;case 8:f=-90}return{rotate:f,scaleX:s,scaleY:u}},T.beforeDraw=function(a,f){var s=this.parsedOrientationInfo,u=s.rotate,g=s.scaleX,y=s.scaleY,E=this.file,m=this.options,b="transparent",w=f.width,p=f.height;switch(E.size>m.convertSize&&m.mimeType==="image/png"&&(b="#fff",m.mimeType="image/jpeg"),a.fillStyle=b,a.fillRect(0,0,w,p),O(m.beforeDraw)&&m.beforeDraw.call(this,a,f),a.save(),u){case 90:a.translate(w,0);break;case-90:a.translate(0,p);break;case-180:a.translate(w,p)}a.rotate(u*Math.PI/180),a.scale(g,y)},T.afterDraw=function(a,f){var s=this.options;O(s.afterDraw)&&s.afterDraw.call(this,a,f)},T.error=function(a){var f=this.options;if(!O(f.error))throw new Error(a);f.error.call(this,a)},T.success=function(a){var f,s,u=this.options,g=this.file,y=this.image,E=this.getExpectedEdge(),m=y.naturalHeight,b=y.naturalWidth;if(a&&a.size)if(!u.loose&&a.size>g.size&&!(E.width>b||E.height>m))console.warn("\u5F53\u524D\u8BBE\u7F6E\u7684\u662F\u975E\u5BBD\u677E\u6A21\u5F0F\uFF0C\u538B\u7F29\u7ED3\u679C\u5927\u4E8E\u6E90\u56FE\u7247\uFF0C\u8F93\u51FA\u6E90\u56FE\u7247"),a=g;else{var w=new Date;a.lastModified=w.getTime(),a.lastModifiedDate=w,a.name=g.name,a.name&&a.type!==g.type&&(a.name=a.name.replace(d,(f=a.type,(s=D(f)?f.substr(6):"")==="jpeg"&&(s="jpg"),"."+s)))}else console.warn("\u56FE\u7247\u538B\u7F29\u51FA\u4E86\u70B9\u610F\u5916\uFF0C\u8F93\u51FA\u6E90\u56FE\u7247"),a=g;O(u.success)&&u.success.call(this,a)},h.file2DataUrl=function(a,f,s){var u=new FileReader;u.onload=function(){f(u.result)},u.onerror=function(){O(s)&&s("\u8BFB\u53D6\u6587\u4EF6\u5931\u8D25\uFF01")},u.readAsDataURL(a)},h.file2ArrayBuffer=function(a,f,s){var u=new FileReader;u.onload=function(g){f(g.target.result)},u.onerror=function(){O(s)&&s("\u8BFB\u53D6\u6587\u4EF6\u5931\u8D25\uFF01")},u.readAsArrayBuffer(a)},h.getStringFromCharCode=function(a,f,s){var u,g="";for(s+=f,u=f;u<s;u+=1)g+=String.fromCharCode(a.getUint8(u));return g},h.file2Image=function(a,f,s){var u=new Image,g=o.URL||o.webkitURL;if(o.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(o.navigator.userAgent)&&(u.crossOrigin="anonymous"),u.alt=a.name,u.onerror=function(){O(s)&&s("\u56FE\u7247\u52A0\u8F7D\u9519\u8BEF\uFF01")},g){var y=g.createObjectURL(a);u.onload=function(){f(u),g.revokeObjectURL(y)},u.src=y}else this.file2DataUrl(a,function(E){u.onload=function(){f(u)},u.src=E},s)},h.url2Image=function(a,f,s){var u=new Image;u.src=a,u.onload=function(){f(u)},u.onerror=function(){O(s)&&s("\u56FE\u7247\u52A0\u8F7D\u9519\u8BEF\uFF01")}},h.image2Canvas=function(a,f,s,u,g,y,E){var m=document.createElement("canvas"),b=m.getContext("2d");return m.width=y||a.naturalWidth,m.height=E||a.naturalHeight,O(u)&&u(b,m),b.save(),b.drawImage(a,0,0,f,s),b.restore(),O(g)&&g(b,m),m},h.canvas2DataUrl=function(a,f,s){return a.toDataURL(s||"image/jpeg",f)},h.dataUrl2Image=function(a,f,s){var u=new Image;u.onload=function(){f(u)},u.error=function(){O(s)&&s("\u56FE\u7247\u52A0\u8F7D\u9519\u8BEF\uFF01")},u.src=a},h.dataUrl2Blob=function(a,f){for(var s=a.split(",")[1],u=a.match(/^data:(.*?)(;base64)?,/)[1],g=atob(s),y=s.length,E=new Uint8Array(y),m=0;m<y;m++)E[m]=g.charCodeAt(m);return new Blob([E],{type:f||u})},h.blob2DataUrl=function(a,f,s){this.file2DataUrl(a,f,s)},h.blob2Image=function(a,f,s){this.file2Image(a,f,s)},h.canvas2Blob=function(a,f,s,u){var g=this;HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(y,E,m){var b=this.toDataURL(E,m);y(g.dataUrl2Blob(b))}}),a.toBlob(function(y){f(y)},u||"image/jpeg",s||.8)},h.upload=function(a,f,s){var u=new XMLHttpRequest,g=new FormData;g.append("file",f),u.onreadystatechange=function(){if(u.readyState!==4||u.status!==200)throw new Error(u);s&&s(u.responseText)},u.open("POST",a,!0),u.send(g)},h)h.hasOwnProperty(C)&&(U[C]=h[C])}]).default})}(j)),j.exports}(function(e){e.exports=Xe()})(G);var Ze=Ke(G.exports);const xe=e=>{if(!e.file)throw new Error("file is required");const t=e.file.size/1024;let n=e.quality;if(n===void 0){if(t<200)return e.file;t>200&&t<=512?n=.9:t>512&&t<=1024?n=.8:t>1024&&t<=2048?n=.85:t>2048&&t<=10240?n=.8:t>10240&&t<=20480&&(n=.75)}return new Promise((r,i)=>{var o;new Ze({...e,quality:n,convertSize:(o=e.convertSize)!=null?o:1024,success:l=>{r(l)},error:l=>{i(l)}})})},X=e=>e&&e.split("?")[0].split("/").pop()||"",Qe=e=>{if(e=X(e),!e)return"";const t=e.lastIndexOf(".");return t===-1?"":e.slice(t+1).toLowerCase()},et=(e,t,n)=>Math.min(Math.max(n,e),t),L=new Map,tt=(e,t=3)=>{if(!e)throw new Error("name is required");let n;return L.has(e)?n=L.get(e):(n={maxNum:t,currentNum:0,queue:[]},L.set(e,n)),{acquire:async()=>new Promise((d,h)=>{n.currentNum>=n.maxNum?n.queue.push({resolve:d,reject:h}):(n.currentNum++,d(!0))}),release:()=>{if(n.queue.length>0){const{resolve:d}=n.queue.shift();d(!0)}else n.currentNum--},destroy:async()=>{L.delete(e)},getMaxNum:()=>n.maxNum}};c.Enum=R,c.arrayDiff=ie,c.arrayEquals=$,c.assign=fe,c.buildTree=pe,c.buildUrl=je,c.clamp=et,c.combineByField=Oe,c.compressImage=xe,c.copyText=Ye,c.createLock=tt,c.createStreamIterator=$e,c.createTimer=Be,c.debounce=We,c.decodeHTMLEntities=qe,c.deepAssign=z,c.deepClone=he,c.delayWhen=Ce,c.downloadFile=He,c.encodeHTMLEntities=Ne,c.fileToBlob=Se,c.fileToDataURL=Le,c.fileToObjectURL=ke,c.filterTree=V,c.findNode=ye,c.findNodeWithPath=we,c.findParentAndIndex=be,c.flatTree=ve,c.formatBytes=De,c.formatDate=Fe,c.formatInterval=Ie,c.formatNumber=Te,c.formatPx=Pe,c.getFileExt=Qe,c.getFilename=X,c.getProp=ge,c.getProperty=S,c.getRandInt=Me,c.groupBy=ue,c.handleFormValidateError=ze,c.hasClass=Ge,c.isBlob=ee,c.isChildClassOf=ne,c.isEmpty=B,c.isEqual=re,c.isIframe=Q,c.isImage=te,c.isObject=x,c.isPlainObject=A,c.looseEqual=k,c.mergeDefaultOptions=J,c.omit=le,c.omitEmpty=de,c.openPage=Je,c.parseAreaCode=Ve,c.parseJson=Y,c.pick=W,c.runAtLeastTime=Ae,c.setProperty=me,c.sleep=_,c.toArray=ae,c.toCamelCase=ce,c.toKebabCase=H,c.toUnderscore=se,c.urlToBlob=_e,c.urlToDataURL=Ue,c.urlToPngBlob=Re,c.walkTree=Ee,c.withInstall=Z,c.without=oe,Object.defineProperty(c,"__esModule",{value:!0})});
|
package/dist/utils/index.min.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Next UI utils v1.4.
|
|
1
|
+
/*! Next UI utils v1.4.5 */import{ElMessage as U}from"element-plus";const X=(e,t)=>{try{if(e.install=n=>{for(const r of[e,...Object.values(t!=null?t:{})])r.name&&n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e}catch(n){}};function K(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")}function A(e){return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"}function P(e){if(typeof e=="boolean"||typeof e=="number")return!1;if(Array.isArray(e)){if(e.length===0)return!0}else if(e instanceof Object&&JSON.stringify(e)==="{}")return!0;return e==null||e==="null"||e==="undefined"||e===""}function Z(){return window.top!==window}function Q(e){return toString.call(e)==="[object Blob]"}function ee(e){if(e.startsWith("data:image"))return!0;const t=e.lastIndexOf("."),n=t>=0?e.slice(t+1).toLowerCase():"";return["png","jpg","jpeg","gif","bmp","webp","svg"].includes(n)}function te(e,t){for(;e;){if(e===t)return!0;e=Object.getPrototypeOf(e)}return!1}const k=(e,t)=>{const n=A(e),r=A(t);return n&&r?JSON.stringify(e)===JSON.stringify(t):!n&&!r?String(e)===String(t):!1},j=(e,t)=>{if(e=e||[],t=t||[],e.length!==t.length)return!1;for(const[n,r]of e.entries())if(!k(r,t[n]))return!1;return!0},ne=(e,t)=>Array.isArray(e)&&Array.isArray(t)?j(e,t):k(e,t);function re(e,t,n){const r={};let i;typeof n=="function"?i=n:n?i=f=>f[n]:i=f=>f,(e||[]).forEach(f=>{const d=i(f);r[d]={item:f,count:-1}}),(t||[]).forEach(f=>{const d=i(f);r[d]?r[d].count=0:r[d]={item:f,count:1}});const o=[],c=[];for(const f in r)Object.prototype.hasOwnProperty.call(r,f)&&(r[f].count===1?c.push(r[f].item):r[f].count===-1&&o.push(r[f].item));return{changed:o.length+c.length>0,removed:o.length>0,added:c.length>0,removedItems:o,addedItems:c}}const ie=(e,...t)=>{const n=[];return e.forEach(r=>{t.includes(r)||n.push(r)}),n},oe=e=>P(e)?[]:Array.isArray(e)?e:[e],se=(e,t)=>{if(typeof t!="function"){const n=t;t=r=>String(r[n])}return(e||[]).reduce((n,r)=>{const i=t(r);return n[i]||(n[i]=[]),n[i].push(r),n},{})};function ue(e){return e.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase()}function $(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").toLowerCase()}function ae(e){return e.replace(/-([a-z])/g,(t,n)=>n.toUpperCase()).replace(/_([a-z])/g,(t,n)=>n.toUpperCase())}const q=(e,t,...n)=>{const r={};return t=(t?[].concat(t):[]).concat(n),e&&t.forEach(i=>{Object.hasOwnProperty.call(e,i)&&(r[i]=e[i])}),r},ce=(e,t,...n)=>{const r={};return t=(t?[].concat(t):[]).concat(n),e&&Object.keys(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),r},le=(e,...t)=>{for(const n of t)Object.assign(e,q(n,Object.keys(e)));return e};function H(e,...t){A(e)||(e={});for(const n of t)if(A(n))for(const r in n)r==="__proto__"||e===n[r]||(A(n[r])?e[r]=H(e[r],n[r]):e[r]=n[r]);return e}const fe=e=>{const t={};if(e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(P(e[n])||(t[n]=e[n]));return t};function de(e){const t=new WeakMap,n=r=>{if(typeof r=="object"&&r!==null){if(t.has(r))return t.get(r);const i=Array.isArray(r)?[]:{};t.set(r,i);for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=n(r[o]));return i}return r};return n(e)}function W(e,t){try{return JSON.parse(e)}catch(n){return console.error("parse json error:",e),t}}function he(e,t,n){if(!e||!t)return;const r=t.split(".");let i;for(;(i=r.shift())!==void 0&&r.length!==0;)e[i]||(e[i]={}),e=e[i];i&&(e[i]=n)}function _(e,t){if(!e||!t)return;const n=t.split(".");for(const r of n){if(!e)return;e=e[r]}return e}const z=(e,t)=>{for(const n in e)Object.getOwnPropertyDescriptor(t,n)?A(e[n])&&z(e[n],t[n]):t[n]=e[n];return t},ge=(e,t)=>{var n;return(n=e[t])!=null?n:e[$(t)]};function me(e,t){let{key:n,parentKey:r}=t||{};n=n||"id",r=r||"pid";const i=(e||[]).reduce((c,f)=>(c[_(f,n)]=f,c),{}),o=[];return(e||[]).forEach(c=>{const f=i[_(c,r)];f?(f.children||(f.children=[])).push(c):o.push(c)}),o}function Y(e,t){const n=[];return(e||[]).forEach(r=>{let{children:i,...o}=r;i&&i.length>0&&(i=Y(i,t),i.length>0&&(o.children=i)),t(o)&&n.push(o)}),n}function pe(e,t){const n=e?[...e]:[];for(;n.length>0;){const r=n.shift();if(t(r))return r;r.children&&r.children.length>0&&n.push(...r.children)}return null}function we(e,t){const n=(r,i)=>{for(const o of r){if(t(o))return[...i,o];if(o.children&&o.children.length>0){const c=n(o.children,[...i,o]);if(c)return c}}return null};return n(e||[],[])}function ye(e,t){const n={children:e||[]},r=[n];let i,o=-1;for(;r.length>0;){i=r.shift();const{children:c}=i;if(c&&c.length>0){for(const[f,d]of c.entries())if(t(d)){o=f;break}if(o!==-1)break;r.push(...c)}}return{found:o!==-1,parent:i===n?null:i,index:o}}function be(e,t){const n=(e||[]).map(r=>({node:r,parent:null}));for(;n.length>0;){const r=n.shift(),{node:i,parent:o}=r;if(t(i,o)===!1)break;i.children&&i.children.length>0&&n.push(...i.children.map(f=>({node:f,parent:i})))}}function ve(e){const t=[];if(e&&e.length>0){t.push(...e);let n=0;for(;n<t.length;){const{children:r}=t[n];r&&r.length>0&&t.push(...r),n++}}return t}function Ee(e,t,n){n||(n=t);const r=i=>(i||[]).reduce((o,c)=>(c[n]=c[t]+(c.children?r(c.children):0),o+c[n]),0);r(e)}function Oe(e,t){if(!e)return"";const n=new Date(e);if(n.getTime()===0)return"";t=t||"yyyy-MM-dd";let r;const i={"Y+":n.getFullYear().toString(),"y+":n.getFullYear().toString(),"M+":(n.getMonth()+1).toString(),"D+":n.getDate().toString(),"d+":n.getDate().toString(),"h+":(n.getHours()%12||12).toString(),"H+":n.getHours().toString(),"m+":n.getMinutes().toString(),"s+":n.getSeconds().toString(),a:n.getHours()<12?"am":"pm",A:n.getHours()<12?"AM":"PM"};for(const o in i)r=new RegExp(`(${o})`).exec(t),r&&(t=t.replace(r[1],r[1].length===1?i[o]:i[o].padStart(r[1].length,"0")));return t}function Fe(e,t){if(P(e))return"";let{minPrecision:n,maxPrecision:r,decimalPoint:i,thousandSeparator:o,grouping:c}=t||{};n=n!=null?n:0,r=r!=null?r:2,i=i||".",o=o!=null?o:",",c=c!=null?c:3;let[f,d]=`${e}`.split(".");return f=f.replace(new RegExp(`(?<!^-?)(?=(\\d{${c}})+$)`,"g"),o),d=(d||"").slice(0,r).padEnd(n,"0"),d&&(d=i+d),f+d}function Ie(e,t){if(t){const i=P(e[0])||e[0]===Number.NEGATIVE_INFINITY?"-\u221E":e[0],o=P(e[1])||e[1]===+Number.POSITIVE_INFINITY?"+\u221E":e[1];return`${i+(i==="-\u221E"?" < ":" \u2264 ")+t} < ${o}`}const n=P(e[0])||e[0]==="-\u221E"||e[0]==="-Infinity"?"-\u221E":e[0],r=P(e[1])||e[1]==="+\u221E"||e[1]==="Infinity"?"+\u221E":e[1];return`${n==="-\u221E"?"(":"["} ${n}, ${r} )`}function xe(e){if(e=Number(e),Number.isNaN(e))return"";const t=["B","KB","MB","GB","TB","PB"];let n=0;for(;e>=1024&&n<t.length-1;)e/=1024,n++;return e=Math.round(e*100)/100,`${e} ${t[n]}`}function Te(e){return Number.isNaN(Number(e))?e||"":`${Number(e)}px`}const L=e=>new Promise(t=>{setTimeout(t,e)}),De=(e,t)=>new Promise((n,r)=>{(async()=>{try{const o=Date.now(),c=await e(),f=Date.now()-o;f<t&&await L(t-f),n(c)}catch(o){r(o)}})()}),Ae=()=>{const e=Date.now();return{delayTo:async n=>{const r=Date.now()-e;r<n&&await L(n-r)}}},Pe=(e,t,n)=>{let r,i=!1,o;const c=()=>{if(i||e()){r(void 0),clearTimeout(o);return}requestAnimationFrame(c)};return n&&(o=setTimeout(()=>{i=!0},n)),new Promise(f=>{r=f,t?setTimeout(c,t):requestAnimationFrame(c)})},Be=(e,t)=>Math.floor(e+Math.random()*(t-e));function Me(e){return new Promise((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=()=>{if(r.status===200){const i=new FileReader;i.readAsDataURL(r.response),i.onload=o=>{t(o.target.result)},i.onerror=o=>n(o)}else n(new Error("Failed to load file"))},r.onerror=()=>{n(new Error("Failed to load file"))},r.send()})}function Ce(e){return new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=i=>{t(i.target.result)},r.onerror=i=>n(i)})}function Se(e){return URL.createObjectURL(e)}function Ue(e){return new Promise((t,n)=>{const r=new FileReader;r.readAsArrayBuffer(e),r.onload=i=>{t(new Blob([i.target.result]))},r.onerror=i=>n(i)})}async function ke(e){if(!e)throw new Error("url is empty");return(await fetch(e)).blob()}async function _e(e){if(!e)throw new Error("url is empty");return new Promise((t,n)=>{const r=new Image;r.onload=()=>{const i=document.createElement("canvas");i.width=r.width,i.height=r.height;const o=i.getContext("2d");o==null||o.drawImage(r,0,0,r.width,r.height),i.toBlob(c=>{c?t(c):n(new Error("transform image to blob failed"))},"image/png")},r.onerror=n,r.src=e})}function Le(e,t){if(!e)return"";if(typeof e=="string"&&(e=new URL(e)),t)for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.searchParams.append(n,t[n]);return e.toString()}function Re(e){return e.replace(/[<>&]/g,t=>`&#${t.charCodeAt(0)};`)}function Ne(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText}async function*je(e,t){const n=new TextDecoder("utf-8"),{original:r}=t||{};let i="";for(;;){const{value:o,done:c}=await e.read();if(c)return;i+=n.decode(o);const f=i.split(`
|
|
2
2
|
`);i=f.pop()||"";for(let d of f)if(d=d.trim(),!!d)if(r)yield d;else{if(d==="event: ping")continue;const I=d.match(/^(?:(\w*):)?(.*)$/);if(!I){console.error("[BufferedReader] parse line failed:",d);continue}const E=I[1],x=W(I[2].trim());if(!x){console.error("[BufferedReader] parse json failed:",I[2].trim());continue}yield{event:E,data:x}}}}const $e=e=>{let{url:t,filename:n}=e;if(n=n||"\u672A\u547D\u540D",t||e.blob&&(t=URL.createObjectURL(e.blob),setTimeout(()=>{URL.revokeObjectURL(t)},1e4)),!t)throw new Error("No URL provided");const r=document.createElement("a");r.href=t,r.download=n,r.click()};function qe(e,t,n){let r,i,o,c,f,d,I=0,E=!1,x=!1,B=!0;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0,n&&A(n)&&(E=!!n.leading,x="maxWait"in n,o=x?Math.max(+n.maxWait||0,t):o,B="trailing"in n?!!n.trailing:B);function F(m){const v=r,O=i;return r=i=void 0,I=m,c=e.apply(O,v),c}function D(m,v){return setTimeout(m,v)}function s(m){clearTimeout(m)}function l(m){return I=m,f=D(g,t),E?F(m):c}function a(m){const v=m-d,O=m-I,T=t-v;return x?Math.min(T,o-O):T}function u(m){const v=m-d,O=m-I;return d===void 0||v>=t||v<0||x&&O>=o}function g(){const m=Date.now();if(u(m))return p(m);f=D(g,a(m))}function p(m){return f=void 0,B&&r?F(m):(r=i=void 0,c)}function b(){f!==void 0&&s(f),I=0,r=d=i=f=void 0}function h(){return f===void 0?c:p(Date.now())}function y(){return f!==void 0}function w(...m){const v=Date.now(),O=u(v);if(r=m,i=this,d=v,O){if(f===void 0)return l(d);if(x)return f=D(g,t),F(d)}return f===void 0&&(f=D(g,t)),c}return w.cancel=b,w.flush=h,w.pending=y,w}function He(e){const{el:t,msg:n}=e||{},r=n===void 0?"\u8BF7\u5B8C\u5584\u8868\u5355\u5185\u5BB9":n;if(r&&U.error(r),!t)return;const i=t.querySelector(".is-error");i&&i.scrollIntoView({behavior:"smooth",inline:"nearest",block:"center"})}async function We(e,t={successText:"\u590D\u5236\u6210\u529F"}){const{successText:n}=t||{};try{if(navigator.clipboard){await navigator.clipboard.writeText(e),n&&U.success(n);return}}catch(i){}const r=document.createElement("textarea");document.body.appendChild(r),r.style.position="fixed",r.style.clip="rect(0 0 0 0)",r.style.top="10px",r.value=e,r.select(),document.execCommand("copy",!0),document.body.removeChild(r),n&&U.success(n)}function ze(e,...t){if(!e)return;const n=document.createElement("a");n.addEventListener("click",r=>{r.preventDefault(),window.open(e,...t)}),n.click()}function Ye(e){if(!e)return[];const t=[`${e.slice(0,2)}0000`,`${e.slice(0,4)}00`,e.slice(0,6),e.slice(0,9),e.slice(0,12)],n=0,r=t.indexOf(e)+1;return t.slice(n,r)}class N{constructor(t){this._enumItems={};var n;if(t)if(Array.isArray(t))for(const[r,i]of t.entries())this.add((n=i.key)!=null?n:`${r}`,i);else for(const r in t){const i=t[r];this.add(r,i)}}add(t,n){if(this[t])throw new Error(`\u679A\u4E3E\u9879 ${t} \u5DF2\u5B58\u5728`);const r=n.value;return this[t]=r,this._enumItems[r]={...n},this}keys(){return Object.keys(this).filter(t=>t!=="_enumItems")}*[Symbol.iterator](){for(const t of this.keys())yield this.getItem(this[t])}getItem(t){return this._enumItems[t]}getLabel(t){var n;return(n=this.getItem(t))==null?void 0:n.label}getProps(t){var n;return(n=this.getItem(t))==null?void 0:n.props}filter(t){const n=new N;for(const r of this.keys()){const i=this.getItem(this[r]);t(i,r)&&n.add(r,i)}return n}clone(){return this.filter(()=>!0)}set(t,n){const r=this.getItem(this[t]);return r&&Object.assign(r,n),this}remove(t){const n=this[t];return n!==void 0&&(delete this[t],delete this._enumItems[n]),this}forEach(t){for(const n of this.keys())t(this.getItem(this[n]),n)}}const Ge=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)};function Je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var G={exports:{}},R={exports:{}},J;function Ve(){return J||(J=1,function(e,t){(function(n,r){e.exports=r()})(window,function(){return function(n){var r={};function i(o){if(r[o])return r[o].exports;var c=r[o]={i:o,l:!1,exports:{}};return n[o].call(c.exports,c,c.exports,i),c.l=!0,c.exports}return i.m=n,i.c=r,i.d=function(o,c,f){i.o(o,c)||Object.defineProperty(o,c,{enumerable:!0,get:f})},i.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.t=function(o,c){if(1&c&&(o=i(o)),8&c||4&c&&typeof o=="object"&&o&&o.__esModule)return o;var f=Object.create(null);if(i.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:o}),2&c&&typeof o!="string")for(var d in o)i.d(f,d,function(I){return o[I]}.bind(null,d));return f},i.n=function(o){var c=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(c,"a",c),c},i.o=function(o,c){return Object.prototype.hasOwnProperty.call(o,c)},i.p="",i(i.s=0)}([function(n,r,i){i.r(r);var o=window,c=/^image\//,f=/\.\w+$/,d={},I={file:null,quality:.8,convertSize:2048e3,loose:!0,redressOrientation:!0},E=function(s){return typeof s=="function"},x=function(s){return c.test(s)};function B(s){s=Object.assign({},I,s),this.options=s,this.file=s.file,this.image=null,this.ParsedOrientationInfo=null,this.init()}var F=B.prototype;for(var D in r.default=B,F.init=function(){var s=this,l=this.file,a=this.options;l&&x(l.type)?(x(a.mimeType)||(a.mimeType=l.type),d.file2Image(l,function(u){E(s.beforeCompress)&&(s.image=u,l.width=u.naturalWidth,l.height=u.naturalHeight,s.beforeCompress(l)),l.type==="image/jpeg"&&a.redressOrientation?s.getParsedOrientationInfo(function(g){s.parsedOrientationInfo=g,s.rendCanvas()}):(s.parsedOrientationInfo={rotate:0,scaleX:1,scaleY:1},s.rendCanvas())},s.error)):s.error("\u8BF7\u4E0A\u4F20\u56FE\u7247\u6587\u4EF6!")},F.rendCanvas=function(){var s=this,l=this.options,a=this.image,u=this.getExpectedEdge(),g=u.dWidth,p=u.dHeight,b=u.width,h=u.height,y=d.image2Canvas(a,g,p,s.beforeDraw.bind(s),s.afterDraw.bind(s),b,h);d.canvas2Blob(y,function(w){w&&(w.width=y.width,w.height=y.height),s.success(w)},l.quality,l.mimeType)},F.beforeCompress=function(){E(this.options.beforeCompress)&&this.options.beforeCompress(this.file)},F.getExpectedEdge=function(){var s,l=this.image,a=this.parsedOrientationInfo.rotate,u=this.options,g=l.naturalWidth,p=l.naturalHeight,b=Math.abs(a)%180==90;b&&(s=p,p=g,g=s);var h=g/p,y=Math.max(u.maxWidth,0)||1/0,w=Math.max(u.maxHeight,0)||1/0,m=Math.max(u.minWidth,0)||0,v=Math.max(u.minHeight,0)||0,O=Math.max(u.width,0)||g,T=Math.max(u.height,0)||p;y<1/0&&w<1/0?w*h>y?w=y/h:y=w*h:y<1/0?w=y/h:w<1/0&&(y=w*h),m>0&&v>0?v*h>m?v=m/h:m=v*h:m>0?v=m/h:v>0&&(m=v*h),T*h>O?T=O/h:O=T*h;var C=O=Math.floor(Math.min(Math.max(O,m),y)),S=T=Math.floor(Math.min(Math.max(T,v),w));return b&&(s=S,S=C,C=s),{dWidth:C,dHeight:S,width:O,height:T}},F.getParsedOrientationInfo=function(s){var l=this;this.getOrientation(function(a){E(s)&&s(l.parseOrientation(a))})},F.getOrientation=function(s){var l=this;d.file2ArrayBuffer(this.file,function(a){E(s)&&s(l.resetAndGetOrientation(a))})},F.resetAndGetOrientation=function(s){var l,a=new DataView(s);try{var u,g,p;if(a.getUint8(0)===255&&a.getUint8(1)===216)for(var b=a.byteLength,h=2;h+1<b;){if(a.getUint8(h)===255&&a.getUint8(h+1)===225){g=h;break}h+=1}if(g){var y=g+4,w=g+10;if(d.getStringFromCharCode(a,y,4)==="Exif"){var m=a.getUint16(w);if(((u=m===18761)||m===19789)&&a.getUint16(w+2,u)===42){var v=a.getUint32(w+4,u);v>=8&&(p=w+v)}}}if(p){var O;for(b=a.getUint16(p,u),O=0;O<b;O+=1)if(h=p+12*O+2,a.getUint16(h,u)===274){h+=8,l=a.getUint16(h,u),a.setUint16(h,1,u);break}}}catch(T){console.error(T),l=1}return l},F.parseOrientation=function(s){var l=0,a=1,u=1;switch(s){case 2:a=-1;break;case 3:l=-180;break;case 4:u=-1;break;case 5:l=90,u=-1;break;case 6:l=90;break;case 7:l=90,a=-1;break;case 8:l=-90}return{rotate:l,scaleX:a,scaleY:u}},F.beforeDraw=function(s,l){var a=this.parsedOrientationInfo,u=a.rotate,g=a.scaleX,p=a.scaleY,b=this.file,h=this.options,y="transparent",w=l.width,m=l.height;switch(b.size>h.convertSize&&h.mimeType==="image/png"&&(y="#fff",h.mimeType="image/jpeg"),s.fillStyle=y,s.fillRect(0,0,w,m),E(h.beforeDraw)&&h.beforeDraw.call(this,s,l),s.save(),u){case 90:s.translate(w,0);break;case-90:s.translate(0,m);break;case-180:s.translate(w,m)}s.rotate(u*Math.PI/180),s.scale(g,p)},F.afterDraw=function(s,l){var a=this.options;E(a.afterDraw)&&a.afterDraw.call(this,s,l)},F.error=function(s){var l=this.options;if(!E(l.error))throw new Error(s);l.error.call(this,s)},F.success=function(s){var l,a,u=this.options,g=this.file,p=this.image,b=this.getExpectedEdge(),h=p.naturalHeight,y=p.naturalWidth;if(s&&s.size)if(!u.loose&&s.size>g.size&&!(b.width>y||b.height>h))console.warn("\u5F53\u524D\u8BBE\u7F6E\u7684\u662F\u975E\u5BBD\u677E\u6A21\u5F0F\uFF0C\u538B\u7F29\u7ED3\u679C\u5927\u4E8E\u6E90\u56FE\u7247\uFF0C\u8F93\u51FA\u6E90\u56FE\u7247"),s=g;else{var w=new Date;s.lastModified=w.getTime(),s.lastModifiedDate=w,s.name=g.name,s.name&&s.type!==g.type&&(s.name=s.name.replace(f,(l=s.type,(a=x(l)?l.substr(6):"")==="jpeg"&&(a="jpg"),"."+a)))}else console.warn("\u56FE\u7247\u538B\u7F29\u51FA\u4E86\u70B9\u610F\u5916\uFF0C\u8F93\u51FA\u6E90\u56FE\u7247"),s=g;E(u.success)&&u.success.call(this,s)},d.file2DataUrl=function(s,l,a){var u=new FileReader;u.onload=function(){l(u.result)},u.onerror=function(){E(a)&&a("\u8BFB\u53D6\u6587\u4EF6\u5931\u8D25\uFF01")},u.readAsDataURL(s)},d.file2ArrayBuffer=function(s,l,a){var u=new FileReader;u.onload=function(g){l(g.target.result)},u.onerror=function(){E(a)&&a("\u8BFB\u53D6\u6587\u4EF6\u5931\u8D25\uFF01")},u.readAsArrayBuffer(s)},d.getStringFromCharCode=function(s,l,a){var u,g="";for(a+=l,u=l;u<a;u+=1)g+=String.fromCharCode(s.getUint8(u));return g},d.file2Image=function(s,l,a){var u=new Image,g=o.URL||o.webkitURL;if(o.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(o.navigator.userAgent)&&(u.crossOrigin="anonymous"),u.alt=s.name,u.onerror=function(){E(a)&&a("\u56FE\u7247\u52A0\u8F7D\u9519\u8BEF\uFF01")},g){var p=g.createObjectURL(s);u.onload=function(){l(u),g.revokeObjectURL(p)},u.src=p}else this.file2DataUrl(s,function(b){u.onload=function(){l(u)},u.src=b},a)},d.url2Image=function(s,l,a){var u=new Image;u.src=s,u.onload=function(){l(u)},u.onerror=function(){E(a)&&a("\u56FE\u7247\u52A0\u8F7D\u9519\u8BEF\uFF01")}},d.image2Canvas=function(s,l,a,u,g,p,b){var h=document.createElement("canvas"),y=h.getContext("2d");return h.width=p||s.naturalWidth,h.height=b||s.naturalHeight,E(u)&&u(y,h),y.save(),y.drawImage(s,0,0,l,a),y.restore(),E(g)&&g(y,h),h},d.canvas2DataUrl=function(s,l,a){return s.toDataURL(a||"image/jpeg",l)},d.dataUrl2Image=function(s,l,a){var u=new Image;u.onload=function(){l(u)},u.error=function(){E(a)&&a("\u56FE\u7247\u52A0\u8F7D\u9519\u8BEF\uFF01")},u.src=s},d.dataUrl2Blob=function(s,l){for(var a=s.split(",")[1],u=s.match(/^data:(.*?)(;base64)?,/)[1],g=atob(a),p=a.length,b=new Uint8Array(p),h=0;h<p;h++)b[h]=g.charCodeAt(h);return new Blob([b],{type:l||u})},d.blob2DataUrl=function(s,l,a){this.file2DataUrl(s,l,a)},d.blob2Image=function(s,l,a){this.file2Image(s,l,a)},d.canvas2Blob=function(s,l,a,u){var g=this;HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(p,b,h){var y=this.toDataURL(b,h);p(g.dataUrl2Blob(y))}}),s.toBlob(function(p){l(p)},u||"image/jpeg",a||.8)},d.upload=function(s,l,a){var u=new XMLHttpRequest,g=new FormData;g.append("file",l),u.onreadystatechange=function(){if(u.readyState!==4||u.status!==200)throw new Error(u);a&&a(u.responseText)},u.open("POST",s,!0),u.send(g)},d)d.hasOwnProperty(D)&&(B[D]=d[D])}]).default})}(R)),R.exports}(function(e){e.exports=Ve()})(G);var Xe=Je(G.exports);const Ke=e=>{if(!e.file)throw new Error("file is required");const t=e.file.size/1024;let n=e.quality;if(n===void 0){if(t<200)return e.file;t>200&&t<=512?n=.9:t>512&&t<=1024?n=.8:t>1024&&t<=2048?n=.85:t>2048&&t<=10240?n=.8:t>10240&&t<=20480&&(n=.75)}return new Promise((r,i)=>{var o;new Xe({...e,quality:n,convertSize:(o=e.convertSize)!=null?o:1024,success:c=>{r(c)},error:c=>{i(c)}})})},V=e=>e&&e.split("?")[0].split("/").pop()||"",Ze=e=>{if(e=V(e),!e)return"";const t=e.lastIndexOf(".");return t===-1?"":e.slice(t+1).toLowerCase()},Qe=(e,t,n)=>Math.min(Math.max(n,e),t),M=new Map,et=(e,t=3)=>{if(!e)throw new Error("name is required");let n;return M.has(e)?n=M.get(e):(n={maxNum:t,currentNum:0,queue:[]},M.set(e,n)),{acquire:async()=>new Promise((f,d)=>{n.currentNum>=n.maxNum?n.queue.push({resolve:f,reject:d}):(n.currentNum++,f(!0))}),release:()=>{if(n.queue.length>0){const{resolve:f}=n.queue.shift();f(!0)}else n.currentNum--},destroy:async()=>{M.delete(e)},getMaxNum:()=>n.maxNum}};export{N as Enum,re as arrayDiff,j as arrayEquals,le as assign,me as buildTree,Le as buildUrl,Qe as clamp,Ee as combineByField,Ke as compressImage,We as copyText,et as createLock,je as createStreamIterator,Ae as createTimer,qe as debounce,Ne as decodeHTMLEntities,H as deepAssign,de as deepClone,Pe as delayWhen,$e as downloadFile,Re as encodeHTMLEntities,Ue as fileToBlob,Ce as fileToDataURL,Se as fileToObjectURL,Y as filterTree,pe as findNode,we as findNodeWithPath,ye as findParentAndIndex,ve as flatTree,xe as formatBytes,Oe as formatDate,Ie as formatInterval,Fe as formatNumber,Te as formatPx,Ze as getFileExt,V as getFilename,ge as getProp,_ as getProperty,Be as getRandInt,se as groupBy,He as handleFormValidateError,Ge as hasClass,Q as isBlob,te as isChildClassOf,P as isEmpty,ne as isEqual,Z as isIframe,ee as isImage,K as isObject,A as isPlainObject,k as looseEqual,z as mergeDefaultOptions,ce as omit,fe as omitEmpty,ze as openPage,Ye as parseAreaCode,W as parseJson,q as pick,De as runAtLeastTime,he as setProperty,L as sleep,oe as toArray,ae as toCamelCase,$ as toKebabCase,ue as toUnderscore,ke as urlToBlob,Me as urlToDataURL,_e as urlToPngBlob,be as walkTree,X as withInstall,ie as without};
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
text?: string;
|
|
3
3
|
};
|
|
4
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
5
|
-
text: string;
|
|
6
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
7
|
-
text: string;
|
|
8
|
-
}>>>, {
|
|
9
|
-
text: string;
|
|
10
|
-
}>;
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {}>>>, {}>;
|
|
11
5
|
export default _default;
|
|
12
6
|
type __VLS_WithDefaults<P, D> = {
|
|
13
7
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
@@ -22,7 +22,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
22
22
|
loading: boolean;
|
|
23
23
|
loadError: string;
|
|
24
24
|
loaded: boolean;
|
|
25
|
-
loadingText: string;
|
|
26
25
|
valueKey: string;
|
|
27
26
|
labelKey: string;
|
|
28
27
|
disabledKey: string;
|
|
@@ -36,7 +35,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
36
35
|
loading: boolean;
|
|
37
36
|
loadError: string;
|
|
38
37
|
loaded: boolean;
|
|
39
|
-
loadingText: string;
|
|
40
38
|
valueKey: string;
|
|
41
39
|
labelKey: string;
|
|
42
40
|
disabledKey: string;
|
|
@@ -49,9 +47,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
49
47
|
}, {
|
|
50
48
|
valueKey: string;
|
|
51
49
|
loading: boolean;
|
|
52
|
-
loadError: string;
|
|
53
50
|
loaded: boolean;
|
|
54
|
-
|
|
51
|
+
loadError: string;
|
|
55
52
|
labelKey: string;
|
|
56
53
|
disabledKey: string;
|
|
57
54
|
childrenKey: string;
|
|
@@ -47,11 +47,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
47
47
|
size: "default" | "small" | "large";
|
|
48
48
|
disabled: boolean;
|
|
49
49
|
validateEvent: boolean;
|
|
50
|
+
border: boolean;
|
|
50
51
|
trueLabel: string | number | boolean;
|
|
51
52
|
falseLabel: string | number | boolean;
|
|
52
53
|
trueValue: string | number | boolean;
|
|
53
54
|
falseValue: string | number | boolean;
|
|
54
|
-
border: boolean;
|
|
55
55
|
indeterminate: boolean;
|
|
56
56
|
}>;
|
|
57
57
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -42,8 +42,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
42
42
|
loading: boolean;
|
|
43
43
|
loadError: string;
|
|
44
44
|
loaded: boolean;
|
|
45
|
-
loadingText: string;
|
|
46
|
-
noDataText: string;
|
|
47
45
|
valueKey: string;
|
|
48
46
|
labelKey: string;
|
|
49
47
|
disabledKey: string;
|
|
@@ -57,8 +55,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
57
55
|
loading: boolean;
|
|
58
56
|
loadError: string;
|
|
59
57
|
loaded: boolean;
|
|
60
|
-
loadingText: string;
|
|
61
|
-
noDataText: string;
|
|
62
58
|
valueKey: string;
|
|
63
59
|
labelKey: string;
|
|
64
60
|
disabledKey: string;
|
|
@@ -69,12 +65,10 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
69
65
|
type: "default" | "button" | "border" | "block";
|
|
70
66
|
valueKey: string;
|
|
71
67
|
loading: boolean;
|
|
72
|
-
loadError: string;
|
|
73
68
|
loaded: boolean;
|
|
74
|
-
|
|
69
|
+
loadError: string;
|
|
75
70
|
labelKey: string;
|
|
76
71
|
disabledKey: string;
|
|
77
|
-
noDataText: string;
|
|
78
72
|
}>;
|
|
79
73
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
80
74
|
export default _default;
|
|
@@ -70,9 +70,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
70
70
|
modelValue: string;
|
|
71
71
|
placeholder: string;
|
|
72
72
|
clearable: boolean;
|
|
73
|
+
width: string;
|
|
73
74
|
format: string;
|
|
74
75
|
valueFormat: string;
|
|
75
|
-
width: string;
|
|
76
76
|
disabledDate: (val: Date) => boolean;
|
|
77
77
|
customStyle: string | object;
|
|
78
78
|
}>;
|
|
@@ -66,9 +66,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
66
66
|
modelValue: string;
|
|
67
67
|
placeholder: string;
|
|
68
68
|
clearable: boolean;
|
|
69
|
+
width: string;
|
|
69
70
|
format: string;
|
|
70
71
|
valueFormat: string;
|
|
71
|
-
width: string;
|
|
72
72
|
disabledDate: (val: Date) => boolean;
|
|
73
73
|
}>;
|
|
74
74
|
export default _default;
|
|
@@ -32,8 +32,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
32
32
|
itemWidth: number;
|
|
33
33
|
lines: number;
|
|
34
34
|
showReset: boolean;
|
|
35
|
-
searchButtonText: string;
|
|
36
|
-
resetButtonText: string;
|
|
37
35
|
useConfirm: boolean;
|
|
38
36
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
37
|
search: (...args: any[]) => void;
|
|
@@ -44,8 +42,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
44
42
|
itemWidth: number;
|
|
45
43
|
lines: number;
|
|
46
44
|
showReset: boolean;
|
|
47
|
-
searchButtonText: string;
|
|
48
|
-
resetButtonText: string;
|
|
49
45
|
useConfirm: boolean;
|
|
50
46
|
}>>> & {
|
|
51
47
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -56,8 +52,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
56
52
|
lines: number;
|
|
57
53
|
itemWidth: number;
|
|
58
54
|
showReset: boolean;
|
|
59
|
-
searchButtonText: string;
|
|
60
|
-
resetButtonText: string;
|
|
61
55
|
useConfirm: boolean;
|
|
62
56
|
}>;
|
|
63
57
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -78,9 +78,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
78
78
|
lazy: boolean;
|
|
79
79
|
validateEvent: boolean;
|
|
80
80
|
bold: boolean;
|
|
81
|
+
align: "left" | "right" | "center";
|
|
81
82
|
min: number;
|
|
82
83
|
max: number;
|
|
83
|
-
align: "left" | "right" | "center";
|
|
84
84
|
precision: number | number[];
|
|
85
85
|
padding: boolean;
|
|
86
86
|
cursorEndWhenFocus: boolean;
|
|
@@ -37,14 +37,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
37
37
|
loading: boolean;
|
|
38
38
|
loadError: string;
|
|
39
39
|
loaded: boolean;
|
|
40
|
-
loadingText: string;
|
|
41
|
-
noDataText: string;
|
|
42
40
|
valueKey: string;
|
|
43
41
|
labelKey: string;
|
|
44
42
|
disabledKey: string;
|
|
45
43
|
showAll: boolean;
|
|
46
44
|
allValue: string;
|
|
47
|
-
allText: string;
|
|
48
45
|
}>, {
|
|
49
46
|
getCheckedNodes(): any[];
|
|
50
47
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -54,29 +51,23 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
54
51
|
loading: boolean;
|
|
55
52
|
loadError: string;
|
|
56
53
|
loaded: boolean;
|
|
57
|
-
loadingText: string;
|
|
58
|
-
noDataText: string;
|
|
59
54
|
valueKey: string;
|
|
60
55
|
labelKey: string;
|
|
61
56
|
disabledKey: string;
|
|
62
57
|
showAll: boolean;
|
|
63
58
|
allValue: string;
|
|
64
|
-
allText: string;
|
|
65
59
|
}>>> & {
|
|
66
60
|
onLoad?: ((...args: any[]) => any) | undefined;
|
|
67
61
|
}, {
|
|
68
62
|
type: "default" | "button" | "border" | "flex" | "custom";
|
|
69
63
|
valueKey: string;
|
|
70
64
|
loading: boolean;
|
|
71
|
-
loadError: string;
|
|
72
65
|
loaded: boolean;
|
|
73
|
-
|
|
66
|
+
loadError: string;
|
|
74
67
|
labelKey: string;
|
|
75
68
|
disabledKey: string;
|
|
76
69
|
showAll: boolean;
|
|
77
|
-
allText: string;
|
|
78
70
|
allValue: any;
|
|
79
|
-
noDataText: string;
|
|
80
71
|
}>;
|
|
81
72
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
82
73
|
export default _default;
|
|
@@ -39,8 +39,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
39
39
|
loading: boolean;
|
|
40
40
|
loadError: string;
|
|
41
41
|
loaded: boolean;
|
|
42
|
-
loadingText: string;
|
|
43
|
-
noDataText: string;
|
|
44
42
|
valueKey: string;
|
|
45
43
|
labelKey: string;
|
|
46
44
|
disabledKey: string;
|
|
@@ -56,8 +54,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
56
54
|
loading: boolean;
|
|
57
55
|
loadError: string;
|
|
58
56
|
loaded: boolean;
|
|
59
|
-
loadingText: string;
|
|
60
|
-
noDataText: string;
|
|
61
57
|
valueKey: string;
|
|
62
58
|
labelKey: string;
|
|
63
59
|
disabledKey: string;
|
|
@@ -72,12 +68,10 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
72
68
|
}, {
|
|
73
69
|
valueKey: string;
|
|
74
70
|
loading: boolean;
|
|
75
|
-
loadError: string;
|
|
76
71
|
loaded: boolean;
|
|
77
|
-
|
|
72
|
+
loadError: string;
|
|
78
73
|
labelKey: string;
|
|
79
74
|
disabledKey: string;
|
|
80
|
-
noDataText: string;
|
|
81
75
|
excludeValues: string | number | string[] | number[];
|
|
82
76
|
preserve: boolean;
|
|
83
77
|
cacheData: any[];
|
|
@@ -43,9 +43,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
43
43
|
size: "large" | "default" | "small";
|
|
44
44
|
disabled: boolean;
|
|
45
45
|
placeholder: string;
|
|
46
|
+
width: string;
|
|
46
47
|
collapseTags: boolean;
|
|
47
48
|
collapseTagsTooltip: boolean;
|
|
48
|
-
width: string;
|
|
49
49
|
closable: boolean;
|
|
50
50
|
tags: Tag[];
|
|
51
51
|
maxDisplayCount: number;
|
|
@@ -44,11 +44,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
44
44
|
childrenKey: string;
|
|
45
45
|
clearable: boolean;
|
|
46
46
|
filterable: boolean;
|
|
47
|
-
filterPlaceholder: string;
|
|
48
|
-
loadingText: string;
|
|
49
|
-
noDataText: string;
|
|
50
|
-
noMatchText: string;
|
|
51
|
-
label: string;
|
|
52
47
|
showCurrent: boolean;
|
|
53
48
|
showHeader: boolean;
|
|
54
49
|
disabled: boolean;
|
|
@@ -68,11 +63,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
68
63
|
childrenKey: string;
|
|
69
64
|
clearable: boolean;
|
|
70
65
|
filterable: boolean;
|
|
71
|
-
filterPlaceholder: string;
|
|
72
|
-
loadingText: string;
|
|
73
|
-
noDataText: string;
|
|
74
|
-
noMatchText: string;
|
|
75
|
-
label: string;
|
|
76
66
|
showCurrent: boolean;
|
|
77
67
|
showHeader: boolean;
|
|
78
68
|
disabled: boolean;
|
|
@@ -80,21 +70,16 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
80
70
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
81
71
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
82
72
|
}, {
|
|
83
|
-
label: string;
|
|
84
73
|
disabled: boolean;
|
|
85
74
|
lazy: boolean;
|
|
86
75
|
valueKey: string;
|
|
87
76
|
clearable: boolean;
|
|
88
|
-
|
|
77
|
+
showHeader: boolean;
|
|
89
78
|
labelKey: string;
|
|
90
79
|
disabledKey: string;
|
|
91
80
|
childrenKey: string;
|
|
92
81
|
filterable: boolean;
|
|
93
|
-
noDataText: string;
|
|
94
|
-
showHeader: boolean;
|
|
95
|
-
noMatchText: string;
|
|
96
82
|
watchQueryParams: boolean;
|
|
97
|
-
filterPlaceholder: string;
|
|
98
83
|
showCurrent: boolean;
|
|
99
84
|
}>;
|
|
100
85
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -23,8 +23,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
23
23
|
loadError: string;
|
|
24
24
|
loaded: boolean;
|
|
25
25
|
data: () => never[];
|
|
26
|
-
loadingText: string;
|
|
27
|
-
noDataText: string;
|
|
28
26
|
valueKey: string;
|
|
29
27
|
labelKey: string;
|
|
30
28
|
disabledKey: string;
|
|
@@ -38,8 +36,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
38
36
|
loadError: string;
|
|
39
37
|
loaded: boolean;
|
|
40
38
|
data: () => never[];
|
|
41
|
-
loadingText: string;
|
|
42
|
-
noDataText: string;
|
|
43
39
|
valueKey: string;
|
|
44
40
|
labelKey: string;
|
|
45
41
|
disabledKey: string;
|
|
@@ -52,13 +48,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
52
48
|
data: any[];
|
|
53
49
|
valueKey: string;
|
|
54
50
|
loading: boolean;
|
|
55
|
-
loadError: string;
|
|
56
51
|
loaded: boolean;
|
|
57
|
-
|
|
52
|
+
loadError: string;
|
|
58
53
|
labelKey: string;
|
|
59
54
|
disabledKey: string;
|
|
60
55
|
childrenKey: string;
|
|
61
|
-
noDataText: string;
|
|
62
56
|
defaultRoot: boolean;
|
|
63
57
|
}>;
|
|
64
58
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
nt: {
|
|
4
|
+
common: {
|
|
5
|
+
loading: string;
|
|
6
|
+
loadError: string;
|
|
7
|
+
empty: string;
|
|
8
|
+
noMatch: string;
|
|
9
|
+
success: string;
|
|
10
|
+
checkAll: string;
|
|
11
|
+
all: string;
|
|
12
|
+
more: string;
|
|
13
|
+
pleaseInput: string;
|
|
14
|
+
pleaseSelect: string;
|
|
15
|
+
to: string;
|
|
16
|
+
startDate: string;
|
|
17
|
+
endDate: string;
|
|
18
|
+
startTime: string;
|
|
19
|
+
endTime: string;
|
|
20
|
+
};
|
|
21
|
+
building: {
|
|
22
|
+
text: string;
|
|
23
|
+
};
|
|
24
|
+
datePicker: {
|
|
25
|
+
quarter: {
|
|
26
|
+
year: string;
|
|
27
|
+
firstQuarter: string;
|
|
28
|
+
secondQuarter: string;
|
|
29
|
+
thirdQuarter: string;
|
|
30
|
+
fourthQuarter: string;
|
|
31
|
+
first: string;
|
|
32
|
+
second: string;
|
|
33
|
+
third: string;
|
|
34
|
+
fourth: string;
|
|
35
|
+
format: string;
|
|
36
|
+
};
|
|
37
|
+
semiAnnual: {
|
|
38
|
+
year: string;
|
|
39
|
+
firstHalf: string;
|
|
40
|
+
secondHalf: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
downloadButton: {
|
|
44
|
+
downloadError: string;
|
|
45
|
+
};
|
|
46
|
+
fileSelect: {
|
|
47
|
+
dragAndDrop: string;
|
|
48
|
+
selectFile: string;
|
|
49
|
+
changeFile: string;
|
|
50
|
+
supportFileTypes: string;
|
|
51
|
+
maxFileSize: string;
|
|
52
|
+
maxFileCount: string;
|
|
53
|
+
};
|
|
54
|
+
fileUpload: {
|
|
55
|
+
drop: string;
|
|
56
|
+
drag: string;
|
|
57
|
+
unsupportedFileType: string;
|
|
58
|
+
maxFileSize: string;
|
|
59
|
+
maxFileCount: string;
|
|
60
|
+
someFilesFailed: string;
|
|
61
|
+
uploadFailed: string;
|
|
62
|
+
retryTip: string;
|
|
63
|
+
};
|
|
64
|
+
filter: {
|
|
65
|
+
search: string;
|
|
66
|
+
reset: string;
|
|
67
|
+
expand: string;
|
|
68
|
+
collapse: string;
|
|
69
|
+
};
|
|
70
|
+
form: {
|
|
71
|
+
requiredInput: string;
|
|
72
|
+
requiredSelect: string;
|
|
73
|
+
};
|
|
74
|
+
table: {
|
|
75
|
+
confirm: string;
|
|
76
|
+
reset: string;
|
|
77
|
+
};
|
|
78
|
+
treePanel: {
|
|
79
|
+
filterPlaceholder: string;
|
|
80
|
+
currentSelected: string;
|
|
81
|
+
};
|
|
82
|
+
upload: {
|
|
83
|
+
upload: string;
|
|
84
|
+
uploadFailed: string;
|
|
85
|
+
supportFileTypes: string;
|
|
86
|
+
maxFileSize: string;
|
|
87
|
+
maxFileCount: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
export default _default;
|