@kyfe/hroa-ui 1.0.0 → 1.0.2

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 (78) hide show
  1. package/dist/hroa-ui.common.js +898 -3635
  2. package/dist/hroa-ui.css +1 -6
  3. package/dist/hroa-ui.umd.js +898 -3635
  4. package/dist/hroa-ui.umd.min.js +2 -2
  5. package/dist/img/add.713653a8.svg +1 -0
  6. package/dist/img/close.6ef706b9.svg +1 -0
  7. package/lib/getJsModule/index.css +1 -6
  8. package/lib/getJsModule/index.js +2 -2
  9. package/lib/hr-add-list/index.css +1 -0
  10. package/lib/hr-add-list/index.js +1 -0
  11. package/lib/hr-bottom-button/index.js +1 -1
  12. package/lib/hr-breadcrumb/index.css +1 -0
  13. package/lib/hr-breadcrumb/index.js +9 -0
  14. package/lib/hr-button/index.js +1 -1
  15. package/lib/hr-clipboard/index.js +1 -1
  16. package/lib/hr-condition-filtrate/index.js +1 -1
  17. package/lib/hr-condition-filtrate-popup/index.js +1 -1
  18. package/lib/hr-elasticity-box/index.js +1 -1
  19. package/lib/hr-elasticity-box-item/index.js +1 -1
  20. package/lib/hr-emotional-picture/index.js +1 -1
  21. package/lib/hr-employee-choose/index.js +1 -1
  22. package/lib/hr-img-list/index.css +1 -1
  23. package/lib/hr-img-list/index.js +1 -1
  24. package/lib/hr-info-card/index.js +1 -1
  25. package/lib/hr-information/index.css +1 -0
  26. package/lib/hr-information/index.js +1 -0
  27. package/lib/hr-license-plate-number/index.js +1 -1
  28. package/lib/hr-module-card/index.js +1 -1
  29. package/lib/hr-multiterm-choose/index.css +1 -1
  30. package/lib/hr-multiterm-choose/index.js +1 -1
  31. package/lib/hr-no-data/index.js +1 -1
  32. package/lib/hr-notice-bar/index.js +1 -1
  33. package/lib/hr-open-ks/index.js +1 -1
  34. package/lib/hr-pager/index.js +1 -1
  35. package/lib/hr-popup/index.css +1 -1
  36. package/lib/hr-popup/index.js +1 -1
  37. package/lib/hr-preview-file/index.js +1 -1
  38. package/lib/hr-rate/index.js +1 -1
  39. package/lib/hr-reason-textarea/index.js +1 -1
  40. package/lib/hr-search-input/index.js +1 -1
  41. package/lib/hr-select/index.js +1 -1
  42. package/lib/hr-select-list/index.css +1 -1
  43. package/lib/hr-select-list/index.js +2 -2
  44. package/lib/hr-single-choose/index.css +1 -1
  45. package/lib/hr-single-choose/index.js +1 -1
  46. package/lib/hr-slide-pager/index.js +1 -1
  47. package/lib/hr-sort/index.js +1 -1
  48. package/lib/hr-stack-image/index.js +1 -1
  49. package/lib/hr-tab-nav/index.js +1 -1
  50. package/lib/hr-view-item/index.js +1 -1
  51. package/lib/img/add.713653a8.svg +1 -0
  52. package/lib/img/close.6ef706b9.svg +1 -0
  53. package/lib/index/index.css +1 -6
  54. package/lib/index/index.js +2 -2
  55. package/lib/utils/index.js +1 -1
  56. package/package.json +1 -1
  57. package/packages/hr-add-list/image/add.svg +1 -0
  58. package/packages/hr-add-list/image/close.svg +1 -0
  59. package/packages/hr-add-list/index.js +7 -0
  60. package/packages/hr-add-list/src/index.vue +125 -0
  61. package/packages/hr-breadcrumb/index.js +3 -0
  62. package/packages/hr-breadcrumb/src/index.vue +87 -0
  63. package/packages/hr-breadcrumb//351/235/242/345/214/205/345/261/221.md +0 -0
  64. package/packages/hr-information/index.js +7 -0
  65. package/packages/hr-information/src/index.vue +71 -0
  66. package/packages/hr-multiterm-choose/src/index.vue +30 -17
  67. package/packages/hr-popup/src/index.vue +5 -1
  68. package/packages/hr-select-list/src/index.vue +34 -6
  69. package/packages/hr-single-choose/src/index.vue +2 -2
  70. package/packages/hr-slide-pager/src/index.vue +6 -1
  71. package/lib/hr-at-input/index.css +0 -6
  72. package/lib/hr-at-input/index.js +0 -1
  73. package/packages/hr-at-input/index.js +0 -7
  74. package/packages/hr-at-input/src/blot/atPerson.js +0 -43
  75. package/packages/hr-at-input/src/index.vue +0 -472
  76. package/packages/hr-at-input/src/quill.snow.css +0 -945
  77. package/packages/hr-at-input/src/utils/index.js +0 -60
  78. /package/packages/{hr-at-input//346/224/257/346/214/201@/351/200/211/344/272/272/350/276/223/345/205/245/346/241/206.md" → hr-add-list//346/226/260/345/242/236/345/244/232/347/254/224/346/225/260/346/215/256.md"} +0 -0
@@ -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.0"]=n():t["hroa-ui@1.0.0"]=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.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"]}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kyfe/hroa-ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><g><path d="M8,0L6,0L6,6L0,6L0,8L6,8L6,14L8,14L8,8L14,8L14,6L8,6L8,0Z" fill-rule="evenodd" fill="#7972FE" fill-opacity="1"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="16" height="16" viewBox="0 0 16 16"><g><g transform="matrix(-1,0,0,1,32,0)"><path d="M16 6C16 2.686291501015239 18.68629150101524 0 22 0L32 0C32 0 32 0 32 0L32 8C32 12.418277998646346 28.418277998646346 16 24 16L16 16C16 16 16 16 16 16Z" fill="#C6C6D0" fill-opacity="1"/></g><g><path d="M8.994630292510987,6.37497901397705L11.194520292510987,4.175094013977051C11.368090292510987,4.001527413977051,11.649490292510986,4.001527413977051,11.823060292510986,4.175094013977051C11.996630292510986,4.34866001397705,11.996630292510986,4.630067013977051,11.823060292510986,4.803633013977051L9.623170292510986,7.003519013977051L11.823060292510986,9.203409013977051C11.996630292510986,9.376979013977051,11.996630292510986,9.65837901397705,11.823060292510986,9.83194901397705C11.649490292510986,10.00551901397705,11.368090292510987,10.00551901397705,11.194520292510987,9.83194901397705L8.994630292510987,7.6320590139770506L6.794744292510987,9.83194901397705C6.6211782925109866,10.00551901397705,6.339771292510986,10.00551901397705,6.166205292510987,9.83194901397705C5.992638692510987,9.65837901397705,5.992638692510987,9.376979013977051,6.166205292510987,9.203409013977051L8.366090292510986,7.003519013977051L6.166205292510987,4.803633013977051C5.992638692510987,4.630067013977051,5.992638692510987,4.34866001397705,6.166205292510987,4.175094013977051C6.339771292510986,4.001527413977051,6.6211782925109866,4.001527413977051,6.794744292510987,4.175094013977051L8.994630292510987,6.37497901397705Z" fill-rule="evenodd" fill="#FFFFFF" fill-opacity="1"/></g></g></svg>
@@ -0,0 +1,7 @@
1
+ import HrAddList from './src/index.vue'
2
+
3
+ HrAddList.install = function (Vue) {
4
+ Vue.component(HrAddList.name, HrAddList);
5
+ };
6
+
7
+ export default HrAddList
@@ -0,0 +1,125 @@
1
+ <template>
2
+ <div class="hr-data-list">
3
+ <div class="data-list-card"
4
+ v-for="(item, index) in data"
5
+ :key="index">
6
+ <div class="data-list-card-title">
7
+ <slot name="title"
8
+ :index="index + 1">
9
+ <template>
10
+ <img class="icon-image"
11
+ :src="titleImageUrl"
12
+ v-if="titleImageUrl"
13
+ alt="">
14
+ {{`${title}${showTitleIndex ? index + 1 : ''}`}}
15
+ </template>
16
+ </slot>
17
+ <div class="close-btn"
18
+ @click="deleteData(index)">
19
+ <img src="../image/close.svg"
20
+ alt="">
21
+ </div>
22
+ </div>
23
+ <slot :row="item"></slot>
24
+ </div>
25
+ <div class="add-data-btn"
26
+ @click="addData"> <img class="icon-add"
27
+ src="../image/add.svg"
28
+ alt="">{{addText}}</div>
29
+ </div>
30
+ </template>
31
+
32
+ <script>
33
+ export default {
34
+ name: 'HrAddList',
35
+ props: {
36
+ data: {
37
+ type: Array,
38
+ default: () => []
39
+ },
40
+ title: {
41
+ type: String,
42
+ default: ''
43
+ },
44
+ showTitleIndex: {
45
+ type: Boolean,
46
+ default: true
47
+ },
48
+ titleImageUrl: {
49
+ type: String,
50
+ default: ''
51
+ },
52
+ addText: {
53
+ type: String,
54
+ default: '添加'
55
+ },
56
+ },
57
+ data () {
58
+ return {
59
+ list: []
60
+ }
61
+ },
62
+ methods: {
63
+ addData () {
64
+ this.$emit('add')
65
+ },
66
+ deleteData (index) {
67
+ this.$emit('delete', index)
68
+ }
69
+ }
70
+ }
71
+ </script>
72
+
73
+ <style scoped lang="less">
74
+ .hr-data-list {
75
+ .data-list-card {
76
+ position: relative;
77
+ margin-top: 10px;
78
+ background-color: #fff;
79
+ border-radius: 6px;
80
+ overflow: hidden;
81
+ .data-list-card-title {
82
+ display: flex;
83
+ align-items: center;
84
+ padding: 12px 16px;
85
+ box-shadow: inset 0px -0.5px 0px 0px #ebedf5;
86
+ font-size: 15px;
87
+ font-weight: 500;
88
+ > .icon-image {
89
+ height: 18px;
90
+ width: 18px;
91
+ margin-right: 6px;
92
+ }
93
+ .close-btn {
94
+ position: absolute;
95
+ right: 0;
96
+ top: 0;
97
+ padding: 0 0 3px 6px;
98
+ img {
99
+ height: 16px;
100
+ width: 16px;
101
+ }
102
+ }
103
+ }
104
+ }
105
+ .add-data-btn {
106
+ display: flex;
107
+ align-items: center;
108
+ justify-content: center;
109
+ margin: 10px 0;
110
+ height: 46px;
111
+ background-color: #fff;
112
+ border-radius: 6px;
113
+ color: #7972fe;
114
+ font-size: 14px;
115
+ .icon-add {
116
+ height: 14px;
117
+ width: 14px;
118
+ margin-right: 8px;
119
+ }
120
+ &:active {
121
+ background-color: rgba(0, 0, 0, 0.1);
122
+ }
123
+ }
124
+ }
125
+ </style>
@@ -0,0 +1,3 @@
1
+ import HrBreadcrumb from './src/index.vue'
2
+
3
+ export default HrBreadcrumb
@@ -0,0 +1,87 @@
1
+ <script>
2
+ import { cloneDeep } from 'lodash'
3
+
4
+ export default {
5
+ name: 'HrBreadcrumb',
6
+ props: {
7
+ // 分隔符
8
+ separator: {
9
+ type: String,
10
+ default: '/'
11
+ },
12
+ // 节点字号
13
+ nodeSize: {
14
+ type: String,
15
+ default: '12px'
16
+ },
17
+ value: {
18
+ type: Array,
19
+ default: () => ([])
20
+ }
21
+ },
22
+ data () {
23
+ return {
24
+ listData: []
25
+ }
26
+ },
27
+ watch: {
28
+ value: {
29
+ handler (val) {
30
+ this.listData = val || []
31
+ },
32
+ immediate: true,
33
+ deep: true
34
+ }
35
+ },
36
+ render () {
37
+ return (
38
+ <div class="hr-breadcrumb">
39
+ {
40
+ this.listData.map((item, index) => {
41
+ const lastItem = index === this.listData.length - 1
42
+ return (
43
+ <span class={['node-text', lastItem ? 'disabled-text' : 'use-text']}
44
+ style={`font-size:${this.nodeSize}`}
45
+ onClick={() => this.itemClick(item, index)}>
46
+ {
47
+ index > 0 && this.separator &&
48
+ <span class="separator" domPropsInnerHTML={this.separator}></span>
49
+ }
50
+ {item.name}
51
+ </span>
52
+ )
53
+ })
54
+ }
55
+ </div>
56
+ )
57
+ },
58
+ methods: {
59
+ itemClick (item, index) {
60
+ const result = this.splitArray(this.listData, index)
61
+ this.$emit('itemClick', item, index, result)
62
+ this.$emit('change', result[0])
63
+ },
64
+ // 分割数组
65
+ splitArray (array, index) {
66
+ const arr = cloneDeep(array)
67
+ let part1 = [...arr.slice(0, index + 1)]
68
+ let part2 = [...arr.slice(index + 1)]
69
+ return [part1, part2]
70
+ }
71
+ }
72
+ }
73
+ </script>
74
+
75
+ <style lang="less" scoped>
76
+ .hr-breadcrumb {
77
+ .disabled-text {
78
+ color: #888ea6;
79
+ }
80
+ .use-text {
81
+ color: #7972fe;
82
+ }
83
+ .separator {
84
+ margin: 0 2px;
85
+ }
86
+ }
87
+ </style>
@@ -0,0 +1,7 @@
1
+ import HrInformation from './src/index.vue'
2
+
3
+ HrInformation.install = function (Vue) {
4
+ Vue.component(HrInformation.name, HrInformation)
5
+ }
6
+
7
+ export default HrInformation
@@ -0,0 +1,71 @@
1
+ <script>
2
+ const IMMOBILIZATION_WIDTH = 58
3
+ export default {
4
+ name: 'HrInformation',
5
+ props: {
6
+ title: {
7
+ type: String,
8
+ default () {
9
+ return '标题'
10
+ }
11
+ },
12
+ value: {
13
+ type: String,
14
+ default () {
15
+ return '内容'
16
+ }
17
+ },
18
+ titleColor: {
19
+ type: String,
20
+ default () {
21
+ return '#6E6D72'
22
+ }
23
+ },
24
+ valueColor: {
25
+ type: String,
26
+ default () {
27
+ return '#03050D'
28
+ }
29
+ }
30
+ },
31
+ data () {
32
+ return {}
33
+ },
34
+ computed: {
35
+ isAstrictWidth () {
36
+ return this.title.length > 5
37
+ }
38
+ },
39
+ methods: {
40
+ },
41
+ render () {
42
+ return <div class="hr-information">
43
+ <div class="information-title">
44
+ <span class="title-astrict" style={{
45
+ color: this.titleColor,
46
+ width: this.isAstrictWidth ? `${IMMOBILIZATION_WIDTH}px` : null
47
+ }}>{this.title}</span>
48
+ </div>
49
+ <span class="information-value" style={{
50
+ color: this.valueColor
51
+ }}>{this.value}</span>
52
+ </div>
53
+ }
54
+ }
55
+ </script>
56
+
57
+ <style scoped lang="less">
58
+ .hr-information {
59
+ display: flex;
60
+ font-size: 14px;
61
+ padding: 5px 0;
62
+ line-height: 20px;
63
+ .information-title {
64
+ width: 86px;
65
+ display: flex;
66
+ }
67
+ .information-value {
68
+ flex: 1;
69
+ }
70
+ }
71
+ </style>
@@ -60,6 +60,12 @@
60
60
  default () {
61
61
  return false
62
62
  }
63
+ },
64
+ checkList: { // 选中列表
65
+ type: Array,
66
+ default () {
67
+ return []
68
+ }
63
69
  }
64
70
  },
65
71
  data () {
@@ -73,9 +79,9 @@
73
79
  },
74
80
  },
75
81
  watch: {
76
- concatList: {
77
- handler (list) {
78
- this.initListActive(list)
82
+ checkList: {
83
+ handler () {
84
+ this.initListActive()
79
85
  },
80
86
  immediate: true
81
87
  }
@@ -89,28 +95,35 @@
89
95
  },
90
96
  initState () {
91
97
  },
92
- initListActive (list) {
98
+ initListActive () {
99
+ const list = this.concatList
93
100
  if (!Array.isArray(list)) return
94
- this.listActive = new Array(list.length).fill(false)
95
- this.listActive[0] = true
101
+
102
+ // 设置默认值
103
+ this.listActive = list.reduce((pre, item) => {
104
+ return pre.concat(Boolean(this.checkList.find((value) => item.value === value)))
105
+ }, [])
106
+ this.isShowAll && this.checkList.length === 0 && (this.listActive[0] = true) // 当有全部选项时,全部选中
96
107
  },
97
108
  select (index) {
109
+ console.log(index, 'index')
98
110
  const active = this.listActive[index]
99
- if (index === 0) {
100
- if (active) return
101
- this.listActive = this.listActive.map(() => false)
102
- this.$set(this.listActive, index, true)
103
- } else {
104
- this.$set(this.listActive, index, !this.listActive[index])
105
- if (this.listActive.every((item) => !item)) {
106
- this.$set(this.listActive, 0, true)
111
+ this.listActive.splice(index, 1, !active)
112
+
113
+ if (this.isShowAll) {
114
+ if (index === 0) {
115
+ this.listActive = this.listActive.map(() => false)
116
+ this.listActive.splice(index, 1, true)
107
117
  } else {
108
- this.$set(this.listActive, 0, false)
118
+ this.listActive.splice(0, 1, this.listActive.every((item) => !item))
109
119
  }
110
120
  }
111
121
  const chooseList = this.concatList.filter((item, index) => this.listActive[index])
112
122
  this.$emit('select', chooseList)
113
123
  }
124
+ },
125
+ cleanListActive () {
126
+
114
127
  },
115
128
  render () {
116
129
  const width = this.selfAdaption ? null : `calc((100% - ${this.margin * (this.divideeQually - 1)}px) / ${this.divideeQually})`
@@ -183,8 +196,8 @@
183
196
  width: 12px;
184
197
  height: 10px;
185
198
  position: absolute;
186
- bottom: 0;
187
- right: 0;
199
+ bottom: 0.5px;
200
+ right: 0.5px;
188
201
  }
189
202
  }
190
203
  .condition-item.active {
@@ -3,6 +3,7 @@
3
3
  <ks-popup v-model="showPopup"
4
4
  v-bind="$attrs"
5
5
  class="hr-fe-together-build-hr-popup"
6
+ :style="popupStyle"
6
7
  @close="close">
7
8
  <div class="title"
8
9
  v-if="title">
@@ -25,6 +26,10 @@
25
26
  title: {
26
27
  type: String,
27
28
  default: ''
29
+ },
30
+ popupStyle: {
31
+ type: [String, Object],
32
+ default: 'border-radius: 10px 10px 0 0'
28
33
  }
29
34
  },
30
35
  data () {
@@ -47,7 +52,6 @@
47
52
  </script>
48
53
  <style lang="less">
49
54
  .hr-fe-together-build-hr-popup {
50
- border-radius: 10px 10px 0 0;
51
55
  .title {
52
56
  line-height: 16px;
53
57
  padding: 16px;
@@ -43,15 +43,41 @@
43
43
  getContainer: {
44
44
  type: String,
45
45
  default: 'body'
46
+ },
47
+ closeable: {
48
+ type: Boolean
49
+ },
50
+ // 弹出位置,可选值为 top bottom right left
51
+ position: {
52
+ type: String,
53
+ default: 'bottom'
54
+ },
55
+ // 展示确认按钮
56
+ showSubmitBtn: {
57
+ type: Boolean,
58
+ default: true
46
59
  }
47
60
  },
48
61
  data () {
49
62
  return {
50
63
  isShowPopup: false,
51
- selectValue: []
64
+ selectValue: [],
65
+ popupStyle: ''
52
66
  }
53
67
  },
54
68
  watch: {
69
+ position: {
70
+ handler (val) {
71
+ const positionCls = {
72
+ top: 'border-radius: 0 0 10px 10px',
73
+ bottom: 'border-radius: 10px 10px 0 0',
74
+ left: 'border-radius: 0 10px 10px 0',
75
+ right: 'border-radius: 10px 0 0 10px '
76
+ }
77
+ this.popupStyle = positionCls[val] || 'border-radius: 0'
78
+ },
79
+ immediate: true
80
+ },
55
81
  show: {
56
82
  handler (val) {
57
83
  this.isShowPopup = val
@@ -66,9 +92,10 @@
66
92
  return (
67
93
  // get-container挂载在body的原因:防止被外部组件内容遮挡
68
94
  <HrPopup show={this.isShowPopup}
69
- closeable
70
95
  get-container={this.getContainer}
71
- position="bottom"
96
+ closeable={this.closeable}
97
+ position={this.position}
98
+ popupStyle={this.popupStyle}
72
99
  safe-area-inset-bottom
73
100
  title={this.title}
74
101
  onClose={this.close}>
@@ -86,7 +113,7 @@
86
113
  })
87
114
  }
88
115
  </div>
89
- <div class="submit-btn" onClick={this.submit}>确认</div>
116
+ {this.showSubmitBtn && <div class="submit-btn" onClick={this.submit}>确认</div>}
90
117
  </div>
91
118
  </HrPopup>
92
119
  )
@@ -118,8 +145,9 @@
118
145
  }
119
146
  },
120
147
  close () {
148
+ const selectOptions = this.columns.filter(i => this.selectValue.includes(i[this.valKey]))
121
149
  this.isShowPopup = false
122
- this.$emit('close')
150
+ this.$emit('close', this.selectValue, selectOptions)
123
151
  },
124
152
  submit () {
125
153
  const selectOptions = this.columns.filter(i => this.selectValue.includes(i[this.valKey]))
@@ -132,7 +160,7 @@
132
160
 
133
161
  <style lang="less" scoped>
134
162
  .hr-select-list {
135
- min-height: 30vh;
163
+ // min-height: 30vh;
136
164
  max-height: 70vh;
137
165
  display: flex;
138
166
  flex-direction: column;
@@ -64,7 +64,7 @@
64
64
  },
65
65
  data () {
66
66
  return {
67
- active: 0
67
+ active: -1
68
68
  }
69
69
  },
70
70
  created () {
@@ -82,7 +82,7 @@
82
82
  initState () {
83
83
  },
84
84
  select (index) {
85
- this.active = index
85
+ this.active = this.active === index ? -1 : index
86
86
  this.$emit('select', this.filterList[index])
87
87
  }
88
88
  },