next-ui3 1.0.0
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/README.md +1 -0
- package/dist/index.css +1 -0
- package/dist/index.full.min.js +43 -0
- package/dist/index.full.min.mjs +43 -0
- package/dist/locale/zh-cn.min.js +1 -0
- package/dist/locale/zh-cn.min.mjs +1 -0
- package/dist/utils/index.min.js +1 -0
- package/dist/utils/index.min.mjs +1 -0
- package/es/component.d.ts +3 -0
- package/es/components/_base/config/presetComponents.d.ts +2 -0
- package/es/components/_base/config/presetFileUploader.d.ts +2 -0
- package/es/components/_base/next.d.ts +1 -0
- package/es/components/_base/types/index.d.ts +59 -0
- package/es/components/autocomplete/index.d.ts +2 -0
- package/es/components/autocomplete/src/index.vue.d.ts +264 -0
- package/es/components/building/index.d.ts +2 -0
- package/es/components/building/src/index.vue.d.ts +28 -0
- package/es/components/cascader/index.d.ts +2 -0
- package/es/components/cascader/src/index.vue.d.ts +1191 -0
- package/es/components/checkbox/index.d.ts +2 -0
- package/es/components/checkbox/src/index.vue.d.ts +85 -0
- package/es/components/checkbox-group/index.d.ts +2 -0
- package/es/components/checkbox-group/src/index.vue.d.ts +105 -0
- package/es/components/date-picker/index.d.ts +2 -0
- package/es/components/date-picker/src/QuarterPicker.vue.d.ts +96 -0
- package/es/components/date-picker/src/SemiAnnualPicker.vue.d.ts +91 -0
- package/es/components/date-picker/src/index.vue.d.ts +417 -0
- package/es/components/empty/index.d.ts +2 -0
- package/es/components/empty/src/index.vue.d.ts +52 -0
- package/es/components/enum-tag/index.d.ts +2 -0
- package/es/components/enum-tag/src/index.vue.d.ts +32 -0
- package/es/components/file-select/index.d.ts +2 -0
- package/es/components/file-select/src/index.vue.d.ts +67 -0
- package/es/components/filter/index.d.ts +2 -0
- package/es/components/filter/src/index.vue.d.ts +268 -0
- package/es/components/flex-text/index.d.ts +2 -0
- package/es/components/flex-text/src/index.vue.d.ts +63 -0
- package/es/components/form/index.d.ts +2 -0
- package/es/components/form/src/index.vue.d.ts +248 -0
- package/es/components/index.d.ts +28 -0
- package/es/components/input/index.d.ts +2 -0
- package/es/components/input/src/index.vue.d.ts +471 -0
- package/es/components/input-number/index.d.ts +2 -0
- package/es/components/input-number/src/index.vue.d.ts +522 -0
- package/es/components/input-password/index.d.ts +2 -0
- package/es/components/input-password/src/index.vue.d.ts +457 -0
- package/es/components/mask-text/index.d.ts +2 -0
- package/es/components/mask-text/src/index.vue.d.ts +30 -0
- package/es/components/pagination/index.d.ts +2 -0
- package/es/components/pagination/src/index.vue.d.ts +51 -0
- package/es/components/radio-group/index.d.ts +2 -0
- package/es/components/radio-group/src/CustomRadioGroup.vue.d.ts +63 -0
- package/es/components/radio-group/src/FlexRadioGroup.vue.d.ts +43 -0
- package/es/components/radio-group/src/index.vue.d.ts +94 -0
- package/es/components/remote-cascader/index.d.ts +2 -0
- package/es/components/remote-cascader/src/index.vue.d.ts +47 -0
- package/es/components/remote-select/index.d.ts +4 -0
- package/es/components/remote-select/src/DictSelect.vue.d.ts +176 -0
- package/es/components/remote-select/src/EnumSelect.vue.d.ts +176 -0
- package/es/components/remote-select/src/index.vue.d.ts +63 -0
- package/es/components/remote-tree-select/index.d.ts +2 -0
- package/es/components/remote-tree-select/src/index.vue.d.ts +52 -0
- package/es/components/remote-tree-select/src/old.vue.d.ts +123 -0
- package/es/components/search/index.d.ts +2 -0
- package/es/components/search/src/index.vue.d.ts +33 -0
- package/es/components/select/index.d.ts +2 -0
- package/es/components/select/src/index.vue.d.ts +639 -0
- package/es/components/table/index.d.ts +2 -0
- package/es/components/table/src/index.vue.d.ts +643 -0
- package/es/components/table/src/utils.d.ts +11 -0
- package/es/components/tree-panel/index.d.ts +2 -0
- package/es/components/tree-panel/src/index.vue.d.ts +994 -0
- package/es/components/tree-select/index.d.ts +2 -0
- package/es/components/tree-select/src/index.vue.d.ts +135 -0
- package/es/components/upload/index.d.ts +3 -0
- package/es/components/upload/src/ImageUpload.vue.d.ts +52 -0
- package/es/components/upload/src/index.vue.d.ts +559 -0
- package/es/constants/aria.d.ts +17 -0
- package/es/constants/event.d.ts +3 -0
- package/es/constants/index.d.ts +3 -0
- package/es/constants/key.d.ts +1 -0
- package/es/defaults.d.ts +5 -0
- package/es/directives/index.d.ts +1 -0
- package/es/directives/size-ob/index.d.ts +12 -0
- package/es/hooks/index.d.ts +12 -0
- package/es/hooks/use-dict-loader/index.d.ts +10 -0
- package/es/hooks/use-enums/index.d.ts +5 -0
- package/es/hooks/use-global-config/index.d.ts +22 -0
- package/es/hooks/use-list/index.d.ts +57 -0
- package/es/hooks/use-loader/index.d.ts +18 -0
- package/es/hooks/use-locale/index.d.ts +16 -0
- package/es/hooks/use-resettable/index.d.ts +4 -0
- package/es/hooks/use-size/index.d.ts +8 -0
- package/es/hooks/use-table/index.d.ts +19 -0
- package/es/hooks/use-toast/index.d.ts +18 -0
- package/es/hooks/use-upload-config/index.d.ts +24 -0
- package/es/hooks/use-vmodel/index.d.ts +3 -0
- package/es/index.d.ts +9 -0
- package/es/locale/index.d.ts +8 -0
- package/es/locale/lang/zh-cn.d.ts +9 -0
- package/es/locales.d.ts +1 -0
- package/es/make-installer.d.ts +6 -0
- package/es/utils/array.d.ts +26 -0
- package/es/utils/biz.d.ts +10 -0
- package/es/utils/compress.d.ts +14 -0
- package/es/utils/debounce.d.ts +13 -0
- package/es/utils/dom/index.d.ts +1 -0
- package/es/utils/enum.d.ts +22 -0
- package/es/utils/format.d.ts +28 -0
- package/es/utils/functions.d.ts +7 -0
- package/es/utils/html.d.ts +12 -0
- package/es/utils/index.d.ts +18 -0
- package/es/utils/install.d.ts +4 -0
- package/es/utils/object.d.ts +42 -0
- package/es/utils/rand.d.ts +1 -0
- package/es/utils/stream.d.ts +5 -0
- package/es/utils/string.d.ts +4 -0
- package/es/utils/timer.d.ts +17 -0
- package/es/utils/tree.d.ts +44 -0
- package/es/utils/types.d.ts +25 -0
- package/es/utils/url.d.ts +9 -0
- package/es/version.d.ts +1 -0
- package/global.d.ts +11 -0
- package/lib/component.d.ts +3 -0
- package/lib/components/_base/config/presetComponents.d.ts +2 -0
- package/lib/components/_base/config/presetFileUploader.d.ts +2 -0
- package/lib/components/_base/next.d.ts +1 -0
- package/lib/components/_base/types/index.d.ts +59 -0
- package/lib/components/autocomplete/index.d.ts +2 -0
- package/lib/components/autocomplete/src/index.vue.d.ts +264 -0
- package/lib/components/building/index.d.ts +2 -0
- package/lib/components/building/src/index.vue.d.ts +28 -0
- package/lib/components/cascader/index.d.ts +2 -0
- package/lib/components/cascader/src/index.vue.d.ts +1191 -0
- package/lib/components/checkbox/index.d.ts +2 -0
- package/lib/components/checkbox/src/index.vue.d.ts +85 -0
- package/lib/components/checkbox-group/index.d.ts +2 -0
- package/lib/components/checkbox-group/src/index.vue.d.ts +105 -0
- package/lib/components/date-picker/index.d.ts +2 -0
- package/lib/components/date-picker/src/QuarterPicker.vue.d.ts +96 -0
- package/lib/components/date-picker/src/SemiAnnualPicker.vue.d.ts +91 -0
- package/lib/components/date-picker/src/index.vue.d.ts +417 -0
- package/lib/components/empty/index.d.ts +2 -0
- package/lib/components/empty/src/index.vue.d.ts +52 -0
- package/lib/components/enum-tag/index.d.ts +2 -0
- package/lib/components/enum-tag/src/index.vue.d.ts +32 -0
- package/lib/components/file-select/index.d.ts +2 -0
- package/lib/components/file-select/src/index.vue.d.ts +67 -0
- package/lib/components/filter/index.d.ts +2 -0
- package/lib/components/filter/src/index.vue.d.ts +268 -0
- package/lib/components/flex-text/index.d.ts +2 -0
- package/lib/components/flex-text/src/index.vue.d.ts +63 -0
- package/lib/components/form/index.d.ts +2 -0
- package/lib/components/form/src/index.vue.d.ts +248 -0
- package/lib/components/index.d.ts +28 -0
- package/lib/components/input/index.d.ts +2 -0
- package/lib/components/input/src/index.vue.d.ts +471 -0
- package/lib/components/input-number/index.d.ts +2 -0
- package/lib/components/input-number/src/index.vue.d.ts +522 -0
- package/lib/components/input-password/index.d.ts +2 -0
- package/lib/components/input-password/src/index.vue.d.ts +457 -0
- package/lib/components/mask-text/index.d.ts +2 -0
- package/lib/components/mask-text/src/index.vue.d.ts +30 -0
- package/lib/components/pagination/index.d.ts +2 -0
- package/lib/components/pagination/src/index.vue.d.ts +51 -0
- package/lib/components/radio-group/index.d.ts +2 -0
- package/lib/components/radio-group/src/CustomRadioGroup.vue.d.ts +63 -0
- package/lib/components/radio-group/src/FlexRadioGroup.vue.d.ts +43 -0
- package/lib/components/radio-group/src/index.vue.d.ts +94 -0
- package/lib/components/remote-cascader/index.d.ts +2 -0
- package/lib/components/remote-cascader/src/index.vue.d.ts +47 -0
- package/lib/components/remote-select/index.d.ts +4 -0
- package/lib/components/remote-select/src/DictSelect.vue.d.ts +176 -0
- package/lib/components/remote-select/src/EnumSelect.vue.d.ts +176 -0
- package/lib/components/remote-select/src/index.vue.d.ts +63 -0
- package/lib/components/remote-tree-select/index.d.ts +2 -0
- package/lib/components/remote-tree-select/src/index.vue.d.ts +52 -0
- package/lib/components/remote-tree-select/src/old.vue.d.ts +123 -0
- package/lib/components/search/index.d.ts +2 -0
- package/lib/components/search/src/index.vue.d.ts +33 -0
- package/lib/components/select/index.d.ts +2 -0
- package/lib/components/select/src/index.vue.d.ts +639 -0
- package/lib/components/table/index.d.ts +2 -0
- package/lib/components/table/src/index.vue.d.ts +643 -0
- package/lib/components/table/src/utils.d.ts +11 -0
- package/lib/components/tree-panel/index.d.ts +2 -0
- package/lib/components/tree-panel/src/index.vue.d.ts +994 -0
- package/lib/components/tree-select/index.d.ts +2 -0
- package/lib/components/tree-select/src/index.vue.d.ts +135 -0
- package/lib/components/upload/index.d.ts +3 -0
- package/lib/components/upload/src/ImageUpload.vue.d.ts +52 -0
- package/lib/components/upload/src/index.vue.d.ts +559 -0
- package/lib/constants/aria.d.ts +17 -0
- package/lib/constants/event.d.ts +3 -0
- package/lib/constants/index.d.ts +3 -0
- package/lib/constants/key.d.ts +1 -0
- package/lib/defaults.d.ts +5 -0
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/size-ob/index.d.ts +12 -0
- package/lib/hooks/index.d.ts +12 -0
- package/lib/hooks/use-dict-loader/index.d.ts +10 -0
- package/lib/hooks/use-enums/index.d.ts +5 -0
- package/lib/hooks/use-global-config/index.d.ts +22 -0
- package/lib/hooks/use-list/index.d.ts +57 -0
- package/lib/hooks/use-loader/index.d.ts +18 -0
- package/lib/hooks/use-locale/index.d.ts +16 -0
- package/lib/hooks/use-resettable/index.d.ts +4 -0
- package/lib/hooks/use-size/index.d.ts +8 -0
- package/lib/hooks/use-table/index.d.ts +19 -0
- package/lib/hooks/use-toast/index.d.ts +18 -0
- package/lib/hooks/use-upload-config/index.d.ts +24 -0
- package/lib/hooks/use-vmodel/index.d.ts +3 -0
- package/lib/index.d.ts +9 -0
- package/lib/locale/index.d.ts +8 -0
- package/lib/locale/lang/zh-cn.d.ts +9 -0
- package/lib/locales.d.ts +1 -0
- package/lib/make-installer.d.ts +6 -0
- package/lib/utils/array.d.ts +26 -0
- package/lib/utils/biz.d.ts +10 -0
- package/lib/utils/compress.d.ts +14 -0
- package/lib/utils/debounce.d.ts +13 -0
- package/lib/utils/dom/index.d.ts +1 -0
- package/lib/utils/enum.d.ts +22 -0
- package/lib/utils/format.d.ts +28 -0
- package/lib/utils/functions.d.ts +7 -0
- package/lib/utils/html.d.ts +12 -0
- package/lib/utils/index.d.ts +18 -0
- package/lib/utils/install.d.ts +4 -0
- package/lib/utils/object.d.ts +42 -0
- package/lib/utils/rand.d.ts +1 -0
- package/lib/utils/stream.d.ts +5 -0
- package/lib/utils/string.d.ts +4 -0
- package/lib/utils/timer.d.ts +17 -0
- package/lib/utils/tree.d.ts +44 -0
- package/lib/utils/types.d.ts +25 -0
- package/lib/utils/url.d.ts +9 -0
- package/lib/version.d.ts +1 -0
- package/package.json +85 -0
- package/theme-chalk/base.css +1 -0
- package/theme-chalk/dark/css-vars.css +0 -0
- package/theme-chalk/el-building.css +1 -0
- package/theme-chalk/el-cascader.css +1 -0
- package/theme-chalk/el-checkbox-group.css +1 -0
- package/theme-chalk/el-date-picker.css +1 -0
- package/theme-chalk/el-empty.css +1 -0
- package/theme-chalk/el-file-select.css +1 -0
- package/theme-chalk/el-filter.css +1 -0
- package/theme-chalk/el-flex-text.css +1 -0
- package/theme-chalk/el-form.css +1 -0
- package/theme-chalk/el-image-upload.css +1 -0
- package/theme-chalk/el-input-number.css +1 -0
- package/theme-chalk/el-mask-text.css +1 -0
- package/theme-chalk/el-radio-group.css +1 -0
- package/theme-chalk/el-search.css +1 -0
- package/theme-chalk/el-select.css +1 -0
- package/theme-chalk/el-table.css +1 -0
- package/theme-chalk/el-tree-panel.css +1 -0
- package/theme-chalk/el-tree-select.css +1 -0
- package/theme-chalk/el-upload.css +1 -0
- package/theme-chalk/index.css +1 -0
- package/theme-chalk/src/base.scss +11 -0
- package/theme-chalk/src/building.scss +6 -0
- package/theme-chalk/src/cascader.scss +36 -0
- package/theme-chalk/src/checkbox-group.scss +16 -0
- package/theme-chalk/src/dark/css-vars.scss +0 -0
- package/theme-chalk/src/date-picker.scss +40 -0
- package/theme-chalk/src/empty.scss +82 -0
- package/theme-chalk/src/file-select.scss +94 -0
- package/theme-chalk/src/filter.scss +119 -0
- package/theme-chalk/src/flex-text.scss +31 -0
- package/theme-chalk/src/form.scss +10 -0
- package/theme-chalk/src/image-upload.scss +25 -0
- package/theme-chalk/src/index.scss +20 -0
- package/theme-chalk/src/input-number.scss +16 -0
- package/theme-chalk/src/mask-text.scss +8 -0
- package/theme-chalk/src/radio-group.scss +204 -0
- package/theme-chalk/src/search.scss +5 -0
- package/theme-chalk/src/select.scss +14 -0
- package/theme-chalk/src/table.scss +24 -0
- package/theme-chalk/src/tree-panel.scss +113 -0
- package/theme-chalk/src/tree-select.scss +14 -0
- package/theme-chalk/src/upload.scss +86 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! Next UI v1.0.0 */var a={name:"zh-cn",nt:{input:{label:"\u786E\u8BA4"}}};export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! Next UI utils v1.0.0 */(function(f,B){typeof exports=="object"&&typeof module!="undefined"?B(exports,require("element-plus")):typeof define=="function"&&define.amd?define(["exports","element-plus"],B):(f=typeof globalThis!="undefined"?globalThis:f||self,B(f.NextUI={},f.ElementPlus))})(this,function(f,B){"use strict";const V=(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 G(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")}function P(e){return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"}function U(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 X(){return window.top!==window}function K(e){return toString.call(e)==="[object Blob]"}function x(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","webp"].includes(n)}function Z(e,t){for(;e;){if(e===t)return!0;e=Object.getPrototypeOf(e)}return!1}const L=(e,t)=>{const n=P(e),r=P(t);return n&&r?JSON.stringify(e)===JSON.stringify(t):!n&&!r?String(e)===String(t):!1},H=(e,t)=>{if(e=e||[],t=t||[],e.length!==t.length)return!1;for(const[n,r]of e.entries())if(!L(r,t[n]))return!1;return!0},Q=(e,t)=>Array.isArray(e)&&Array.isArray(t)?H(e,t):L(e,t);function ee(e,t,n){const r={};let i;typeof n=="function"?i=n:n?i=d=>d[n]:i=d=>d,(e||[]).forEach(d=>{const m=i(d);r[m]={item:d,count:-1}}),(t||[]).forEach(d=>{const m=i(d);r[m]?r[m].count=0:r[m]={item:d,count:1}});const a=[],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&&a.push(r[d].item));return{changed:a.length+l.length>0,removed:a.length>0,added:l.length>0,removedItems:a,addedItems:l}}const te=(e,...t)=>{const n=[];return e.forEach(r=>{t.includes(r)||n.push(r)}),n},ne=e=>U(e)?[]:Array.isArray(e)?e:[e],re=(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},{})},$=(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},ie=(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},oe=(e,...t)=>{for(const n of t)Object.assign(e,$(n,Object.keys(e)));return e};function q(e,...t){P(e)||(e={});for(const n of t)if(P(n))for(const r in n)r==="__proto__"||e===n[r]||(P(n[r])?e[r]=q(e[r],n[r]):e[r]=n[r]);return e}const ue=e=>{const t={};if(e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(U(e[n])||(t[n]=e[n]));return t};function ae(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 a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=n(r[a]));return i}return r};return n(e)}function se(e,t){try{return JSON.parse(e)}catch(n){return console.error("parse json error:",e),t}}function ce(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 C(e,t){if(!e||!t)return;const n=t.split(".");for(const r of n){if(!e)return;e=e[r]}return e}const W=(e,t)=>{for(const n in e)Object.getOwnPropertyDescriptor(t,n)?P(e[n])&&W(e[n],t[n]):t[n]=e[n];return t};function fe(e,t){let{key:n,parentKey:r}=t||{};n=n||"id",r=r||"pid";const i=(e||[]).reduce((l,d)=>(l[C(d,n)]=d,l),{}),a=[];return(e||[]).forEach(l=>{const d=i[C(l,r)];d?(d.children||(d.children=[])).push(l):a.push(l)}),a}function z(e,t){return(e||[]).filter(n=>t(n)).map(n=>{let{children:r,...i}=n;return r&&r.length>0&&(r=z(r,t)),{...i,children:r}})}function le(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 de(e,t){const n={children:e||[]},r=[n];let i,a=-1;for(;r.length>0;){i=r.shift();const{children:l}=i;if(l&&l.length>0){for(const[d,m]of l.entries())if(t(m)){a=d;break}if(a!==-1)break;r.push(...l)}}return{found:a!==-1,parent:i===n?null:i,index:a}}function he(e,t){const n=(e||[]).map(r=>({node:r,parent:null}));for(;n.length>0;){const r=n.shift(),{node:i,parent:a}=r;if(t(i,a)===!1)break;i.children&&i.children.length>0&&n.push(...i.children.map(d=>({node:d,parent:i})))}}function me(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 ge(e,t,n){n||(n=t);const r=i=>(i||[]).reduce((a,l)=>(l[n]=l[t]+(l.children?r(l.children):0),a+l[n]),0);r(e)}function pe(e){return e.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase()}function ye(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 a in i)r=new RegExp(`(${a})`).exec(t),r&&(t=t.replace(r[1],r[1].length===1?i[a]:i[a].padStart(r[1].length,"0")));return t}function we(e,t){if(U(e))return"";let{minPrecision:n,maxPrecision:r,decimalPoint:i,thousandSeparator:a,grouping:l}=t||{};n=n!=null?n:0,r=r!=null?r:2,i=i||".",a=a!=null?a:",",l=l!=null?l:3;let[d,m]=`${e}`.split(".");return d=d.replace(new RegExp(`(?<!^-?)(?=(\\d{${l}})+$)`,"g"),a),m=(m||"").slice(0,r).padEnd(n,"0"),m&&(m=i+m),d+m}function be(e,t){if(t){const i=U(e[0])||e[0]===Number.NEGATIVE_INFINITY?"-\u221E":e[0],a=U(e[1])||e[1]===+Number.POSITIVE_INFINITY?"+\u221E":e[1];return`${i+(i==="-\u221E"?" < ":" \u2264 ")+t} < ${a}`}const n=U(e[0])||e[0]==="-\u221E"||e[0]==="-Infinity"?"-\u221E":e[0],r=U(e[1])||e[1]==="+\u221E"||e[1]==="Infinity"?"+\u221E":e[1];return`${n==="-\u221E"?"(":"["} ${n}, ${r} )`}function Ee(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 ve(e){return Number.isNaN(Number(e))?e||"":`${Number(e)}px`}const k=e=>new Promise(t=>{setTimeout(t,e)}),Oe=(e,t)=>new Promise((n,r)=>{(async()=>{try{const a=Date.now(),l=await e(),d=Date.now()-a;d<t&&await k(t-d),n(l)}catch(a){r(a)}})()}),Fe=()=>{const e=Date.now();return{delayTo:async n=>{const r=Date.now()-e;r<n&&await k(n-r)}}},Ie=(e,t)=>{let n;const r=()=>{if(e()){n(void 0);return}requestAnimationFrame(r)};return new Promise(i=>{n=i,t?setTimeout(r,t):requestAnimationFrame(r)})},Te=(e,t)=>Math.floor(e+Math.random()*(t-e));function De(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=a=>{t(a.target.result)},i.onerror=a=>n(a)}else n(new Error("Failed to load file"))},r.onerror=()=>{n(new Error("Failed to load file"))},r.send()})}function Ae(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 Pe(e){return URL.createObjectURL(e)}function Ue(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 Me(e){return e.replace(/[<>&]/g,t=>`&#${t.charCodeAt(0)};`)}function Be(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText}const Se=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 Le(e,t,n){let r,i,a,l,d,m,D=0,F=!1,A=!1,S=!0;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0,n&&P(n)&&(F=!!n.leading,A="maxWait"in n,a=A?Math.max(+n.maxWait||0,t):a,S="trailing"in n?!!n.trailing:S);function I(p){const v=r,O=i;return r=i=void 0,D=p,l=e.apply(O,v),l}function M(p,v){return setTimeout(p,v)}function o(p){clearTimeout(p)}function c(p){return D=p,d=M(g,t),F?I(p):l}function s(p){const v=p-m,O=p-D,T=t-v;return A?Math.min(T,a-O):T}function u(p){const v=p-m,O=p-D;return m===void 0||v>=t||v<0||A&&O>=a}function g(){const p=Date.now();if(u(p))return y(p);d=M(g,s(p))}function y(p){return d=void 0,S&&r?I(p):(r=i=void 0,l)}function E(){d!==void 0&&o(d),D=0,r=m=i=d=void 0}function h(){return d===void 0?l:y(Date.now())}function b(){return d!==void 0}function w(...p){const v=Date.now(),O=u(v);if(r=p,i=this,m=v,O){if(d===void 0)return c(m);if(A)return d=M(g,t),I(m)}return d===void 0&&(d=M(g,t)),l}return w.cancel=E,w.flush=h,w.pending=b,w}function Ce(e){const{el:t,msg:n}=e||{},r=n===void 0?"\u8BF7\u5B8C\u5584\u8868\u5355\u5185\u5BB9":n;if(r&&B.ElMessage.error(r),!t)return;const i=t.querySelector(".is-error");i&&i.scrollIntoView({behavior:"smooth",inline:"nearest",block:"center"})}async function ke(e,t={successText:"\u590D\u5236\u6210\u529F"}){const{successText:n}=t||{};try{if(navigator.clipboard){await navigator.clipboard.writeText(e),n&&B.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&&B.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 _e(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 j{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,{value:n,label:r,props:i}){if(this[t])throw new Error(`\u679A\u4E3E\u9879 ${t} \u5DF2\u5B58\u5728`);return this[t]=n,this._enumItems[n]=i?{key:t,value:n,label:r,props:i}:{key:t,value:n,label:r},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 j;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 Re=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)};function Ne(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Y={exports:{}},_={exports:{}},J;function He(){return J||(J=1,function(e,t){(function(n,r){e.exports=r()})(window,function(){return function(n){var r={};function i(a){if(r[a])return r[a].exports;var l=r[a]={i:a,l:!1,exports:{}};return n[a].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=n,i.c=r,i.d=function(a,l,d){i.o(a,l)||Object.defineProperty(a,l,{enumerable:!0,get:d})},i.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,l){if(1&l&&(a=i(a)),8&l||4&l&&typeof a=="object"&&a&&a.__esModule)return a;var d=Object.create(null);if(i.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:a}),2&l&&typeof a!="string")for(var m in a)i.d(d,m,function(D){return a[D]}.bind(null,m));return d},i.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(l,"a",l),l},i.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},i.p="",i(i.s=0)}([function(n,r,i){i.r(r);var a=window,l=/^image\//,d=/\.\w+$/,m={},D={file:null,quality:.8,convertSize:2048e3,loose:!0,redressOrientation:!0},F=function(o){return typeof o=="function"},A=function(o){return l.test(o)};function S(o){o=Object.assign({},D,o),this.options=o,this.file=o.file,this.image=null,this.ParsedOrientationInfo=null,this.init()}var I=S.prototype;for(var M in r.default=S,I.init=function(){var o=this,c=this.file,s=this.options;c&&A(c.type)?(A(s.mimeType)||(s.mimeType=c.type),m.file2Image(c,function(u){F(o.beforeCompress)&&(o.image=u,c.width=u.naturalWidth,c.height=u.naturalHeight,o.beforeCompress(c)),c.type==="image/jpeg"&&s.redressOrientation?o.getParsedOrientationInfo(function(g){o.parsedOrientationInfo=g,o.rendCanvas()}):(o.parsedOrientationInfo={rotate:0,scaleX:1,scaleY:1},o.rendCanvas())},o.error)):o.error("\u8BF7\u4E0A\u4F20\u56FE\u7247\u6587\u4EF6!")},I.rendCanvas=function(){var o=this,c=this.options,s=this.image,u=this.getExpectedEdge(),g=u.dWidth,y=u.dHeight,E=u.width,h=u.height,b=m.image2Canvas(s,g,y,o.beforeDraw.bind(o),o.afterDraw.bind(o),E,h);m.canvas2Blob(b,function(w){w&&(w.width=b.width,w.height=b.height),o.success(w)},c.quality,c.mimeType)},I.beforeCompress=function(){F(this.options.beforeCompress)&&this.options.beforeCompress(this.file)},I.getExpectedEdge=function(){var o,c=this.image,s=this.parsedOrientationInfo.rotate,u=this.options,g=c.naturalWidth,y=c.naturalHeight,E=Math.abs(s)%180==90;E&&(o=y,y=g,g=o);var h=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,O=Math.max(u.width,0)||g,T=Math.max(u.height,0)||y;b<1/0&&w<1/0?w*h>b?w=b/h:b=w*h:b<1/0?w=b/h:w<1/0&&(b=w*h),p>0&&v>0?v*h>p?v=p/h:p=v*h:p>0?v=p/h:v>0&&(p=v*h),T*h>O?T=O/h:O=T*h;var R=O=Math.floor(Math.min(Math.max(O,p),b)),N=T=Math.floor(Math.min(Math.max(T,v),w));return E&&(o=N,N=R,R=o),{dWidth:R,dHeight:N,width:O,height:T}},I.getParsedOrientationInfo=function(o){var c=this;this.getOrientation(function(s){F(o)&&o(c.parseOrientation(s))})},I.getOrientation=function(o){var c=this;m.file2ArrayBuffer(this.file,function(s){F(o)&&o(c.resetAndGetOrientation(s))})},I.resetAndGetOrientation=function(o){var c,s=new DataView(o);try{var u,g,y;if(s.getUint8(0)===255&&s.getUint8(1)===216)for(var E=s.byteLength,h=2;h+1<E;){if(s.getUint8(h)===255&&s.getUint8(h+1)===225){g=h;break}h+=1}if(g){var b=g+4,w=g+10;if(m.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 O;for(E=s.getUint16(y,u),O=0;O<E;O+=1)if(h=y+12*O+2,s.getUint16(h,u)===274){h+=8,c=s.getUint16(h,u),s.setUint16(h,1,u);break}}}catch(T){console.error(T),c=1}return c},I.parseOrientation=function(o){var c=0,s=1,u=1;switch(o){case 2:s=-1;break;case 3:c=-180;break;case 4:u=-1;break;case 5:c=90,u=-1;break;case 6:c=90;break;case 7:c=90,s=-1;break;case 8:c=-90}return{rotate:c,scaleX:s,scaleY:u}},I.beforeDraw=function(o,c){var s=this.parsedOrientationInfo,u=s.rotate,g=s.scaleX,y=s.scaleY,E=this.file,h=this.options,b="transparent",w=c.width,p=c.height;switch(E.size>h.convertSize&&h.mimeType==="image/png"&&(b="#fff",h.mimeType="image/jpeg"),o.fillStyle=b,o.fillRect(0,0,w,p),F(h.beforeDraw)&&h.beforeDraw.call(this,o,c),o.save(),u){case 90:o.translate(w,0);break;case-90:o.translate(0,p);break;case-180:o.translate(w,p)}o.rotate(u*Math.PI/180),o.scale(g,y)},I.afterDraw=function(o,c){var s=this.options;F(s.afterDraw)&&s.afterDraw.call(this,o,c)},I.error=function(o){var c=this.options;if(!F(c.error))throw new Error(o);c.error.call(this,o)},I.success=function(o){var c,s,u=this.options,g=this.file,y=this.image,E=this.getExpectedEdge(),h=y.naturalHeight,b=y.naturalWidth;if(o&&o.size)if(!u.loose&&o.size>g.size&&!(E.width>b||E.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"),o=g;else{var w=new Date;o.lastModified=w.getTime(),o.lastModifiedDate=w,o.name=g.name,o.name&&o.type!==g.type&&(o.name=o.name.replace(d,(c=o.type,(s=A(c)?c.substr(6):"")==="jpeg"&&(s="jpg"),"."+s)))}else console.warn("\u56FE\u7247\u538B\u7F29\u51FA\u4E86\u70B9\u610F\u5916\uFF0C\u8F93\u51FA\u6E90\u56FE\u7247"),o=g;F(u.success)&&u.success.call(this,o)},m.file2DataUrl=function(o,c,s){var u=new FileReader;u.onload=function(){c(u.result)},u.onerror=function(){F(s)&&s("\u8BFB\u53D6\u6587\u4EF6\u5931\u8D25\uFF01")},u.readAsDataURL(o)},m.file2ArrayBuffer=function(o,c,s){var u=new FileReader;u.onload=function(g){c(g.target.result)},u.onerror=function(){F(s)&&s("\u8BFB\u53D6\u6587\u4EF6\u5931\u8D25\uFF01")},u.readAsArrayBuffer(o)},m.getStringFromCharCode=function(o,c,s){var u,g="";for(s+=c,u=c;u<s;u+=1)g+=String.fromCharCode(o.getUint8(u));return g},m.file2Image=function(o,c,s){var u=new Image,g=a.URL||a.webkitURL;if(a.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(a.navigator.userAgent)&&(u.crossOrigin="anonymous"),u.alt=o.name,u.onerror=function(){F(s)&&s("\u56FE\u7247\u52A0\u8F7D\u9519\u8BEF\uFF01")},g){var y=g.createObjectURL(o);u.onload=function(){c(u),g.revokeObjectURL(y)},u.src=y}else this.file2DataUrl(o,function(E){u.onload=function(){c(u)},u.src=E},s)},m.url2Image=function(o,c,s){var u=new Image;u.src=o,u.onload=function(){c(u)},u.onerror=function(){F(s)&&s("\u56FE\u7247\u52A0\u8F7D\u9519\u8BEF\uFF01")}},m.image2Canvas=function(o,c,s,u,g,y,E){var h=document.createElement("canvas"),b=h.getContext("2d");return h.width=y||o.naturalWidth,h.height=E||o.naturalHeight,F(u)&&u(b,h),b.save(),b.drawImage(o,0,0,c,s),b.restore(),F(g)&&g(b,h),h},m.canvas2DataUrl=function(o,c,s){return o.toDataURL(s||"image/jpeg",c)},m.dataUrl2Image=function(o,c,s){var u=new Image;u.onload=function(){c(u)},u.error=function(){F(s)&&s("\u56FE\u7247\u52A0\u8F7D\u9519\u8BEF\uFF01")},u.src=o},m.dataUrl2Blob=function(o,c){for(var s=o.split(",")[1],u=o.match(/^data:(.*?)(;base64)?,/)[1],g=atob(s),y=s.length,E=new Uint8Array(y),h=0;h<y;h++)E[h]=g.charCodeAt(h);return new Blob([E],{type:c||u})},m.blob2DataUrl=function(o,c,s){this.file2DataUrl(o,c,s)},m.blob2Image=function(o,c,s){this.file2Image(o,c,s)},m.canvas2Blob=function(o,c,s,u){var g=this;HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(y,E,h){var b=this.toDataURL(E,h);y(g.dataUrl2Blob(b))}}),o.toBlob(function(y){c(y)},u||"image/jpeg",s||.8)},m.upload=function(o,c,s){var u=new XMLHttpRequest,g=new FormData;g.append("file",c),u.onreadystatechange=function(){if(u.readyState!==4||u.status!==200)throw new Error(u);s&&s(u.responseText)},u.open("POST",o,!0),u.send(g)},m)m.hasOwnProperty(M)&&(S[M]=m[M])}]).default})}(_)),_.exports}(function(e){e.exports=He()})(Y);var $e=Ne(Y.exports);const qe=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 a;new $e({...e,quality:n,convertSize:(a=e.convertSize)!=null?a:1024,success:l=>{r(l)},error:l=>{i(l)}})})};f.Enum=j,f.arrayDiff=ee,f.arrayEquals=H,f.assign=oe,f.buildTree=fe,f.buildUrl=Ue,f.combineByField=ge,f.compressImage=qe,f.copyText=ke,f.createTimer=Fe,f.debounce=Le,f.decodeHTMLEntities=Be,f.deepAssign=q,f.deepClone=ae,f.delayWhen=Ie,f.downloadFile=Se,f.encodeHTMLEntities=Me,f.fileToDataURL=Ae,f.fileToObjectURL=Pe,f.filterTree=z,f.findNode=le,f.findParentAndIndex=de,f.flatTree=me,f.formatBytes=Ee,f.formatDate=ye,f.formatInterval=be,f.formatNumber=we,f.formatPx=ve,f.getProperty=C,f.getRandInt=Te,f.groupBy=re,f.handleFormValidateError=Ce,f.hasClass=Re,f.isBlob=K,f.isChildClassOf=Z,f.isEmpty=U,f.isEqual=Q,f.isIframe=X,f.isImage=x,f.isObject=G,f.isPlainObject=P,f.looseEqual=L,f.mergeDefaultOptions=W,f.omit=ie,f.omitEmpty=ue,f.openPage=je,f.parseAreaCode=_e,f.parseJson=se,f.pick=$,f.runAtLeastTime=Oe,f.setProperty=ce,f.sleep=k,f.toArray=ne,f.toUnderscore=pe,f.urlToDataURL=De,f.walkTree=he,f.withInstall=V,f.without=te,Object.defineProperty(f,"__esModule",{value:!0})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! Next UI utils v1.0.0 */import{ElMessage as B}from"element-plus";const Y=(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 G(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 J(){return window.top!==window}function V(e){return toString.call(e)==="[object Blob]"}function X(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","webp"].includes(n)}function K(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},R=(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},Z=(e,t)=>Array.isArray(e)&&Array.isArray(t)?R(e,t):k(e,t);function Q(e,t,n){const r={};let i;typeof n=="function"?i=n:n?i=l=>l[n]:i=l=>l,(e||[]).forEach(l=>{const h=i(l);r[h]={item:l,count:-1}}),(t||[]).forEach(l=>{const h=i(l);r[h]?r[h].count=0:r[h]={item:l,count:1}});const u=[],f=[];for(const l in r)Object.prototype.hasOwnProperty.call(r,l)&&(r[l].count===1?f.push(r[l].item):r[l].count===-1&&u.push(r[l].item));return{changed:u.length+f.length>0,removed:u.length>0,added:f.length>0,removedItems:u,addedItems:f}}const ee=(e,...t)=>{const n=[];return e.forEach(r=>{t.includes(r)||n.push(r)}),n},te=e=>P(e)?[]:Array.isArray(e)?e:[e],ne=(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},{})},N=(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},re=(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},ie=(e,...t)=>{for(const n of t)Object.assign(e,N(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 oe=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 se(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 u in r)Object.prototype.hasOwnProperty.call(r,u)&&(i[u]=n(r[u]));return i}return r};return n(e)}function ue(e,t){try{return JSON.parse(e)}catch(n){return console.error("parse json error:",e),t}}function ae(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 C(e,t){if(!e||!t)return;const n=t.split(".");for(const r of n){if(!e)return;e=e[r]}return e}const $=(e,t)=>{for(const n in e)Object.getOwnPropertyDescriptor(t,n)?A(e[n])&&$(e[n],t[n]):t[n]=e[n];return t};function ce(e,t){let{key:n,parentKey:r}=t||{};n=n||"id",r=r||"pid";const i=(e||[]).reduce((f,l)=>(f[C(l,n)]=l,f),{}),u=[];return(e||[]).forEach(f=>{const l=i[C(f,r)];l?(l.children||(l.children=[])).push(f):u.push(f)}),u}function W(e,t){return(e||[]).filter(n=>t(n)).map(n=>{let{children:r,...i}=n;return r&&r.length>0&&(r=W(r,t)),{...i,children:r}})}function fe(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 le(e,t){const n={children:e||[]},r=[n];let i,u=-1;for(;r.length>0;){i=r.shift();const{children:f}=i;if(f&&f.length>0){for(const[l,h]of f.entries())if(t(h)){u=l;break}if(u!==-1)break;r.push(...f)}}return{found:u!==-1,parent:i===n?null:i,index:u}}function de(e,t){const n=(e||[]).map(r=>({node:r,parent:null}));for(;n.length>0;){const r=n.shift(),{node:i,parent:u}=r;if(t(i,u)===!1)break;i.children&&i.children.length>0&&n.push(...i.children.map(l=>({node:l,parent:i})))}}function he(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 ge(e,t,n){n||(n=t);const r=i=>(i||[]).reduce((u,f)=>(f[n]=f[t]+(f.children?r(f.children):0),u+f[n]),0);r(e)}function me(e){return e.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase()}function pe(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 u in i)r=new RegExp(`(${u})`).exec(t),r&&(t=t.replace(r[1],r[1].length===1?i[u]:i[u].padStart(r[1].length,"0")));return t}function ye(e,t){if(P(e))return"";let{minPrecision:n,maxPrecision:r,decimalPoint:i,thousandSeparator:u,grouping:f}=t||{};n=n!=null?n:0,r=r!=null?r:2,i=i||".",u=u!=null?u:",",f=f!=null?f:3;let[l,h]=`${e}`.split(".");return l=l.replace(new RegExp(`(?<!^-?)(?=(\\d{${f}})+$)`,"g"),u),h=(h||"").slice(0,r).padEnd(n,"0"),h&&(h=i+h),l+h}function we(e,t){if(t){const i=P(e[0])||e[0]===Number.NEGATIVE_INFINITY?"-\u221E":e[0],u=P(e[1])||e[1]===+Number.POSITIVE_INFINITY?"+\u221E":e[1];return`${i+(i==="-\u221E"?" < ":" \u2264 ")+t} < ${u}`}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 be(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 ve(e){return Number.isNaN(Number(e))?e||"":`${Number(e)}px`}const L=e=>new Promise(t=>{setTimeout(t,e)}),Ee=(e,t)=>new Promise((n,r)=>{(async()=>{try{const u=Date.now(),f=await e(),l=Date.now()-u;l<t&&await L(t-l),n(f)}catch(u){r(u)}})()}),Oe=()=>{const e=Date.now();return{delayTo:async n=>{const r=Date.now()-e;r<n&&await L(n-r)}}},Fe=(e,t)=>{let n;const r=()=>{if(e()){n(void 0);return}requestAnimationFrame(r)};return new Promise(i=>{n=i,t?setTimeout(r,t):requestAnimationFrame(r)})},Ie=(e,t)=>Math.floor(e+Math.random()*(t-e));function De(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=u=>{t(u.target.result)},i.onerror=u=>n(u)}else n(new Error("Failed to load file"))},r.onerror=()=>{n(new Error("Failed to load file"))},r.send()})}function Te(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 xe(e){return URL.createObjectURL(e)}function Ae(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 Pe(e){return e.replace(/[<>&]/g,t=>`&#${t.charCodeAt(0)};`)}function Se(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText}const Me=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 Ue(e,t,n){let r,i,u,f,l,h,D=0,O=!1,T=!1,S=!0;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0,n&&A(n)&&(O=!!n.leading,T="maxWait"in n,u=T?Math.max(+n.maxWait||0,t):u,S="trailing"in n?!!n.trailing:S);function F(m){const v=r,E=i;return r=i=void 0,D=m,f=e.apply(E,v),f}function x(m,v){return setTimeout(m,v)}function o(m){clearTimeout(m)}function c(m){return D=m,l=x(g,t),O?F(m):f}function a(m){const v=m-h,E=m-D,I=t-v;return T?Math.min(I,u-E):I}function s(m){const v=m-h,E=m-D;return h===void 0||v>=t||v<0||T&&E>=u}function g(){const m=Date.now();if(s(m))return p(m);l=x(g,a(m))}function p(m){return l=void 0,S&&r?F(m):(r=i=void 0,f)}function b(){l!==void 0&&o(l),D=0,r=h=i=l=void 0}function d(){return l===void 0?f:p(Date.now())}function w(){return l!==void 0}function y(...m){const v=Date.now(),E=s(v);if(r=m,i=this,h=v,E){if(l===void 0)return c(h);if(T)return l=x(g,t),F(h)}return l===void 0&&(l=x(g,t)),f}return y.cancel=b,y.flush=d,y.pending=w,y}function Be(e){const{el:t,msg:n}=e||{},r=n===void 0?"\u8BF7\u5B8C\u5584\u8868\u5355\u5185\u5BB9":n;if(r&&B.error(r),!t)return;const i=t.querySelector(".is-error");i&&i.scrollIntoView({behavior:"smooth",inline:"nearest",block:"center"})}async function ke(e,t={successText:"\u590D\u5236\u6210\u529F"}){const{successText:n}=t||{};try{if(navigator.clipboard){await navigator.clipboard.writeText(e),n&&B.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&&B.success(n)}function Ce(e,...t){if(!e)return;const n=document.createElement("a");n.addEventListener("click",r=>{r.preventDefault(),window.open(e,...t)}),n.click()}function Le(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 j{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,{value:n,label:r,props:i}){if(this[t])throw new Error(`\u679A\u4E3E\u9879 ${t} \u5DF2\u5B58\u5728`);return this[t]=n,this._enumItems[n]=i?{key:t,value:n,label:r,props:i}:{key:t,value:n,label:r},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 j;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 _e=(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 q={exports:{}},_={exports:{}},z;function Re(){return z||(z=1,function(e,t){(function(n,r){e.exports=r()})(window,function(){return function(n){var r={};function i(u){if(r[u])return r[u].exports;var f=r[u]={i:u,l:!1,exports:{}};return n[u].call(f.exports,f,f.exports,i),f.l=!0,f.exports}return i.m=n,i.c=r,i.d=function(u,f,l){i.o(u,f)||Object.defineProperty(u,f,{enumerable:!0,get:l})},i.r=function(u){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},i.t=function(u,f){if(1&f&&(u=i(u)),8&f||4&f&&typeof u=="object"&&u&&u.__esModule)return u;var l=Object.create(null);if(i.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:u}),2&f&&typeof u!="string")for(var h in u)i.d(l,h,function(D){return u[D]}.bind(null,h));return l},i.n=function(u){var f=u&&u.__esModule?function(){return u.default}:function(){return u};return i.d(f,"a",f),f},i.o=function(u,f){return Object.prototype.hasOwnProperty.call(u,f)},i.p="",i(i.s=0)}([function(n,r,i){i.r(r);var u=window,f=/^image\//,l=/\.\w+$/,h={},D={file:null,quality:.8,convertSize:2048e3,loose:!0,redressOrientation:!0},O=function(o){return typeof o=="function"},T=function(o){return f.test(o)};function S(o){o=Object.assign({},D,o),this.options=o,this.file=o.file,this.image=null,this.ParsedOrientationInfo=null,this.init()}var F=S.prototype;for(var x in r.default=S,F.init=function(){var o=this,c=this.file,a=this.options;c&&T(c.type)?(T(a.mimeType)||(a.mimeType=c.type),h.file2Image(c,function(s){O(o.beforeCompress)&&(o.image=s,c.width=s.naturalWidth,c.height=s.naturalHeight,o.beforeCompress(c)),c.type==="image/jpeg"&&a.redressOrientation?o.getParsedOrientationInfo(function(g){o.parsedOrientationInfo=g,o.rendCanvas()}):(o.parsedOrientationInfo={rotate:0,scaleX:1,scaleY:1},o.rendCanvas())},o.error)):o.error("\u8BF7\u4E0A\u4F20\u56FE\u7247\u6587\u4EF6!")},F.rendCanvas=function(){var o=this,c=this.options,a=this.image,s=this.getExpectedEdge(),g=s.dWidth,p=s.dHeight,b=s.width,d=s.height,w=h.image2Canvas(a,g,p,o.beforeDraw.bind(o),o.afterDraw.bind(o),b,d);h.canvas2Blob(w,function(y){y&&(y.width=w.width,y.height=w.height),o.success(y)},c.quality,c.mimeType)},F.beforeCompress=function(){O(this.options.beforeCompress)&&this.options.beforeCompress(this.file)},F.getExpectedEdge=function(){var o,c=this.image,a=this.parsedOrientationInfo.rotate,s=this.options,g=c.naturalWidth,p=c.naturalHeight,b=Math.abs(a)%180==90;b&&(o=p,p=g,g=o);var d=g/p,w=Math.max(s.maxWidth,0)||1/0,y=Math.max(s.maxHeight,0)||1/0,m=Math.max(s.minWidth,0)||0,v=Math.max(s.minHeight,0)||0,E=Math.max(s.width,0)||g,I=Math.max(s.height,0)||p;w<1/0&&y<1/0?y*d>w?y=w/d:w=y*d:w<1/0?y=w/d:y<1/0&&(w=y*d),m>0&&v>0?v*d>m?v=m/d:m=v*d:m>0?v=m/d:v>0&&(m=v*d),I*d>E?I=E/d:E=I*d;var M=E=Math.floor(Math.min(Math.max(E,m),w)),U=I=Math.floor(Math.min(Math.max(I,v),y));return b&&(o=U,U=M,M=o),{dWidth:M,dHeight:U,width:E,height:I}},F.getParsedOrientationInfo=function(o){var c=this;this.getOrientation(function(a){O(o)&&o(c.parseOrientation(a))})},F.getOrientation=function(o){var c=this;h.file2ArrayBuffer(this.file,function(a){O(o)&&o(c.resetAndGetOrientation(a))})},F.resetAndGetOrientation=function(o){var c,a=new DataView(o);try{var s,g,p;if(a.getUint8(0)===255&&a.getUint8(1)===216)for(var b=a.byteLength,d=2;d+1<b;){if(a.getUint8(d)===255&&a.getUint8(d+1)===225){g=d;break}d+=1}if(g){var w=g+4,y=g+10;if(h.getStringFromCharCode(a,w,4)==="Exif"){var m=a.getUint16(y);if(((s=m===18761)||m===19789)&&a.getUint16(y+2,s)===42){var v=a.getUint32(y+4,s);v>=8&&(p=y+v)}}}if(p){var E;for(b=a.getUint16(p,s),E=0;E<b;E+=1)if(d=p+12*E+2,a.getUint16(d,s)===274){d+=8,c=a.getUint16(d,s),a.setUint16(d,1,s);break}}}catch(I){console.error(I),c=1}return c},F.parseOrientation=function(o){var c=0,a=1,s=1;switch(o){case 2:a=-1;break;case 3:c=-180;break;case 4:s=-1;break;case 5:c=90,s=-1;break;case 6:c=90;break;case 7:c=90,a=-1;break;case 8:c=-90}return{rotate:c,scaleX:a,scaleY:s}},F.beforeDraw=function(o,c){var a=this.parsedOrientationInfo,s=a.rotate,g=a.scaleX,p=a.scaleY,b=this.file,d=this.options,w="transparent",y=c.width,m=c.height;switch(b.size>d.convertSize&&d.mimeType==="image/png"&&(w="#fff",d.mimeType="image/jpeg"),o.fillStyle=w,o.fillRect(0,0,y,m),O(d.beforeDraw)&&d.beforeDraw.call(this,o,c),o.save(),s){case 90:o.translate(y,0);break;case-90:o.translate(0,m);break;case-180:o.translate(y,m)}o.rotate(s*Math.PI/180),o.scale(g,p)},F.afterDraw=function(o,c){var a=this.options;O(a.afterDraw)&&a.afterDraw.call(this,o,c)},F.error=function(o){var c=this.options;if(!O(c.error))throw new Error(o);c.error.call(this,o)},F.success=function(o){var c,a,s=this.options,g=this.file,p=this.image,b=this.getExpectedEdge(),d=p.naturalHeight,w=p.naturalWidth;if(o&&o.size)if(!s.loose&&o.size>g.size&&!(b.width>w||b.height>d))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"),o=g;else{var y=new Date;o.lastModified=y.getTime(),o.lastModifiedDate=y,o.name=g.name,o.name&&o.type!==g.type&&(o.name=o.name.replace(l,(c=o.type,(a=T(c)?c.substr(6):"")==="jpeg"&&(a="jpg"),"."+a)))}else console.warn("\u56FE\u7247\u538B\u7F29\u51FA\u4E86\u70B9\u610F\u5916\uFF0C\u8F93\u51FA\u6E90\u56FE\u7247"),o=g;O(s.success)&&s.success.call(this,o)},h.file2DataUrl=function(o,c,a){var s=new FileReader;s.onload=function(){c(s.result)},s.onerror=function(){O(a)&&a("\u8BFB\u53D6\u6587\u4EF6\u5931\u8D25\uFF01")},s.readAsDataURL(o)},h.file2ArrayBuffer=function(o,c,a){var s=new FileReader;s.onload=function(g){c(g.target.result)},s.onerror=function(){O(a)&&a("\u8BFB\u53D6\u6587\u4EF6\u5931\u8D25\uFF01")},s.readAsArrayBuffer(o)},h.getStringFromCharCode=function(o,c,a){var s,g="";for(a+=c,s=c;s<a;s+=1)g+=String.fromCharCode(o.getUint8(s));return g},h.file2Image=function(o,c,a){var s=new Image,g=u.URL||u.webkitURL;if(u.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(u.navigator.userAgent)&&(s.crossOrigin="anonymous"),s.alt=o.name,s.onerror=function(){O(a)&&a("\u56FE\u7247\u52A0\u8F7D\u9519\u8BEF\uFF01")},g){var p=g.createObjectURL(o);s.onload=function(){c(s),g.revokeObjectURL(p)},s.src=p}else this.file2DataUrl(o,function(b){s.onload=function(){c(s)},s.src=b},a)},h.url2Image=function(o,c,a){var s=new Image;s.src=o,s.onload=function(){c(s)},s.onerror=function(){O(a)&&a("\u56FE\u7247\u52A0\u8F7D\u9519\u8BEF\uFF01")}},h.image2Canvas=function(o,c,a,s,g,p,b){var d=document.createElement("canvas"),w=d.getContext("2d");return d.width=p||o.naturalWidth,d.height=b||o.naturalHeight,O(s)&&s(w,d),w.save(),w.drawImage(o,0,0,c,a),w.restore(),O(g)&&g(w,d),d},h.canvas2DataUrl=function(o,c,a){return o.toDataURL(a||"image/jpeg",c)},h.dataUrl2Image=function(o,c,a){var s=new Image;s.onload=function(){c(s)},s.error=function(){O(a)&&a("\u56FE\u7247\u52A0\u8F7D\u9519\u8BEF\uFF01")},s.src=o},h.dataUrl2Blob=function(o,c){for(var a=o.split(",")[1],s=o.match(/^data:(.*?)(;base64)?,/)[1],g=atob(a),p=a.length,b=new Uint8Array(p),d=0;d<p;d++)b[d]=g.charCodeAt(d);return new Blob([b],{type:c||s})},h.blob2DataUrl=function(o,c,a){this.file2DataUrl(o,c,a)},h.blob2Image=function(o,c,a){this.file2Image(o,c,a)},h.canvas2Blob=function(o,c,a,s){var g=this;HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(p,b,d){var w=this.toDataURL(b,d);p(g.dataUrl2Blob(w))}}),o.toBlob(function(p){c(p)},s||"image/jpeg",a||.8)},h.upload=function(o,c,a){var s=new XMLHttpRequest,g=new FormData;g.append("file",c),s.onreadystatechange=function(){if(s.readyState!==4||s.status!==200)throw new Error(s);a&&a(s.responseText)},s.open("POST",o,!0),s.send(g)},h)h.hasOwnProperty(x)&&(S[x]=h[x])}]).default})}(_)),_.exports}(function(e){e.exports=Re()})(q);var Ne=je(q.exports);const He=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 u;new Ne({...e,quality:n,convertSize:(u=e.convertSize)!=null?u:1024,success:f=>{r(f)},error:f=>{i(f)}})})};export{j as Enum,Q as arrayDiff,R as arrayEquals,ie as assign,ce as buildTree,Ae as buildUrl,ge as combineByField,He as compressImage,ke as copyText,Oe as createTimer,Ue as debounce,Se as decodeHTMLEntities,H as deepAssign,se as deepClone,Fe as delayWhen,Me as downloadFile,Pe as encodeHTMLEntities,Te as fileToDataURL,xe as fileToObjectURL,W as filterTree,fe as findNode,le as findParentAndIndex,he as flatTree,be as formatBytes,pe as formatDate,we as formatInterval,ye as formatNumber,ve as formatPx,C as getProperty,Ie as getRandInt,ne as groupBy,Be as handleFormValidateError,_e as hasClass,V as isBlob,K as isChildClassOf,P as isEmpty,Z as isEqual,J as isIframe,X as isImage,G as isObject,A as isPlainObject,k as looseEqual,$ as mergeDefaultOptions,re as omit,oe as omitEmpty,Ce as openPage,Le as parseAreaCode,ue as parseJson,N as pick,Ee as runAtLeastTime,ae as setProperty,L as sleep,te as toArray,me as toUnderscore,De as urlToDataURL,de as walkTree,Y as withInstall,ee as without};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const next: (n: any, e?: any) => any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { FormItemProps, TableColumnCtx } from 'element-plus';
|
|
2
|
+
export type IOptionItem = {
|
|
3
|
+
value: string | number;
|
|
4
|
+
label: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
data?: any;
|
|
7
|
+
};
|
|
8
|
+
export type IGroupItem = {
|
|
9
|
+
label: string;
|
|
10
|
+
options: IOptionItem[];
|
|
11
|
+
};
|
|
12
|
+
export type IFormItem = {
|
|
13
|
+
key: string;
|
|
14
|
+
slot?: string;
|
|
15
|
+
labelSlot?: string;
|
|
16
|
+
errorSlot?: string;
|
|
17
|
+
requiredMessage?: string;
|
|
18
|
+
type?: string;
|
|
19
|
+
component?: any;
|
|
20
|
+
componentProps?: Record<string, any>;
|
|
21
|
+
} & FormItemProps;
|
|
22
|
+
export type IFilterItem = {
|
|
23
|
+
key: string;
|
|
24
|
+
label: string;
|
|
25
|
+
labelNumber?: number;
|
|
26
|
+
span?: number;
|
|
27
|
+
required?: boolean;
|
|
28
|
+
slot?: string;
|
|
29
|
+
labelSlot?: string;
|
|
30
|
+
type?: string;
|
|
31
|
+
component?: any;
|
|
32
|
+
componentProps?: Record<string, any>;
|
|
33
|
+
};
|
|
34
|
+
export type ITableColumn = {
|
|
35
|
+
key: string;
|
|
36
|
+
flexWidth?: boolean;
|
|
37
|
+
showOverflowTooltip?: {
|
|
38
|
+
lines?: number;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
popperWidth?: number;
|
|
41
|
+
popperHeight?: number;
|
|
42
|
+
delay?: number;
|
|
43
|
+
} | boolean | number | string;
|
|
44
|
+
slot?: string;
|
|
45
|
+
columnSlot?: string;
|
|
46
|
+
headerSlot?: string;
|
|
47
|
+
} & TableColumnCtx<any>;
|
|
48
|
+
export type ISuccessHandle = (data: any) => any;
|
|
49
|
+
export type IErrorHandle = (error?: any) => any;
|
|
50
|
+
export type ILoadOptions = {
|
|
51
|
+
query?: Record<string, any>;
|
|
52
|
+
node?: any;
|
|
53
|
+
onSuccess: ISuccessHandle;
|
|
54
|
+
onError: IErrorHandle;
|
|
55
|
+
};
|
|
56
|
+
export type ILoadMethod = (options: ILoadOptions) => any;
|
|
57
|
+
export type IRequest = (params?: Record<string, any>) => Promise<{
|
|
58
|
+
data: any;
|
|
59
|
+
}>;
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { nextTick } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: string;
|
|
4
|
+
defaultValue?: string;
|
|
5
|
+
emptyValue?: string;
|
|
6
|
+
lazy?: boolean;
|
|
7
|
+
valueKey?: string;
|
|
8
|
+
trim?: boolean;
|
|
9
|
+
validateEvent?: boolean;
|
|
10
|
+
blurAfterSelect?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
14
|
+
slots: Partial<Record<string, (_: any) => any>>;
|
|
15
|
+
refs: {
|
|
16
|
+
autocompleteRef: ({
|
|
17
|
+
$: import("vue").ComponentInternalInstance;
|
|
18
|
+
$data: {};
|
|
19
|
+
$props: Partial<{
|
|
20
|
+
readonly disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
21
|
+
readonly modelValue: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
22
|
+
readonly placement: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement))[], "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end", unknown>;
|
|
23
|
+
readonly clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
24
|
+
readonly popperClass: string;
|
|
25
|
+
readonly teleported: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
26
|
+
readonly valueKey: string;
|
|
27
|
+
readonly debounce: number;
|
|
28
|
+
readonly fetchSuggestions: import("element-plus").AutocompleteFetchSuggestions;
|
|
29
|
+
readonly triggerOnFocus: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
30
|
+
readonly selectWhenUnmatched: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
31
|
+
readonly hideLoading: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
32
|
+
readonly highlightFirstItem: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
33
|
+
readonly fitInputWidth: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
34
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
readonly ariaLabel: StringConstructor;
|
|
36
|
+
readonly valueKey: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "value", boolean>;
|
|
37
|
+
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
38
|
+
readonly debounce: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
39
|
+
readonly placement: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement))[], "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end", unknown, "bottom-start", boolean>;
|
|
40
|
+
readonly fetchSuggestions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").AutocompleteData | ((queryString: string, cb: import("element-plus").AutocompleteFetchSuggestionsCallback) => import("element-plus/es/utils").Awaitable<import("element-plus").AutocompleteData> | void)) | (() => import("element-plus").AutocompleteFetchSuggestions) | ((new (...args: any[]) => import("element-plus").AutocompleteData | ((queryString: string, cb: import("element-plus").AutocompleteFetchSuggestionsCallback) => import("element-plus/es/utils").Awaitable<import("element-plus").AutocompleteData> | void)) | (() => import("element-plus").AutocompleteFetchSuggestions))[], unknown, unknown, () => void, boolean>;
|
|
41
|
+
readonly popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
42
|
+
readonly triggerOnFocus: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
43
|
+
readonly selectWhenUnmatched: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
44
|
+
readonly hideLoading: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
45
|
+
readonly teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
46
|
+
readonly highlightFirstItem: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
47
|
+
readonly fitInputWidth: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
48
|
+
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
49
|
+
readonly disabled: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
50
|
+
readonly name: StringConstructor;
|
|
51
|
+
}>> & {
|
|
52
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
53
|
+
onChange?: ((value: string) => any) | undefined;
|
|
54
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
55
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
56
|
+
onInput?: ((value: string) => any) | undefined;
|
|
57
|
+
onSelect?: ((item: Record<string, any>) => any) | undefined;
|
|
58
|
+
onClear?: (() => any) | undefined;
|
|
59
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "modelValue" | "valueKey" | "debounce" | "placement" | "fetchSuggestions" | "popperClass" | "triggerOnFocus" | "selectWhenUnmatched" | "hideLoading" | "teleported" | "highlightFirstItem" | "fitInputWidth" | "clearable" | "disabled">;
|
|
60
|
+
$attrs: {
|
|
61
|
+
[x: string]: unknown;
|
|
62
|
+
};
|
|
63
|
+
$refs: {
|
|
64
|
+
[x: string]: unknown;
|
|
65
|
+
};
|
|
66
|
+
$slots: import("vue").Slots;
|
|
67
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
68
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
69
|
+
$emit: ((event: "input", value: string) => void) & ((event: "select", item: Record<string, any>) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "clear") => void);
|
|
70
|
+
$el: any;
|
|
71
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
72
|
+
readonly ariaLabel: StringConstructor;
|
|
73
|
+
readonly valueKey: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "value", boolean>;
|
|
74
|
+
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
75
|
+
readonly debounce: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
76
|
+
readonly placement: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement))[], "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end", unknown, "bottom-start", boolean>;
|
|
77
|
+
readonly fetchSuggestions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").AutocompleteData | ((queryString: string, cb: import("element-plus").AutocompleteFetchSuggestionsCallback) => import("element-plus/es/utils").Awaitable<import("element-plus").AutocompleteData> | void)) | (() => import("element-plus").AutocompleteFetchSuggestions) | ((new (...args: any[]) => import("element-plus").AutocompleteData | ((queryString: string, cb: import("element-plus").AutocompleteFetchSuggestionsCallback) => import("element-plus/es/utils").Awaitable<import("element-plus").AutocompleteData> | void)) | (() => import("element-plus").AutocompleteFetchSuggestions))[], unknown, unknown, () => void, boolean>;
|
|
78
|
+
readonly popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
79
|
+
readonly triggerOnFocus: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
80
|
+
readonly selectWhenUnmatched: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
81
|
+
readonly hideLoading: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
82
|
+
readonly teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
83
|
+
readonly highlightFirstItem: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
84
|
+
readonly fitInputWidth: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
85
|
+
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
86
|
+
readonly disabled: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
87
|
+
readonly name: StringConstructor;
|
|
88
|
+
}>> & {
|
|
89
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
90
|
+
onChange?: ((value: string) => any) | undefined;
|
|
91
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
92
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
93
|
+
onInput?: ((value: string) => any) | undefined;
|
|
94
|
+
onSelect?: ((item: Record<string, any>) => any) | undefined;
|
|
95
|
+
onClear?: (() => any) | undefined;
|
|
96
|
+
}, {
|
|
97
|
+
highlightedIndex: import("vue").Ref<number>;
|
|
98
|
+
activated: import("vue").Ref<boolean>;
|
|
99
|
+
loading: import("vue").Ref<boolean>;
|
|
100
|
+
inputRef: import("vue").Ref<import("element-plus").InputInstance | undefined>;
|
|
101
|
+
popperRef: import("vue").Ref<import("element-plus").TooltipInstance | undefined>;
|
|
102
|
+
suggestions: import("vue").Ref<import("element-plus").AutocompleteData>;
|
|
103
|
+
handleSelect: (item: any) => void;
|
|
104
|
+
handleKeyEnter: () => void;
|
|
105
|
+
focus: () => void;
|
|
106
|
+
blur: () => void;
|
|
107
|
+
close: () => void;
|
|
108
|
+
highlight: (index: number) => void;
|
|
109
|
+
getData: (queryString: string) => void;
|
|
110
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
111
|
+
select: (item: Record<string, any>) => void;
|
|
112
|
+
clear: () => void;
|
|
113
|
+
"update:modelValue": (value: string) => void;
|
|
114
|
+
change: (value: string) => void;
|
|
115
|
+
input: (value: string) => void;
|
|
116
|
+
blur: (evt: FocusEvent) => void;
|
|
117
|
+
focus: (evt: FocusEvent) => void;
|
|
118
|
+
}, string, {
|
|
119
|
+
readonly disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
120
|
+
readonly modelValue: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
121
|
+
readonly placement: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement))[], "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end", unknown>;
|
|
122
|
+
readonly clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
123
|
+
readonly popperClass: string;
|
|
124
|
+
readonly teleported: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
125
|
+
readonly valueKey: string;
|
|
126
|
+
readonly debounce: number;
|
|
127
|
+
readonly fetchSuggestions: import("element-plus").AutocompleteFetchSuggestions;
|
|
128
|
+
readonly triggerOnFocus: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
129
|
+
readonly selectWhenUnmatched: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
130
|
+
readonly hideLoading: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
131
|
+
readonly highlightFirstItem: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
132
|
+
readonly fitInputWidth: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
133
|
+
}> & {
|
|
134
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
135
|
+
created?: (() => void) | (() => void)[];
|
|
136
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
137
|
+
mounted?: (() => void) | (() => void)[];
|
|
138
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
139
|
+
updated?: (() => void) | (() => void)[];
|
|
140
|
+
activated?: (() => void) | (() => void)[];
|
|
141
|
+
deactivated?: (() => void) | (() => void)[];
|
|
142
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
143
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
144
|
+
destroyed?: (() => void) | (() => void)[];
|
|
145
|
+
unmounted?: (() => void) | (() => void)[];
|
|
146
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
147
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
148
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
149
|
+
};
|
|
150
|
+
$forceUpdate: () => void;
|
|
151
|
+
$nextTick: typeof nextTick;
|
|
152
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
153
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
154
|
+
readonly ariaLabel: StringConstructor;
|
|
155
|
+
readonly valueKey: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "value", boolean>;
|
|
156
|
+
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
157
|
+
readonly debounce: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
158
|
+
readonly placement: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement))[], "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end", unknown, "bottom-start", boolean>;
|
|
159
|
+
readonly fetchSuggestions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").AutocompleteData | ((queryString: string, cb: import("element-plus").AutocompleteFetchSuggestionsCallback) => import("element-plus/es/utils").Awaitable<import("element-plus").AutocompleteData> | void)) | (() => import("element-plus").AutocompleteFetchSuggestions) | ((new (...args: any[]) => import("element-plus").AutocompleteData | ((queryString: string, cb: import("element-plus").AutocompleteFetchSuggestionsCallback) => import("element-plus/es/utils").Awaitable<import("element-plus").AutocompleteData> | void)) | (() => import("element-plus").AutocompleteFetchSuggestions))[], unknown, unknown, () => void, boolean>;
|
|
160
|
+
readonly popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
161
|
+
readonly triggerOnFocus: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
162
|
+
readonly selectWhenUnmatched: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
163
|
+
readonly hideLoading: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
164
|
+
readonly teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
165
|
+
readonly highlightFirstItem: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
166
|
+
readonly fitInputWidth: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
167
|
+
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
168
|
+
readonly disabled: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
169
|
+
readonly name: StringConstructor;
|
|
170
|
+
}>> & {
|
|
171
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
172
|
+
onChange?: ((value: string) => any) | undefined;
|
|
173
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
174
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
175
|
+
onInput?: ((value: string) => any) | undefined;
|
|
176
|
+
onSelect?: ((item: Record<string, any>) => any) | undefined;
|
|
177
|
+
onClear?: (() => any) | undefined;
|
|
178
|
+
} & import("vue").ShallowUnwrapRef<{
|
|
179
|
+
highlightedIndex: import("vue").Ref<number>;
|
|
180
|
+
activated: import("vue").Ref<boolean>;
|
|
181
|
+
loading: import("vue").Ref<boolean>;
|
|
182
|
+
inputRef: import("vue").Ref<import("element-plus").InputInstance | undefined>;
|
|
183
|
+
popperRef: import("vue").Ref<import("element-plus").TooltipInstance | undefined>;
|
|
184
|
+
suggestions: import("vue").Ref<import("element-plus").AutocompleteData>;
|
|
185
|
+
handleSelect: (item: any) => void;
|
|
186
|
+
handleKeyEnter: () => void;
|
|
187
|
+
focus: () => void;
|
|
188
|
+
blur: () => void;
|
|
189
|
+
close: () => void;
|
|
190
|
+
highlight: (index: number) => void;
|
|
191
|
+
getData: (queryString: string) => void;
|
|
192
|
+
}> & {} & import("@vue/runtime-core").ComponentCustomProperties & {
|
|
193
|
+
$slots: {
|
|
194
|
+
prepend?(_: {}): any;
|
|
195
|
+
append?(_: {}): any;
|
|
196
|
+
prefix?(_: {}): any;
|
|
197
|
+
suffix?(_: {}): any;
|
|
198
|
+
loading?(_: {}): any;
|
|
199
|
+
default?(_: {
|
|
200
|
+
item: Record<string, any>;
|
|
201
|
+
}): any;
|
|
202
|
+
};
|
|
203
|
+
}) | null;
|
|
204
|
+
};
|
|
205
|
+
rootEl: any;
|
|
206
|
+
};
|
|
207
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
208
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
209
|
+
defaultValue: string;
|
|
210
|
+
emptyValue: string;
|
|
211
|
+
lazy: boolean;
|
|
212
|
+
valueKey: string;
|
|
213
|
+
trim: boolean;
|
|
214
|
+
validateEvent: boolean;
|
|
215
|
+
blurAfterSelect: boolean;
|
|
216
|
+
}>, any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
217
|
+
select: (...args: any[]) => void;
|
|
218
|
+
change: (...args: any[]) => void;
|
|
219
|
+
"update:modelValue": (...args: any[]) => void;
|
|
220
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
221
|
+
defaultValue: string;
|
|
222
|
+
emptyValue: string;
|
|
223
|
+
lazy: boolean;
|
|
224
|
+
valueKey: string;
|
|
225
|
+
trim: boolean;
|
|
226
|
+
validateEvent: boolean;
|
|
227
|
+
blurAfterSelect: boolean;
|
|
228
|
+
}>>> & {
|
|
229
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
230
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
231
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
232
|
+
}, {
|
|
233
|
+
defaultValue: string;
|
|
234
|
+
emptyValue: string;
|
|
235
|
+
lazy: boolean;
|
|
236
|
+
valueKey: string;
|
|
237
|
+
trim: boolean;
|
|
238
|
+
validateEvent: boolean;
|
|
239
|
+
blurAfterSelect: boolean;
|
|
240
|
+
}>;
|
|
241
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
242
|
+
export default _default;
|
|
243
|
+
type __VLS_WithDefaults<P, D> = {
|
|
244
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
245
|
+
default: D[K];
|
|
246
|
+
}> : P[K];
|
|
247
|
+
};
|
|
248
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
249
|
+
type __VLS_TypePropsToOption<T> = {
|
|
250
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
251
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
252
|
+
} : {
|
|
253
|
+
type: import('vue').PropType<T[K]>;
|
|
254
|
+
required: true;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
258
|
+
new (): {
|
|
259
|
+
$slots: S;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
type __VLS_PrettifyLocal<T> = {
|
|
263
|
+
[K in keyof T]: T[K];
|
|
264
|
+
} & {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
text?: string;
|
|
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
|
+
}>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithDefaults<P, D> = {
|
|
13
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
14
|
+
default: D[K];
|
|
15
|
+
}> : P[K];
|
|
16
|
+
};
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToOption<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_PrettifyLocal<T> = {
|
|
27
|
+
[K in keyof T]: T[K];
|
|
28
|
+
} & {};
|