ui-process-h5 0.1.12 → 0.1.13
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/lib/index.common.js +3491 -7
- package/lib/index.esm.js +1 -1
- package/lib/index.umd.js +3491 -7
- package/lib/index.umd.min.js +1 -1
- package/lib/process/src/process.vue.d.ts +3 -2
- package/package.json +1 -1
package/lib/index.umd.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["index"]=t(require("vue")):e["index"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(){"use strict";var t={744:function(e,t){t.Z=(e,t)=>{const r=e.__vccOpts||e;for(const[o,n]of t)r[o]=n;return r}},203:function(t){t.exports=e}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var c=r[e]={exports:{}};return t[e](c,c.exports,o),c.exports}!function(){o.d=function(e,t){for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){o.p=""}();var n={};return function(){if(o.r(n),o.d(n,{TopsProcess:function(){return a},TopsTap:function(){return b},default:function(){return E}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(o.p=t[1])}var r=o(203);const c={class:"process-warp"};function s(e,t,o,n,s,u){return(0,r.openBlock)(),(0,r.createElementBlock)("div",c,(0,r.toDisplayString)(n.host)+" ",1)}var u={name:"tops-process",props:{processId:{require:!0,default:"",type:String},processDefId:{require:!0,default:"",type:String},taskId:{require:!0,default:"",type:String}},setup(e){const t=(0,r.ref)(""),o=(0,r.ref)({NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_BASE_URL||"123333");return(0,r.watch)((()=>e.processId),((e,t)=>{})),{processStatus:t,host:o}},methods:{getColor(e){return"审核中"==e?"#FFA52D":"已驳回"==e?"#F14B4C":"已撤销"==e?"#CECECE":"已完成"==e?"#6DC743":"#1389FF"}}},i=o(744);const p=(0,i.Z)(u,[["render",s]]);var f=p,a=f;const d={class:"tops-tab"};function l(e,t,o,n,c,s){return(0,r.openBlock)(),(0,r.createElementBlock)("div",d,"tops-tab")}var y={name:"tops-tab",props:{tapList:{type:Array,default:()=>[]}}};const v=(0,i.Z)(y,[["render",l]]);var m=v,b=m;const S=[a,b],x=e=>{S.map((t=>e.component(t.name,t)))};var g={install:x},E=g}(),n}()}));
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["index"]=t(require("vue")):e["index"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(){"use strict";var t={744:function(e,t){t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},203:function(t){t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var s=n[e]={exports:{}};return t[e](s,s.exports,r),s.exports}!function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){r.p=""}();var o={};return function(){if(r.r(o),r.d(o,{TopsProcess:function(){return nn},TopsTap:function(){return un},default:function(){return pn}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(r.p=t[1])}var n=r(203);const s={class:"process-warp"},i={key:0,class:"process-main"},a={class:"process-ml-item border"},c=(0,n.createElementVNode)("div",{class:"process-mli-name"},"流程状态",-1),u={class:"process-mli-value"},l={class:"process-ml-item border"},f=(0,n.createElementVNode)("div",{class:"process-mli-name"},"流程发起时间",-1),d={class:"process-mli-value"},p={key:0,class:"process-ml-item"},h=(0,n.createElementVNode)("div",{class:"process-mli-name"},"审批节点",-1),m={class:"process-mli-value"},y={class:"process-mliv-jd"};function g(e,t,r,o,g,b){return(0,n.openBlock)(),(0,n.createElementBlock)("div",s,[(0,n.createTextVNode)((0,n.toDisplayString)(o.HOST)+" "+(0,n.toDisplayString)(o.BASE)+" ",1),o.processStatus.status?((0,n.openBlock)(),(0,n.createElementBlock)("div",i,[(0,n.createElementVNode)("div",a,[c,(0,n.createElementVNode)("div",u,[o.processStatus.status||o.processStatus.bizStatusName?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"process-mliv-dd",style:(0,n.normalizeStyle)({background:b.getColor(o.processStatus.status)})},(0,n.toDisplayString)(o.processStatus.bizStatusName?o.processStatus.bizStatusName:o.processStatus.status),5)):(0,n.createCommentVNode)("",!0)])]),(0,n.createElementVNode)("div",l,[f,(0,n.createElementVNode)("div",d,[(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(o.processStatus.createTime),1)])]),o.processStatus.allUserNames&&o.processStatus.allUserNames.length?((0,n.openBlock)(),(0,n.createElementBlock)("div",p,[h,(0,n.createElementVNode)("div",m,[(0,n.createElementVNode)("span",y,(0,n.toDisplayString)(`${4==o.processStatus.taskState?o.processStatus.currUserName:o.processStatus.allUserNames.toString()}审批中`),1)])])):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0)])}function b(e,t){return function(){return e.apply(t,arguments)}}const{toString:E}=Object.prototype,{getPrototypeOf:w}=Object,S=(e=>t=>{const n=E.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),O=e=>(e=e.toLowerCase(),t=>S(t)===e),v=e=>t=>typeof t===e,{isArray:R}=Array,A=v("undefined");function N(e){return null!==e&&!A(e)&&null!==e.constructor&&!A(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const T=O("ArrayBuffer");function P(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&T(e.buffer),t}const j=v("string"),x=v("function"),C=v("number"),_=e=>null!==e&&"object"===typeof e,B=e=>!0===e||!1===e,U=e=>{if("object"!==S(e))return!1;const t=w(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},D=O("Date"),F=O("File"),L=O("Blob"),k=O("FileList"),I=e=>_(e)&&x(e.pipe),q=e=>{const t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||E.call(e)===t||x(e.toString)&&e.toString()===t)},V=O("URLSearchParams"),z=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function M(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let r,o;if("object"!==typeof e&&(e=[e]),R(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function H(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;while(o-- >0)if(r=n[o],t===r.toLowerCase())return r;return null}const J=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),W=e=>!A(e)&&e!==J;function K(){const{caseless:e}=W(this)&&this||{},t={},n=(n,r)=>{const o=e&&H(t,r)||r;U(t[o])&&U(n)?t[o]=K(t[o],n):U(n)?t[o]=K({},n):R(n)?t[o]=n.slice():t[o]=n};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&M(arguments[r],n);return t}const $=(e,t,n,{allOwnKeys:r}={})=>(M(t,((t,r)=>{n&&x(t)?e[r]=b(t,n):e[r]=t}),{allOwnKeys:r}),e),G=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),X=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Z=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{o=Object.getOwnPropertyNames(e),s=o.length;while(s-- >0)i=o[s],r&&!r(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==n&&w(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Q=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},Y=e=>{if(!e)return null;if(R(e))return e;let t=e.length;if(!C(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},ee=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&w(Uint8Array)),te=(e,t)=>{const n=e&&e[Symbol.iterator],r=n.call(e);let o;while((o=r.next())&&!o.done){const n=o.value;t.call(e,n[0],n[1])}},ne=(e,t)=>{let n;const r=[];while(null!==(n=e.exec(t)))r.push(n);return r},re=O("HTMLFormElement"),oe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),se=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ie=O("RegExp"),ae=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};M(n,((n,o)=>{!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)},ce=e=>{ae(e,((t,n)=>{if(x(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];x(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},ue=(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return R(e)?r(e):r(String(e).split(t)),n},le=()=>{},fe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),de="abcdefghijklmnopqrstuvwxyz",pe="0123456789",he={DIGIT:pe,ALPHA:de,ALPHA_DIGIT:de+de.toUpperCase()+pe},me=(e=16,t=he.ALPHA_DIGIT)=>{let n="";const{length:r}=t;while(e--)n+=t[Math.random()*r|0];return n};function ye(e){return!!(e&&x(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const ge=e=>{const t=new Array(10),n=(e,r)=>{if(_(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=R(e)?[]:{};return M(e,((e,t)=>{const s=n(e,r+1);!A(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)};var be={isArray:R,isArrayBuffer:T,isBuffer:N,isFormData:q,isArrayBufferView:P,isString:j,isNumber:C,isBoolean:B,isObject:_,isPlainObject:U,isUndefined:A,isDate:D,isFile:F,isBlob:L,isRegExp:ie,isFunction:x,isStream:I,isURLSearchParams:V,isTypedArray:ee,isFileList:k,forEach:M,merge:K,extend:$,trim:z,stripBOM:G,inherits:X,toFlatObject:Z,kindOf:S,kindOfTest:O,endsWith:Q,toArray:Y,forEachEntry:te,matchAll:ne,isHTMLForm:re,hasOwnProperty:se,hasOwnProp:se,reduceDescriptors:ae,freezeMethods:ce,toObjectSet:ue,toCamelCase:oe,noop:le,toFiniteNumber:fe,findKey:H,global:J,isContextDefined:W,ALPHABET:he,generateString:me,isSpecCompliantForm:ye,toJSONObject:ge};function Ee(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}be.inherits(Ee,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:be.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const we=Ee.prototype,Se={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Se[e]={value:e}})),Object.defineProperties(Ee,Se),Object.defineProperty(we,"isAxiosError",{value:!0}),Ee.from=(e,t,n,r,o,s)=>{const i=Object.create(we);return be.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Ee.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};var Oe=Ee,ve=null;function Re(e){return be.isPlainObject(e)||be.isArray(e)}function Ae(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function Ne(e,t,n){return e?e.concat(t).map((function(e,t){return e=Ae(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function Te(e){return be.isArray(e)&&!e.some(Re)}const Pe=be.toFlatObject(be,{},null,(function(e){return/^is[A-Z]/.test(e)}));function je(e,t,n){if(!be.isObject(e))throw new TypeError("target must be an object");t=t||new(ve||FormData),n=be.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!be.isUndefined(t[e])}));const r=n.metaTokens,o=n.visitor||l,s=n.dots,i=n.indexes,a=n.Blob||"undefined"!==typeof Blob&&Blob,c=a&&be.isSpecCompliantForm(t);if(!be.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(be.isDate(e))return e.toISOString();if(!c&&be.isBlob(e))throw new Oe("Blob is not supported. Use a Buffer instead.");return be.isArrayBuffer(e)||be.isTypedArray(e)?c&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let a=e;if(e&&!o&&"object"===typeof e)if(be.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(be.isArray(e)&&Te(e)||(be.isFileList(e)||be.endsWith(n,"[]"))&&(a=be.toArray(e)))return n=Ae(n),a.forEach((function(e,r){!be.isUndefined(e)&&null!==e&&t.append(!0===i?Ne([n],r,s):null===i?n:n+"[]",u(e))})),!1;return!!Re(e)||(t.append(Ne(o,n,s),u(e)),!1)}const f=[],d=Object.assign(Pe,{defaultVisitor:l,convertValue:u,isVisitable:Re});function p(e,n){if(!be.isUndefined(e)){if(-1!==f.indexOf(e))throw Error("Circular reference detected in "+n.join("."));f.push(e),be.forEach(e,(function(e,r){const s=!(be.isUndefined(e)||null===e)&&o.call(t,e,be.isString(r)?r.trim():r,n,d);!0===s&&p(e,n?n.concat(r):[r])})),f.pop()}}if(!be.isObject(e))throw new TypeError("data must be an object");return p(e),t}var xe=je;function Ce(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function _e(e,t){this._pairs=[],e&&xe(e,this,t)}const Be=_e.prototype;Be.append=function(e,t){this._pairs.push([e,t])},Be.toString=function(e){const t=e?function(t){return e.call(this,t,Ce)}:Ce;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Ue=_e;function De(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Fe(e,t,n){if(!t)return e;const r=n&&n.encode||De,o=n&&n.serialize;let s;if(s=o?o(t,n):be.isURLSearchParams(t)?t.toString():new Ue(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}class Le{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){be.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var ke=Le,Ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qe="undefined"!==typeof URLSearchParams?URLSearchParams:Ue,Ve="undefined"!==typeof FormData?FormData:null,ze="undefined"!==typeof Blob?Blob:null;const Me=(()=>{let e;return("undefined"===typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!==typeof window&&"undefined"!==typeof document)})(),He=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)();var Je={isBrowser:!0,classes:{URLSearchParams:qe,FormData:Ve,Blob:ze},isStandardBrowserEnv:Me,isStandardBrowserWebWorkerEnv:He,protocols:["http","https","file","blob","url","data"]};function We(e,t){return xe(e,new Je.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Je.isNode&&be.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function Ke(e){return be.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function $e(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function Ge(e){function t(e,n,r,o){let s=e[o++];const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&be.isArray(r)?r.length:s,a)return be.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i;r[s]&&be.isObject(r[s])||(r[s]=[]);const c=t(e,n,r[s],o);return c&&be.isArray(r[s])&&(r[s]=$e(r[s])),!i}if(be.isFormData(e)&&be.isFunction(e.entries)){const n={};return be.forEachEntry(e,((e,r)=>{t(Ke(e),r,n,0)})),n}return null}var Xe=Ge;const Ze={"Content-Type":void 0};function Qe(e,t,n){if(be.isString(e))try{return(t||JSON.parse)(e),be.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}const Ye={transitional:Ie,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=be.isObject(e);o&&be.isHTMLForm(e)&&(e=new FormData(e));const s=be.isFormData(e);if(s)return r&&r?JSON.stringify(Xe(e)):e;if(be.isArrayBuffer(e)||be.isBuffer(e)||be.isStream(e)||be.isFile(e)||be.isBlob(e))return e;if(be.isArrayBufferView(e))return e.buffer;if(be.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return We(e,this.formSerializer).toString();if((i=be.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return xe(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),Qe(e)):e}],transformResponse:[function(e){const t=this.transitional||Ye.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&be.isString(e)&&(n&&!this.responseType||r)){const n=t&&t.silentJSONParsing,s=!n&&r;try{return JSON.parse(e)}catch(o){if(s){if("SyntaxError"===o.name)throw Oe.from(o,Oe.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Je.classes.FormData,Blob:Je.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};be.forEach(["delete","get","head"],(function(e){Ye.headers[e]={}})),be.forEach(["post","put","patch"],(function(e){Ye.headers[e]=be.merge(Ze)}));var et=Ye;const tt=be.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var nt=e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&tt[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t};const rt=Symbol("internals");function ot(e){return e&&String(e).trim().toLowerCase()}function st(e){return!1===e||null==e?e:be.isArray(e)?e.map(st):String(e)}function it(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(e))t[r[1]]=r[2];return t}const at=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ct(e,t,n,r,o){return be.isFunction(r)?r.call(this,t,n):(o&&(t=n),be.isString(t)?be.isString(r)?-1!==t.indexOf(r):be.isRegExp(r)?r.test(t):void 0:void 0)}function ut(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function lt(e,t){const n=be.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}class ft{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ot(t);if(!o)throw new Error("header name must be a non-empty string");const s=be.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=st(e))}const s=(e,t)=>be.forEach(e,((e,n)=>o(e,n,t)));return be.isPlainObject(e)||e instanceof this.constructor?s(e,t):be.isString(e)&&(e=e.trim())&&!at(e)?s(nt(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=ot(e),e){const n=be.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return it(e);if(be.isFunction(t))return t.call(this,e,n);if(be.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ot(e),e){const n=be.findKey(this,e);return!(!n||void 0===this[n]||t&&!ct(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ot(e),e){const o=be.findKey(n,e);!o||t&&!ct(n,n[o],o,t)||(delete n[o],r=!0)}}return be.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;while(n--){const o=t[n];e&&!ct(this,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return be.forEach(this,((r,o)=>{const s=be.findKey(n,o);if(s)return t[s]=st(r),void delete t[o];const i=e?ut(o):String(o).trim();i!==o&&delete t[o],t[i]=st(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return be.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&be.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=this[rt]=this[rt]={accessors:{}},n=t.accessors,r=this.prototype;function o(e){const t=ot(e);n[t]||(lt(r,e),n[t]=!0)}return be.isArray(e)?e.forEach(o):o(e),this}}ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),be.freezeMethods(ft.prototype),be.freezeMethods(ft);var dt=ft;function pt(e,t){const n=this||et,r=t||n,o=dt.from(r.headers);let s=r.data;return be.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function ht(e){return!(!e||!e.__CANCEL__)}function mt(e,t,n){Oe.call(this,null==e?"canceled":e,Oe.ERR_CANCELED,t,n),this.name="CanceledError"}be.inherits(mt,Oe,{__CANCEL__:!0});var yt=mt;function gt(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Oe("Request failed with status code "+n.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var bt=Je.isStandardBrowserEnv?function(){return{write:function(e,t,n,r,o,s){const i=[];i.push(e+"="+encodeURIComponent(t)),be.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),be.isString(r)&&i.push("path="+r),be.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Et(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wt(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function St(e,t){return e&&!Et(t)?wt(e,t):t}var Ot=Je.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=be.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}();function vt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Rt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[i];o||(o=c),n[s]=a,r[s]=c;let l=i,f=0;while(l!==s)f+=n[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}var At=Rt;function Nt(e,t){let n=0;const r=At(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,c=r(a),u=s<=i;n=s;const l={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&u?(i-s)/c:void 0,event:o};l[t?"download":"upload"]=!0,e(l)}}const Tt="undefined"!==typeof XMLHttpRequest;var Pt=Tt&&function(e){return new Promise((function(t,n){let r=e.data;const o=dt.from(e.headers).normalize(),s=e.responseType;let i;function a(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}be.isFormData(r)&&(Je.isStandardBrowserEnv||Je.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const u=St(e.baseURL,e.url);function l(){if(!c)return;const r=dt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),o=s&&"text"!==s&&"json"!==s?c.response:c.responseText,i={data:o,status:c.status,statusText:c.statusText,headers:r,config:e,request:c};gt((function(e){t(e),a()}),(function(e){n(e),a()}),i),c=null}if(c.open(e.method.toUpperCase(),Fe(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(n(new Oe("Request aborted",Oe.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new Oe("Network Error",Oe.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Ie;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Oe(t,r.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,c)),c=null},Je.isStandardBrowserEnv){const t=(e.withCredentials||Ot(u))&&e.xsrfCookieName&&bt.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in c&&be.forEach(o.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),be.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&"json"!==s&&(c.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&c.addEventListener("progress",Nt(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Nt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{c&&(n(!t||t.type?new yt(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const f=vt(u);f&&-1===Je.protocols.indexOf(f)?n(new Oe("Unsupported protocol "+f+":",Oe.ERR_BAD_REQUEST,e)):c.send(r||null)}))};const jt={http:ve,xhr:Pt};be.forEach(jt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));var xt={getAdapter:e=>{e=be.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;o<t;o++)if(n=e[o],r=be.isString(n)?jt[n.toLowerCase()]:n)break;if(!r){if(!1===r)throw new Oe(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(be.hasOwnProp(jt,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!be.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:jt};function Ct(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yt(null,e)}function _t(e){Ct(e),e.headers=dt.from(e.headers),e.data=pt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=xt.getAdapter(e.adapter||et.adapter);return t(e).then((function(t){return Ct(e),t.data=pt.call(e,e.transformResponse,t),t.headers=dt.from(t.headers),t}),(function(t){return ht(t)||(Ct(e),t&&t.response&&(t.response.data=pt.call(e,e.transformResponse,t.response),t.response.headers=dt.from(t.response.headers))),Promise.reject(t)}))}const Bt=e=>e instanceof dt?e.toJSON():e;function Ut(e,t){t=t||{};const n={};function r(e,t,n){return be.isPlainObject(e)&&be.isPlainObject(t)?be.merge.call({caseless:n},e,t):be.isPlainObject(t)?be.merge({},t):be.isArray(t)?t.slice():t}function o(e,t,n){return be.isUndefined(t)?be.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function s(e,t){if(!be.isUndefined(t))return r(void 0,t)}function i(e,t){return be.isUndefined(t)?be.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(Bt(e),Bt(t),!0)};return be.forEach(Object.keys(e).concat(Object.keys(t)),(function(r){const s=c[r]||o,i=s(e[r],t[r],r);be.isUndefined(i)&&s!==a||(n[r]=i)})),n}const Dt="1.3.5",Ft={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ft[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Lt={};function kt(e,t,n){if("object"!==typeof e)throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;while(o-- >0){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new Oe("option "+s+" must be "+n,Oe.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Oe("Unknown option "+s,Oe.ERR_BAD_OPTION)}}Ft.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Dt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new Oe(r(o," has been removed"+(t?" in "+t:"")),Oe.ERR_DEPRECATED);return t&&!Lt[o]&&(Lt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}};var It={assertOptions:kt,validators:Ft};const qt=It.validators;class Vt{constructor(e){this.defaults=e,this.interceptors={request:new ke,response:new ke}}request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=Ut(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;let s;void 0!==n&&It.assertOptions(n,{silentJSONParsing:qt.transitional(qt.boolean),forcedJSONParsing:qt.transitional(qt.boolean),clarifyTimeoutError:qt.transitional(qt.boolean)},!1),null!=r&&(be.isFunction(r)?t.paramsSerializer={serialize:r}:It.assertOptions(r,{encode:qt.function,serialize:qt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase(),s=o&&be.merge(o.common,o[t.method]),s&&be.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=dt.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!a){const e=[_t.bind(this),void 0];e.unshift.apply(e,i),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);while(f<l)u=u.then(e[f++],e[f++]);return u}l=i.length;let d=t;f=0;while(f<l){const e=i[f++],t=i[f++];try{d=e(d)}catch(p){t.call(this,p);break}}try{u=_t.call(this,d)}catch(p){return Promise.reject(p)}f=0,l=c.length;while(f<l)u=u.then(c[f++],c[f++]);return u}getUri(e){e=Ut(this.defaults,e);const t=St(e.baseURL,e.url);return Fe(t,e.params,e.paramsSerializer)}}be.forEach(["delete","get","head","options"],(function(e){Vt.prototype[e]=function(t,n){return this.request(Ut(n||{},{method:e,url:t,data:(n||{}).data}))}})),be.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ut(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Vt.prototype[e]=t(),Vt.prototype[e+"Form"]=t(!0)}));var zt=Vt;class Mt{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new yt(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new Mt((function(t){e=t}));return{token:t,cancel:e}}}var Ht=Mt;function Jt(e){return function(t){return e.apply(null,t)}}function Wt(e){return be.isObject(e)&&!0===e.isAxiosError}const Kt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Kt).forEach((([e,t])=>{Kt[t]=e}));var $t=Kt;function Gt(e){const t=new zt(e),n=b(zt.prototype.request,t);return be.extend(n,zt.prototype,t,{allOwnKeys:!0}),be.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Gt(Ut(e,t))},n}const Xt=Gt(et);Xt.Axios=zt,Xt.CanceledError=yt,Xt.CancelToken=Ht,Xt.isCancel=ht,Xt.VERSION=Dt,Xt.toFormData=xe,Xt.AxiosError=Oe,Xt.Cancel=Xt.CanceledError,Xt.all=function(e){return Promise.all(e)},Xt.spread=Jt,Xt.isAxiosError=Wt,Xt.mergeConfig=Ut,Xt.AxiosHeaders=dt,Xt.formToJSON=e=>Xe(be.isHTMLForm(e)?new FormData(e):e),Xt.HttpStatusCode=$t,Xt.default=Xt;var Zt=Xt,Qt={name:"tops-process",props:{processId:{require:!0,default:"",type:String},processDefId:{require:!0,default:"",type:String},taskId:{require:!0,default:"",type:String}},setup(e){const t=(0,n.ref)({}),r=(0,n.ref)({NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_BASE_URL||"process.env.VUE_APP_BASE_URL "),o=(0,n.ref)({NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_H5_HOST||"process.env.VUE_APP_H5_HOST");return(0,n.watch)((()=>e.processId),((e,n)=>{e&&Zt.get(`${o}/${r}/aws/pis/getProcessStatus?processInstId=44cdbdaa-b349-44ec-94d9-04827e0a11f2&taskId=80781ede-b00b-4d07-9d46-8893846a0c7a`).then((e=>{console.log("res:::",e),t.value=e.data}))})),{processStatus:t,BASE:r,HOST:o}},methods:{getColor(e){return"审核中"==e?"#FFA52D":"已驳回"==e?"#F14B4C":"已撤销"==e?"#CECECE":"已完成"==e?"#6DC743":"#1389FF"}}},Yt=r(744);const en=(0,Yt.Z)(Qt,[["render",g]]);var tn=en,nn=tn;const rn={class:"tops-tab"};function on(e,t,r,o,s,i){return(0,n.openBlock)(),(0,n.createElementBlock)("div",rn,"tops-tab")}var sn={name:"tops-tab",props:{tapList:{type:Array,default:()=>[]}}};const an=(0,Yt.Z)(sn,[["render",on]]);var cn=an,un=cn;const ln=[nn,un],fn=e=>{ln.map((t=>e.component(t.name,t)))};var dn={install:fn},pn=dn}(),o}()}));
|
|
2
2
|
//# sourceMappingURL=index.umd.min.js.map
|
|
@@ -18,8 +18,9 @@ declare const _default: {
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
setup(props: any): {
|
|
21
|
-
processStatus:
|
|
22
|
-
|
|
21
|
+
processStatus: any;
|
|
22
|
+
BASE: any;
|
|
23
|
+
HOST: any;
|
|
23
24
|
};
|
|
24
25
|
methods: {
|
|
25
26
|
getColor(status: string): "#FFA52D" | "#F14B4C" | "#CECECE" | "#6DC743" | "#1389FF";
|