bm-admin-ui 1.0.35-alpha → 1.0.37-alpha
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/es/components/button/index.d.ts +3 -0
- package/es/components/button/src/button.d.ts +12 -0
- package/es/components/button/src/button.vue.d.ts +306 -0
- package/es/components/feedback/index.d.ts +9 -0
- package/es/components/feedback/index.js +2 -2
- package/es/components/feedback/src/bmAlert.vue.d.ts +191 -0
- package/es/components/feedback/src/bmModal.vue.d.ts +839 -0
- package/es/components/float-table/index.d.ts +3 -0
- package/es/components/float-table/index.js +27 -36
- package/es/components/float-table/src/float-table.vue.d.ts +69 -0
- package/es/components/flow-designer/index.d.ts +3 -0
- package/es/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
- package/es/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
- package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +247 -0
- package/es/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
- package/es/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
- package/es/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
- package/es/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
- package/es/components/flow-designer/src/config.d.ts +24 -0
- package/es/components/flow-designer/src/flow-designer-test.d.ts +20 -0
- package/es/components/flow-designer/src/flow-designer.d.ts +11 -0
- package/es/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
- package/es/components/flow-designer/src/utils.d.ts +29 -0
- package/es/components/form-create/index.js +93 -143
- package/es/components/form-designer/index.js +159 -216
- package/es/components/index.d.ts +12 -0
- package/es/components/index.js +1 -0
- package/es/components/input-tags-display/index.d.ts +3 -0
- package/es/components/input-tags-display/index.js +26 -33
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +128 -0
- package/es/components/over-tooltips/index.d.ts +3 -0
- package/es/components/over-tooltips/index.js +20 -27
- package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
- package/es/components/search-filter/index.d.ts +3 -0
- package/es/components/search-filter/index.js +21 -25
- package/es/components/search-filter/src/search-filter.d.ts +89 -0
- package/es/components/search-filter/src/search-filter.vue.d.ts +234 -0
- package/es/components/search-filter/src/search-reset-btn.vue.d.ts +119 -0
- package/es/components/select-all/index.d.ts +3 -0
- package/es/components/select-all/index.js +144 -0
- package/es/components/select-all/src/selectAll.vue.d.ts +753 -0
- package/es/components/shops-filter/index.d.ts +3 -0
- package/es/components/shops-filter/index.js +43 -58
- package/es/components/shops-filter/src/shops-filter.d.ts +25 -0
- package/es/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
- package/es/components/staffs-selector/index.d.ts +3 -0
- package/es/components/staffs-selector/index.js +102 -137
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
- package/es/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
- package/es/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
- package/es/components/timeline/index.d.ts +5 -0
- package/es/components/timeline/index.js +7 -7
- package/es/components/timeline/src/props.d.ts +27 -0
- package/es/components/timeline/src/timeline-item.vue.d.ts +64 -0
- package/es/components/timeline/src/timeline.vue.d.ts +50 -0
- package/es/components/upload/index.d.ts +3 -0
- package/es/components/upload/index.js +78 -115
- package/es/components/upload/src/icons.d.ts +13 -0
- package/es/components/upload/src/upload.vue.d.ts +105 -0
- package/es/components/upload/utils/index.d.ts +7 -0
- package/es/index.d.ts +6 -0
- package/es/utils/bm-admin-ui-resolver.d.ts +9 -0
- package/es/utils/uniqueId.d.ts +1 -0
- package/es/utils/vxe-table.d.ts +6 -0
- package/es/utils/with-install.d.ts +1 -0
- package/index.esm.js +14873 -45606
- package/index.js +14873 -45605
- package/lib/components/button/index.d.ts +3 -0
- package/lib/components/button/src/button.d.ts +12 -0
- package/lib/components/button/src/button.vue.d.ts +306 -0
- package/lib/components/feedback/index.d.ts +9 -0
- package/lib/components/feedback/index.js +1 -1
- package/lib/components/feedback/src/bmAlert.vue.d.ts +191 -0
- package/lib/components/feedback/src/bmModal.vue.d.ts +839 -0
- package/lib/components/float-table/index.d.ts +3 -0
- package/lib/components/float-table/index.js +27 -36
- package/lib/components/float-table/src/float-table.vue.d.ts +69 -0
- package/lib/components/flow-designer/index.d.ts +3 -0
- package/lib/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
- package/lib/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
- package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +247 -0
- package/lib/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
- package/lib/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
- package/lib/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
- package/lib/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
- package/lib/components/flow-designer/src/config.d.ts +24 -0
- package/lib/components/flow-designer/src/flow-designer-test.d.ts +20 -0
- package/lib/components/flow-designer/src/flow-designer.d.ts +11 -0
- package/lib/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
- package/lib/components/flow-designer/src/utils.d.ts +29 -0
- package/lib/components/form-create/index.js +92 -142
- package/lib/components/form-designer/index.js +158 -215
- package/lib/components/index.d.ts +12 -0
- package/lib/components/index.js +7 -0
- package/lib/components/input-tags-display/index.d.ts +3 -0
- package/lib/components/input-tags-display/index.js +26 -32
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +128 -0
- package/lib/components/over-tooltips/index.d.ts +3 -0
- package/lib/components/over-tooltips/index.js +20 -27
- package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
- package/lib/components/search-filter/index.d.ts +3 -0
- package/lib/components/search-filter/index.js +21 -25
- package/lib/components/search-filter/src/search-filter.d.ts +89 -0
- package/lib/components/search-filter/src/search-filter.vue.d.ts +234 -0
- package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +119 -0
- package/lib/components/select-all/index.d.ts +3 -0
- package/lib/components/select-all/index.js +153 -0
- package/lib/components/select-all/src/selectAll.vue.d.ts +753 -0
- package/lib/components/shops-filter/index.d.ts +3 -0
- package/lib/components/shops-filter/index.js +42 -57
- package/lib/components/shops-filter/src/shops-filter.d.ts +25 -0
- package/lib/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
- package/lib/components/staffs-selector/index.d.ts +3 -0
- package/lib/components/staffs-selector/index.js +101 -136
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
- package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
- package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
- package/lib/components/timeline/index.d.ts +5 -0
- package/lib/components/timeline/index.js +7 -7
- package/lib/components/timeline/src/props.d.ts +27 -0
- package/lib/components/timeline/src/timeline-item.vue.d.ts +64 -0
- package/lib/components/timeline/src/timeline.vue.d.ts +50 -0
- package/lib/components/upload/index.d.ts +3 -0
- package/lib/components/upload/index.js +78 -115
- package/lib/components/upload/src/icons.d.ts +13 -0
- package/lib/components/upload/src/upload.vue.d.ts +105 -0
- package/lib/components/upload/utils/index.d.ts +7 -0
- package/lib/index.d.ts +6 -0
- package/lib/utils/bm-admin-ui-resolver.d.ts +9 -0
- package/lib/utils/uniqueId.d.ts +1 -0
- package/lib/utils/vxe-table.d.ts +6 -0
- package/lib/utils/with-install.d.ts +1 -0
- package/package.json +1 -1
- package/theme-chalk/button.css +1 -1
- package/theme-chalk/feedback.css +1 -1
- package/theme-chalk/float-table.css +1 -1
- package/theme-chalk/floating-vue.css +1 -1
- package/theme-chalk/flow-designer.css +1 -1
- package/theme-chalk/form-designer.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/modal.css +1 -1
- package/theme-chalk/over-tooltips.css +1 -1
- package/theme-chalk/search-filter.css +1 -1
- package/theme-chalk/select-all.css +1 -0
- package/theme-chalk/staffs-selector.css +1 -1
- package/theme-chalk/timeline.css +1 -1
- package/theme-chalk/upload.css +1 -1
- package/types/components/button/index.d.ts +3 -0
- package/types/components/button/src/button.d.ts +12 -0
- package/types/components/button/src/button.vue.d.ts +306 -0
- package/types/components/feedback/index.d.ts +9 -0
- package/types/components/feedback/src/bmAlert.vue.d.ts +191 -0
- package/types/components/feedback/src/bmModal.vue.d.ts +839 -0
- package/types/components/float-table/index.d.ts +3 -0
- package/types/components/float-table/src/float-table.vue.d.ts +69 -0
- package/types/components/flow-designer/index.d.ts +3 -0
- package/types/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
- package/types/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
- package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +247 -0
- package/types/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
- package/types/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
- package/types/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
- package/types/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
- package/types/components/flow-designer/src/config.d.ts +24 -0
- package/types/components/flow-designer/src/flow-designer-test.d.ts +20 -0
- package/types/components/flow-designer/src/flow-designer.d.ts +11 -0
- package/types/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
- package/types/components/flow-designer/src/utils.d.ts +29 -0
- package/types/components/index.d.ts +12 -0
- package/types/components/input-tags-display/index.d.ts +3 -0
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +128 -0
- package/types/components/over-tooltips/index.d.ts +3 -0
- package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
- package/types/components/search-filter/index.d.ts +3 -0
- package/types/components/search-filter/src/search-filter.d.ts +89 -0
- package/types/components/search-filter/src/search-filter.vue.d.ts +234 -0
- package/types/components/search-filter/src/search-reset-btn.vue.d.ts +119 -0
- package/types/components/select-all/index.d.ts +3 -0
- package/types/components/select-all/src/selectAll.vue.d.ts +753 -0
- package/types/components/shops-filter/index.d.ts +3 -0
- package/types/components/shops-filter/src/shops-filter.d.ts +25 -0
- package/types/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
- package/types/components/staffs-selector/index.d.ts +3 -0
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
- package/types/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
- package/types/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
- package/types/components/timeline/index.d.ts +5 -0
- package/types/components/timeline/src/props.d.ts +27 -0
- package/types/components/timeline/src/timeline-item.vue.d.ts +64 -0
- package/types/components/timeline/src/timeline.vue.d.ts +50 -0
- package/types/components/upload/index.d.ts +3 -0
- package/types/components/upload/src/icons.d.ts +13 -0
- package/types/components/upload/src/upload.vue.d.ts +105 -0
- package/types/components/upload/utils/index.d.ts +7 -0
- package/types/index.d.ts +6 -0
- package/types/utils/bm-admin-ui-resolver.d.ts +9 -0
- package/types/utils/uniqueId.d.ts +1 -0
- package/types/utils/vxe-table.d.ts +6 -0
- package/types/utils/with-install.d.ts +1 -0
|
@@ -34,17 +34,17 @@ function isPlainObject(o) {
|
|
|
34
34
|
return true;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
function t(){return t=Object.assign
|
|
37
|
+
function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);}return e},t.apply(this,arguments)}function r(e,t){if(null==e)return {};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}const n={silent:!1,logLevel:"warn"},i=["validator"],o=Object.prototype,a=o.toString,s=o.hasOwnProperty,u=/^\s*function (\w+)/;function l(e){var t;const r=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(r){const e=r.toString().match(u);return e?e[1]:""}return ""}const c=isPlainObject,f=e=>e;let d=f;if("production"!==process.env.NODE_ENV){const e="undefined"!=typeof console;d=e?function(e,t=n.logLevel){!1===n.silent&&console[t](`[VueTypes warn]: ${e}`);}:f;}const p=(e,t)=>s.call(e,t),y=Number.isInteger||function(e){return "number"==typeof e&&isFinite(e)&&Math.floor(e)===e},v=Array.isArray||function(e){return "[object Array]"===a.call(e)},h=e=>"[object Function]"===a.call(e),b=e=>c(e)&&p(e,"_vueTypes_name"),g=e=>c(e)&&(p(e,"type")||["_vueTypes_name","validator","default","required"].some(t=>p(e,t)));function O(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function m(e,t,r=!1){let n,i=!0,o="";n=c(e)?e:{type:e};const a=b(n)?n._vueTypes_name+" - ":"";if(g(n)&&null!==n.type){if(void 0===n.type||!0===n.type)return i;if(!n.required&&void 0===t)return i;v(n.type)?(i=n.type.some(e=>!0===m(e,t,!0)),o=n.type.map(e=>l(e)).join(" or ")):(o=l(n),i="Array"===o?v(t):"Object"===o?c(t):"String"===o||"Number"===o||"Boolean"===o||"Function"===o?function(e){if(null==e)return "";const t=e.constructor.toString().match(u);return t?t[1]:""}(t)===o:t instanceof n.type);}if(!i){const e=`${a}value "${t}" should be of type "${o}"`;return !1===r?(d(e),!1):e}if(p(n,"validator")&&h(n.validator)){const e=d,o=[];if(d=e=>{o.push(e);},i=n.validator(t),d=e,!i){const e=(o.length>1?"* ":"")+o.join("\n* ");return o.length=0,!1===r?(d(e),i):e}}return i}function j(e,t){const r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(e){return void 0===e?(p(this,"default")&&delete this.default,this):h(e)||!0===m(this,e,!0)?(this.default=v(e)?()=>[...e]:c(e)?()=>Object.assign({},e):e,this):(d(`${this._vueTypes_name} - invalid default value: "${e}"`),this)}}}),{validator:n}=r;return h(n)&&(r.validator=O(n,r)),r}function _(e,t){const r=j(e,t);return Object.defineProperty(r,"validate",{value(e){return h(this.validator)&&d(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=O(e,this),this}})}function T(e,t,n){const o=function(e){const t={};return Object.getOwnPropertyNames(e).forEach(r=>{t[r]=Object.getOwnPropertyDescriptor(e,r);}),Object.defineProperties({},t)}(t);if(o._vueTypes_name=e,!c(n))return o;const{validator:a}=n,s=r(n,i);if(h(a)){let{validator:e}=o;e&&(e=null!==(l=(u=e).__original)&&void 0!==l?l:u),o.validator=O(e?function(t){return e.call(this,t)&&a.call(this,t)}:a,o);}var u,l;return Object.assign(o,s)}function $(e){return e.replace(/^(?!\s*$)/gm," ")}const w=()=>_("any",{}),P=()=>_("function",{type:Function}),x=()=>_("boolean",{type:Boolean}),E=()=>_("string",{type:String}),N=()=>_("number",{type:Number}),q=()=>_("array",{type:Array}),A=()=>_("object",{type:Object}),V=()=>j("integer",{type:Number,validator:e=>y(e)}),S=()=>j("symbol",{validator:e=>"symbol"==typeof e});function k(e,t="custom validation failed"){if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return j(e.name||"<<anonymous function>>",{type:null,validator(r){const n=e(r);return n||d(`${this._vueTypes_name} - ${t}`),n}})}function D(e){if(!v(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.join('", "')}".`,r=e.reduce((e,t)=>{if(null!=t){const r=t.constructor;-1===e.indexOf(r)&&e.push(r);}return e},[]);return j("oneOf",{type:r.length>0?r:void 0,validator(r){const n=-1!==e.indexOf(r);return n||d(t),n}})}function L(e){if(!v(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,r=[];for(let n=0;n<e.length;n+=1){const i=e[n];if(g(i)){if(b(i)&&"oneOf"===i._vueTypes_name&&i.type){r=r.concat(i.type);continue}if(h(i.validator)&&(t=!0),!0===i.type||!i.type){d('oneOfType - invalid usage of "true" or "null" as types.');continue}r=r.concat(i.type);}else r.push(i);}r=r.filter((e,t)=>r.indexOf(e)===t);const n=r.length>0?r:null;return j("oneOfType",t?{type:n,validator(t){const r=[],n=e.some(e=>{const n=m(b(e)&&"oneOf"===e._vueTypes_name?e.type||null:e,t,!0);return "string"==typeof n&&r.push(n),!0===n});return n||d(`oneOfType - provided value does not match any of the ${r.length} passed-in validators:\n${$(r.join("\n"))}`),n}}:{type:n})}function F(e){return j("arrayOf",{type:Array,validator(t){let r="";const n=t.every(t=>(r=m(e,t,!0),!0===r));return n||d(`arrayOf - value validation error:\n${$(r)}`),n}})}function Y(e){return j("instanceOf",{type:e})}function B(e){return j("objectOf",{type:Object,validator(t){let r="";const n=Object.keys(t).every(n=>(r=m(e,t[n],!0),!0===r));return n||d(`objectOf - value validation error:\n${$(r)}`),n}})}function I(e){const t=Object.keys(e),r=t.filter(t=>{var r;return !(null===(r=e[t])||void 0===r||!r.required)}),n=j("shape",{type:Object,validator(n){if(!c(n))return !1;const i=Object.keys(n);if(r.length>0&&r.some(e=>-1===i.indexOf(e))){const e=r.filter(e=>-1===i.indexOf(e));return d(1===e.length?`shape - required property "${e[0]}" is not defined.`:`shape - required properties "${e.join('", "')}" are not defined.`),!1}return i.every(r=>{if(-1===t.indexOf(r))return !0===this._vueTypes_isLoose||(d(`shape - shape definition does not include a "${r}" property. Allowed keys: "${t.join('", "')}".`),!1);const i=m(e[r],n[r],!0);return "string"==typeof i&&d(`shape - "${r}" property validation error:\n ${$(i)}`),!0===i})}});return Object.defineProperty(n,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(n,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),n}const J=["name","validate","getter"],M=/*#__PURE__*/(()=>{var e,t;return t=e=class{static get any(){return w()}static get func(){return P().def(this.defaults.func)}static get bool(){return x().def(this.defaults.bool)}static get string(){return E().def(this.defaults.string)}static get number(){return N().def(this.defaults.number)}static get array(){return q().def(this.defaults.array)}static get object(){return A().def(this.defaults.object)}static get integer(){return V().def(this.defaults.integer)}static get symbol(){return S()}static extend(e){if(v(e))return e.forEach(e=>this.extend(e)),this;const{name:t,validate:n=!1,getter:i=!1}=e,o=r(e,J);if(p(this,t))throw new TypeError(`[VueTypes error]: Type "${t}" already defined`);const{type:a}=o;if(b(a))return delete o.type,Object.defineProperty(this,t,i?{get:()=>T(t,a,o)}:{value(...e){const r=T(t,a,o);return r.validator&&(r.validator=r.validator.bind(r,...e)),r}});let s;return s=i?{get(){const e=Object.assign({},o);return n?_(t,e):j(t,e)},enumerable:!0}:{value(...e){const r=Object.assign({},o);let i;return i=n?_(t,r):j(t,r),r.validator&&(i.validator=r.validator.bind(i,...e)),i},enumerable:!0},Object.defineProperty(this,t,s)}},e.defaults={},e.sensibleDefaults=void 0,e.config=n,e.custom=k,e.oneOf=D,e.instanceOf=Y,e.oneOfType=L,e.arrayOf=F,e.objectOf=B,e.shape=I,e.utils={validate:(e,t)=>!0===m(t,e,!0),toType:(e,t,r=!1)=>r?_(e,t):j(e,t)},t})();function R(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var r,n;return n=r=class extends M{static get sensibleDefaults(){return t({},this.defaults)}static set sensibleDefaults(r){this.defaults=!1!==r?t({},!0!==r?r:e):{};}},r.defaults=t({},e),n}class z extends(R()){}
|
|
38
38
|
|
|
39
39
|
const timelineProps = () => ({
|
|
40
|
-
mode:
|
|
41
|
-
size:
|
|
42
|
-
labelWidth:
|
|
40
|
+
mode: z.oneOf(['left', 'right']).def('left'),
|
|
41
|
+
size: z.oneOf(['normal', 'small']).def('normal'),
|
|
42
|
+
labelWidth: z.string.def(''),
|
|
43
43
|
});
|
|
44
44
|
const timelineItemProps = () => ({
|
|
45
|
-
color:
|
|
46
|
-
dot:
|
|
47
|
-
label:
|
|
45
|
+
color: z.oneOf(['blue', 'red', 'green', 'gray']).def('blue'),
|
|
46
|
+
dot: z.any.def(''),
|
|
47
|
+
label: z.any.def(''),
|
|
48
48
|
});
|
|
49
49
|
|
|
50
50
|
var _export_sfc = (sfc, props) => {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
export declare const timelineProps: () => {
|
|
3
|
+
mode: import("vue-types").VueTypeDef<string> & {
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
size: import("vue-types").VueTypeDef<string> & {
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
labelWidth: import("vue-types").VueTypeValidableDef<string> & {
|
|
10
|
+
default: string;
|
|
11
|
+
} & {
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare type TimelineProps = Partial<ExtractPropTypes<ReturnType<typeof timelineProps>>>;
|
|
16
|
+
export declare const timelineItemProps: () => {
|
|
17
|
+
color: import("vue-types").VueTypeDef<string> & {
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
dot: import("vue-types").VueTypeValidableDef<any> & {
|
|
21
|
+
default: any;
|
|
22
|
+
};
|
|
23
|
+
label: import("vue-types").VueTypeValidableDef<any> & {
|
|
24
|
+
default: any;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare type TimelineItemProps = Partial<ExtractPropTypes<ReturnType<typeof timelineItemProps>>>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
color: import("vue-types").VueTypeDef<string> & {
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
dot: import("vue-types").VueTypeValidableDef<any> & {
|
|
7
|
+
default: any;
|
|
8
|
+
};
|
|
9
|
+
label: import("vue-types").VueTypeValidableDef<any> & {
|
|
10
|
+
default: any;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
slots: Readonly<{
|
|
14
|
+
[name: string]: import("vue").Slot | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
color: import("vue-types").VueTypeDef<string> & {
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
dot: import("vue-types").VueTypeValidableDef<any> & {
|
|
21
|
+
default: any;
|
|
22
|
+
};
|
|
23
|
+
label: import("vue-types").VueTypeValidableDef<any> & {
|
|
24
|
+
default: any;
|
|
25
|
+
};
|
|
26
|
+
}>> & {}>>;
|
|
27
|
+
labelWidth: Ref<any>;
|
|
28
|
+
mode: Ref<any>;
|
|
29
|
+
offsetStyle: import("vue").ComputedRef<{
|
|
30
|
+
left: string;
|
|
31
|
+
right?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
right: string;
|
|
34
|
+
left?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
left?: undefined;
|
|
37
|
+
right?: undefined;
|
|
38
|
+
}>;
|
|
39
|
+
itemClassName: import("vue").ComputedRef<{
|
|
40
|
+
'bm-timeline-item': boolean;
|
|
41
|
+
'bm-timeline-item-has-label': any;
|
|
42
|
+
}>;
|
|
43
|
+
dotClassName: import("vue").ComputedRef<{
|
|
44
|
+
[x: string]: any;
|
|
45
|
+
'bm-timeline-item-head': boolean;
|
|
46
|
+
'bm-timeline-item-head-custom': any;
|
|
47
|
+
}>;
|
|
48
|
+
customColor: import("vue").ComputedRef<string | undefined>;
|
|
49
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
color: import("vue-types").VueTypeDef<string> & {
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
dot: import("vue-types").VueTypeValidableDef<any> & {
|
|
54
|
+
default: any;
|
|
55
|
+
};
|
|
56
|
+
label: import("vue-types").VueTypeValidableDef<any> & {
|
|
57
|
+
default: any;
|
|
58
|
+
};
|
|
59
|
+
}>>, {
|
|
60
|
+
color: string;
|
|
61
|
+
label: any;
|
|
62
|
+
dot: any;
|
|
63
|
+
}>;
|
|
64
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
mode: import("vue-types").VueTypeDef<string> & {
|
|
3
|
+
default: string;
|
|
4
|
+
};
|
|
5
|
+
size: import("vue-types").VueTypeDef<string> & {
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
labelWidth: import("vue-types").VueTypeValidableDef<string> & {
|
|
9
|
+
default: string;
|
|
10
|
+
} & {
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
mode: import("vue-types").VueTypeDef<string> & {
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
size: import("vue-types").VueTypeDef<string> & {
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
labelWidth: import("vue-types").VueTypeValidableDef<string> & {
|
|
22
|
+
default: string;
|
|
23
|
+
} & {
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
}>> & {}>>;
|
|
27
|
+
labelWidth: import("vue").Ref<string>;
|
|
28
|
+
mode: import("vue").Ref<string>;
|
|
29
|
+
className: import("vue").ComputedRef<{
|
|
30
|
+
[x: string]: boolean;
|
|
31
|
+
'bm-timeline': boolean;
|
|
32
|
+
}>;
|
|
33
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
mode: import("vue-types").VueTypeDef<string> & {
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
size: import("vue-types").VueTypeDef<string> & {
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
labelWidth: import("vue-types").VueTypeValidableDef<string> & {
|
|
41
|
+
default: string;
|
|
42
|
+
} & {
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
}>>, {
|
|
46
|
+
size: string;
|
|
47
|
+
mode: string;
|
|
48
|
+
labelWidth: string;
|
|
49
|
+
}>;
|
|
50
|
+
export default _default;
|
|
@@ -40,19 +40,16 @@ const _sfc_main$1 = {
|
|
|
40
40
|
isShow: false,
|
|
41
41
|
openShow: false
|
|
42
42
|
});
|
|
43
|
-
const observer = new IntersectionObserver(
|
|
44
|
-
(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
threshold: 0.3
|
|
54
|
-
}
|
|
55
|
-
);
|
|
43
|
+
const observer = new IntersectionObserver((entries) => {
|
|
44
|
+
entries.forEach((item) => {
|
|
45
|
+
if (item.intersectionRatio > 0.3) {
|
|
46
|
+
observerDom();
|
|
47
|
+
observer.disconnect();
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}, {
|
|
51
|
+
threshold: 0.3
|
|
52
|
+
});
|
|
56
53
|
function observerDom() {
|
|
57
54
|
if (props.line === 1) {
|
|
58
55
|
if (mySelf.value.scrollWidth > mySelf.value.clientWidth) {
|
|
@@ -68,20 +65,16 @@ const _sfc_main$1 = {
|
|
|
68
65
|
observer.disconnect();
|
|
69
66
|
});
|
|
70
67
|
let mySelf = ref();
|
|
71
|
-
watch(
|
|
72
|
-
()
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
mySelf.value && observer.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
{
|
|
82
|
-
immediate: true
|
|
83
|
-
}
|
|
84
|
-
);
|
|
68
|
+
watch(() => props.showAlways, function(showAlways) {
|
|
69
|
+
if (showAlways)
|
|
70
|
+
state.openShow = showAlways;
|
|
71
|
+
mySelf.value && observer.unobserve(mySelf.value);
|
|
72
|
+
nextTick(function() {
|
|
73
|
+
mySelf.value && observer.observe(mySelf.value);
|
|
74
|
+
});
|
|
75
|
+
}, {
|
|
76
|
+
immediate: true
|
|
77
|
+
});
|
|
85
78
|
const handleVisibleChange = (val) => {
|
|
86
79
|
state.isShow = !state.openShow ? false : val;
|
|
87
80
|
};
|
|
@@ -280,25 +273,15 @@ const _sfc_main = {
|
|
|
280
273
|
disabled: false,
|
|
281
274
|
async customRequest({ file, fileField, data }) {
|
|
282
275
|
if (file.size > state.extraConfigs.maxSize * 1024 * 1024) {
|
|
283
|
-
return methods.uploadError(
|
|
284
|
-
new Error(
|
|
285
|
-
props.customErrors?.maxSize || `\u4E0D\u80FD\u4E0A\u4F20\u5927\u4E8E${state.extraConfigs.maxSize}M\u7684\u6587\u4EF6`
|
|
286
|
-
)
|
|
287
|
-
);
|
|
276
|
+
return methods.uploadError(new Error(props.customErrors?.maxSize || `\u4E0D\u80FD\u4E0A\u4F20\u5927\u4E8E${state.extraConfigs.maxSize}M\u7684\u6587\u4EF6`));
|
|
288
277
|
}
|
|
289
278
|
if (Object.keys(state.fileList).length >= state.extraConfigs.maxCount) {
|
|
290
|
-
return methods.uploadError(
|
|
291
|
-
new Error(
|
|
292
|
-
props.customErrors?.maxCount || `\u4E0D\u80FD\u4E0A\u4F20\u591A\u4E8E${state.extraConfigs.maxCount}\u4E2A\u6587\u4EF6`
|
|
293
|
-
)
|
|
294
|
-
);
|
|
279
|
+
return methods.uploadError(new Error(props.customErrors?.maxCount || `\u4E0D\u80FD\u4E0A\u4F20\u591A\u4E8E${state.extraConfigs.maxCount}\u4E2A\u6587\u4EF6`));
|
|
295
280
|
}
|
|
296
281
|
let name = file.name;
|
|
297
282
|
let fileFormat = name.split(".").pop();
|
|
298
283
|
if (!state.uploadConfigs.accept.includes(`.${fileFormat}`)) {
|
|
299
|
-
return methods.uploadError(
|
|
300
|
-
new Error(props.customErrors?.format || `\u4E0D\u80FD\u4E0A\u4F20\u8BE5\u7C7B\u578B\u6587\u4EF6`)
|
|
301
|
-
);
|
|
284
|
+
return methods.uploadError(new Error(props.customErrors?.format || `\u4E0D\u80FD\u4E0A\u4F20\u8BE5\u7C7B\u578B\u6587\u4EF6`));
|
|
302
285
|
}
|
|
303
286
|
state.fileList[file.uid] = {
|
|
304
287
|
uid: file.uid,
|
|
@@ -395,9 +378,7 @@ const _sfc_main = {
|
|
|
395
378
|
async deleteFile(uid) {
|
|
396
379
|
let targetFile = state.fileList[uid];
|
|
397
380
|
delete state.fileList[uid];
|
|
398
|
-
const index = state.uploadedList.findIndex(
|
|
399
|
-
(ele) => ele.url === targetFile.url
|
|
400
|
-
);
|
|
381
|
+
const index = state.uploadedList.findIndex((ele) => ele.url === targetFile.url);
|
|
401
382
|
if (index !== -1) {
|
|
402
383
|
state.uploadedList.splice(index, 1);
|
|
403
384
|
}
|
|
@@ -463,78 +444,64 @@ const _sfc_main = {
|
|
|
463
444
|
}
|
|
464
445
|
},
|
|
465
446
|
handleReject(e) {
|
|
466
|
-
return methods.uploadError(
|
|
467
|
-
new Error(props.customErrors?.format || `\u4E0D\u80FD\u4E0A\u4F20\u8BE5\u7C7B\u578B\u6587\u4EF6`)
|
|
468
|
-
);
|
|
447
|
+
return methods.uploadError(new Error(props.customErrors?.format || `\u4E0D\u80FD\u4E0A\u4F20\u8BE5\u7C7B\u578B\u6587\u4EF6`));
|
|
469
448
|
}
|
|
470
449
|
};
|
|
471
|
-
watch(
|
|
472
|
-
()
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
state.fileList = {};
|
|
498
|
-
state.uploadedList = [];
|
|
499
|
-
}
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
immediate: true
|
|
503
|
-
}
|
|
504
|
-
);
|
|
505
|
-
watch(
|
|
506
|
-
[() => props.uploadProps, () => props.extraProps],
|
|
507
|
-
function([config, extra]) {
|
|
508
|
-
state.uploadConfigs = {
|
|
509
|
-
...state.uploadConfigs,
|
|
510
|
-
...config,
|
|
511
|
-
showUploadList: false
|
|
512
|
-
};
|
|
513
|
-
state.extraConfigs = {
|
|
514
|
-
...state.extraConfigs,
|
|
515
|
-
...extra
|
|
516
|
-
};
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
immediate: true,
|
|
520
|
-
deep: true
|
|
450
|
+
watch(() => props.defaultList, function(list) {
|
|
451
|
+
if (list?.length) {
|
|
452
|
+
list.forEach((item) => {
|
|
453
|
+
if (!item.uid) {
|
|
454
|
+
item.uid = utils.getuid();
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
list.forEach(function(item) {
|
|
458
|
+
let uid = item.uid || utils.getuid();
|
|
459
|
+
if (!item.url.includes("http") && !item.url.includes(CLOUND_PRE))
|
|
460
|
+
item.url = props.cloudReadUrl + item.url;
|
|
461
|
+
state.fileList[uid] = {
|
|
462
|
+
uid,
|
|
463
|
+
name: item.name,
|
|
464
|
+
url: item.url,
|
|
465
|
+
type: item.type || "png",
|
|
466
|
+
progress: 100,
|
|
467
|
+
isDoneDeloy: true
|
|
468
|
+
};
|
|
469
|
+
if (!state.uploadedList.find((item2) => item2.uid === uid)) {
|
|
470
|
+
state.uploadedList.push(item);
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
} else {
|
|
474
|
+
state.fileList = {};
|
|
475
|
+
state.uploadedList = [];
|
|
521
476
|
}
|
|
522
|
-
|
|
477
|
+
}, {
|
|
478
|
+
immediate: true
|
|
479
|
+
});
|
|
480
|
+
watch([() => props.uploadProps, () => props.extraProps], function([config, extra]) {
|
|
481
|
+
state.uploadConfigs = {
|
|
482
|
+
...state.uploadConfigs,
|
|
483
|
+
...config,
|
|
484
|
+
showUploadList: false
|
|
485
|
+
};
|
|
486
|
+
state.extraConfigs = {
|
|
487
|
+
...state.extraConfigs,
|
|
488
|
+
...extra
|
|
489
|
+
};
|
|
490
|
+
}, {
|
|
491
|
+
immediate: true,
|
|
492
|
+
deep: true
|
|
493
|
+
});
|
|
523
494
|
const uploadDisabled = computed(() => {
|
|
524
495
|
if (props.uploadProps.disabled || Object.keys(state.fileList).length >= state.extraConfigs.maxCount) {
|
|
525
496
|
return true;
|
|
526
497
|
}
|
|
527
498
|
return false;
|
|
528
499
|
});
|
|
529
|
-
watch(
|
|
530
|
-
(
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
{
|
|
535
|
-
immediate: true
|
|
536
|
-
}
|
|
537
|
-
);
|
|
500
|
+
watch(() => uploadDisabled.value, (value) => {
|
|
501
|
+
emit("updateDisabledStatus", value);
|
|
502
|
+
}, {
|
|
503
|
+
immediate: true
|
|
504
|
+
});
|
|
538
505
|
const isUploading = computed(() => {
|
|
539
506
|
let ret = false;
|
|
540
507
|
let fileList = state.fileList || {};
|
|
@@ -545,15 +512,11 @@ const _sfc_main = {
|
|
|
545
512
|
});
|
|
546
513
|
return ret;
|
|
547
514
|
});
|
|
548
|
-
watch(
|
|
549
|
-
(
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
{
|
|
554
|
-
immediate: true
|
|
555
|
-
}
|
|
556
|
-
);
|
|
515
|
+
watch(() => isUploading.value, (value) => {
|
|
516
|
+
emit("updateIsUploadingStatus", value);
|
|
517
|
+
}, {
|
|
518
|
+
immediate: true
|
|
519
|
+
});
|
|
557
520
|
return {
|
|
558
521
|
...toRefs(state),
|
|
559
522
|
icons,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const pdf = "data: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LUJhPElgbMyEbibG+DXkVheXSYUh48QiExDhAbtVQP6RODQcgJB6AMPlkzfhkSSydBOXlpTVtVlY0HAA+7uY+f7BSk66+bbkN6lJAaewCoATIvLsbAcxPIaUANwIoATLv7v43yPwUUgpw7wGUAJl3dyOA+SmkFOBGACVA5t3dCGB+CikFuBFACZB5dzcCmJ9CSgFuBFACZN6dU96++MG8CoMCsHZOBvmVQX/m3bB2zsf7zylKrHsRz76Y0lg71/HwfdLn8ccAQbwZlkNJo6IVa8bafwMo0u8qx3AUAQAAAABJRU5ErkJggg==";
|
|
3
|
+
export declare const excel = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAABJhJREFUeAHtmmtsDFEUgM/sdre7SpsttqqtXaIRQfvDD694RJAiIfH4UUl/SMMPiUTEI4QStJ6RiD8SIkKiUs8QryBKEKEkFRHxiL63pbTKatd0d92zMdfMWGt27R292zmbZs65c+/dc757zp3HVgAiedVbs0VR3EPUaQDBTGzjRYozppSvySlYEqu/Jgy+WxSrSeCFvAWPQeckOwr31V87GTMAXPkgBNNjnaAnjPsXCCYSwLSeEMS/+hArBAKAr5qPBCoWCJgBCSXRQkg4ALia0UBISADRQEhYAFohJDQALRASHsDfIPQKAJEgcA/gi78L49Mk4a4O3AOo8X3UFLzUSQ2BewA32p5DV0CU4tN0lEMQRlZtDGoa1YM7pZptMNMxGtzJ/aEf0bVKva+tPCEAaA04XD/uSyBcUNG0GQCioZWIfXt9BiSxWtU0sx2O5C6FFHMy/YqK1kdwrOU+tf+kjO3rgu2uBYrTm2rPwdOvtYq2eBjMMuCzvxNOkYDdtgH0b9XgWTDc5ozot81kgR2uhXQMjq/21jMJHh1hBgAnP9taBZXtL1ENidWUBDvdi8Ac4WsRksvWXxoCjb422FF3idrxVpgCQGc3k9T9JHqp36NSsqB40GRqyxVM/SLnBNoUCAZgQ80Z8AZ8tC3eCnMAH7u9sKXugsLvFZnTfysFKfUFQaB9j7bcg6qvNdRmoTAHgE7fan8B51ufUP+xFMrcCxWloE79l988cLDpJh3DStEFADpfVn85VM9SIKNTsmkpqFP/e6Ab1r2rADHol7ozO+oGAOsY6xnrWhIshTF9skO7vjz19zdehzdd76VuTI+6AcAosJ7l9wFYCidGLFPs+g873sLx9w+YBi2fXFcA+MUHmm7Aq85m6gNCkKSjuzOUJZKtx1F3AFjX69+dBqxztWyruwgtYoe6mamtOwCMppa8xvogflEEhkDwjk9v+S8A1mYVQFayQxErlsKuoYtAIB89RXcAk1JzodA5PmyMY/u66aUxbAcGjboCwCfEUtVT3nHydCjfD1YOngEj7fr9l46uADYPmQdOaypdxwcdb2BXwxU45LlN2yyCmZTCYrAKv64O9CQDRTcAcxx5MCc9j4bg9fugpPZ8yD7cfBdefGuk53LtGbA6axa1WSq6AHBaUgFXXy57G65C0/f2UJMf8KnvrKIUipwTYXy/YfIhTHRdAJS6F0Bakp0GgKlf0fqY2qi87mxRlALeGpeRdwfRvOdXTKjRYA6gcOA4wJ1fEnnqS23SUV0Kg6xpUKLKHKlvvI5MAbjILzVrsgsUvspTX3GCGOFKYW56Psx2jFF3jZvNDAC+9tpNdnO7yUqdDZf69ORPJVQKzZWK5pIh8yGD7CMshBmA5ZlTIS8lh/ocKfVpp5/KYc8dxVUB949S8gKFhRi/DbKgytOczEqAFwgGAF5WipWfRgawIsvLvEYG8LJSrPw0MoAVWV7mNTKAl5Vi5aeRAazI8jKvkQEAgoeX1Yq/n4IHM6Ay/hNzM2OlyWKxrCM/SH7ixuU4OYoxY+ymZ/lbG5IslnxSCuW9oxyw5IVyjBlj/wFKmHHAnlmA/gAAAABJRU5ErkJggg==";
|
|
4
|
+
export declare const doc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAABKVJREFUeAHtWrluFEEQfbuYw8bGXMKAuYXEZXAAQogExwgSiEAExERE8AuInJwA4YwEIVJHkJgbcQkhjGywwRw+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LZxDBhnxWf2ZNXn0DgBfA+h0SC9q+n//DfAR2hW9DcgWwwIzTm8tc87H0TsAVEoru1I8f2K3VbVcGatZQc/rlx8DskW+/LRr+GylBoAOchsWghoV14ZqQz5Jfh9VRuo5TK9pSSoATEhJ/FZiQZRoqrvXy11LI/+be6cCABePUnpkEuCvnOhAaMawZnihCiVz3tcxNQB0HDDKlqO/uR7FgMfyrDDLyJqSpAYAtwArQy1RBurro7+Aj87XXt9Pf/p+bGffBl1EGq2f2hYIBcgMgFA8lZaeGQPSQjaUdTMGhOKptPTMGJAWsqGsmzEgFE+lpWfGgLSQDWXdjAHyjwnq+2wofvOjJ20nA/r8LBfkKn35pkW4JKqr//AJ0pA4Sn+j7flb53KDi5vQLXTobYTtQBtpK22m7X8BXxtVZAjutWYAAAAASUVORK5CYII=";
|
|
5
|
+
export declare const others = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAAbNJREFUeAHtlTFOAkEYhWd3LaDUDYWJF7AgHsAGCjsusF6DZG1t3YO4F6CzoaYxhsILmFCQxXIJhuBMkOTFGJwdmp15/zS8bGbJfN//BiKlV54/XW2360LHgVK7S/PMlzUc3paj0d2963njPXz9psEz3+ANdJqeZ5PJy7OzgJ/JX7h+QRveO0VCrAEGbYA49QyuErQAv+78MVEuEkwDglpNJQQnwEyziYQgBTSREKwAWwlBC7CRELyA/yRQCDgmwXsBdb02fFbrr38H7wUsl5UV/GHTbwneC5jP39Vm83Xgs/pECdF4/LizeqvFm7rdjur3r1WvlyqTbVdVfZZntpvbvM/8Dsxmry5HzLy/Ai7U+I4IQBuMWRrAOHVklgagDcYsDWCcOjJLA9AGY5YGME4dmaUBaIMxSwMYp47M0gC0wZilAYxTR2ZpANpgzNIAxqkjszQAbTBmaQDj1JFZGoA2GLM0gHHqyCwNQBuMWRrAOHVklgagDcYsDWCcOjJLA9AGY9YNiBaM4HvmaGGuwJRXgJrGSdLJtYAVoYSVYY+L4uEjSbo3+iqUHNfBXPmoNMyG/RuvFms2+co7XAAAAABJRU5ErkJggg==";
|
|
6
|
+
declare const _default: {
|
|
7
|
+
pdf: string;
|
|
8
|
+
ppt: string;
|
|
9
|
+
excel: string;
|
|
10
|
+
doc: string;
|
|
11
|
+
others: string;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
components: {
|
|
4
|
+
PlusOutlined: import("@ant-design/icons-vue/lib/icons/PlusOutlined").PlusOutlinedIconType;
|
|
5
|
+
OverTooltips: any;
|
|
6
|
+
UploadOutlined: import("@ant-design/icons-vue/lib/icons/UploadOutlined").UploadOutlinedIconType;
|
|
7
|
+
LoadingOutlined: import("@ant-design/icons-vue/lib/icons/LoadingOutlined").LoadingOutlinedIconType;
|
|
8
|
+
};
|
|
9
|
+
props: {
|
|
10
|
+
uploadProps: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
default: () => {};
|
|
13
|
+
};
|
|
14
|
+
extraProps: {
|
|
15
|
+
type: ObjectConstructor;
|
|
16
|
+
default: () => {};
|
|
17
|
+
};
|
|
18
|
+
defaultList: {
|
|
19
|
+
type: ArrayConstructor;
|
|
20
|
+
default: () => never[];
|
|
21
|
+
};
|
|
22
|
+
uploadRequest: {
|
|
23
|
+
type: (file: File, config: Record<string, any>) => Promise<{
|
|
24
|
+
[prop: string]: any;
|
|
25
|
+
url: string;
|
|
26
|
+
}>;
|
|
27
|
+
default(): () => void;
|
|
28
|
+
};
|
|
29
|
+
cloudReadUrl: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
holdProgress: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
customErrors: {
|
|
38
|
+
type: ObjectConstructor;
|
|
39
|
+
default(): undefined;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
emits: string[];
|
|
43
|
+
setup(props: any, { emit }: {
|
|
44
|
+
emit: any;
|
|
45
|
+
}): {
|
|
46
|
+
uploadDisabled: import("vue").ComputedRef<boolean>;
|
|
47
|
+
updateUploadProgress(file: any, progress: any): void;
|
|
48
|
+
customUploadRequest(file: any): void;
|
|
49
|
+
fileIsDelete(file: any): boolean;
|
|
50
|
+
uploadSuccess(data: any, file: any): void;
|
|
51
|
+
uploadError(error: any, file?: any): void;
|
|
52
|
+
deleteFile(uid: any): Promise<void>;
|
|
53
|
+
pictureHoverEnter(uid: string): void;
|
|
54
|
+
pictureHoverLeave(uid: string): void;
|
|
55
|
+
viewOnePicture(item: any): void;
|
|
56
|
+
handleClosePictureView(): void;
|
|
57
|
+
reUpload(e: any, uid: any): void;
|
|
58
|
+
paste(event: ClipboardEvent): void;
|
|
59
|
+
handleReject(e: any): void;
|
|
60
|
+
icons: {
|
|
61
|
+
pdf: string;
|
|
62
|
+
ppt: string;
|
|
63
|
+
excel: string;
|
|
64
|
+
doc: string;
|
|
65
|
+
others: string;
|
|
66
|
+
};
|
|
67
|
+
uploadBarColor: import("vue").Ref<string>;
|
|
68
|
+
uploadedList: import("vue").Ref<any[]>;
|
|
69
|
+
fileList: import("vue").Ref<{}>;
|
|
70
|
+
onepViewImageHover: import("vue").Ref<{}>;
|
|
71
|
+
previewVisible: import("vue").Ref<boolean>;
|
|
72
|
+
onepViewImage: import("vue").Ref<{}>;
|
|
73
|
+
extraConfigs: import("vue").Ref<{
|
|
74
|
+
maxSize: number;
|
|
75
|
+
maxCount: number;
|
|
76
|
+
isAllowDownloadFieldProps: boolean;
|
|
77
|
+
hideDisabledBtn: boolean;
|
|
78
|
+
tips: string;
|
|
79
|
+
showTips: boolean;
|
|
80
|
+
btnClass: string;
|
|
81
|
+
picClass: string;
|
|
82
|
+
alignCenter: boolean;
|
|
83
|
+
canNotViewAccept: string;
|
|
84
|
+
myBtn: boolean;
|
|
85
|
+
}>;
|
|
86
|
+
uploadConfigs: import("vue").Ref<{
|
|
87
|
+
multiple: boolean;
|
|
88
|
+
showUploadList: boolean;
|
|
89
|
+
showSlotList: boolean;
|
|
90
|
+
listType: string;
|
|
91
|
+
text: string;
|
|
92
|
+
accept: string;
|
|
93
|
+
data: {};
|
|
94
|
+
name: string;
|
|
95
|
+
disabled: boolean;
|
|
96
|
+
customRequest: ({ file, fileField, data }: {
|
|
97
|
+
file: any;
|
|
98
|
+
fileField: any;
|
|
99
|
+
data: any;
|
|
100
|
+
}) => Promise<void>;
|
|
101
|
+
}>;
|
|
102
|
+
pictureFileTypes: import("vue").Ref<string[]>;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export default _default;
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function uniqueId(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const withInstall: (comp: any) => any;
|