@kyfe/hroa-ui 1.0.2 → 1.0.4

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.
Files changed (64) hide show
  1. package/dist/hroa-ui.common.js +3262 -265
  2. package/dist/hroa-ui.css +1 -1
  3. package/dist/hroa-ui.umd.js +3262 -265
  4. package/dist/hroa-ui.umd.min.js +2 -2
  5. package/lib/getJsModule/index.css +1 -1
  6. package/lib/getJsModule/index.js +2 -2
  7. package/lib/hr-add-list/index.js +1 -1
  8. package/lib/hr-bottom-button/index.css +1 -1
  9. package/lib/hr-bottom-button/index.js +1 -1
  10. package/lib/hr-breadcrumb/index.css +1 -1
  11. package/lib/hr-breadcrumb/index.js +2 -2
  12. package/lib/hr-button/index.js +1 -1
  13. package/lib/hr-clipboard/index.js +1 -1
  14. package/lib/hr-condition-filtrate/index.js +1 -1
  15. package/lib/hr-condition-filtrate-popup/index.js +1 -1
  16. package/lib/hr-elasticity-box/index.js +1 -1
  17. package/lib/hr-elasticity-box-item/index.js +1 -1
  18. package/lib/hr-emotional-picture/index.js +1 -1
  19. package/lib/hr-employee-choose/index.js +1 -1
  20. package/lib/hr-file-list/index.css +1 -0
  21. package/lib/hr-file-list/index.js +1 -0
  22. package/lib/hr-img-list/index.js +1 -1
  23. package/lib/hr-info-card/index.js +1 -1
  24. package/lib/hr-information/index.js +1 -1
  25. package/lib/hr-license-plate-number/index.js +1 -1
  26. package/lib/hr-module-card/index.js +1 -1
  27. package/lib/hr-multiterm-choose/index.js +1 -1
  28. package/lib/hr-no-data/index.js +1 -1
  29. package/lib/hr-notice-bar/index.js +1 -1
  30. package/lib/hr-open-ks/index.js +1 -1
  31. package/lib/hr-pager/index.js +1 -1
  32. package/lib/hr-popup/index.js +1 -1
  33. package/lib/hr-preview-file/index.js +1 -1
  34. package/lib/hr-rate/index.js +1 -1
  35. package/lib/hr-reason-textarea/index.js +1 -1
  36. package/lib/hr-search-input/index.js +1 -1
  37. package/lib/hr-select/index.js +1 -1
  38. package/lib/hr-select-list/index.css +1 -1
  39. package/lib/hr-select-list/index.js +2 -2
  40. package/lib/hr-single-choose/index.css +1 -1
  41. package/lib/hr-single-choose/index.js +1 -1
  42. package/lib/hr-slide-pager/index.js +1 -1
  43. package/lib/hr-sort/index.js +1 -1
  44. package/lib/hr-stack-image/index.js +1 -1
  45. package/lib/hr-tab-nav/index.css +1 -1
  46. package/lib/hr-tab-nav/index.js +1 -1
  47. package/lib/hr-view-item/index.js +1 -1
  48. package/lib/index/index.css +1 -1
  49. package/lib/index/index.js +2 -2
  50. package/lib/utils/index.js +1 -1
  51. package/package.json +1 -1
  52. package/packages/hr-bottom-button/src/index.vue +32 -13
  53. package/packages/hr-breadcrumb/src/index.vue +2 -2
  54. package/packages/hr-file-list/index.js +3 -0
  55. package/packages/hr-file-list/src/file-type/other.vue +45 -0
  56. package/packages/hr-file-list/src/file-type/picture.vue +38 -0
  57. package/packages/hr-file-list/src/file-type/video.vue +60 -0
  58. package/packages/hr-file-list/src/index.vue +246 -0
  59. package/packages/hr-file-list/src/utils/enum.js +95 -0
  60. package/packages/hr-file-list/src/utils/fun.js +16 -0
  61. package/packages/hr-file-list//346/226/207/344/273/266/345/210/227/350/241/250.md +0 -0
  62. package/packages/hr-select-list/src/index.vue +29 -11
  63. package/packages/hr-single-choose/src/index.vue +24 -6
  64. package/packages/hr-tab-nav/src/index.vue +4 -3
@@ -1 +1 @@
1
- (function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["hroa-ui@1.0.1"]=n():t["hroa-ui@1.0.1"]=n()})(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/",e(e.s="e74d")}({"0244":function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"04cf":function(t,n,e){var r=e("4a89"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"08c1":function(t,n,e){"use strict";var r,o,i,c,u=e("e6a1"),f=e("b808"),a=e("a9f2"),s=e("a274"),l=e("569f"),p=e("ab4c"),d=e("9184"),v=e("8115"),h=e("88b8"),b=e("1aa7"),y=e("1ad4").set,m=e("a24c")(),x=e("cc20"),g=e("73c3"),_=e("4b9e"),w=e("1c08"),j="Promise",O=f.TypeError,S=f.process,E=S&&S.versions,P=E&&E.v8||"",k=f[j],T="process"==s(S),F=function(){},M=o=x.f,I=!!function(){try{var t=k.resolve(1),n=(t.constructor={})[e("b67f")("species")]=function(t){t(F,F)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(F)instanceof n&&0!==P.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(r){}}(),A=function(t){var n;return!(!p(t)||"function"!=typeof(n=t.then))&&n},R=function(t,n){if(!t._n){t._n=!0;var e=t._c;m((function(){var r=t._v,o=1==t._s,i=0,c=function(n){var e,i,c,u=o?n.ok:n.fail,f=n.resolve,a=n.reject,s=n.domain;try{u?(o||(2==t._h&&L(t),t._h=1),!0===u?e=r:(s&&s.enter(),e=u(r),s&&(s.exit(),c=!0)),e===n.promise?a(O("Promise-chain cycle")):(i=A(e))?i.call(e,f,a):f(e)):a(r)}catch(l){s&&!c&&s.exit(),a(l)}};while(e.length>i)c(e[i++]);t._c=[],t._n=!1,n&&!t._h&&W(t)}))}},W=function(t){y.call(f,(function(){var n,e,r,o=t._v,i=C(t);if(i&&(n=g((function(){T?S.emit("unhandledRejection",o,t):(e=f.onunhandledrejection)?e({promise:t,reason:o}):(r=f.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=T||C(t)?2:1),t._a=void 0,i&&n.e)throw n.v}))},C=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){y.call(f,(function(){var n;T?S.emit("rejectionHandled",t):(n=f.onrejectionhandled)&&n({promise:t,reason:t._v})}))},N=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),R(n,!0))},B=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw O("Promise can't be resolved itself");(n=A(t))?m((function(){var r={_w:e,_d:!1};try{n.call(t,a(B,r,1),a(N,r,1))}catch(o){N.call(r,o)}})):(e._v=t,e._s=1,R(e,!1))}catch(r){N.call({_w:e,_d:!1},r)}}};I||(k=function(t){v(this,k,j,"_h"),d(t),r.call(this);try{t(a(B,this,1),a(N,this,1))}catch(n){N.call(this,n)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=e("9faf")(k.prototype,{then:function(t,n){var e=M(b(this,k));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=T?S.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&R(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=a(B,t,1),this.reject=a(N,t,1)},x.f=M=function(t){return t===k||t===c?new i(t):o(t)}),l(l.G+l.W+l.F*!I,{Promise:k}),e("aab6")(k,j),e("0ec0")(j),c=e("ca38")[j],l(l.S+l.F*!I,j,{reject:function(t){var n=M(this),e=n.reject;return e(t),n.promise}}),l(l.S+l.F*(u||!I),j,{resolve:function(t){return w(u&&this===c?k:this,t)}}),l(l.S+l.F*!(I&&e("2299")((function(t){k.all(t)["catch"](F)}))),j,{all:function(t){var n=this,e=M(n),r=e.resolve,o=e.reject,i=g((function(){var e=[],i=0,c=1;h(t,!1,(function(t){var u=i++,f=!1;e.push(void 0),c++,n.resolve(t).then((function(t){f||(f=!0,e[u]=t,--c||r(e))}),o)})),--c||r(e)}));return i.e&&o(i.v),e.promise},race:function(t){var n=this,e=M(n),r=e.reject,o=g((function(){h(t,!1,(function(t){n.resolve(t).then(e.resolve,r)}))}));return o.e&&r(o.v),e.promise}})},"0ec0":function(t,n,e){"use strict";var r=e("b808"),o=e("e4e1"),i=e("45e2"),c=e("b67f")("species");t.exports=function(t){var n=r[t];i&&n&&!n[c]&&o.f(n,c,{configurable:!0,get:function(){return this}})}},"0f4a":function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},"14c6":function(t,n,e){"use strict";var r=e("3bb1"),o=e("b5cb"),i=e("a638"),c=e("58b9");t.exports=e("fa2d")(Array,"Array",(function(t,n){this._t=c(t),this._i=0,this._k=n}),(function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},"154d":function(t,n){},"18fd":function(t,n){},"1aa7":function(t,n,e){var r=e("27b2"),o=e("9184"),i=e("b67f")("species");t.exports=function(t,n){var e,c=r(t).constructor;return void 0===c||void 0==(e=r(c)[i])?n:o(e)}},"1ad4":function(t,n,e){var r,o,i,c=e("a9f2"),u=e("ef26"),f=e("d8db"),a=e("781f"),s=e("b808"),l=s.process,p=s.setImmediate,d=s.clearImmediate,v=s.MessageChannel,h=s.Dispatch,b=0,y={},m="onreadystatechange",x=function(){var t=+this;if(y.hasOwnProperty(t)){var n=y[t];delete y[t],n()}},g=function(t){x.call(t.data)};p&&d||(p=function(t){var n=[],e=1;while(arguments.length>e)n.push(arguments[e++]);return y[++b]=function(){u("function"==typeof t?t:Function(t),n)},r(b),b},d=function(t){delete y[t]},"process"==e("71fa")(l)?r=function(t){l.nextTick(c(x,t,1))}:h&&h.now?r=function(t){h.now(c(x,t,1))}:v?(o=new v,i=o.port2,o.port1.onmessage=g,r=c(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(r=function(t){s.postMessage(t+"","*")},s.addEventListener("message",g,!1)):r=m in a("script")?function(t){f.appendChild(a("script"))[m]=function(){f.removeChild(this),x.call(t)}}:function(t){setTimeout(c(x,t,1),0)}),t.exports={set:p,clear:d}},"1c08":function(t,n,e){var r=e("27b2"),o=e("ab4c"),i=e("cc20");t.exports=function(t,n){if(r(t),o(n)&&n.constructor===t)return n;var e=i.f(t),c=e.resolve;return c(n),e.promise}},"1d27":function(t,n,e){var r=e("27b2");t.exports=function(t,n,e,o){try{return o?n(r(e)[0],e[1]):n(e)}catch(c){var i=t["return"];throw void 0!==i&&r(i.call(t)),c}}},"1d73":function(t,n,e){t.exports=e("312a")("native-function-to-string",Function.toString)},"1f51":function(t,n,e){var r=e("b808"),o=e("a0a8"),i=e("0f4a"),c=e("c0f4")("src"),u=e("1d73"),f="toString",a=(""+u).split(f);e("ca38").inspectSource=function(t){return u.call(t)},(t.exports=function(t,n,e,u){var f="function"==typeof e;f&&(i(e,"name")||o(e,"name",n)),t[n]!==e&&(f&&(i(e,c)||o(e,c,t[n]?""+t[n]:a.join(String(n)))),t===r?t[n]=e:u?t[n]?t[n]=e:o(t,n,e):(delete t[n],o(t,n,e)))})(Function.prototype,f,(function(){return"function"==typeof this&&this[c]||u.call(this)}))},2299:function(t,n,e){var r=e("b67f")("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(c){}t.exports=function(t,n){if(!n&&!o)return!1;var e=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:e=!0}},i[r]=function(){return u},t(i)}catch(c){}return e}},"27b2":function(t,n,e){var r=e("ab4c");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},"312a":function(t,n,e){var r=e("ca38"),o=e("b808"),i="__core-js_shared__",c=o[i]||(o[i]={});(t.exports=function(t,n){return c[t]||(c[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e("e6a1")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"3bb1":function(t,n,e){var r=e("b67f")("unscopables"),o=Array.prototype;void 0==o[r]&&e("a0a8")(o,r,{}),t.exports=function(t){o[r][t]=!0}},4052:function(t,n,e){var r=e("4a89"),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},"45e2":function(t,n,e){t.exports=!e("b629")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},4842:function(t,n,e){var r=e("569f");r(r.S+r.F,"Object",{assign:e("a402")})},"49c1":function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"4a89":function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},"4b9e":function(t,n,e){var r=e("b808"),o=r.navigator;t.exports=o&&o.userAgent||""},"4cf4":function(t,n,e){var r=e("0244");t.exports=function(t){return Object(r(t))}},"55e7":function(t,n,e){"use strict";e.r(n);var r=e("18fd");for(var o in r)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(o);var i=e("6bf1");e.d(n,"draggable",(function(){return i["draggable"]}))},"569f":function(t,n,e){var r=e("b808"),o=e("ca38"),i=e("a0a8"),c=e("1f51"),u=e("a9f2"),f="prototype",a=function(t,n,e){var s,l,p,d,v=t&a.F,h=t&a.G,b=t&a.S,y=t&a.P,m=t&a.B,x=h?r:b?r[n]||(r[n]={}):(r[n]||{})[f],g=h?o:o[n]||(o[n]={}),_=g[f]||(g[f]={});for(s in h&&(e=n),e)l=!v&&x&&void 0!==x[s],p=(l?x:e)[s],d=m&&l?u(p,r):y&&"function"==typeof p?u(Function.call,p):p,x&&c(x,s,p,t&a.U),g[s]!=p&&i(g,s,d),y&&_[s]!=p&&(_[s]=p)};r.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},"58b9":function(t,n,e){var r=e("d43f"),o=e("0244");t.exports=function(t){return r(o(t))}},"696b":function(t,n){n.f=Object.getOwnPropertySymbols},"6bf1":function(t,n,e){"use strict";e.r(n),e.d(n,"draggable",(function(){return r}));var r={bind:function(t){var n=!1,e={x:0,y:0},r={x:0,y:0};function o(o){n=!0,r.x=o.touches[0].clientX,r.y=o.touches[0].clientY,e.x=t.offsetLeft,e.y=t.offsetTop}function i(o){if(n){var i=e.x+(o.touches[0].clientX-r.x),c=e.y+(o.touches[0].clientY-r.y);i<0&&(i=0),i>document.documentElement.clientWidth-t.offsetWidth&&(i=document.documentElement.clientWidth-t.offsetWidth),c<0&&(c=0),c>document.documentElement.clientHeight-t.offsetHeight&&(c=document.documentElement.clientHeight-t.offsetHeight),t.style.left=i+"px",t.style.top=c+"px"}}function c(){n=!1}t.addEventListener("touchstart",o,!1),t.addEventListener("touchmove",i,!1),t.addEventListener("touchend",c,!1)}}},"71fa":function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},"73c3":function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(n){return{e:!0,v:n}}}},"781f":function(t,n,e){var r=e("ab4c"),o=e("b808").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},8115:function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},"88b8":function(t,n,e){var r=e("a9f2"),o=e("1d27"),i=e("f26d"),c=e("27b2"),u=e("04cf"),f=e("b36f"),a={},s={};n=t.exports=function(t,n,e,l,p){var d,v,h,b,y=p?function(){return t}:f(t),m=r(e,l,n?2:1),x=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(d=u(t.length);d>x;x++)if(b=n?m(c(v=t[x])[0],v[1]):m(t[x]),b===a||b===s)return b}else for(h=y.call(t);!(v=h.next()).done;)if(b=o(h,m,v.value,n),b===a||b===s)return b};n.BREAK=a,n.RETURN=s},"8ae2":function(t,n,e){"use strict";e.r(n);var r=e("aab4");e.d(n,"ksStorage",(function(){return r["ksStorage"]})),e.d(n,"debounce",(function(){return r["debounce"]}));var o=e("154d");for(var i in o)["default","ksStorage","debounce"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i)},9184:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"9ed1":function(t,n,e){var r=e("f6d7"),o=e("49c1");t.exports=Object.keys||function(t){return r(t,o)}},"9faf":function(t,n,e){var r=e("1f51");t.exports=function(t,n,e){for(var o in n)r(t,o,n[o],e);return t}},a0a8:function(t,n,e){var r=e("e4e1"),o=e("dcc3");t.exports=e("45e2")?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},a24c:function(t,n,e){var r=e("b808"),o=e("1ad4").set,i=r.MutationObserver||r.WebKitMutationObserver,c=r.process,u=r.Promise,f="process"==e("71fa")(c);t.exports=function(){var t,n,e,a=function(){var r,o;f&&(r=c.domain)&&r.exit();while(t){o=t.fn,t=t.next;try{o()}catch(i){throw t?e():n=void 0,i}}n=void 0,r&&r.enter()};if(f)e=function(){c.nextTick(a)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var s=u.resolve(void 0);e=function(){s.then(a)}}else e=function(){o.call(r,a)};else{var l=!0,p=document.createTextNode("");new i(a).observe(p,{characterData:!0}),e=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};n&&(n.next=o),t||(t=o,e()),n=o}}},a274:function(t,n,e){var r=e("71fa"),o=e("b67f")("toStringTag"),i="Arguments"==r(function(){return arguments}()),c=function(t,n){try{return t[n]}catch(e){}};t.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=c(n=Object(t),o))?e:i?r(n):"Object"==(u=r(n))&&"function"==typeof n.callee?"Arguments":u}},a402:function(t,n,e){"use strict";var r=e("45e2"),o=e("9ed1"),i=e("696b"),c=e("bf41"),u=e("4cf4"),f=e("d43f"),a=Object.assign;t.exports=!a||e("b629")((function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!=a({},t)[e]||Object.keys(a({},n)).join("")!=r}))?function(t,n){var e=u(t),a=arguments.length,s=1,l=i.f,p=c.f;while(a>s){var d,v=f(arguments[s++]),h=l?o(v).concat(l(v)):o(v),b=h.length,y=0;while(b>y)d=h[y++],r&&!p.call(v,d)||(e[d]=v[d])}return e}:a},a638:function(t,n){t.exports={}},a9f2:function(t,n,e){var r=e("9184");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},aab4:function(t,n,e){"use strict";e.r(n),e.d(n,"ksStorage",(function(){return r})),e.d(n,"debounce",(function(){return o}));var r={setItem:function(t,n){return window.$__ENV_WEB__?sessionStorage.setItem(t,n):window.ks.callFunc&&window.ks.callFunc({method:"storageSetItem",params:{key:t,value:n}})},getItem:function(t){return window.$__ENV_WEB__?sessionStorage.getItem(t):window.ks.callFunc&&window.ks.callFunc({method:"storageGetItem",params:{key:t}})},removeItem:function(t){return window.ks.callFunc&&window.ks.callFunc({method:"storageSetItem",params:{key:t,value:""}})}},o=function(t,n,e){var r=null;return function(){var o=this,i=arguments;if(r&&clearTimeout(r),e){var c=!r;r=setTimeout((function(){r=null}),n),c&&t.apply(o,i)}else r=setTimeout((function(){return t.apply(o,i)}),n)}}},aab6:function(t,n,e){var r=e("e4e1").f,o=e("0f4a"),i=e("b67f")("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},ab4c:function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},b36f:function(t,n,e){var r=e("a274"),o=e("b67f")("iterator"),i=e("a638");t.exports=e("ca38").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},b5cb:function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},b629:function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},b67f:function(t,n,e){var r=e("312a")("wks"),o=e("c0f4"),i=e("b808").Symbol,c="function"==typeof i,u=t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))};u.store=r},b808:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},b938:function(t,n,e){var r=e("ab4c");t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},be5a:function(t,n,e){var r=e("312a")("keys"),o=e("c0f4");t.exports=function(t){return r[t]||(r[t]=o(t))}},bf41:function(t,n){n.f={}.propertyIsEnumerable},c0f4:function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},c339:function(t,n,e){var r=e("0f4a"),o=e("4cf4"),i=e("be5a")("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},ca38:function(t,n){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},cc1d:function(t,n,e){var r=e("58b9"),o=e("04cf"),i=e("4052");t.exports=function(t){return function(n,e,c){var u,f=r(n),a=o(f.length),s=i(c,a);if(t&&e!=e){while(a>s)if(u=f[s++],u!=u)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===e)return t||s||0;return!t&&-1}}},cc20:function(t,n,e){"use strict";var r=e("9184");function o(t){var n,e;this.promise=new t((function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r})),this.resolve=r(n),this.reject=r(e)}t.exports.f=function(t){return new o(t)}},d43f:function(t,n,e){var r=e("71fa");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},d8db:function(t,n,e){var r=e("b808").document;t.exports=r&&r.documentElement},d9fc:function(t,n,e){"use strict";var r=e("569f"),o=e("ca38"),i=e("b808"),c=e("1aa7"),u=e("1c08");r(r.P+r.R,"Promise",{finally:function(t){var n=c(this,o.Promise||i.Promise),e="function"==typeof t;return this.then(e?function(e){return u(n,t()).then((function(){return e}))}:t,e?function(e){return u(n,t()).then((function(){throw e}))}:t)}})},dcc3:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},e4e1:function(t,n,e){var r=e("27b2"),o=e("e830"),i=e("b938"),c=Object.defineProperty;n.f=e("45e2")?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return c(t,n,e)}catch(u){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},e523:function(t,n,e){var r=e("e4e1"),o=e("27b2"),i=e("9ed1");t.exports=e("45e2")?Object.defineProperties:function(t,n){o(t);var e,c=i(n),u=c.length,f=0;while(u>f)r.f(t,e=c[f++],n[e]);return t}},e6a1:function(t,n){t.exports=!1},e74d:function(t,n,e){"use strict";e.r(n);e("14c6"),e("08c1"),e("4842"),e("d9fc");var r=e("55e7"),o=e("8ae2");n["default"]={directive:r,tools:o}},e830:function(t,n,e){t.exports=!e("45e2")&&!e("b629")((function(){return 7!=Object.defineProperty(e("781f")("div"),"a",{get:function(){return 7}}).a}))},ed0f:function(t,n,e){var r=e("27b2"),o=e("e523"),i=e("49c1"),c=e("be5a")("IE_PROTO"),u=function(){},f="prototype",a=function(){var t,n=e("781f")("iframe"),r=i.length,o="<",c=">";n.style.display="none",e("d8db").appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+c+"document.F=Object"+o+"/script"+c),t.close(),a=t.F;while(r--)delete a[f][i[r]];return a()};t.exports=Object.create||function(t,n){var e;return null!==t?(u[f]=r(t),e=new u,u[f]=null,e[c]=t):e=a(),void 0===n?e:o(e,n)}},eec7:function(t,n,e){"use strict";var r=e("ed0f"),o=e("dcc3"),i=e("aab6"),c={};e("a0a8")(c,e("b67f")("iterator"),(function(){return this})),t.exports=function(t,n,e){t.prototype=r(c,{next:o(1,e)}),i(t,n+" Iterator")}},ef26:function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},f26d:function(t,n,e){var r=e("a638"),o=e("b67f")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},f6d7:function(t,n,e){var r=e("0f4a"),o=e("58b9"),i=e("cc1d")(!1),c=e("be5a")("IE_PROTO");t.exports=function(t,n){var e,u=o(t),f=0,a=[];for(e in u)e!=c&&r(u,e)&&a.push(e);while(n.length>f)r(u,e=n[f++])&&(~i(a,e)||a.push(e));return a}},fa2d:function(t,n,e){"use strict";var r=e("e6a1"),o=e("569f"),i=e("1f51"),c=e("a0a8"),u=e("a638"),f=e("eec7"),a=e("aab6"),s=e("c339"),l=e("b67f")("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",h="values",b=function(){return this};t.exports=function(t,n,e,y,m,x,g){f(e,n,y);var _,w,j,O=function(t){if(!p&&t in k)return k[t];switch(t){case v:return function(){return new e(this,t)};case h:return function(){return new e(this,t)}}return function(){return new e(this,t)}},S=n+" Iterator",E=m==h,P=!1,k=t.prototype,T=k[l]||k[d]||m&&k[m],F=T||O(m),M=m?E?O("entries"):F:void 0,I="Array"==n&&k.entries||T;if(I&&(j=s(I.call(new t)),j!==Object.prototype&&j.next&&(a(j,S,!0),r||"function"==typeof j[l]||c(j,l,b))),E&&T&&T.name!==h&&(P=!0,F=function(){return T.call(this)}),r&&!g||!p&&!P&&k[l]||c(k,l,F),u[n]=F,u[S]=b,m)if(_={values:E?F:O(h),keys:x?F:O(v),entries:M},g)for(w in _)w in k||i(k,w,_[w]);else o(o.P+o.F*(p||P),n,_);return _}}})["default"]}));
1
+ (function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["hroa-ui@1.0.4"]=n():t["hroa-ui@1.0.4"]=n()})(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/",e(e.s="e74d")}({"0244":function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"04cf":function(t,n,e){var r=e("4a89"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"08c1":function(t,n,e){"use strict";var r,o,i,c,u=e("e6a1"),f=e("b808"),a=e("a9f2"),s=e("a274"),l=e("569f"),p=e("ab4c"),d=e("9184"),v=e("8115"),h=e("88b8"),b=e("1aa7"),y=e("1ad4").set,m=e("a24c")(),x=e("cc20"),g=e("73c3"),_=e("4b9e"),w=e("1c08"),j="Promise",O=f.TypeError,S=f.process,E=S&&S.versions,P=E&&E.v8||"",k=f[j],T="process"==s(S),F=function(){},M=o=x.f,I=!!function(){try{var t=k.resolve(1),n=(t.constructor={})[e("b67f")("species")]=function(t){t(F,F)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(F)instanceof n&&0!==P.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(r){}}(),A=function(t){var n;return!(!p(t)||"function"!=typeof(n=t.then))&&n},R=function(t,n){if(!t._n){t._n=!0;var e=t._c;m((function(){var r=t._v,o=1==t._s,i=0,c=function(n){var e,i,c,u=o?n.ok:n.fail,f=n.resolve,a=n.reject,s=n.domain;try{u?(o||(2==t._h&&L(t),t._h=1),!0===u?e=r:(s&&s.enter(),e=u(r),s&&(s.exit(),c=!0)),e===n.promise?a(O("Promise-chain cycle")):(i=A(e))?i.call(e,f,a):f(e)):a(r)}catch(l){s&&!c&&s.exit(),a(l)}};while(e.length>i)c(e[i++]);t._c=[],t._n=!1,n&&!t._h&&W(t)}))}},W=function(t){y.call(f,(function(){var n,e,r,o=t._v,i=C(t);if(i&&(n=g((function(){T?S.emit("unhandledRejection",o,t):(e=f.onunhandledrejection)?e({promise:t,reason:o}):(r=f.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=T||C(t)?2:1),t._a=void 0,i&&n.e)throw n.v}))},C=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){y.call(f,(function(){var n;T?S.emit("rejectionHandled",t):(n=f.onrejectionhandled)&&n({promise:t,reason:t._v})}))},N=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),R(n,!0))},B=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw O("Promise can't be resolved itself");(n=A(t))?m((function(){var r={_w:e,_d:!1};try{n.call(t,a(B,r,1),a(N,r,1))}catch(o){N.call(r,o)}})):(e._v=t,e._s=1,R(e,!1))}catch(r){N.call({_w:e,_d:!1},r)}}};I||(k=function(t){v(this,k,j,"_h"),d(t),r.call(this);try{t(a(B,this,1),a(N,this,1))}catch(n){N.call(this,n)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=e("9faf")(k.prototype,{then:function(t,n){var e=M(b(this,k));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=T?S.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&R(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=a(B,t,1),this.reject=a(N,t,1)},x.f=M=function(t){return t===k||t===c?new i(t):o(t)}),l(l.G+l.W+l.F*!I,{Promise:k}),e("aab6")(k,j),e("0ec0")(j),c=e("ca38")[j],l(l.S+l.F*!I,j,{reject:function(t){var n=M(this),e=n.reject;return e(t),n.promise}}),l(l.S+l.F*(u||!I),j,{resolve:function(t){return w(u&&this===c?k:this,t)}}),l(l.S+l.F*!(I&&e("2299")((function(t){k.all(t)["catch"](F)}))),j,{all:function(t){var n=this,e=M(n),r=e.resolve,o=e.reject,i=g((function(){var e=[],i=0,c=1;h(t,!1,(function(t){var u=i++,f=!1;e.push(void 0),c++,n.resolve(t).then((function(t){f||(f=!0,e[u]=t,--c||r(e))}),o)})),--c||r(e)}));return i.e&&o(i.v),e.promise},race:function(t){var n=this,e=M(n),r=e.reject,o=g((function(){h(t,!1,(function(t){n.resolve(t).then(e.resolve,r)}))}));return o.e&&r(o.v),e.promise}})},"0ec0":function(t,n,e){"use strict";var r=e("b808"),o=e("e4e1"),i=e("45e2"),c=e("b67f")("species");t.exports=function(t){var n=r[t];i&&n&&!n[c]&&o.f(n,c,{configurable:!0,get:function(){return this}})}},"0f4a":function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},"14c6":function(t,n,e){"use strict";var r=e("3bb1"),o=e("b5cb"),i=e("a638"),c=e("58b9");t.exports=e("fa2d")(Array,"Array",(function(t,n){this._t=c(t),this._i=0,this._k=n}),(function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},"154d":function(t,n){},"18fd":function(t,n){},"1aa7":function(t,n,e){var r=e("27b2"),o=e("9184"),i=e("b67f")("species");t.exports=function(t,n){var e,c=r(t).constructor;return void 0===c||void 0==(e=r(c)[i])?n:o(e)}},"1ad4":function(t,n,e){var r,o,i,c=e("a9f2"),u=e("ef26"),f=e("d8db"),a=e("781f"),s=e("b808"),l=s.process,p=s.setImmediate,d=s.clearImmediate,v=s.MessageChannel,h=s.Dispatch,b=0,y={},m="onreadystatechange",x=function(){var t=+this;if(y.hasOwnProperty(t)){var n=y[t];delete y[t],n()}},g=function(t){x.call(t.data)};p&&d||(p=function(t){var n=[],e=1;while(arguments.length>e)n.push(arguments[e++]);return y[++b]=function(){u("function"==typeof t?t:Function(t),n)},r(b),b},d=function(t){delete y[t]},"process"==e("71fa")(l)?r=function(t){l.nextTick(c(x,t,1))}:h&&h.now?r=function(t){h.now(c(x,t,1))}:v?(o=new v,i=o.port2,o.port1.onmessage=g,r=c(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(r=function(t){s.postMessage(t+"","*")},s.addEventListener("message",g,!1)):r=m in a("script")?function(t){f.appendChild(a("script"))[m]=function(){f.removeChild(this),x.call(t)}}:function(t){setTimeout(c(x,t,1),0)}),t.exports={set:p,clear:d}},"1c08":function(t,n,e){var r=e("27b2"),o=e("ab4c"),i=e("cc20");t.exports=function(t,n){if(r(t),o(n)&&n.constructor===t)return n;var e=i.f(t),c=e.resolve;return c(n),e.promise}},"1d27":function(t,n,e){var r=e("27b2");t.exports=function(t,n,e,o){try{return o?n(r(e)[0],e[1]):n(e)}catch(c){var i=t["return"];throw void 0!==i&&r(i.call(t)),c}}},"1d73":function(t,n,e){t.exports=e("312a")("native-function-to-string",Function.toString)},"1f51":function(t,n,e){var r=e("b808"),o=e("a0a8"),i=e("0f4a"),c=e("c0f4")("src"),u=e("1d73"),f="toString",a=(""+u).split(f);e("ca38").inspectSource=function(t){return u.call(t)},(t.exports=function(t,n,e,u){var f="function"==typeof e;f&&(i(e,"name")||o(e,"name",n)),t[n]!==e&&(f&&(i(e,c)||o(e,c,t[n]?""+t[n]:a.join(String(n)))),t===r?t[n]=e:u?t[n]?t[n]=e:o(t,n,e):(delete t[n],o(t,n,e)))})(Function.prototype,f,(function(){return"function"==typeof this&&this[c]||u.call(this)}))},2299:function(t,n,e){var r=e("b67f")("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(c){}t.exports=function(t,n){if(!n&&!o)return!1;var e=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:e=!0}},i[r]=function(){return u},t(i)}catch(c){}return e}},"27b2":function(t,n,e){var r=e("ab4c");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},"312a":function(t,n,e){var r=e("ca38"),o=e("b808"),i="__core-js_shared__",c=o[i]||(o[i]={});(t.exports=function(t,n){return c[t]||(c[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e("e6a1")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"3bb1":function(t,n,e){var r=e("b67f")("unscopables"),o=Array.prototype;void 0==o[r]&&e("a0a8")(o,r,{}),t.exports=function(t){o[r][t]=!0}},4052:function(t,n,e){var r=e("4a89"),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},"45e2":function(t,n,e){t.exports=!e("b629")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},4842:function(t,n,e){var r=e("569f");r(r.S+r.F,"Object",{assign:e("a402")})},"49c1":function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"4a89":function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},"4b9e":function(t,n,e){var r=e("b808"),o=r.navigator;t.exports=o&&o.userAgent||""},"4cf4":function(t,n,e){var r=e("0244");t.exports=function(t){return Object(r(t))}},"55e7":function(t,n,e){"use strict";e.r(n);var r=e("18fd");for(var o in r)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(o);var i=e("6bf1");e.d(n,"draggable",(function(){return i["draggable"]}))},"569f":function(t,n,e){var r=e("b808"),o=e("ca38"),i=e("a0a8"),c=e("1f51"),u=e("a9f2"),f="prototype",a=function(t,n,e){var s,l,p,d,v=t&a.F,h=t&a.G,b=t&a.S,y=t&a.P,m=t&a.B,x=h?r:b?r[n]||(r[n]={}):(r[n]||{})[f],g=h?o:o[n]||(o[n]={}),_=g[f]||(g[f]={});for(s in h&&(e=n),e)l=!v&&x&&void 0!==x[s],p=(l?x:e)[s],d=m&&l?u(p,r):y&&"function"==typeof p?u(Function.call,p):p,x&&c(x,s,p,t&a.U),g[s]!=p&&i(g,s,d),y&&_[s]!=p&&(_[s]=p)};r.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},"58b9":function(t,n,e){var r=e("d43f"),o=e("0244");t.exports=function(t){return r(o(t))}},"696b":function(t,n){n.f=Object.getOwnPropertySymbols},"6bf1":function(t,n,e){"use strict";e.r(n),e.d(n,"draggable",(function(){return r}));var r={bind:function(t){var n=!1,e={x:0,y:0},r={x:0,y:0};function o(o){n=!0,r.x=o.touches[0].clientX,r.y=o.touches[0].clientY,e.x=t.offsetLeft,e.y=t.offsetTop}function i(o){if(n){var i=e.x+(o.touches[0].clientX-r.x),c=e.y+(o.touches[0].clientY-r.y);i<0&&(i=0),i>document.documentElement.clientWidth-t.offsetWidth&&(i=document.documentElement.clientWidth-t.offsetWidth),c<0&&(c=0),c>document.documentElement.clientHeight-t.offsetHeight&&(c=document.documentElement.clientHeight-t.offsetHeight),t.style.left=i+"px",t.style.top=c+"px"}}function c(){n=!1}t.addEventListener("touchstart",o,!1),t.addEventListener("touchmove",i,!1),t.addEventListener("touchend",c,!1)}}},"71fa":function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},"73c3":function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(n){return{e:!0,v:n}}}},"781f":function(t,n,e){var r=e("ab4c"),o=e("b808").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},8115:function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},"88b8":function(t,n,e){var r=e("a9f2"),o=e("1d27"),i=e("f26d"),c=e("27b2"),u=e("04cf"),f=e("b36f"),a={},s={};n=t.exports=function(t,n,e,l,p){var d,v,h,b,y=p?function(){return t}:f(t),m=r(e,l,n?2:1),x=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(d=u(t.length);d>x;x++)if(b=n?m(c(v=t[x])[0],v[1]):m(t[x]),b===a||b===s)return b}else for(h=y.call(t);!(v=h.next()).done;)if(b=o(h,m,v.value,n),b===a||b===s)return b};n.BREAK=a,n.RETURN=s},"8ae2":function(t,n,e){"use strict";e.r(n);var r=e("aab4");e.d(n,"ksStorage",(function(){return r["ksStorage"]})),e.d(n,"debounce",(function(){return r["debounce"]}));var o=e("154d");for(var i in o)["default","ksStorage","debounce"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i)},9184:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"9ed1":function(t,n,e){var r=e("f6d7"),o=e("49c1");t.exports=Object.keys||function(t){return r(t,o)}},"9faf":function(t,n,e){var r=e("1f51");t.exports=function(t,n,e){for(var o in n)r(t,o,n[o],e);return t}},a0a8:function(t,n,e){var r=e("e4e1"),o=e("dcc3");t.exports=e("45e2")?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},a24c:function(t,n,e){var r=e("b808"),o=e("1ad4").set,i=r.MutationObserver||r.WebKitMutationObserver,c=r.process,u=r.Promise,f="process"==e("71fa")(c);t.exports=function(){var t,n,e,a=function(){var r,o;f&&(r=c.domain)&&r.exit();while(t){o=t.fn,t=t.next;try{o()}catch(i){throw t?e():n=void 0,i}}n=void 0,r&&r.enter()};if(f)e=function(){c.nextTick(a)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var s=u.resolve(void 0);e=function(){s.then(a)}}else e=function(){o.call(r,a)};else{var l=!0,p=document.createTextNode("");new i(a).observe(p,{characterData:!0}),e=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};n&&(n.next=o),t||(t=o,e()),n=o}}},a274:function(t,n,e){var r=e("71fa"),o=e("b67f")("toStringTag"),i="Arguments"==r(function(){return arguments}()),c=function(t,n){try{return t[n]}catch(e){}};t.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=c(n=Object(t),o))?e:i?r(n):"Object"==(u=r(n))&&"function"==typeof n.callee?"Arguments":u}},a402:function(t,n,e){"use strict";var r=e("45e2"),o=e("9ed1"),i=e("696b"),c=e("bf41"),u=e("4cf4"),f=e("d43f"),a=Object.assign;t.exports=!a||e("b629")((function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!=a({},t)[e]||Object.keys(a({},n)).join("")!=r}))?function(t,n){var e=u(t),a=arguments.length,s=1,l=i.f,p=c.f;while(a>s){var d,v=f(arguments[s++]),h=l?o(v).concat(l(v)):o(v),b=h.length,y=0;while(b>y)d=h[y++],r&&!p.call(v,d)||(e[d]=v[d])}return e}:a},a638:function(t,n){t.exports={}},a9f2:function(t,n,e){var r=e("9184");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},aab4:function(t,n,e){"use strict";e.r(n),e.d(n,"ksStorage",(function(){return r})),e.d(n,"debounce",(function(){return o}));var r={setItem:function(t,n){return window.$__ENV_WEB__?sessionStorage.setItem(t,n):window.ks.callFunc&&window.ks.callFunc({method:"storageSetItem",params:{key:t,value:n}})},getItem:function(t){return window.$__ENV_WEB__?sessionStorage.getItem(t):window.ks.callFunc&&window.ks.callFunc({method:"storageGetItem",params:{key:t}})},removeItem:function(t){return window.ks.callFunc&&window.ks.callFunc({method:"storageSetItem",params:{key:t,value:""}})}},o=function(t,n,e){var r=null;return function(){var o=this,i=arguments;if(r&&clearTimeout(r),e){var c=!r;r=setTimeout((function(){r=null}),n),c&&t.apply(o,i)}else r=setTimeout((function(){return t.apply(o,i)}),n)}}},aab6:function(t,n,e){var r=e("e4e1").f,o=e("0f4a"),i=e("b67f")("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},ab4c:function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},b36f:function(t,n,e){var r=e("a274"),o=e("b67f")("iterator"),i=e("a638");t.exports=e("ca38").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},b5cb:function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},b629:function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},b67f:function(t,n,e){var r=e("312a")("wks"),o=e("c0f4"),i=e("b808").Symbol,c="function"==typeof i,u=t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))};u.store=r},b808:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},b938:function(t,n,e){var r=e("ab4c");t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},be5a:function(t,n,e){var r=e("312a")("keys"),o=e("c0f4");t.exports=function(t){return r[t]||(r[t]=o(t))}},bf41:function(t,n){n.f={}.propertyIsEnumerable},c0f4:function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},c339:function(t,n,e){var r=e("0f4a"),o=e("4cf4"),i=e("be5a")("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},ca38:function(t,n){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},cc1d:function(t,n,e){var r=e("58b9"),o=e("04cf"),i=e("4052");t.exports=function(t){return function(n,e,c){var u,f=r(n),a=o(f.length),s=i(c,a);if(t&&e!=e){while(a>s)if(u=f[s++],u!=u)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===e)return t||s||0;return!t&&-1}}},cc20:function(t,n,e){"use strict";var r=e("9184");function o(t){var n,e;this.promise=new t((function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r})),this.resolve=r(n),this.reject=r(e)}t.exports.f=function(t){return new o(t)}},d43f:function(t,n,e){var r=e("71fa");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},d8db:function(t,n,e){var r=e("b808").document;t.exports=r&&r.documentElement},d9fc:function(t,n,e){"use strict";var r=e("569f"),o=e("ca38"),i=e("b808"),c=e("1aa7"),u=e("1c08");r(r.P+r.R,"Promise",{finally:function(t){var n=c(this,o.Promise||i.Promise),e="function"==typeof t;return this.then(e?function(e){return u(n,t()).then((function(){return e}))}:t,e?function(e){return u(n,t()).then((function(){throw e}))}:t)}})},dcc3:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},e4e1:function(t,n,e){var r=e("27b2"),o=e("e830"),i=e("b938"),c=Object.defineProperty;n.f=e("45e2")?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return c(t,n,e)}catch(u){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},e523:function(t,n,e){var r=e("e4e1"),o=e("27b2"),i=e("9ed1");t.exports=e("45e2")?Object.defineProperties:function(t,n){o(t);var e,c=i(n),u=c.length,f=0;while(u>f)r.f(t,e=c[f++],n[e]);return t}},e6a1:function(t,n){t.exports=!1},e74d:function(t,n,e){"use strict";e.r(n);e("14c6"),e("08c1"),e("4842"),e("d9fc");var r=e("55e7"),o=e("8ae2");n["default"]={directive:r,tools:o}},e830:function(t,n,e){t.exports=!e("45e2")&&!e("b629")((function(){return 7!=Object.defineProperty(e("781f")("div"),"a",{get:function(){return 7}}).a}))},ed0f:function(t,n,e){var r=e("27b2"),o=e("e523"),i=e("49c1"),c=e("be5a")("IE_PROTO"),u=function(){},f="prototype",a=function(){var t,n=e("781f")("iframe"),r=i.length,o="<",c=">";n.style.display="none",e("d8db").appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+c+"document.F=Object"+o+"/script"+c),t.close(),a=t.F;while(r--)delete a[f][i[r]];return a()};t.exports=Object.create||function(t,n){var e;return null!==t?(u[f]=r(t),e=new u,u[f]=null,e[c]=t):e=a(),void 0===n?e:o(e,n)}},eec7:function(t,n,e){"use strict";var r=e("ed0f"),o=e("dcc3"),i=e("aab6"),c={};e("a0a8")(c,e("b67f")("iterator"),(function(){return this})),t.exports=function(t,n,e){t.prototype=r(c,{next:o(1,e)}),i(t,n+" Iterator")}},ef26:function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},f26d:function(t,n,e){var r=e("a638"),o=e("b67f")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},f6d7:function(t,n,e){var r=e("0f4a"),o=e("58b9"),i=e("cc1d")(!1),c=e("be5a")("IE_PROTO");t.exports=function(t,n){var e,u=o(t),f=0,a=[];for(e in u)e!=c&&r(u,e)&&a.push(e);while(n.length>f)r(u,e=n[f++])&&(~i(a,e)||a.push(e));return a}},fa2d:function(t,n,e){"use strict";var r=e("e6a1"),o=e("569f"),i=e("1f51"),c=e("a0a8"),u=e("a638"),f=e("eec7"),a=e("aab6"),s=e("c339"),l=e("b67f")("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",h="values",b=function(){return this};t.exports=function(t,n,e,y,m,x,g){f(e,n,y);var _,w,j,O=function(t){if(!p&&t in k)return k[t];switch(t){case v:return function(){return new e(this,t)};case h:return function(){return new e(this,t)}}return function(){return new e(this,t)}},S=n+" Iterator",E=m==h,P=!1,k=t.prototype,T=k[l]||k[d]||m&&k[m],F=T||O(m),M=m?E?O("entries"):F:void 0,I="Array"==n&&k.entries||T;if(I&&(j=s(I.call(new t)),j!==Object.prototype&&j.next&&(a(j,S,!0),r||"function"==typeof j[l]||c(j,l,b))),E&&T&&T.name!==h&&(P=!0,F=function(){return T.call(this)}),r&&!g||!p&&!P&&k[l]||c(k,l,F),u[n]=F,u[S]=b,m)if(_={values:E?F:O(h),keys:x?F:O(v),entries:M},g)for(w in _)w in k||i(k,w,_[w]);else o(o.P+o.F*(p||P),n,_);return _}}})["default"]}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kyfe/hroa-ui",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -22,7 +22,19 @@
22
22
  default () {
23
23
  return false
24
24
  }
25
- }
25
+ },
26
+ zIndex: {
27
+ type: Number,
28
+ default () {
29
+ return 1
30
+ }
31
+ },
32
+ isCompatibilityIos: {
33
+ type: Boolean,
34
+ default () {
35
+ return true
36
+ }
37
+ },
26
38
  },
27
39
  data () {
28
40
  return {}
@@ -33,7 +45,12 @@
33
45
  }
34
46
  },
35
47
  render () {
36
- return <div class="hr-bottom-button">
48
+ return <div class={[
49
+ 'hr-bottom-button',
50
+ this.isCompatibilityIos && 'hr-bottom-button-ios'
51
+ ]} style={{
52
+ zIndex: this.zIndex
53
+ }}>
37
54
  <div class="button-list">
38
55
  {
39
56
  this.list.map((item, index) => {
@@ -52,13 +69,13 @@
52
69
  <style scoped lang="less">
53
70
  .hr-bottom-button {
54
71
  background: #fff;
55
- z-index: 111;
56
72
  .button-list {
57
73
  padding: 8px 16px;
58
74
  display: flex;
59
- justify-content: space-around;
60
- gap: 13px;
75
+ // justify-content: space-around;
76
+ // gap: 13px;
61
77
  .list-item {
78
+ margin-right: 13px;
62
79
  flex: 1;
63
80
  font-size: 16px;
64
81
  color: #7972fe;
@@ -72,38 +89,40 @@
72
89
  flex: 1;
73
90
  }
74
91
  &::after {
75
- content: '';
92
+ content: "";
76
93
  width: 200%;
77
94
  height: 200%;
78
95
  border: 1px solid #7972fe;
79
- transform: scale(50%);
96
+ transform: scale(0.5);
80
97
  border-radius: 16px;
81
98
  position: absolute;
82
99
  left: 0;
83
100
  top: 0;
84
- transform-origin: 0% 0%;
101
+ transform-origin: 0 0;
85
102
  }
86
103
  }
87
104
  .list-item:last-child {
88
105
  color: #ffffff;
89
106
  background: #7972fe;
107
+ margin-right: 0;
108
+
90
109
  &::after {
91
- content: '';
110
+ content: "";
92
111
  width: 200%;
93
112
  height: 200%;
94
113
  border: 1px solid transparent;
95
- transform: scale(50%);
114
+ transform: scale(0.5);
96
115
  border-radius: 16px;
97
116
  position: absolute;
98
117
  left: 0;
99
118
  top: 0;
100
- transform-origin: 0% 0%;
119
+ transform-origin: 0 0;
101
120
  }
102
121
  }
103
122
  }
104
123
  }
105
- .ios .hr-bottom-button,
106
- .ipx .hr-bottom-button {
124
+ .ios .hr-bottom-button-ios,
125
+ .ipx .hr-bottom-button-ios {
107
126
  padding-bottom: 28px;
108
127
  }
109
128
  </style>
@@ -35,13 +35,13 @@
35
35
  },
36
36
  render () {
37
37
  return (
38
- <div class="hr-breadcrumb">
38
+ <div class="hr-breadcrumb"
39
+ style={`font-size:${this.nodeSize}`}>
39
40
  {
40
41
  this.listData.map((item, index) => {
41
42
  const lastItem = index === this.listData.length - 1
42
43
  return (
43
44
  <span class={['node-text', lastItem ? 'disabled-text' : 'use-text']}
44
- style={`font-size:${this.nodeSize}`}
45
45
  onClick={() => this.itemClick(item, index)}>
46
46
  {
47
47
  index > 0 && this.separator &&
@@ -0,0 +1,3 @@
1
+ import HrFileList from './src/index.vue'
2
+
3
+ export default HrFileList
@@ -0,0 +1,45 @@
1
+ <script>
2
+ import { defaultIcon, noFormatIcon, FILE_FORMAT_DATA } from '../utils/enum.js'
3
+
4
+ export default {
5
+ props: {
6
+ fileData: {
7
+ type: Object,
8
+ default: () => ({})
9
+ }
10
+ },
11
+ render () {
12
+ const { url } = this.fileData
13
+ const fileIcon = this.getFileIcon(this.fileData)
14
+ return (url && <div class="hr-file-list-other">
15
+ <img src={fileIcon} />
16
+ </div>)
17
+ },
18
+ methods: {
19
+ getFileIcon (fileData) {
20
+ const { extendName } = fileData || {}
21
+ if (!extendName) return noFormatIcon
22
+ const { formatIcon } = (FILE_FORMAT_DATA || []).find(i => i.format && i.format.includes(extendName.toLowerCase())) || {}
23
+ return formatIcon || defaultIcon
24
+ }
25
+ }
26
+ }
27
+ </script>
28
+
29
+ <style lang="less" scoped>
30
+ .hr-file-list-other {
31
+ position: relative;
32
+ width: 100%;
33
+ height: 100%;
34
+ background: #f7f8fa;
35
+ display: flex;
36
+ justify-content: center;
37
+ align-items: center;
38
+ border-radius: 8px;
39
+ overflow: hidden;
40
+ img {
41
+ width: 36px;
42
+ height: 36px;
43
+ }
44
+ }
45
+ </style>
@@ -0,0 +1,38 @@
1
+ <script>
2
+ export default {
3
+ props: {
4
+ fileData: {
5
+ type: Object,
6
+ default: () => ({})
7
+ }
8
+ },
9
+ data () {
10
+ return {
11
+
12
+ }
13
+ },
14
+ render () {
15
+ const { url } = this.fileData
16
+ return (url && <div class="hr-file-list-img">
17
+ <img src={url} />
18
+ </div>)
19
+ },
20
+ methods: {
21
+
22
+ }
23
+ }
24
+ </script>
25
+
26
+ <style lang="less" scoped>
27
+ .hr-file-list-img {
28
+ position: relative;
29
+ width: 100%;
30
+ height: 100%;
31
+ border-radius: 8px;
32
+ overflow: hidden;
33
+ img {
34
+ width: 100%;
35
+ height: 100%;
36
+ }
37
+ }
38
+ </style>
@@ -0,0 +1,60 @@
1
+ <script>
2
+ import { videoIcon } from '../utils/enum.js'
3
+
4
+ const playBtnIcon = 'https://erphostjs.kye-erp.com/hr-oa-kts/ks-app/hr-fe-together-build/play-btn.svg'
5
+
6
+ export default {
7
+ props: {
8
+ fileData: {
9
+ type: Object,
10
+ default: () => ({})
11
+ }
12
+ },
13
+ render () {
14
+ const { url, coverUrl } = this.fileData
15
+ return (url && <div class="hr-file-list-video">
16
+ <img src={coverUrl ? coverUrl : videoIcon}
17
+ class={coverUrl && 'cover-img'} />
18
+ {
19
+ coverUrl && <div class="play-btn">
20
+ <img src={playBtnIcon} />
21
+ </div>
22
+ }
23
+ </div>)
24
+ }
25
+ }
26
+ </script>
27
+
28
+ <style lang="less" scoped>
29
+ .hr-file-list-video {
30
+ position: relative;
31
+ width: 100%;
32
+ height: 100%;
33
+ background: #f7f8fa;
34
+ display: flex;
35
+ justify-content: center;
36
+ align-items: center;
37
+ border-radius: 8px;
38
+ overflow: hidden;
39
+ img {
40
+ width: 36px;
41
+ height: 36px;
42
+ }
43
+ .cover-img {
44
+ width: 100%;
45
+ height: 100%;
46
+ }
47
+ .play-btn {
48
+ position: absolute;
49
+ width: 100%;
50
+ height: 100%;
51
+ display: flex;
52
+ justify-content: center;
53
+ align-items: center;
54
+ img {
55
+ width: 24px;
56
+ height: 24px;
57
+ }
58
+ }
59
+ }
60
+ </style>
@@ -0,0 +1,246 @@
1
+ <script>
2
+ import { IMG_FORMAT, VIDEO_FORMAT, FILE_TYPE, PREVIEW_FORMAT } from './utils/enum.js'
3
+ import { getFileTypeByExtendName } from './utils/fun.js'
4
+ // 图片类型
5
+ import ImgType from './file-type/picture.vue'
6
+ // 视频类型
7
+ import VideoType from './file-type/video.vue'
8
+ // 其它类型
9
+ import OtherType from './file-type/other.vue'
10
+
11
+ export default {
12
+ name: 'HrFileList',
13
+ components: {
14
+ ImgType,
15
+ VideoType,
16
+ OtherType,
17
+ },
18
+ props: {
19
+ fileList: {
20
+ type: Array,
21
+ default: () => ([])
22
+ },
23
+ // 是否需要删除
24
+ canRemove: {
25
+ type: Boolean,
26
+ default: false
27
+ },
28
+ // 是否可预览
29
+ canPreview: {
30
+ type: Boolean,
31
+ default: true
32
+ },
33
+ // 展示文件名
34
+ showFileName: {
35
+ type: Boolean,
36
+ default: false
37
+ }
38
+ },
39
+ data () {
40
+ return {
41
+ curFileList: []
42
+ }
43
+ },
44
+ watch: {
45
+ fileList: {
46
+ handler (val) {
47
+ this.setFileData(val)
48
+ },
49
+ immediate: true,
50
+ deep: true
51
+ }
52
+ },
53
+ render () {
54
+ const delDom = (item, index) => {
55
+ return <div class="del-icon" onClick={(e) => {
56
+ e.stopPropagation()
57
+ this.removeFileHandler(item, index, this.curFileList)
58
+ }}>
59
+ <ks-icon name="clear" class="icon-cls" />
60
+ </div>
61
+ }
62
+
63
+ const imgDom = (item) => {
64
+ return (this.getFileType(item) === FILE_TYPE.IMG ? <ImgType fileData={item}></ImgType> : '')
65
+ }
66
+
67
+ const videoDom = (item) => {
68
+ return (this.getFileType(item) === FILE_TYPE.VIDEO ? <VideoType fileData={item}></VideoType> : '')
69
+ }
70
+
71
+ const otherDom = (item) => {
72
+ return (![FILE_TYPE.IMG, FILE_TYPE.VIDEO].includes(this.getFileType(item)) ? <OtherType fileData={item}></OtherType> : '')
73
+ }
74
+
75
+ const fileNameDom = (item) => {
76
+ const { name } = item || {}
77
+ return (name && <div class="file-name">{name}</div>)
78
+ }
79
+
80
+ return (<div class="hr-file-list">
81
+ {
82
+ this.curFileList.map((item, index) => {
83
+ return item.url ? <div class="file-item"
84
+ onClick={() => this.fileItemClick(item, index, this.curFileList)}>
85
+ {(this.canRemove || item.canRemove) ? delDom(item, index) : ''}
86
+ {imgDom(item)}
87
+ {videoDom(item)}
88
+ {otherDom(item)}
89
+ {this.showFileName && fileNameDom(item)}
90
+ </div> : ''
91
+ })
92
+ }
93
+ </div>)
94
+ },
95
+ methods: {
96
+ // 判断文件类型
97
+ getFileType (item) {
98
+ const { extendName } = item || {}
99
+ return getFileTypeByExtendName(extendName)
100
+ },
101
+ // 设置文件数据
102
+ setFileData (file) {
103
+ this.curFileList = file || []
104
+ },
105
+ // 过滤出指定格式文件
106
+ getSpecifyFormatFile (fileFormat) {
107
+ return (this.curFileList || []).filter(i => fileFormat.includes(i.extendName ? i.extendName.toLowerCase() : i.extendName))
108
+ },
109
+ // 选项点击事件
110
+ fileItemClick (item, index, fileList) {
111
+ this.$emit('fileItemClick', item, index, fileList)
112
+ if (!this.canPreview) return
113
+ if (!(window.ks && window.ks.callFunc)) {
114
+ window.vant.Toast('当前环境不支持跨声原生能力')
115
+ return
116
+ }
117
+ const { url, name, size, extendName } = item || {}
118
+ const newExtendName = extendName ? extendName.toLowerCase() : extendName
119
+ const isCanPreviewFormat = PREVIEW_FORMAT.includes(newExtendName)
120
+ if (!isCanPreviewFormat) {
121
+ window.vant.Toast('该文件暂不支持预览')
122
+ return
123
+ }
124
+ // 点击图片类型,预览图片
125
+ if (IMG_FORMAT.includes(newExtendName)) {
126
+ const urls = this.getSpecifyFormatFile(IMG_FORMAT).map(i => i.url)
127
+ this.previewPicture({
128
+ filePaths: urls,
129
+ index
130
+ })
131
+ } else if (VIDEO_FORMAT.includes(newExtendName)) {
132
+ const httpType = (url && (url.indexOf('http://') !== -1 || url.indexOf('https://') !== -1))
133
+ this.previewVideo({
134
+ url,
135
+ type: httpType ? 0 : 1
136
+ })
137
+ } else {
138
+ this.previewFile({
139
+ filePath: url,
140
+ fileName: name,
141
+ fileSize: size
142
+ })
143
+ }
144
+ },
145
+ // 移除附件事件
146
+ removeFileHandler (item, index, fileList) {
147
+ this.$emit('removeFileItem', item, index, fileList)
148
+ },
149
+ /**
150
+ * @description: 预览图片
151
+ * @param {Array} filePaths 图片路径集合
152
+ * @param {Number} index 图片索引
153
+ * @param {Boolean} forbidMore 允许图片下载
154
+ * @param {Boolean} forbidDownload 显示三个点更多控件,可以拉起工具栏
155
+ * @return {void}
156
+ */
157
+ previewPicture ({ filePaths = [], index = 0, forbidMore = false, forbidDownload = false }) {
158
+ window.ks.callFunc({
159
+ method: 'previewAssets',
160
+ params: {
161
+ filePaths,
162
+ index,
163
+ forbidMore,
164
+ forbidDownload
165
+ }
166
+ })
167
+ },
168
+ /**
169
+ * @description: 预览视频
170
+ * @param {String} url 视频路径
171
+ * @param {Number} type 路径类型(0-在线链接 1-本地路径 3-813司庆)
172
+ * @return {void}
173
+ */
174
+ previewVideo ({ url, type }) {
175
+ window.ks.callFunc({
176
+ method: 'playVideo',
177
+ params: {
178
+ url,
179
+ type
180
+ }
181
+ })
182
+ },
183
+ /**
184
+ * @description: 预览文件
185
+ * @param {String} filePath 文件路径
186
+ * @param {String} fileName 文件名称
187
+ * @param {String} fileSize 文件大小(注:跨声原生方法预览文件,fileSize必须string类型,否则iPhone预览不了)
188
+ * @return {void}
189
+ */
190
+ previewFile ({ filePath, fileName, fileSize }) {
191
+ window.ks.callFunc({
192
+ method: 'previewFile',
193
+ params: {
194
+ filePath,
195
+ fileName,
196
+ fileSize: (fileSize || fileSize === 0) ? String(fileSize) : fileSize
197
+ }
198
+ })
199
+ },
200
+ }
201
+ }
202
+ </script>
203
+
204
+ <style lang="less" scoped>
205
+ .hr-file-list {
206
+ // width: 100%;
207
+ display: inline-block;
208
+ .file-item {
209
+ position: relative;
210
+ width: 70px;
211
+ height: 70px;
212
+ margin-bottom: 8px;
213
+ margin-right: 10px;
214
+ float: left;
215
+ .del-icon {
216
+ position: absolute;
217
+ top: -7px;
218
+ right: -7px;
219
+ z-index: 99;
220
+ width: 14px;
221
+ height: 14px;
222
+ color: #b0b3bf;
223
+ background: #ffffff;
224
+ border-radius: 50%;
225
+ display: flex;
226
+ justify-content: center;
227
+ align-items: center;
228
+ .icon-cls {
229
+ font-size: 14px;
230
+ }
231
+ }
232
+ .file-name {
233
+ position: absolute;
234
+ left: 0;
235
+ bottom: 0;
236
+ width: 100%;
237
+ height: 16px;
238
+ line-height: 16px;
239
+ font-size: 11px;
240
+ text-align: center;
241
+ color: #ffffff;
242
+ background: rgba(0, 0, 0, 0.5);
243
+ }
244
+ }
245
+ }
246
+ </style>