@kyfe/hroa-ui 1.0.4 → 1.0.6

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 (135) hide show
  1. package/dist/hroa-ui.common.js +5345 -271
  2. package/dist/hroa-ui.css +1 -1
  3. package/dist/hroa-ui.umd.js +5345 -271
  4. package/dist/hroa-ui.umd.min.js +2 -2
  5. package/dist/img/header.7e31b1d5.png +0 -0
  6. package/lib/getJsModule/index.css +1 -1
  7. package/lib/getJsModule/index.js +2 -2
  8. package/lib/hr-add-list/index.js +1 -1
  9. package/lib/hr-bottom-button/index.js +1 -1
  10. package/lib/hr-breadcrumb/index.js +1 -1
  11. package/lib/hr-button/index.js +1 -1
  12. package/lib/hr-checkbox/index.css +1 -0
  13. package/lib/hr-checkbox/index.js +1 -0
  14. package/lib/hr-checkbox-group/index.css +1 -0
  15. package/lib/hr-checkbox-group/index.js +1 -0
  16. package/lib/hr-clipboard/index.js +1 -1
  17. package/lib/hr-collapse-card/index.css +1 -0
  18. package/lib/hr-collapse-card/index.js +1 -0
  19. package/lib/hr-condition-filtrate/index.js +1 -1
  20. package/lib/hr-condition-filtrate-popup/index.js +1 -1
  21. package/lib/hr-date-filter/index.css +1 -0
  22. package/lib/hr-date-filter/index.js +1 -0
  23. package/lib/hr-dropdown-date/index.css +1 -0
  24. package/lib/hr-dropdown-date/index.js +1 -0
  25. package/lib/hr-elasticity-box/index.js +1 -1
  26. package/lib/hr-elasticity-box-item/index.js +1 -1
  27. package/lib/hr-emotional-picture/index.js +1 -1
  28. package/lib/hr-employee-choose/index.js +1 -1
  29. package/lib/hr-file-list/index.css +1 -1
  30. package/lib/hr-file-list/index.js +1 -1
  31. package/lib/hr-full-screen/index.css +1 -0
  32. package/lib/hr-full-screen/index.js +1 -0
  33. package/lib/hr-img-list/index.js +1 -1
  34. package/lib/hr-info-card/index.js +1 -1
  35. package/lib/hr-information/index.css +1 -1
  36. package/lib/hr-information/index.js +1 -1
  37. package/lib/hr-license-plate-number/index.js +1 -1
  38. package/lib/hr-module-card/index.js +1 -1
  39. package/lib/hr-multiterm-choose/index.css +1 -1
  40. package/lib/hr-multiterm-choose/index.js +1 -1
  41. package/lib/hr-no-data/index.js +1 -1
  42. package/lib/hr-notice-bar/index.js +1 -1
  43. package/lib/hr-notification-dialog/index.css +1 -0
  44. package/lib/hr-notification-dialog/index.js +1 -0
  45. package/lib/hr-open-ks/index.js +1 -1
  46. package/lib/hr-pager/index.css +1 -1
  47. package/lib/hr-pager/index.js +1 -1
  48. package/lib/hr-popup/index.js +1 -1
  49. package/lib/hr-preview-file/index.js +1 -1
  50. package/lib/hr-radiobox/index.css +1 -0
  51. package/lib/hr-radiobox/index.js +1 -0
  52. package/lib/hr-radiobox-group/index.css +1 -0
  53. package/lib/hr-radiobox-group/index.js +1 -0
  54. package/lib/hr-rate/index.js +1 -1
  55. package/lib/hr-reason-textarea/index.js +1 -1
  56. package/lib/hr-search-input/index.js +1 -1
  57. package/lib/hr-search-tips/index.css +1 -0
  58. package/lib/hr-search-tips/index.js +9 -0
  59. package/lib/hr-select/index.js +1 -1
  60. package/lib/hr-select-list/index.js +1 -1
  61. package/lib/hr-single-choose/index.css +1 -1
  62. package/lib/hr-single-choose/index.js +1 -1
  63. package/lib/hr-slide-pager/index.css +1 -1
  64. package/lib/hr-slide-pager/index.js +1 -1
  65. package/lib/hr-sort/index.js +1 -1
  66. package/lib/hr-stack-image/index.js +1 -1
  67. package/lib/hr-tab-nav/index.css +1 -1
  68. package/lib/hr-tab-nav/index.js +1 -1
  69. package/lib/hr-time-picker/index.css +1 -0
  70. package/lib/hr-time-picker/index.js +1 -0
  71. package/lib/hr-view-item/index.js +1 -1
  72. package/lib/hr-virtual-list/index.css +1 -0
  73. package/lib/hr-virtual-list/index.js +1 -0
  74. package/lib/img/header.7e31b1d5.png +0 -0
  75. package/lib/index/index.css +1 -1
  76. package/lib/index/index.js +2 -2
  77. package/lib/utils/index.js +1 -1
  78. package/package.json +7 -3
  79. package/packages/hr-checkbox/index.js +8 -0
  80. package/packages/hr-checkbox/src/active-icon.png +0 -0
  81. package/packages/hr-checkbox/src/checkbox-group.vue +74 -0
  82. package/packages/hr-checkbox/src/checkbox.vue +226 -0
  83. package/packages/hr-checkbox/src/data.js +46 -0
  84. package/packages/hr-checkbox//345/244/215/351/200/211/346/241/206-/345/215/225/351/200/211/346/241/206.md +0 -0
  85. package/packages/hr-checkbox-group/index.js +8 -0
  86. package/packages/hr-collapse-card/index.js +3 -0
  87. package/packages/hr-collapse-card/src/images/icon_up.png +0 -0
  88. package/packages/hr-collapse-card/src/index.vue +151 -0
  89. package/packages/hr-collapse-card//346/212/230/345/217/240/345/215/241/347/211/207.md +0 -0
  90. package/packages/hr-date-filter/index.js +7 -0
  91. package/packages/hr-date-filter/src/date-select.vue +153 -0
  92. package/packages/hr-date-filter/src/index.vue +243 -0
  93. package/packages/hr-date-filter/src/style.less +130 -0
  94. package/packages/hr-date-filter/src/utils.js +109 -0
  95. package/packages/hr-dropdown-date/index.js +7 -0
  96. package/packages/hr-dropdown-date/src/calendar/calendar.js +128 -0
  97. package/packages/hr-dropdown-date/src/calendar/calendar.vue +485 -0
  98. package/packages/hr-dropdown-date/src/calendar/images/arrow@3x.png +0 -0
  99. package/packages/hr-dropdown-date/src/calendar/index.js +5 -0
  100. package/packages/hr-dropdown-date/src/date-picker/date-range-select.vue +92 -0
  101. package/packages/hr-dropdown-date/src/date-picker/month-range-select.vue +128 -0
  102. package/packages/hr-dropdown-date/src/date-picker/month-select.vue +98 -0
  103. package/packages/hr-dropdown-date/src/date-picker/style.less +120 -0
  104. package/packages/hr-dropdown-date/src/date-picker/utils.js +109 -0
  105. package/packages/hr-dropdown-date/src/index.vue +482 -0
  106. package/packages/hr-dropdown-date/src/week.js +194 -0
  107. package/packages/hr-file-list/src/index.vue +2 -2
  108. package/packages/hr-full-screen/index.js +7 -0
  109. package/packages/hr-full-screen/src/index.vue +117 -0
  110. package/packages/hr-information/src/index.vue +1 -0
  111. package/packages/hr-multiterm-choose/src/index.vue +4 -5
  112. package/packages/hr-notification-dialog/images/header.png +0 -0
  113. package/packages/hr-notification-dialog/index.js +7 -0
  114. package/packages/hr-notification-dialog/src/index.vue +293 -0
  115. package/packages/hr-notification-dialog//345/274/271/347/252/227/346/217/220/347/244/272/347/273/204/344/273/266.md +0 -0
  116. package/packages/hr-pager/index.js +1 -1
  117. package/packages/hr-pager/src/index.vue +34 -9
  118. package/packages/hr-radiobox/index.js +8 -0
  119. package/packages/hr-radiobox/src/data.js +46 -0
  120. package/packages/hr-radiobox/src/radiobox-group.vue +64 -0
  121. package/packages/hr-radiobox/src/radiobox.vue +191 -0
  122. package/packages/hr-radiobox-group/index.js +8 -0
  123. package/packages/hr-search-tips/index.js +3 -0
  124. package/packages/hr-search-tips/src/index.vue +213 -0
  125. package/packages/hr-search-tips//350/277/234/347/250/213/346/250/241/347/263/212/346/220/234/347/264/242.md +0 -0
  126. package/packages/hr-single-choose/src/index.vue +4 -5
  127. package/packages/hr-slide-pager/src/index.vue +3 -10
  128. package/packages/hr-tab-nav/src/index.vue +79 -4
  129. package/packages/hr-time-picker/index.js +3 -0
  130. package/packages/hr-time-picker/src/index.vue +85 -0
  131. package/packages/hr-time-picker//346/227/266/351/227/264/351/200/211/346/213/251/345/231/250.md +0 -0
  132. package/packages/hr-virtual-list/index.js +7 -0
  133. package/packages/hr-virtual-list/src/cc-item.vue +105 -0
  134. package/packages/hr-virtual-list/src/index.vue +227 -0
  135. package/packages/hr-virtual-list//350/231/232/346/213/237/345/210/227/350/241/250.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.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"]}));
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.6"]=n():t["hroa-ui@1.0.6"]=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.4",
3
+ "version": "1.0.6",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -8,11 +8,13 @@
8
8
  "lib": "vue-cli-service build --target lib --dest dist --name hroa-ui ./packages/index.js",
9
9
  "build:lib": "build-lib.sh",
10
10
  "docs:dev": "vuepress dev docs",
11
- "docs:build": "vuepress build docs"
11
+ "docs:serve": "concurrently \"vue-cli-service serve\" \"vuepress dev docs\"",
12
+ "docs:build": "vuepress build docs",
13
+ "iframe:build": "cross-env NODE_ENV=iframe vue-cli-service build"
12
14
  },
13
15
  "dependencies": {
14
16
  "core-js": "2.6.5",
15
- "quill": "^1.3.7",
17
+ "dayjs": "^1.11.13",
16
18
  "vue": "^2.6.10"
17
19
  },
18
20
  "devDependencies": {
@@ -22,6 +24,8 @@
22
24
  "@vue/cli-plugin-babel": "^3.12.0",
23
25
  "@vue/cli-plugin-eslint": "^3.12.0",
24
26
  "@vue/cli-service": "^3.12.0",
27
+ "concurrently": "^9.1.0",
28
+ "cross-env": "^7.0.3",
25
29
  "eslint": "^7.32.0",
26
30
  "eslint-plugin-vue": "^8.0.3",
27
31
  "less": "3.10.3",
@@ -0,0 +1,8 @@
1
+
2
+ import HrCheckbox from './src/checkbox.vue'
3
+
4
+ HrCheckbox.install = function (Vue) {
5
+ Vue.component(HrCheckbox.name, HrCheckbox)
6
+ }
7
+
8
+ export default HrCheckbox
@@ -0,0 +1,74 @@
1
+ <script>
2
+ export default {
3
+ name: 'HrCheckboxGroup',
4
+ provide () {
5
+ return {
6
+ divideeQually: this.divideeQually,
7
+ margin: this.margin,
8
+ marginBottom: this.marginBottom,
9
+ selfAdaption: this.selfAdaption,
10
+ }
11
+ },
12
+ props: {
13
+ divideeQually: {
14
+ type: Number,
15
+ default () {
16
+ return 3
17
+ }
18
+ },
19
+ margin: {
20
+ type: Number,
21
+ default () {
22
+ return 12
23
+ }
24
+ },
25
+ selfAdaption: {
26
+ type: Boolean,
27
+ default () {
28
+ return false
29
+ }
30
+ },
31
+ value: {
32
+ type: Array,
33
+ default () {
34
+ return []
35
+ }
36
+ },
37
+ marginBottom: {
38
+ type: Number,
39
+ default () {
40
+ return this.margin
41
+ }
42
+ },
43
+ },
44
+ data () {
45
+ return {
46
+ }
47
+ },
48
+ created () {
49
+ this.init()
50
+ },
51
+ methods: {
52
+ init () {
53
+ this.initState()
54
+ },
55
+ initState () {
56
+ },
57
+ },
58
+ render () {
59
+ return <div class="checkbox-group">
60
+ {
61
+ this.$slots.default
62
+ }
63
+ </div>
64
+ }
65
+ }
66
+ </script>
67
+
68
+ <style scoped lang="less">
69
+ .checkbox-group {
70
+ display: flex;
71
+ flex-wrap: wrap;
72
+ justify-content: flex-start;
73
+ }
74
+ </style>
@@ -0,0 +1,226 @@
1
+ <script>
2
+ import CheckItem from './data'
3
+
4
+ export default {
5
+ name: 'HrCheckbox',
6
+ inject: {
7
+ selfAdaption: {
8
+ from: 'selfAdaption',
9
+ default () {
10
+ return false
11
+ }
12
+ },
13
+ divideeQually: {
14
+ from: 'divideeQually',
15
+ default () {
16
+ return 3
17
+ }
18
+ },
19
+ margin: {
20
+ from: 'margin',
21
+ default () {
22
+ return 12
23
+ }
24
+ },
25
+ marginBottom: {
26
+ from: 'marginBottom',
27
+ default () {
28
+ return this.margin
29
+ }
30
+ },
31
+ },
32
+ props: {
33
+ index: {
34
+ type: Number,
35
+ default () {
36
+ return 0
37
+ }
38
+ },
39
+ value: {
40
+ type: Boolean,
41
+ default () {
42
+ return false
43
+ }
44
+ },
45
+ label: {
46
+ type: String,
47
+ default () {
48
+ return '暂无'
49
+ }
50
+ },
51
+ disabled: { // 禁用
52
+ type: Boolean,
53
+ default () {
54
+ return false
55
+ }
56
+ },
57
+ },
58
+ data () {
59
+ return {
60
+ checkItem: new CheckItem(),
61
+ isLimitExceeded: false,
62
+ selfModel: false
63
+ }
64
+ },
65
+ computed: {
66
+ // 中间层
67
+ model: {
68
+ get () {
69
+ return this.isGroup
70
+ ? this.store : this.value !== undefined
71
+ ? this.value : this.selfModel
72
+ },
73
+ set (val) {
74
+ if (this.isGroup) {
75
+ this.dispatch('HrCheckboxGroup', 'input', [val])
76
+ } else {
77
+ this.$emit('input', val)
78
+ this.selfModel = val
79
+ }
80
+ },
81
+ },
82
+ //是否有group
83
+ isGroup () {
84
+ let parent = this.$parent
85
+ while (parent) {
86
+ if (parent.$options.name !== 'HrCheckboxGroup') {
87
+ parent = parent.$parent
88
+ } else {
89
+ this._checkboxGroup = parent
90
+ return true
91
+ }
92
+ }
93
+ return false
94
+ },
95
+ // 是否选中
96
+ isChecked () {
97
+ if ({}.toString.call(this.model) === '[object Boolean]') { // 表示Boolean
98
+ return this.model
99
+ } else if (Array.isArray(this.model)) {
100
+ return this.model.indexOf(this.label) > -1
101
+ }
102
+ },
103
+ // 存放数据
104
+ store () {
105
+ return this.isGroup ? this._checkboxGroup.value : this.value
106
+ },
107
+ },
108
+ created () {
109
+ },
110
+ watch: {},
111
+ methods: {
112
+ handleChange () {
113
+ this.setModel()
114
+ this.$emit('change', this.model)
115
+ this.$nextTick(() => {
116
+ this.dispatch('HrCheckboxGroup', 'change', this._checkboxGroup.value)
117
+ })
118
+ },
119
+ // 设置model
120
+ setModel () {
121
+ if (this.isGroup) {
122
+ const model = this.model.concat() // 拷贝
123
+ if (this.isChecked) {
124
+ const index = this.model.indexOf(this.label)
125
+ model.splice(index, 1)
126
+ this.model = model
127
+ } else {
128
+ model.push(this.label)
129
+ this.model = model
130
+ }
131
+ } else {
132
+ this.model = !this.isChecked
133
+ }
134
+ },
135
+ // 修改父组件数组
136
+ dispatch (componentName, eventName, params) {
137
+ let parent = this.$parent || this.$root
138
+ let name = parent.$options.name
139
+
140
+ while (parent && (!name || name !== componentName)) {
141
+ (parent = parent.$parent) && (name = parent.$options.name)
142
+ }
143
+
144
+ parent && parent.$emit.apply(parent, [eventName].concat(params))
145
+ },
146
+ getIndex () {
147
+ return this.$parent.$children.indexOf(this)
148
+ }
149
+ },
150
+ render () {
151
+ const { value, label, selfAdaption, divideeQually, margin, marginBottom } = this
152
+ const index = this.getIndex()
153
+ this.checkItem.init({
154
+ value,
155
+ label,
156
+ selfAdaption,
157
+ divideeQually,
158
+ margin,
159
+ marginBottom,
160
+ index
161
+ })
162
+ return <div
163
+ onClick={this.handleChange}
164
+ index={index}
165
+ style={{
166
+ width: this.checkItem.width,
167
+ marginRight: this.checkItem.marginRight,
168
+ marginBottom: this.checkItem.marginBottom,
169
+ }}
170
+ class={[
171
+ 'check-item',
172
+ 'ellipsis',
173
+ this.isChecked && 'checked',
174
+ ]}>
175
+ {label}
176
+ {this.isChecked && <img class="item-icon" src={require('./active-icon.png')} />}
177
+ </div>
178
+ }
179
+ }
180
+ </script>
181
+
182
+ <style scoped lang="less">
183
+ .ellipsis {
184
+ overflow: hidden;
185
+ white-space: nowrap;
186
+ text-overflow: ellipsis;
187
+ }
188
+ .check-item {
189
+ height: 28px;
190
+ border-radius: 8px;
191
+ box-sizing: border-box;
192
+ background: #f7f8fa;
193
+ text-align: center;
194
+ line-height: 27px;
195
+ color: #03050d;
196
+ font-size: 12px;
197
+ padding: 0 8px;
198
+ position: relative;
199
+ &.checked {
200
+ background: rgba(121, 114, 254, 0.08);
201
+ color: #7972fe;
202
+ &::after {
203
+ content: " ";
204
+ position: absolute;
205
+ left: 0;
206
+ top: 0;
207
+ width: calc(200% - 2px);
208
+ height: calc(200% - 2px);
209
+ border: 1px solid #7972fe;
210
+ border-radius: 16px;
211
+ box-sizing: border-box;
212
+ -webkit-transform-origin: 0 0;
213
+ transform-origin: 0 0;
214
+ -webkit-transform: scale(0.5);
215
+ transform: scale(0.5);
216
+ }
217
+ }
218
+ .item-icon {
219
+ width: 12px;
220
+ height: 10px;
221
+ position: absolute;
222
+ bottom: 0.5px;
223
+ right: 0.5px;
224
+ }
225
+ }
226
+ </style>
@@ -0,0 +1,46 @@
1
+ export default class CheckItem {
2
+ constructor() {
3
+ this.value = ''
4
+ this.label = ''
5
+ this.selfAdaption = ''
6
+ this.divideeQually = ''
7
+ this.margin = ''
8
+ this.checkValue = ''
9
+ this.bottom = ''
10
+ this.index = ''
11
+ }
12
+
13
+ init (params = {}) {
14
+ this.initState(params)
15
+ }
16
+
17
+ initState (params) {
18
+ const { value, label, selfAdaption, divideeQually, margin, checkValue, marginBottom, index } = params
19
+ this.value = value
20
+ this.label = label
21
+ this.selfAdaption = selfAdaption
22
+ this.divideeQually = divideeQually
23
+ this.margin = margin
24
+ this.checkValue = checkValue
25
+ this.bottom = marginBottom
26
+ this.index = index
27
+ }
28
+
29
+ get width () {
30
+ return this.selfAdaption ? null : `calc((100% - ${this.margin * (this.divideeQually - 1)}px) / ${this.divideeQually})`
31
+ }
32
+
33
+ get marginRight () {
34
+ return this.selfAdaption ? `${this.margin}px` : `${(this.index + 1) % this.divideeQually === 0 ? 0 : this.margin}px`
35
+ }
36
+
37
+ get marginBottom () {
38
+ return `${this.bottom}px`
39
+ }
40
+
41
+ }
42
+
43
+ export const CHOOSE_TYPE = {
44
+ SINGLE: 'single', // 单选
45
+ MULTIPLE: 'multiple' // 多选
46
+ }
@@ -0,0 +1,8 @@
1
+
2
+ import HrCheckboxGroup from '../hr-checkbox/src/checkbox-group.vue'
3
+
4
+ HrCheckboxGroup.install = function (Vue) {
5
+ Vue.component(HrCheckboxGroup.name, HrCheckboxGroup)
6
+ }
7
+
8
+ export default HrCheckboxGroup
@@ -0,0 +1,3 @@
1
+ import HrCollapseCard from './src/index.vue'
2
+
3
+ export default HrCollapseCard
@@ -0,0 +1,151 @@
1
+ <script>
2
+ import iconUp from './images/icon_up.png'
3
+ export default {
4
+ name: 'HrCollapseCard',
5
+ props: {
6
+ title: { // 标题名称
7
+ type: String,
8
+ default: '',
9
+ },
10
+ titleBackground: { // 标题背景色
11
+ type: String,
12
+ default: '#fff',
13
+ },
14
+ contentBackground: { // 主题内容背景色
15
+ type: String,
16
+ default: '#fff',
17
+ },
18
+ collapse: { // 是否需要折叠功能
19
+ type: Boolean,
20
+ default: true,
21
+ },
22
+ defaultUnfold: { // 是否默认展开
23
+ type: Boolean,
24
+ default: true,
25
+ }
26
+ },
27
+ data () {
28
+ return {
29
+ unfold: true
30
+ }
31
+ },
32
+ created () {
33
+ this.unfold = this.defaultUnfold
34
+ },
35
+ methods: {
36
+ onCollapse () {
37
+ this.unfold = !this.unfold
38
+ }
39
+ },
40
+ render () {
41
+ const { default: soltDefault, titleSlot, titleRightSlot } = this.$scopedSlots
42
+ const titleClass = this.unfold ? 'hr-collapse-card-title' : 'hr-collapse-card-title pack-up'
43
+ const collapseImgClass = this.unfold ? 'hr-collapse-card-collapse' : 'hr-collapse-card-collapse down'
44
+ const soltDefaultClass = this.unfold ? 'hr-collapse-card-content' : 'hr-collapse-card-content down'
45
+ return (
46
+ <div class="hr-collapse-card">
47
+ <div class={titleClass} style={{ background: this.titleBackground }}>
48
+ {
49
+ titleSlot ? <div class="hr-collapse-card-title-slot">{titleSlot()}</div> : this.title
50
+ }
51
+ {
52
+ titleRightSlot && <div class="hr-collapse-card-title-right-slot" style={{ right: this.collapse ? '32px' : '16px' }}>{titleRightSlot()}</div>
53
+ }
54
+ {
55
+ this.collapse && <img class={collapseImgClass} src={iconUp} on-click={this.onCollapse} />
56
+ }
57
+ </div>
58
+ {
59
+ soltDefault && <div class={soltDefaultClass} style={{ background: this.contentBackground }}>{soltDefault()}</div>
60
+ }
61
+ </div >
62
+ )
63
+ }
64
+ }
65
+ </script>
66
+
67
+ <style lang='less' scoped>
68
+ .hr-collapse-card {
69
+ background: #fff;
70
+ border-radius: 6px;
71
+ position: relative;
72
+ .hr-collapse-card-title {
73
+ box-sizing: border-box;
74
+ height: 40px;
75
+ padding: 10px;
76
+ border-radius: 6px 6px 0 0;
77
+ position: relative;
78
+ z-index: 2;
79
+ &::before {
80
+ content: "";
81
+ display: block;
82
+ width: 200%;
83
+ height: 200%;
84
+ position: absolute;
85
+ top: 0;
86
+ left: 0;
87
+ right: 0;
88
+ bottom: 0;
89
+ z-index: 1;
90
+ border: 1px solid #e5e5e5;
91
+ border-radius: 12px 12px 0 0;
92
+ transform: scale(0.5);
93
+ transform-origin: 0 0;
94
+ }
95
+ &.pack-up {
96
+ border-radius: 6px;
97
+ &::before {
98
+ border-radius: 12px;
99
+ }
100
+ }
101
+ .hr-collapse-card-title-slot {
102
+ position: absolute;
103
+ z-index: 2;
104
+ }
105
+ .hr-collapse-card-title-right-slot {
106
+ position: absolute;
107
+ top: 10px;
108
+ z-index: 2;
109
+ }
110
+ .hr-collapse-card-collapse {
111
+ display: inline-block;
112
+ width: 12px;
113
+ height: 12px;
114
+ position: absolute;
115
+ top: 14px;
116
+ right: 16px;
117
+ z-index: 2;
118
+ transition: transform 0.2s ease-in-out;
119
+ &.down {
120
+ transform: rotate(180deg);
121
+ }
122
+ }
123
+ }
124
+ .hr-collapse-card-content {
125
+ position: relative;
126
+ z-index: 1;
127
+ transition: height 0.3s ease-in-out;
128
+ will-change: height;
129
+ &::before {
130
+ content: "";
131
+ display: block;
132
+ width: 200%;
133
+ height: 200%;
134
+ position: absolute;
135
+ top: 0;
136
+ left: 0;
137
+ right: 0;
138
+ bottom: 0;
139
+ z-index: -1;
140
+ border: 1px solid #e5e5e5;
141
+ border-top: none;
142
+ border-radius: 0 0 12px 12px;
143
+ transform: scale(0.5);
144
+ transform-origin: 0 0;
145
+ }
146
+ &.down {
147
+ display: none;
148
+ }
149
+ }
150
+ }
151
+ </style>