bkui-vue 0.0.1-beta.22 → 0.0.1-beta.25

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 (119) hide show
  1. package/dist/bkui-vue.cjs.js +8937 -3359
  2. package/dist/bkui-vue.esm.js +8938 -3361
  3. package/dist/bkui-vue.umd.js +8939 -3361
  4. package/dist/style.css +112 -2
  5. package/lib/alert/index.js +1 -1
  6. package/lib/animate-number/index.js +1 -1
  7. package/lib/backtop/index.js +10 -1
  8. package/lib/badge/index.js +1 -1
  9. package/lib/breadcrumb/index.js +1 -1
  10. package/lib/button/index.js +1 -1
  11. package/lib/card/index.js +1 -1
  12. package/lib/checkbox/common.d.ts +1 -1
  13. package/lib/checkbox/index.js +1 -1
  14. package/lib/checkbox/type.d.ts +1 -1
  15. package/lib/code-diff/code-diff.css +1 -0
  16. package/lib/code-diff/code-diff.less +1 -0
  17. package/lib/code-diff/code-diff.variable.css +1 -0
  18. package/lib/code-diff/index.d.ts +1 -1
  19. package/lib/collapse/index.js +1 -1
  20. package/lib/components.d.ts +1 -0
  21. package/lib/date-picker/date-picker.d.ts +2 -2
  22. package/lib/date-picker/index.d.ts +7 -7
  23. package/lib/date-picker/index.js +1 -1
  24. package/lib/date-picker/props.d.ts +2 -2
  25. package/lib/date-picker/utils.d.ts +1 -1
  26. package/lib/dialog/dialog.d.ts +2 -2
  27. package/lib/dialog/index.d.ts +7 -7
  28. package/lib/dialog/index.js +1 -1
  29. package/lib/divider/index.js +1 -1
  30. package/lib/dropdown/index.d.ts +1 -1
  31. package/lib/dropdown/index.js +1 -1
  32. package/lib/exception/index.js +1 -1
  33. package/lib/fixed-navbar/index.js +1 -1
  34. package/lib/form/form-item.d.ts +7 -21
  35. package/lib/form/form.css +9 -0
  36. package/lib/form/form.d.ts +9 -29
  37. package/lib/form/form.less +14 -1
  38. package/lib/form/form.variable.css +9 -0
  39. package/lib/form/index.d.ts +18 -58
  40. package/lib/form/index.js +1 -1
  41. package/lib/input/index.d.ts +4 -4
  42. package/lib/input/index.js +2 -2
  43. package/lib/input/input.d.ts +1 -1
  44. package/lib/link/index.js +1 -1
  45. package/lib/loading/index.d.ts +1 -1
  46. package/lib/loading/index.js +1 -1
  47. package/lib/loading/loading.css +2 -0
  48. package/lib/loading/loading.d.ts +1 -0
  49. package/lib/loading/loading.less +2 -0
  50. package/lib/loading/loading.variable.css +2 -0
  51. package/lib/menu/index.js +1 -1
  52. package/lib/menu/utils.d.ts +1 -1
  53. package/lib/message/index.js +1 -1
  54. package/lib/message/messageConstructor.d.ts +1 -1
  55. package/lib/modal/index.d.ts +4 -4
  56. package/lib/modal/index.js +1 -1
  57. package/lib/modal/modal.d.ts +1 -1
  58. package/lib/notify/index.js +1 -1
  59. package/lib/notify/notifyConstructor.d.ts +1 -1
  60. package/lib/pagination/index.d.ts +4 -4
  61. package/lib/pagination/index.js +1 -1
  62. package/lib/pagination/pagination.d.ts +1 -1
  63. package/lib/popover/index.d.ts +7 -7
  64. package/lib/popover/index.js +1 -1
  65. package/lib/popover/popover.d.ts +2 -2
  66. package/lib/process/index.js +2 -2
  67. package/lib/progress/index.d.ts +4 -4
  68. package/lib/progress/index.js +1 -1
  69. package/lib/progress/progress.d.ts +1 -1
  70. package/lib/radio/common.d.ts +1 -1
  71. package/lib/radio/index.d.ts +1 -1
  72. package/lib/radio/index.js +1 -1
  73. package/lib/radio/type.d.ts +1 -1
  74. package/lib/rate/index.js +1 -1
  75. package/lib/select/index.js +12 -12
  76. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +0 -1
  77. package/lib/shared/index.d.ts +4 -14
  78. package/lib/shared/index.js +1 -1
  79. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +0 -0
  80. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +0 -0
  81. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +1 -1
  82. package/lib/shared/vue-types.d.ts +1 -1
  83. package/lib/sideslider/index.d.ts +4 -4
  84. package/lib/sideslider/index.js +1 -1
  85. package/lib/sideslider/sideslider.d.ts +1 -1
  86. package/lib/slider/index.js +2 -2
  87. package/lib/steps/index.js +2 -2
  88. package/lib/styles/index.d.ts +1 -0
  89. package/lib/styles/index.js +1 -1
  90. package/lib/swiper/index.d.ts +181 -0
  91. package/lib/swiper/index.js +1 -0
  92. package/lib/swiper/swiper.css +91 -0
  93. package/lib/swiper/swiper.d.ts +65 -0
  94. package/lib/swiper/swiper.less +91 -0
  95. package/lib/swiper/swiper.variable.css +91 -0
  96. package/lib/switcher/index.js +1 -1
  97. package/lib/tab/index.js +1 -1
  98. package/lib/tab/tab-nav.d.ts +1 -1
  99. package/lib/table/index.d.ts +14 -14
  100. package/lib/table/index.js +10 -1
  101. package/lib/table/render.d.ts +1 -1
  102. package/lib/table/table.d.ts +5 -5
  103. package/lib/tag/index.d.ts +3 -3
  104. package/lib/tag/index.js +1 -1
  105. package/lib/tag/tag.d.ts +1 -1
  106. package/lib/timeline/index.js +1 -1
  107. package/lib/transfer/index.d.ts +325 -1
  108. package/lib/transfer/index.js +1 -1
  109. package/lib/tree/index.d.ts +7 -4
  110. package/lib/tree/index.js +1 -1
  111. package/lib/tree/tree.css +10 -2
  112. package/lib/tree/tree.d.ts +19 -10
  113. package/lib/tree/tree.less +16 -6
  114. package/lib/tree/tree.variable.css +103 -2
  115. package/lib/tree/util.d.ts +1 -1
  116. package/lib/virtual-render/index.d.ts +4 -4
  117. package/lib/virtual-render/index.js +10 -1
  118. package/lib/virtual-render/virtual-render.d.ts +3 -3
  119. package/package.json +14 -12
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("../input")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","../input"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e.Input)}(this,(function(e,t,a,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=r(n),l={exports:{}};!function(e){var t=function(e){var t,a=Object.prototype,n=a.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},u=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function i(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(e){i=function(e,t,a){return e[t]=a}}function c(e,t,a,n){var r=t&&t.prototype instanceof h?t:h,u=Object.create(r.prototype),l=new C(n||[]);return u._invoke=function(e,t,a){var n=m;return function(r,u){if(n===f)throw new Error("Generator is already running");if(n===d){if("throw"===r)throw u;return j()}for(a.method=r,a.arg=u;;){var l=a.delegate;if(l){var o=k(l,a);if(o){if(o===p)continue;return o}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(n===m)throw n=d,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n=f;var i=s(e,t,a);if("normal"===i.type){if(n=a.done?d:v,i.arg===p)continue;return{value:i.arg,done:a.done}}"throw"===i.type&&(n=d,a.method="throw",a.arg=i.arg)}}}(e,a,l),u}function s(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var m="suspendedStart",v="suspendedYield",f="executing",d="completed",p={};function h(){}function V(){}function y(){}var b={};i(b,u,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(T([])));w&&w!==a&&n.call(w,u)&&(b=w);var x=y.prototype=h.prototype=Object.create(b);function N(e){["next","throw","return"].forEach((function(t){i(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function a(r,u,l,o){var i=s(e[r],e,u);if("throw"!==i.type){var c=i.arg,m=c.value;return m&&"object"==typeof m&&n.call(m,"__await")?t.resolve(m.__await).then((function(e){a("next",e,l,o)}),(function(e){a("throw",e,l,o)})):t.resolve(m).then((function(e){c.value=e,l(c)}),(function(e){return a("throw",e,l,o)}))}o(i.arg)}var r;this._invoke=function(e,n){function u(){return new t((function(t,r){a(e,n,t,r)}))}return r=r?r.then(u,u):u()}}function k(e,a){var n=e.iterator[a.method];if(n===t){if(a.delegate=null,"throw"===a.method){if(e.iterator.return&&(a.method="return",a.arg=t,k(e,a),"throw"===a.method))return p;a.method="throw",a.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=s(n,e.iterator,a.arg);if("throw"===r.type)return a.method="throw",a.arg=r.arg,a.delegate=null,p;var u=r.arg;return u?u.done?(a[e.resultName]=u.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,p):u:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function T(e){if(e){var a=e[u];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,l=function a(){for(;++r<e.length;)if(n.call(e,r))return a.value=e[r],a.done=!1,a;return a.value=t,a.done=!0,a};return l.next=l}}return{next:j}}function j(){return{value:t,done:!0}}return V.prototype=y,i(x,"constructor",y),i(y,"constructor",V),V.displayName=i(y,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===V||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,i(e,o,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},N(L.prototype),i(L.prototype,l,(function(){return this})),e.AsyncIterator=L,e.async=function(t,a,n,r,u){void 0===u&&(u=Promise);var l=new L(c(t,a,n,r),u);return e.isGeneratorFunction(a)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},N(x),i(x,o,"Generator"),i(x,u,(function(){return this})),i(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var a in e)t.push(a);return t.reverse(),function a(){for(;t.length;){var n=t.pop();if(n in e)return a.value=n,a.done=!1,a}return a.done=!0,a}},e.values=T,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(B),!e)for(var a in this)"t"===a.charAt(0)&&n.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var a=this;function r(n,r){return o.type="throw",o.arg=e,a.next=n,r&&(a.method="next",a.arg=t),!!r}for(var u=this.tryEntries.length-1;u>=0;--u){var l=this.tryEntries[u],o=l.completion;if("root"===l.tryLoc)return r("end");if(l.tryLoc<=this.prev){var i=n.call(l,"catchLoc"),c=n.call(l,"finallyLoc");if(i&&c){if(this.prev<l.catchLoc)return r(l.catchLoc,!0);if(this.prev<l.finallyLoc)return r(l.finallyLoc)}else if(i){if(this.prev<l.catchLoc)return r(l.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return r(l.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var u=r;break}}u&&("break"===e||"continue"===e)&&u.tryLoc<=t&&t<=u.finallyLoc&&(u=null);var l=u?u.completion:{};return l.type=e,l.arg=t,u?(this.method="next",this.next=u.finallyLoc,p):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),B(a),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var n=a.completion;if("throw"===n.type){var r=n.arg;B(a)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,n){return this.delegate={iterator:T(e),resultName:a,nextLoc:n},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(l);var o=l.exports;
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../input"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../input","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Input,e.Shared)}(this,(function(e,t,a,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=r(a),l={exports:{}};!function(e){var t=function(e){var t,a=Object.prototype,n=a.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},u=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function i(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(e){i=function(e,t,a){return e[t]=a}}function c(e,t,a,n){var r=t&&t.prototype instanceof h?t:h,u=Object.create(r.prototype),l=new C(n||[]);return u._invoke=function(e,t,a){var n=m;return function(r,u){if(n===f)throw new Error("Generator is already running");if(n===d){if("throw"===r)throw u;return j()}for(a.method=r,a.arg=u;;){var l=a.delegate;if(l){var o=k(l,a);if(o){if(o===p)continue;return o}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(n===m)throw n=d,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n=f;var i=s(e,t,a);if("normal"===i.type){if(n=a.done?d:v,i.arg===p)continue;return{value:i.arg,done:a.done}}"throw"===i.type&&(n=d,a.method="throw",a.arg=i.arg)}}}(e,a,l),u}function s(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var m="suspendedStart",v="suspendedYield",f="executing",d="completed",p={};function h(){}function V(){}function y(){}var b={};i(b,u,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(T([])));w&&w!==a&&n.call(w,u)&&(b=w);var x=y.prototype=h.prototype=Object.create(b);function N(e){["next","throw","return"].forEach((function(t){i(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function a(r,u,l,o){var i=s(e[r],e,u);if("throw"!==i.type){var c=i.arg,m=c.value;return m&&"object"==typeof m&&n.call(m,"__await")?t.resolve(m.__await).then((function(e){a("next",e,l,o)}),(function(e){a("throw",e,l,o)})):t.resolve(m).then((function(e){c.value=e,l(c)}),(function(e){return a("throw",e,l,o)}))}o(i.arg)}var r;this._invoke=function(e,n){function u(){return new t((function(t,r){a(e,n,t,r)}))}return r=r?r.then(u,u):u()}}function k(e,a){var n=e.iterator[a.method];if(n===t){if(a.delegate=null,"throw"===a.method){if(e.iterator.return&&(a.method="return",a.arg=t,k(e,a),"throw"===a.method))return p;a.method="throw",a.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=s(n,e.iterator,a.arg);if("throw"===r.type)return a.method="throw",a.arg=r.arg,a.delegate=null,p;var u=r.arg;return u?u.done?(a[e.resultName]=u.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,p):u:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function T(e){if(e){var a=e[u];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,l=function a(){for(;++r<e.length;)if(n.call(e,r))return a.value=e[r],a.done=!1,a;return a.value=t,a.done=!0,a};return l.next=l}}return{next:j}}function j(){return{value:t,done:!0}}return V.prototype=y,i(x,"constructor",y),i(y,"constructor",V),V.displayName=i(y,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===V||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,i(e,o,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},N(L.prototype),i(L.prototype,l,(function(){return this})),e.AsyncIterator=L,e.async=function(t,a,n,r,u){void 0===u&&(u=Promise);var l=new L(c(t,a,n,r),u);return e.isGeneratorFunction(a)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},N(x),i(x,o,"Generator"),i(x,u,(function(){return this})),i(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var a in e)t.push(a);return t.reverse(),function a(){for(;t.length;){var n=t.pop();if(n in e)return a.value=n,a.done=!1,a}return a.done=!0,a}},e.values=T,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(B),!e)for(var a in this)"t"===a.charAt(0)&&n.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var a=this;function r(n,r){return o.type="throw",o.arg=e,a.next=n,r&&(a.method="next",a.arg=t),!!r}for(var u=this.tryEntries.length-1;u>=0;--u){var l=this.tryEntries[u],o=l.completion;if("root"===l.tryLoc)return r("end");if(l.tryLoc<=this.prev){var i=n.call(l,"catchLoc"),c=n.call(l,"finallyLoc");if(i&&c){if(this.prev<l.catchLoc)return r(l.catchLoc,!0);if(this.prev<l.finallyLoc)return r(l.finallyLoc)}else if(i){if(this.prev<l.catchLoc)return r(l.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return r(l.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var u=r;break}}u&&("break"===e||"continue"===e)&&u.tryLoc<=t&&t<=u.finallyLoc&&(u=null);var l=u?u.completion:{};return l.type=e,l.arg=t,u?(this.method="next",this.next=u.finallyLoc,p):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),B(a),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var n=a.completion;if("throw"===n.type){var r=n.arg;B(a)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,n){return this.delegate={iterator:T(e),resultName:a,nextLoc:n},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(l);var o=l.exports;
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,4 +12,4 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function i(e,t,a,n){return new(a||(a=Promise))((function(r,u){function l(e){try{i(n.next(e))}catch(e){u(e)}}function o(e){try{i(n.throw(e))}catch(e){u(e)}}function i(e){var t;e.done?r(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(l,o)}i((n=n.apply(e,t||[])).next())}))}var c=t.defineComponent({name:"SliderButton",props:{modelValue:{type:Number,default:0},params:{type:Object,default:function(){return{}}}},emits:["emitChange","resetSize","update:modelValue"],setup:function(e,a){var n=a.emit,r=t.ref(!1),u=t.ref(!1),l=t.ref(0),o=t.ref(0),i=t.ref(0),c=t.ref(null),v=t.ref(e.modelValue),f=t.ref(0),d=t.ref(0),p=t.ref(!1),h=t.ref(null),V=t.computed((function(){return"".concat((e.modelValue-e.params.minValue)/(e.params.maxValue-e.params.minValue)*100,"%")})),y=t.computed((function(){return e.params.vertical?{bottom:V.value}:{left:V.value}})),b=t.computed((function(){return e.params.formatterButtonLabel(e.modelValue)})),g=function(t){e.params.disable||(t.preventDefault(),w(t),s(window,"mousemove",x),s(window,"touchmove",x),s(window,"mouseup",N),s(window,"touchend",N))},w=function(t){r.value=!0,u.value=!0,e.params.vertical?l.value=t.clientY:o.value=t.clientX,i.value=parseFloat(V.value),c.value=i.value},x=function(t){if(r.value){u.value=!1,n("resetSize");var a=0;e.params.vertical?(f.value=t.clientY,a=(l.value-f.value)/e.params.sliderSize*100):(d.value=t.clientX,a=(d.value-o.value)/e.params.sliderSize*100),c.value=i.value+a,L(c.value)}},N=function e(){p.value=!1,r.value&&(setTimeout((function(){r.value=!1,u.value||(L(c.value),n("emitChange"))}),0),m(window,"mousemove",x),m(window,"touchmove",x),m(window,"mouseup",e),m(window,"touchend",e))},L=function(t){if(null!==t&&!isNaN(t)){t<0?c.value=0:t>100&&(c.value=100);var a=100/((e.params.maxValue-e.params.minValue)/e.params.step),u=Math.round(t/a)*a*(e.params.maxValue-e.params.minValue)*.01+e.params.minValue;u=parseFloat(u.toFixed(e.params.precision)),n("update:modelValue",u),r.value||e.modelValue===v.value||(v.value=e.modelValue)}};return{renderDom:function(){return t.createVNode("div",{class:["bk-slider-button",e.params.vertical?"vertical":"horizontal",{grabbing:r.value}],ref:h,tabindex:"0",style:y.value,onClick:function(e){return e.stopPropagation()},onMousedown:g},[t.createVNode("div",{class:["slider-button",{"slider-button-disable":e.params.disable}]},null),e.params.showButtonLabel&&!e.params.showIntervalLabel?t.createVNode("div",{class:["slider-button-label",e.params.vertical?"vertical":"horizontal"]},[b.value]):void 0])},setPosition:L}},render:function(){return this.renderDom()}}),s=function(e,t,a){e&&t&&a&&e.addEventListener(t,a,!1)},m=function(e,t,a){e&&t&&a&&e.removeEventListener(t,a,!1)},v=t.defineComponent({name:"Slider",props:{modelValue:a.PropTypes.oneOfType([a.PropTypes.array,a.PropTypes.number]),extCls:{type:String,default:""},vertical:{type:Boolean,default:!1},height:{type:String,default:"200px"},disable:{type:Boolean,default:!1},showTip:{type:Boolean,default:!1},maxValue:{type:[Number],default:100},minValue:{type:[Number],default:0},step:{type:[Number],default:1},range:{type:Boolean,default:!1},showInterval:{type:Boolean,default:!1},showIntervalLabel:{type:Boolean,default:!1},showButtonLabel:{type:Boolean,default:!1},showBetweenLabel:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},customContent:{type:Object},formatterLabel:{type:Function,default:function(e){return e}},formatterButtonLabel:{type:Function,default:function(e){return e}}},emits:["update:modelValue","change"],setup:function(e,a){var n=this,r=a.slots,l=a.emit,m=t.ref(1),v=t.ref(null),f=t.ref(null),d=t.ref(null),p=t.ref(0),h=t.ref(0),V=t.ref(0),y=t.ref(null),b=t.ref(null),g=t.ref(null),w=t.ref(null),x=t.computed((function(){var t=[e.minValue,e.maxValue,e.step].map((function(e){var t="".concat(e).split(".")[1];return t?t.length:0}));return Math.max.apply(null,t)})),N=t.computed((function(){return Math.min(v.value,f.value)})),L=t.computed((function(){return Math.max(v.value,f.value)})),k=t.computed((function(){return e.range?"".concat(100*(L.value-N.value)/(e.maxValue-e.minValue),"%"):"".concat(100*(v.value-e.minValue)/(e.maxValue-e.minValue),"%")})),E=t.computed((function(){return e.range?"".concat(100*(N.value-e.minValue)/(e.maxValue-e.minValue),"%"):"0%"})),B=t.computed((function(){return e.vertical?{height:k.value,bottom:E.value}:{width:k.value,left:E.value}})),C=t.computed((function(){if(!e.showInterval||e.minValue>e.maxValue)return[];if(0===e.step)return console.warn("WARNNING:step should not be 0"),[];for(var t=(e.maxValue-e.minValue)/e.step,a=100*e.step/(e.maxValue-e.minValue),n=[],r=1;r<t;r++)n.push(r*a);return e.range?n.filter((function(t){return t<100*(N.value-e.minValue)/(e.maxValue-e.minValue)||t>100*(L.value-e.minValue)/(e.maxValue-e.minValue)})):n.filter((function(t){return t>100*(v.value-e.minValue)/(e.maxValue-e.minValue)}))})),T=t.computed((function(){return e.vertical?{height:e.height,width:"4px"}:{}})),j=t.computed((function(){if(!e.showIntervalLabel)return[];if(0===e.step)return console.warn("WARNNING:step should not be 0"),[];for(var t=(e.maxValue-e.minValue)/e.step,a=100*e.step/(e.maxValue-e.minValue),n=[],r=0;r<=t;r++){var u={stepWidth:r*a,stepLabel:e.formatterLabel(r*e.step)};n.push(u)}return n})),I=t.computed((function(){return Array.isArray(e.modelValue)})),S=t.computed((function(){return e.customContent?Object.keys(e.customContent).sort((function(e,t){return Number(e)-Number(t)})).filter((function(t){return Number(t)>=e.minValue&&Number(t)<=e.maxValue})).map((function(t){var a=e.customContent[t].tip,n=e.customContent[t].label;return{tip:a||n||"",label:n||"",percent:(Number(t)-e.minValue)/(e.maxValue-e.minValue)*100}})):[]})),O=t.computed((function(){return{vertical:e.vertical,showTip:e.showTip,disable:e.disable,maxValue:e.maxValue,minValue:e.minValue,step:e.step,precision:x.value,showButtonLabel:e.showButtonLabel,formatterButtonLabel:e.formatterButtonLabel,showIntervalLabel:e.showIntervalLabel,customContent:e.customContent,sliderSize:m.value}}));t.watch((function(){return e.modelValue}),(function(){z()})),t.watch((function(){return v.value}),(function(t){e.range?l("update:modelValue",[N.value,L.value]):l("update:modelValue",t),h.value=t})),t.watch((function(){return f.value}),(function(e){l("update:modelValue",[N.value,L.value]),V.value=e})),t.onMounted((function(){e.range?(Array.isArray(e.modelValue)?(v.value=Math.max(e.minValue,Number(e.modelValue[0])),f.value=Math.min(e.maxValue,Number(e.modelValue[1]))):(v.value=e.minValue,f.value=e.maxValue),d.value=[v.value,f.value]):("number"!=typeof e.modelValue||isNaN(e.modelValue)?v.value=e.minValue:v.value=Math.min(e.maxValue,Math.max(e.minValue,e.modelValue)),d.value=v.value),p.value=100*e.step/(e.maxValue-e.minValue),_(),s(window,"resize",_())}));var _=function(){y.value&&(m.value=y.value["client".concat(e.vertical?"Height":"Width")])},P=function(t){var a,n;if(t.stopPropagation(),!e.disable){if(_(),e.vertical){var r=null===(a=y.value)||void 0===a?void 0:a.getBoundingClientRect().bottom;G((r-t.clientY)/m.value*100)}else{var u=null===(n=y.value)||void 0===n?void 0:n.getBoundingClientRect().left;G((t.clientX-u)/m.value*100)}M()}},F=function(){return e.range?![N.value,L.value].every((function(e,t){return e===d.value[t]})):e.modelValue!==d.value},z=function(){if(e.minValue>e.maxValue)console.error("min should not be greater than max.");else{var t=e.modelValue;e.range&&Array.isArray(t)?t[1]<e.minValue?l("update:modelValue",[e.minValue,e.minValue]):t[0]>e.maxValue?l("update:modelValue",[e.maxValue,e.maxValue]):t[0]<e.minValue?l("update:modelValue",[e.minValue,t[1]]):t[1]>e.maxValue?l("update:modelValue",[t[0],e.maxValue]):(v.value=Number(t[0]),f.value=Number(t[1]),F()&&(d.value=t.slice())):e.range||"number"!=typeof t||isNaN(t)||(t<e.minValue?l("update:modelValue",e.minValue):t>e.maxValue?l("update:modelValue",e.maxValue):(v.value=t,F()&&(d.value=t)))}},M=function(){return i(n,void 0,void 0,o.mark((function a(){return o.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.nextTick();case 2:l("change",e.range?[N.value,L.value]:e.modelValue);case 3:case"end":return a.stop()}}),a)})))},A=function(t){return e.vertical?{bottom:"".concat(t,"%")}:{left:"".concat(t,"%")}},G=function(t){if(e.range){var a=e.minValue+t*(e.maxValue-e.minValue)/100;Math.abs(N.value-a)<Math.abs(L.value-a)?w.value=v.value<f.value?b.value:g.value:w.value=v.value>f.value?b.value:g.value,w.setPosition(t)}else b.value.setPosition(t)},R=function(t){if(""!==t){var a=parseFloat(t);a<e.minValue?(h.value=e.minValue,v.value=e.minValue):a>e.maxValue?(h.value=e.maxValue,v.value=e.maxValue):v.value=a}},D=function(t){if(""!==t){var a=parseFloat(t);a<e.minValue?(V.value=e.minValue,f.value=e.minValue):a>e.maxValue?(V.value=e.maxValue,f.value=e.maxValue):f.value=a}},W=function(t){var a=0;return a="start"===t?e.vertical?e.maxValue:e.minValue:e.vertical?e.minValue:e.maxValue,e.showButtonLabel&&[v.value,f.value].includes(a)?"0":"1"};return{renderDom:function(){var a,n;return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:["bk-slider",e.extCls]},[null===(a=r.start)||void 0===a?void 0:a.call(r),t.createVNode("div",{class:"bk-slider-runway",ref:y,style:T.value,onClick:P},[t.createVNode("div",{class:["bk-slider-bar",e.vertical?"vertical":"horizontal",{disable:e.disable}],style:B.value},null),e.showInterval?C.value.map((function(a,n){return t.createVNode("div",{key:n,class:["bk-slider-interval",{vertical:e.vertical}],style:A(a)},null)})):void 0,e.customContent?S.value.map((function(a,n){return t.createVNode("div",{key:n,class:["bk-slider-interval",{vertical:e.vertical}],style:A(a.percent)},null)})):void 0,e.showBetweenLabel||e.showIntervalLabel||e.customContent?t.createVNode("div",{class:["bk-slider-labels",e.vertical?"vertical":"horizontal"]},[e.showBetweenLabel?[t.createVNode("div",{class:"label-start",style:[{opacity:W("start")}]},[e.formatterLabel(e.minValue)]),t.createVNode("div",{class:"label-end",style:[{opacity:W("end")}]},[e.formatterLabel(e.maxValue)])]:e.showIntervalLabel?j.value.map((function(a,n){return t.createVNode("div",{class:["bk-slider-label",e.vertical?"vertical":"horizontal"],key:n,style:A(a.stepWidth)},[a.stepLabel])})):e.customContent?S.value.map((function(a,n){return t.createVNode("div",{class:["bk-slider-label",e.vertical?"vertical":"horizontal"],key:n,style:A(a.percent)},[a.label])})):void 0]):void 0,t.createVNode(c,{modelValue:v.value,"onUpdate:modelValue":function(e){return v.value=e},ref:b,params:O.value,onEmitChange:M,onResetSize:_},null),e.range?t.createVNode(c,{modelValue:f.value,"onUpdate:modelValue":function(e){return f.value=e},ref:g,params:O.value,onEmitChange:M,onResetSize:_},null):void 0]),e.showInput&&!e.vertical?t.createVNode("div",{class:"bk-slider-input"},[t.createVNode("div",{class:"input-item"},[t.createVNode(u.default,{type:"number",modelValue:h.value,"onUpdate:modelValue":function(e){return h.value=e},max:e.maxValue,min:e.minValue,onChange:R},null)]),I.value&&f.value?t.createVNode(t.Fragment,null,[t.createVNode("div",{class:"input-center"},[t.createTextVNode("~")]),t.createVNode("div",{class:"input-item"},[t.createVNode(u.default,{type:"number",modelValue:V.value,"onUpdate:modelValue":function(e){return V.value=e},max:e.maxValue,min:e.minValue,onChange:D},null)])]):void 0]):void 0,null===(n=r.end)||void 0===n?void 0:n.call(r)])])}}},render:function(){return this.renderDom()}});v.install=function(e){e.component(v.name,v)},e.default=v,Object.defineProperty(e,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */function i(e,t,a,n){return new(a||(a=Promise))((function(r,u){function l(e){try{i(n.next(e))}catch(e){u(e)}}function o(e){try{i(n.throw(e))}catch(e){u(e)}}function i(e){var t;e.done?r(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(l,o)}i((n=n.apply(e,t||[])).next())}))}var c=t.defineComponent({name:"SliderButton",props:{modelValue:{type:Number,default:0},params:{type:Object,default:function(){return{}}}},emits:["emitChange","resetSize","update:modelValue"],setup:function(e,a){var n=a.emit,r=t.ref(!1),u=t.ref(!1),l=t.ref(0),o=t.ref(0),i=t.ref(0),c=t.ref(null),v=t.ref(e.modelValue),f=t.ref(0),d=t.ref(0),p=t.ref(!1),h=t.ref(null),V=t.computed((function(){return"".concat((e.modelValue-e.params.minValue)/(e.params.maxValue-e.params.minValue)*100,"%")})),y=t.computed((function(){return e.params.vertical?{bottom:V.value}:{left:V.value}})),b=t.computed((function(){return e.params.formatterButtonLabel(e.modelValue)})),g=function(t){e.params.disable||(t.preventDefault(),w(t),s(window,"mousemove",x),s(window,"touchmove",x),s(window,"mouseup",N),s(window,"touchend",N))},w=function(t){r.value=!0,u.value=!0,e.params.vertical?l.value=t.clientY:o.value=t.clientX,i.value=parseFloat(V.value),c.value=i.value},x=function(t){if(r.value){u.value=!1,n("resetSize");var a=0;e.params.vertical?(f.value=t.clientY,a=(l.value-f.value)/e.params.sliderSize*100):(d.value=t.clientX,a=(d.value-o.value)/e.params.sliderSize*100),c.value=i.value+a,L(c.value)}},N=function e(){p.value=!1,r.value&&(setTimeout((function(){r.value=!1,u.value||(L(c.value),n("emitChange"))}),0),m(window,"mousemove",x),m(window,"touchmove",x),m(window,"mouseup",e),m(window,"touchend",e))},L=function(t){if(null!==t&&!isNaN(t)){t<0?c.value=0:t>100&&(c.value=100);var a=100/((e.params.maxValue-e.params.minValue)/e.params.step),u=Math.round(t/a)*a*(e.params.maxValue-e.params.minValue)*.01+e.params.minValue;u=parseFloat(u.toFixed(e.params.precision)),n("update:modelValue",u),r.value||e.modelValue===v.value||(v.value=e.modelValue)}};return{renderDom:function(){return t.createVNode("div",{class:["bk-slider-button",e.params.vertical?"vertical":"horizontal",{grabbing:r.value}],ref:h,tabindex:"0",style:y.value,onClick:function(e){return e.stopPropagation()},onMousedown:g},[t.createVNode("div",{class:["slider-button",{"slider-button-disable":e.params.disable}]},null),e.params.showButtonLabel&&!e.params.showIntervalLabel?t.createVNode("div",{class:["slider-button-label",e.params.vertical?"vertical":"horizontal"]},[b.value]):void 0])},setPosition:L}},render:function(){return this.renderDom()}}),s=function(e,t,a){e&&t&&a&&e.addEventListener(t,a,!1)},m=function(e,t,a){e&&t&&a&&e.removeEventListener(t,a,!1)},v=t.defineComponent({name:"Slider",props:{modelValue:n.PropTypes.oneOfType([n.PropTypes.array,n.PropTypes.number]),extCls:{type:String,default:""},vertical:{type:Boolean,default:!1},height:{type:String,default:"200px"},disable:{type:Boolean,default:!1},showTip:{type:Boolean,default:!1},maxValue:{type:[Number],default:100},minValue:{type:[Number],default:0},step:{type:[Number],default:1},range:{type:Boolean,default:!1},showInterval:{type:Boolean,default:!1},showIntervalLabel:{type:Boolean,default:!1},showButtonLabel:{type:Boolean,default:!1},showBetweenLabel:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},customContent:{type:Object},formatterLabel:{type:Function,default:function(e){return e}},formatterButtonLabel:{type:Function,default:function(e){return e}}},emits:["update:modelValue","change"],setup:function(e,a){var n=this,r=a.slots,l=a.emit,m=t.ref(1),v=t.ref(null),f=t.ref(null),d=t.ref(null),p=t.ref(0),h=t.ref(0),V=t.ref(0),y=t.ref(null),b=t.ref(null),g=t.ref(null),w=t.ref(null),x=t.computed((function(){var t=[e.minValue,e.maxValue,e.step].map((function(e){var t="".concat(e).split(".")[1];return t?t.length:0}));return Math.max.apply(null,t)})),N=t.computed((function(){return Math.min(v.value,f.value)})),L=t.computed((function(){return Math.max(v.value,f.value)})),k=t.computed((function(){return e.range?"".concat(100*(L.value-N.value)/(e.maxValue-e.minValue),"%"):"".concat(100*(v.value-e.minValue)/(e.maxValue-e.minValue),"%")})),E=t.computed((function(){return e.range?"".concat(100*(N.value-e.minValue)/(e.maxValue-e.minValue),"%"):"0%"})),B=t.computed((function(){return e.vertical?{height:k.value,bottom:E.value}:{width:k.value,left:E.value}})),C=t.computed((function(){if(!e.showInterval||e.minValue>e.maxValue)return[];if(0===e.step)return console.warn("WARNNING:step should not be 0"),[];for(var t=(e.maxValue-e.minValue)/e.step,a=100*e.step/(e.maxValue-e.minValue),n=[],r=1;r<t;r++)n.push(r*a);return e.range?n.filter((function(t){return t<100*(N.value-e.minValue)/(e.maxValue-e.minValue)||t>100*(L.value-e.minValue)/(e.maxValue-e.minValue)})):n.filter((function(t){return t>100*(v.value-e.minValue)/(e.maxValue-e.minValue)}))})),T=t.computed((function(){return e.vertical?{height:e.height,width:"4px"}:{}})),j=t.computed((function(){if(!e.showIntervalLabel)return[];if(0===e.step)return console.warn("WARNNING:step should not be 0"),[];for(var t=(e.maxValue-e.minValue)/e.step,a=100*e.step/(e.maxValue-e.minValue),n=[],r=0;r<=t;r++){var u={stepWidth:r*a,stepLabel:e.formatterLabel(r*e.step)};n.push(u)}return n})),I=t.computed((function(){return Array.isArray(e.modelValue)})),S=t.computed((function(){return e.customContent?Object.keys(e.customContent).sort((function(e,t){return Number(e)-Number(t)})).filter((function(t){return Number(t)>=e.minValue&&Number(t)<=e.maxValue})).map((function(t){var a=e.customContent[t].tip,n=e.customContent[t].label;return{tip:a||n||"",label:n||"",percent:(Number(t)-e.minValue)/(e.maxValue-e.minValue)*100}})):[]})),O=t.computed((function(){return{vertical:e.vertical,showTip:e.showTip,disable:e.disable,maxValue:e.maxValue,minValue:e.minValue,step:e.step,precision:x.value,showButtonLabel:e.showButtonLabel,formatterButtonLabel:e.formatterButtonLabel,showIntervalLabel:e.showIntervalLabel,customContent:e.customContent,sliderSize:m.value}}));t.watch((function(){return e.modelValue}),(function(){z()})),t.watch((function(){return v.value}),(function(t){e.range?l("update:modelValue",[N.value,L.value]):l("update:modelValue",t),h.value=t})),t.watch((function(){return f.value}),(function(e){l("update:modelValue",[N.value,L.value]),V.value=e})),t.onMounted((function(){e.range?(Array.isArray(e.modelValue)?(v.value=Math.max(e.minValue,Number(e.modelValue[0])),f.value=Math.min(e.maxValue,Number(e.modelValue[1]))):(v.value=e.minValue,f.value=e.maxValue),d.value=[v.value,f.value]):("number"!=typeof e.modelValue||isNaN(e.modelValue)?v.value=e.minValue:v.value=Math.min(e.maxValue,Math.max(e.minValue,e.modelValue)),d.value=v.value),p.value=100*e.step/(e.maxValue-e.minValue),_(),s(window,"resize",_())}));var _=function(){y.value&&(m.value=y.value["client".concat(e.vertical?"Height":"Width")])},P=function(t){var a,n;if(t.stopPropagation(),!e.disable){if(_(),e.vertical){var r=null===(a=y.value)||void 0===a?void 0:a.getBoundingClientRect().bottom;G((r-t.clientY)/m.value*100)}else{var u=null===(n=y.value)||void 0===n?void 0:n.getBoundingClientRect().left;G((t.clientX-u)/m.value*100)}M()}},F=function(){return e.range?![N.value,L.value].every((function(e,t){return e===d.value[t]})):e.modelValue!==d.value},z=function(){if(e.minValue>e.maxValue)console.error("min should not be greater than max.");else{var t=e.modelValue;e.range&&Array.isArray(t)?t[1]<e.minValue?l("update:modelValue",[e.minValue,e.minValue]):t[0]>e.maxValue?l("update:modelValue",[e.maxValue,e.maxValue]):t[0]<e.minValue?l("update:modelValue",[e.minValue,t[1]]):t[1]>e.maxValue?l("update:modelValue",[t[0],e.maxValue]):(v.value=Number(t[0]),f.value=Number(t[1]),F()&&(d.value=t.slice())):e.range||"number"!=typeof t||isNaN(t)||(t<e.minValue?l("update:modelValue",e.minValue):t>e.maxValue?l("update:modelValue",e.maxValue):(v.value=t,F()&&(d.value=t)))}},M=function(){return i(n,void 0,void 0,o.mark((function a(){return o.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.nextTick();case 2:l("change",e.range?[N.value,L.value]:e.modelValue);case 3:case"end":return a.stop()}}),a)})))},A=function(t){return e.vertical?{bottom:"".concat(t,"%")}:{left:"".concat(t,"%")}},G=function(t){if(e.range){var a=e.minValue+t*(e.maxValue-e.minValue)/100;Math.abs(N.value-a)<Math.abs(L.value-a)?w.value=v.value<f.value?b.value:g.value:w.value=v.value>f.value?b.value:g.value,w.value.setPosition(t)}else b.value.setPosition(t)},R=function(t){if(""!==t){var a=parseFloat(t);a<e.minValue?(h.value=e.minValue,v.value=e.minValue):a>e.maxValue?(h.value=e.maxValue,v.value=e.maxValue):v.value=a}},D=function(t){if(""!==t){var a=parseFloat(t);a<e.minValue?(V.value=e.minValue,f.value=e.minValue):a>e.maxValue?(V.value=e.maxValue,f.value=e.maxValue):f.value=a}},W=function(t){var a=0;return a="start"===t?e.vertical?e.maxValue:e.minValue:e.vertical?e.minValue:e.maxValue,e.showButtonLabel&&[v.value,f.value].includes(a)?"0":"1"};return{renderDom:function(){var a,n;return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:["bk-slider",e.extCls]},[null===(a=r.start)||void 0===a?void 0:a.call(r),t.createVNode("div",{class:"bk-slider-runway",ref:y,style:T.value,onClick:P},[t.createVNode("div",{class:["bk-slider-bar",e.vertical?"vertical":"horizontal",{disable:e.disable}],style:B.value},null),e.showInterval?C.value.map((function(a,n){return t.createVNode("div",{key:n,class:["bk-slider-interval",{vertical:e.vertical}],style:A(a)},null)})):void 0,e.customContent?S.value.map((function(a,n){return t.createVNode("div",{key:n,class:["bk-slider-interval",{vertical:e.vertical}],style:A(a.percent)},null)})):void 0,e.showBetweenLabel||e.showIntervalLabel||e.customContent?t.createVNode("div",{class:["bk-slider-labels",e.vertical?"vertical":"horizontal"]},[e.showBetweenLabel?[t.createVNode("div",{class:"label-start",style:[{opacity:W("start")}]},[e.formatterLabel(e.minValue)]),t.createVNode("div",{class:"label-end",style:[{opacity:W("end")}]},[e.formatterLabel(e.maxValue)])]:e.showIntervalLabel?j.value.map((function(a,n){return t.createVNode("div",{class:["bk-slider-label",e.vertical?"vertical":"horizontal"],key:n,style:A(a.stepWidth)},[a.stepLabel])})):e.customContent?S.value.map((function(a,n){return t.createVNode("div",{class:["bk-slider-label",e.vertical?"vertical":"horizontal"],key:n,style:A(a.percent)},[a.label])})):void 0]):void 0,t.createVNode(c,{modelValue:v.value,"onUpdate:modelValue":function(e){return v.value=e},ref:b,params:O.value,onEmitChange:M,onResetSize:_},null),e.range?t.createVNode(c,{modelValue:f.value,"onUpdate:modelValue":function(e){return f.value=e},ref:g,params:O.value,onEmitChange:M,onResetSize:_},null):void 0]),e.showInput&&!e.vertical?t.createVNode("div",{class:"bk-slider-input"},[t.createVNode("div",{class:"input-item"},[t.createVNode(u.default,{type:"number",modelValue:h.value,"onUpdate:modelValue":function(e){return h.value=e},max:e.maxValue,min:e.minValue,onChange:R},null)]),I.value&&f.value?t.createVNode(t.Fragment,null,[t.createVNode("div",{class:"input-center"},[t.createTextVNode("~")]),t.createVNode("div",{class:"input-item"},[t.createVNode(u.default,{type:"number",modelValue:V.value,"onUpdate:modelValue":function(e){return V.value=e},max:e.maxValue,min:e.minValue,onChange:D},null)])]):void 0]):void 0,null===(n=r.end)||void 0===n?void 0:n.call(r)])])}}},render:function(){return this.renderDom()}});v.install=function(e){e.component(v.name,v)},e.default=v,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue"),require("../shared"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","../icon"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bkuiVue={},t.Vue,t.Shared,t["@bkui-vue/icon/icons"])}(this,(function(t,e,r,n){"use strict";function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i={exports:{}};!function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports}(i);var a=o(i.exports),c={exports:{}};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(t,e,r){var n=p;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=l(t,e,r);if("normal"===s.type){if(n=r.done?d:f,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",d="completed",y={};function v(){}function g(){}function m(){}var b={};s(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&n.call(x,i)&&(b=x);var k=m.prototype=v.prototype=Object.create(b);function T(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==typeof p&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function N(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:O}}function O(){return{value:e,done:!0}}return g.prototype=m,s(k,"constructor",m),s(m,"constructor",g),g.displayName=s(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},T(L.prototype),s(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(k),s(k,c,"Generator"),s(k,i,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(c);var s=c.exports;
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("../shared"),require("vue"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","../shared","vue","../icon"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bkuiVue={},t.Shared,t.Vue,t["@bkui-vue/icon/icons"])}(this,(function(t,e,r,n){"use strict";function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i={exports:{}};!function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports}(i);var a=o(i.exports),c={exports:{}};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(t,e,r){var n=p;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=l(t,e,r);if("normal"===s.type){if(n=r.done?d:f,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",d="completed",y={};function v(){}function g(){}function m(){}var b={};s(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&n.call(x,i)&&(b=x);var k=m.prototype=v.prototype=Object.create(b);function T(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==typeof p&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function N(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:O}}function O(){return{value:e,done:!0}}return g.prototype=m,s(k,"constructor",m),s(m,"constructor",g),g.displayName=s(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},T(L.prototype),s(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(k),s(k,c,"Generator"),s(k,i,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(c);var s=c.exports;
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,4 +12,4 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function u(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function c(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}s((n=n.apply(t,e||[])).next())}))}var l={theme:r.PropTypes.theme().def("primary"),size:r.PropTypes.size(),curStep:r.PropTypes.number.def(1),controllable:r.PropTypes.bool.def(!1),direction:r.PropTypes.commonType(["horizontal","vertical"],"direction").def("horizontal"),status:r.PropTypes.commonType(["","error","loading"],"status").def(""),lineType:r.PropTypes.commonType(["dashed","solid"],"lineType").def("dashed"),text:r.PropTypes.bool,extCls:r.PropTypes.string,steps:r.PropTypes.array.def([]),beforeChange:r.PropTypes.func},p=e.defineComponent({name:"Steps",props:l,emits:["update:curStep","click"],setup:function(t,r){var n=this,o=r.emit,i=e.ref([]);return e.onMounted((function(){var e,r,n,o,a;(e=i.value).splice.apply(e,[0,i.value.length].concat([{title:"步骤1",icon:1},{title:"步骤2",icon:2},{title:"步骤3",icon:3}])),(null===(r=t.steps)||void 0===r?void 0:r.length)&&(n=t.steps,a=[],n.forEach((function(t){"string"==typeof t?a.push(t):a.push({title:t.title,icon:t.icon,description:t.description,status:t.status})})),(o=i.value).splice.apply(o,[0,i.value.length].concat(a)))})),{defaultSteps:i,jumpTo:function(e){return u(n,void 0,void 0,s.mark((function r(){var n=this;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!t.controllable||e===t.curStep){r.next=7;break}if("function"!=typeof t.beforeChange){r.next=5;break}return r.next=5,new Promise((function(r,o){return u(n,void 0,void 0,s.mark((function n(){var i;return s.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.beforeChange(e);case 2:(i=n.sent)?r(i):o(i);case 4:case"end":return n.stop()}}),n)})))}));case 5:o("update:curStep",e),o("click",e);case 7:r.next=12;break;case 9:r.prev=9,r.t0=r.catch(0),console.warn(r.t0);case 12:case"end":return r.stop()}}),r,null,[[0,9]])})))}}},render:function(){var t,o=this,i="bk-steps",c=this.theme?"".concat(i,"-").concat(this.theme):"",s=this.size?"".concat(i,"-").concat(this.size):"",u=r.classes((a(t={},"".concat(this.extCls),!!this.extCls),a(t,"bk-steps-".concat(this.direction),this.direction),a(t,"bk-steps-".concat(this.lineType),this.lineType),t),"".concat(c," ").concat(i," ").concat(s)),l=function(t){return o.curStep>t+1||"done"===o.defaultSteps[t].status},p=function(t){return o.curStep===t+1},f=function(t){var e=t.icon;return e?"[object Object]"===Object.prototype.toString.call(e):"string"==typeof t},h=function(t,e){return e.icon?e.icon:t+1},d=function(t,r){return p(t)&&"loading"===o.status||function(t){return"loading"===t.status}(r)?e.createVNode(n.Circle,{class:"bk-icon bk-steps-icon icon-loading"},null):p(t)&&"error"===o.status||function(t){return"error"===t.status}(r)?e.createVNode(n.Error,{class:"bk-steps-icon"},null):l(t)?e.createVNode(n.Done,{class:"bk-steps-icon"},null):e.createVNode("span",{class:"number"},[h(t,r)])};return e.createVNode("div",{class:u},[this.defaultSteps.map((function(t,r){var n,i,a;return e.createVNode("div",{class:["bk-step",t.title?"":"bk-step-no-content",l(r)?"done":"",p(r)?"current":"",t.status&&p(r)?["bk-step-".concat(t.status)]:""]},[e.createVNode("span",{class:["bk-step-indicator","bk-step-".concat(f(t)?"icon":"number")],style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(r+1)}},[null!==(a=null===(i=(n=o.$slots)[r+1])||void 0===i?void 0:i.call(n))&&void 0!==a?a:d(r,t)]),t.title?e.createVNode("div",{class:"bk-step-content"},[e.createVNode("div",{class:"bk-step-title",style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(r+1)}},[t.title]),t.description&&e.createVNode("div",{class:"bk-step-description",title:t.description},[t.description])]):""])}))])}}),f=r.withInstall(p);t.default=f,Object.defineProperty(t,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */function u(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function c(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}s((n=n.apply(t,e||[])).next())}))}var l={theme:e.PropTypes.theme().def("primary"),size:e.PropTypes.size(),curStep:e.PropTypes.number.def(1),controllable:e.PropTypes.bool.def(!1),direction:e.PropTypes.commonType(["horizontal","vertical"],"direction").def("horizontal"),status:e.PropTypes.commonType(["","error","loading"],"status").def(""),lineType:e.PropTypes.commonType(["dashed","solid"],"lineType").def("dashed"),text:e.PropTypes.bool,extCls:e.PropTypes.string,steps:e.PropTypes.array.def([]),beforeChange:e.PropTypes.func},p=r.defineComponent({name:"Steps",props:l,emits:["update:curStep","click"],setup:function(t,e){var n=this,o=e.emit,i=r.ref([]);return r.onMounted((function(){var e,r,n,o,a;(e=i.value).splice.apply(e,[0,i.value.length].concat([{title:"步骤1",icon:1},{title:"步骤2",icon:2},{title:"步骤3",icon:3}])),(null===(r=t.steps)||void 0===r?void 0:r.length)&&(n=t.steps,a=[],n.forEach((function(t){"string"==typeof t?a.push(t):a.push({title:t.title,icon:t.icon,description:t.description,status:t.status})})),(o=i.value).splice.apply(o,[0,i.value.length].concat(a)))})),{defaultSteps:i,jumpTo:function(e){return u(n,void 0,void 0,s.mark((function r(){var n=this;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!t.controllable||e===t.curStep){r.next=7;break}if("function"!=typeof t.beforeChange){r.next=5;break}return r.next=5,new Promise((function(r,o){return u(n,void 0,void 0,s.mark((function n(){var i;return s.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.beforeChange(e);case 2:(i=n.sent)?r(i):o(i);case 4:case"end":return n.stop()}}),n)})))}));case 5:o("update:curStep",e),o("click",e);case 7:r.next=12;break;case 9:r.prev=9,r.t0=r.catch(0),console.warn(r.t0);case 12:case"end":return r.stop()}}),r,null,[[0,9]])})))}}},render:function(){var t,o=this,i="bk-steps",c=this.theme?"".concat(i,"-").concat(this.theme):"",s=this.size?"".concat(i,"-").concat(this.size):"",u=e.classes((a(t={},"".concat(this.extCls),!!this.extCls),a(t,"bk-steps-".concat(this.direction),this.direction),a(t,"bk-steps-".concat(this.lineType),this.lineType),t),"".concat(c," ").concat(i," ").concat(s)),l=function(t){return o.curStep>t+1||"done"===o.defaultSteps[t].status},p=function(t){return o.curStep===t+1},f=function(t){var e=t.icon;return e?"[object Object]"===Object.prototype.toString.call(e):"string"==typeof t},h=function(t,e){return e.icon?e.icon:t+1},d=function(t,e){return p(t)&&"loading"===o.status||function(t){return"loading"===t.status}(e)?r.createVNode(n.Circle,{class:"bk-icon bk-steps-icon icon-loading"},null):p(t)&&"error"===o.status||function(t){return"error"===t.status}(e)?r.createVNode(n.Error,{class:"bk-steps-icon"},null):l(t)?r.createVNode(n.Done,{class:"bk-steps-icon"},null):r.createVNode("span",{class:"number"},[h(t,e)])};return r.createVNode("div",{class:u},[this.defaultSteps.map((function(t,e){var n,i,a;return r.createVNode("div",{class:["bk-step",t.title?"":"bk-step-no-content",l(e)?"done":"",p(e)?"current":"",t.status&&p(e)?["bk-step-".concat(t.status)]:""]},[r.createVNode("span",{class:["bk-step-indicator","bk-step-".concat(f(t)?"icon":"number")],style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(e+1)}},[null!==(a=null===(i=(n=o.$slots)[e+1])||void 0===i?void 0:i.call(n))&&void 0!==a?a:d(e,t)]),t.title?r.createVNode("div",{class:"bk-step-content"},[r.createVNode("div",{class:"bk-step-title",style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(e+1)}},[t.title]),t.description&&r.createVNode("div",{class:"bk-step-description",title:t.description},[t.description])]):""])}))])}}),f=e.withInstall(p);t.default=f,Object.defineProperty(t,"__esModule",{value:!0})}));
@@ -20,6 +20,7 @@ import '../progress/progress.less';
20
20
  import '../radio/radio.less';
21
21
  import '../rate/rate.less';
22
22
  import '../rate/star.less';
23
+ import '../swiper/swiper.less';
23
24
  import '../select/select.less';
24
25
  import '../sideslider/sideslider.less';
25
26
  import '../switcher/switcher.less';
@@ -1 +1 @@
1
- !function(e){"function"==typeof define&&define.amd?define(["./reset.less","../alert/alert.less","../backtop/backtop.less","../badge/badge.less","../breadcrumb/breadcrumb.less","../button/button.less","../card/card.less","../checkbox/checkbox.less","../collapse/collapse.less","../dialog/dialog.less","../exception/exception.less","../fixed-navbar/fixed-navbar.less","../input/input.less","../link/link.less","../dropdown/dropdown.less","../loading/loading.less","../modal/modal.less","../popover/popover.less","../progress/progress.less","../radio/radio.less","../rate/rate.less","../rate/star.less","../select/select.less","../sideslider/sideslider.less","../switcher/switcher.less","../table/table.less","../tag/tag.less","../form/form.less","../steps/steps.less","../message/message.less","../notify/notify.less","../tree/tree.less","../slider/slider.less","../menu/menu.less","../navigation/navigation.less","../date-picker/date-picker.less","../divider/divider.less","../tab/tab.less","../process/process.less","../virtual-render/virtual-render.less","../transfer/transfer.less","../pagination/pagination.less","../timeline/timeline.less"],e):e()}((function(){}));
1
+ !function(e){"function"==typeof define&&define.amd?define(["./reset.less","../alert/alert.less","../backtop/backtop.less","../badge/badge.less","../breadcrumb/breadcrumb.less","../button/button.less","../card/card.less","../checkbox/checkbox.less","../collapse/collapse.less","../dialog/dialog.less","../exception/exception.less","../fixed-navbar/fixed-navbar.less","../input/input.less","../link/link.less","../dropdown/dropdown.less","../loading/loading.less","../modal/modal.less","../popover/popover.less","../progress/progress.less","../radio/radio.less","../rate/rate.less","../rate/star.less","../swiper/swiper.less","../select/select.less","../sideslider/sideslider.less","../switcher/switcher.less","../table/table.less","../tag/tag.less","../form/form.less","../steps/steps.less","../message/message.less","../notify/notify.less","../tree/tree.less","../slider/slider.less","../menu/menu.less","../navigation/navigation.less","../date-picker/date-picker.less","../divider/divider.less","../tab/tab.less","../process/process.less","../virtual-render/virtual-render.less","../transfer/transfer.less","../pagination/pagination.less","../timeline/timeline.less"],e):e()}((function(){}));
@@ -0,0 +1,181 @@
1
+ declare const BkSwiper: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ width: number;
7
+ height: number;
8
+ list: unknown[];
9
+ isLoop: boolean;
10
+ loopTime: number;
11
+ pics: unknown[];
12
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
13
+ isLoop: import("vue-types").VueTypeValidableDef<boolean> & {
14
+ default: boolean;
15
+ } & {
16
+ default: boolean;
17
+ };
18
+ loopTime: import("vue-types").VueTypeValidableDef<number> & {
19
+ default: number;
20
+ } & {
21
+ default: number;
22
+ };
23
+ pics: import("vue-types").VueTypeValidableDef<unknown[]> & {
24
+ default: () => unknown[];
25
+ } & {
26
+ default: () => unknown[];
27
+ };
28
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
29
+ default: () => unknown[];
30
+ } & {
31
+ default: () => unknown[];
32
+ };
33
+ height: import("vue-types").VueTypeValidableDef<number> & {
34
+ default: number;
35
+ };
36
+ width: import("vue-types").VueTypeValidableDef<number> & {
37
+ default: number;
38
+ };
39
+ }>> & {
40
+ "onIndex-change"?: (...args: any[]) => any;
41
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "list" | "isLoop" | "loopTime" | "pics">;
42
+ $attrs: {
43
+ [x: string]: unknown;
44
+ };
45
+ $refs: {
46
+ [x: string]: unknown;
47
+ };
48
+ $slots: Readonly<{
49
+ [name: string]: import("vue").Slot;
50
+ }>;
51
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
52
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
53
+ $emit: (event: "index-change", ...args: any[]) => void;
54
+ $el: any;
55
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
56
+ isLoop: import("vue-types").VueTypeValidableDef<boolean> & {
57
+ default: boolean;
58
+ } & {
59
+ default: boolean;
60
+ };
61
+ loopTime: import("vue-types").VueTypeValidableDef<number> & {
62
+ default: number;
63
+ } & {
64
+ default: number;
65
+ };
66
+ pics: import("vue-types").VueTypeValidableDef<unknown[]> & {
67
+ default: () => unknown[];
68
+ } & {
69
+ default: () => unknown[];
70
+ };
71
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
72
+ default: () => unknown[];
73
+ } & {
74
+ default: () => unknown[];
75
+ };
76
+ height: import("vue-types").VueTypeValidableDef<number> & {
77
+ default: number;
78
+ };
79
+ width: import("vue-types").VueTypeValidableDef<number> & {
80
+ default: number;
81
+ };
82
+ }>> & {
83
+ "onIndex-change"?: (...args: any[]) => any;
84
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "index-change"[], string, {
85
+ width: number;
86
+ height: number;
87
+ list: unknown[];
88
+ isLoop: boolean;
89
+ loopTime: number;
90
+ pics: unknown[];
91
+ }> & {
92
+ beforeCreate?: (() => void) | (() => void)[];
93
+ created?: (() => void) | (() => void)[];
94
+ beforeMount?: (() => void) | (() => void)[];
95
+ mounted?: (() => void) | (() => void)[];
96
+ beforeUpdate?: (() => void) | (() => void)[];
97
+ updated?: (() => void) | (() => void)[];
98
+ activated?: (() => void) | (() => void)[];
99
+ deactivated?: (() => void) | (() => void)[];
100
+ beforeDestroy?: (() => void) | (() => void)[];
101
+ beforeUnmount?: (() => void) | (() => void)[];
102
+ destroyed?: (() => void) | (() => void)[];
103
+ unmounted?: (() => void) | (() => void)[];
104
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
105
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
106
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
107
+ };
108
+ $forceUpdate: () => void;
109
+ $nextTick: typeof import("vue").nextTick;
110
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
111
+ } & Readonly<import("vue").ExtractPropTypes<{
112
+ isLoop: import("vue-types").VueTypeValidableDef<boolean> & {
113
+ default: boolean;
114
+ } & {
115
+ default: boolean;
116
+ };
117
+ loopTime: import("vue-types").VueTypeValidableDef<number> & {
118
+ default: number;
119
+ } & {
120
+ default: number;
121
+ };
122
+ pics: import("vue-types").VueTypeValidableDef<unknown[]> & {
123
+ default: () => unknown[];
124
+ } & {
125
+ default: () => unknown[];
126
+ };
127
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
128
+ default: () => unknown[];
129
+ } & {
130
+ default: () => unknown[];
131
+ };
132
+ height: import("vue-types").VueTypeValidableDef<number> & {
133
+ default: number;
134
+ };
135
+ width: import("vue-types").VueTypeValidableDef<number> & {
136
+ default: number;
137
+ };
138
+ }>> & {
139
+ "onIndex-change"?: (...args: any[]) => any;
140
+ } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
141
+ __isFragment?: never;
142
+ __isTeleport?: never;
143
+ __isSuspense?: never;
144
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
145
+ isLoop: import("vue-types").VueTypeValidableDef<boolean> & {
146
+ default: boolean;
147
+ } & {
148
+ default: boolean;
149
+ };
150
+ loopTime: import("vue-types").VueTypeValidableDef<number> & {
151
+ default: number;
152
+ } & {
153
+ default: number;
154
+ };
155
+ pics: import("vue-types").VueTypeValidableDef<unknown[]> & {
156
+ default: () => unknown[];
157
+ } & {
158
+ default: () => unknown[];
159
+ };
160
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
161
+ default: () => unknown[];
162
+ } & {
163
+ default: () => unknown[];
164
+ };
165
+ height: import("vue-types").VueTypeValidableDef<number> & {
166
+ default: number;
167
+ };
168
+ width: import("vue-types").VueTypeValidableDef<number> & {
169
+ default: number;
170
+ };
171
+ }>> & {
172
+ "onIndex-change"?: (...args: any[]) => any;
173
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "index-change"[], "index-change", {
174
+ width: number;
175
+ height: number;
176
+ list: unknown[];
177
+ isLoop: boolean;
178
+ loopTime: number;
179
+ pics: unknown[];
180
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
181
+ export default BkSwiper;
@@ -0,0 +1 @@
1
+ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,n,t){"use strict";var o=n.defineComponent({name:"Swiper",props:{isLoop:t.PropTypes.bool.def(!0),loopTime:t.PropTypes.number.def(8e3),pics:t.PropTypes.array.def([]),list:t.PropTypes.array.def([]),height:t.PropTypes.number,width:t.PropTypes.number},emits:["index-change"],setup:function(e,t){var o,a=t.emit,i=t.slots,r=n.toRefs(e),l=r.isLoop,u=r.loopTime,c=r.pics,s=r.list,d=r.height,p=r.width,v=n.ref(),f=n.ref(0),h=n.ref(0),b=n.ref(0),w=n.ref(0),m=n.computed((function(){var e;return(null===(e=s.value)||void 0===e?void 0:e.length)>0?s.value:c.value})),g=n.computed((function(){return{width:"".concat(h.value*m.value.length,"px"),transform:"translateX(-".concat(h.value*f.value,"px)")}})),k=n.computed((function(){return{width:"".concat(h.value,"px"),height:"".concat(b.value,"px")}})),y=function(e){var n=e;e>=m.value.length&&(n=0),e<0&&(n=m.value.length-1),f.value=n,a("index-change",n)},T=function(e){return["bk-swiper-img",{"bk-swiper-link":e.link},e.class]},x=function(e){return{"background-image":"url(".concat(e.url,")"),"background-color":e.color}},V=function(e){return{"bk-current-index":f.value===e}},N=function e(){l.value&&(w.value=window.setTimeout((function(){y(f.value+1),e()}),u.value))},P=function(){var e,n=function(e){if(void 0===e)return{height:0,width:0};var n=getComputedStyle(e),t=e.clientWidth-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom);return{height:e.clientHeight-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight),width:t}}(null===(e=v.value)||void 0===e?void 0:e.parentElement);h.value=+p.value>0?p.value:n.width,b.value=+d.value>0?d.value:n.height};return n.watch([d,p],P),n.onMounted((function(){var e,n;P(),N(),(n=null===(e=v.value)||void 0===e?void 0:e.parentElement)&&window.ResizeObserver&&(o=new ResizeObserver((function(){P()}))).observe(n)})),n.onBeforeUnmount((function(){var e;window.clearTimeout(w.value),null===(e=o.disconnect)||void 0===e||e.call(o)})),function(){return n.createVNode("section",{class:"bk-swiper-home",ref:v,style:k.value},[n.createVNode("hgroup",{style:g.value,class:"bk-transition bk-swiper-main"},[m.value.map((function(e){var t,o;return n.createVNode("h3",{class:"bk-swiper-card",style:k.value},[null!==(o=null===(t=i.default)||void 0===t?void 0:t.call(i,e))&&void 0!==o?o:n.createVNode("span",{class:T(e),style:x(e),onClick:function(){var n;(n=e.link)&&window.open(n,"_blank")}},null)])}))]),n.createVNode("ul",{class:"bk-swiper-index"},[m.value.map((function(e,t){return n.createVNode("li",{class:V(t),onMouseover:function(){return y(t)}},null)}))]),n.createVNode("span",{class:"bk-swiper-nav bk-nav-prev",onClick:function(){return y(f.value-1)}},[n.createVNode("i",{class:"bk-swiper-nav-icon"},null)]),n.createVNode("span",{class:"bk-swiper-nav bk-nav-next",onClick:function(){return y(f.value+1)}},[n.createVNode("i",{class:"bk-swiper-nav-icon"},null)])])}}}),a=t.withInstall(o);e.default=a,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,91 @@
1
+ .bk-swiper-home {
2
+ position: relative;
3
+ overflow: hidden;
4
+ }
5
+ .bk-swiper-home:hover .bk-swiper-nav {
6
+ display: block;
7
+ }
8
+ .bk-swiper-main {
9
+ height: 100%;
10
+ display: flex;
11
+ overflow: hidden;
12
+ }
13
+ .bk-swiper-main.bk-transition {
14
+ transition: 0.5s cubic-bezier(0.42, 0, 0.58, 1);
15
+ }
16
+ .bk-swiper-main .bk-swiper-card {
17
+ height: 100%;
18
+ margin: 0;
19
+ padding: 0;
20
+ }
21
+ .bk-swiper-main .bk-swiper-img {
22
+ display: inline-block;
23
+ height: 100%;
24
+ width: 100%;
25
+ margin: 0;
26
+ background-size: cover;
27
+ background-repeat: no-repeat;
28
+ background-position: center;
29
+ }
30
+ .bk-swiper-main .bk-swiper-link {
31
+ cursor: pointer;
32
+ }
33
+ .bk-swiper-index {
34
+ position: absolute;
35
+ bottom: 10px;
36
+ left: 0;
37
+ right: 0;
38
+ display: flex;
39
+ justify-content: center;
40
+ margin: 0;
41
+ padding: 0;
42
+ }
43
+ .bk-swiper-index li {
44
+ width: 11px;
45
+ height: 4px;
46
+ margin: 0 3px;
47
+ background: #63656e;
48
+ border-radius: 2px;
49
+ transition: width 0.525s;
50
+ list-style-type: none;
51
+ }
52
+ .bk-swiper-index li.bk-current-index {
53
+ width: 17px;
54
+ background: #c5c7d1;
55
+ }
56
+ .bk-swiper-nav {
57
+ cursor: pointer;
58
+ position: absolute;
59
+ border-radius: 50%;
60
+ width: 30px;
61
+ height: 30px;
62
+ background: rgba(31, 45, 61, 0.4);
63
+ top: calc(50% - 15px);
64
+ display: none;
65
+ }
66
+ .bk-swiper-nav .bk-swiper-nav-icon {
67
+ position: absolute;
68
+ top: 9px;
69
+ left: 11px;
70
+ width: 10px;
71
+ height: 10px;
72
+ border-left: 2px solid #fff;
73
+ border-bottom: 2px solid #fff;
74
+ }
75
+ .bk-swiper-nav.bk-nav-prev {
76
+ left: 14px;
77
+ transform: rotate(45deg);
78
+ }
79
+ .bk-swiper-nav.bk-nav-prev:hover {
80
+ transform: rotate(45deg);
81
+ }
82
+ .bk-swiper-nav.bk-nav-next {
83
+ right: 14px;
84
+ transform: rotate(225deg);
85
+ }
86
+ .bk-swiper-nav.bk-nav-next:hover {
87
+ transform: rotate(225deg);
88
+ }
89
+ .bk-swiper-nav:hover {
90
+ background: rgba(31, 45, 61, 0.6);
91
+ }
@@ -0,0 +1,65 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ isLoop: import("vue-types").VueTypeValidableDef<boolean> & {
3
+ default: boolean;
4
+ } & {
5
+ default: boolean;
6
+ };
7
+ loopTime: import("vue-types").VueTypeValidableDef<number> & {
8
+ default: number;
9
+ } & {
10
+ default: number;
11
+ };
12
+ pics: import("vue-types").VueTypeValidableDef<unknown[]> & {
13
+ default: () => unknown[];
14
+ } & {
15
+ default: () => unknown[];
16
+ };
17
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
18
+ default: () => unknown[];
19
+ } & {
20
+ default: () => unknown[];
21
+ };
22
+ height: import("vue-types").VueTypeValidableDef<number> & {
23
+ default: number;
24
+ };
25
+ width: import("vue-types").VueTypeValidableDef<number> & {
26
+ default: number;
27
+ };
28
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "index-change"[], "index-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
+ isLoop: import("vue-types").VueTypeValidableDef<boolean> & {
30
+ default: boolean;
31
+ } & {
32
+ default: boolean;
33
+ };
34
+ loopTime: import("vue-types").VueTypeValidableDef<number> & {
35
+ default: number;
36
+ } & {
37
+ default: number;
38
+ };
39
+ pics: import("vue-types").VueTypeValidableDef<unknown[]> & {
40
+ default: () => unknown[];
41
+ } & {
42
+ default: () => unknown[];
43
+ };
44
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
45
+ default: () => unknown[];
46
+ } & {
47
+ default: () => unknown[];
48
+ };
49
+ height: import("vue-types").VueTypeValidableDef<number> & {
50
+ default: number;
51
+ };
52
+ width: import("vue-types").VueTypeValidableDef<number> & {
53
+ default: number;
54
+ };
55
+ }>> & {
56
+ "onIndex-change"?: (...args: any[]) => any;
57
+ }, {
58
+ width: number;
59
+ height: number;
60
+ list: unknown[];
61
+ isLoop: boolean;
62
+ loopTime: number;
63
+ pics: unknown[];
64
+ }>;
65
+ export default _default;
@@ -0,0 +1,91 @@
1
+ .bk-swiper-home {
2
+ position: relative;
3
+ overflow: hidden;
4
+ &:hover .bk-swiper-nav {
5
+ display: block;
6
+ }
7
+ }
8
+ .bk-swiper-main {
9
+ height: 100%;
10
+ display: flex;
11
+ overflow: hidden;
12
+ &.bk-transition {
13
+ transition: 0.5s cubic-bezier(0.42, 0, 0.58, 1);
14
+ }
15
+ .bk-swiper-card {
16
+ height: 100%;
17
+ margin: 0;
18
+ padding: 0;
19
+ }
20
+ .bk-swiper-img {
21
+ display: inline-block;
22
+ height: 100%;
23
+ width: 100%;
24
+ margin: 0;
25
+ background-size: cover;
26
+ background-repeat: no-repeat;
27
+ background-position: center;
28
+ }
29
+ .bk-swiper-link {
30
+ cursor: pointer;
31
+ }
32
+ }
33
+ .bk-swiper-index {
34
+ position: absolute;
35
+ bottom: 10px;
36
+ left: 0;
37
+ right: 0;
38
+ display: flex;
39
+ justify-content: center;
40
+ margin: 0;
41
+ padding: 0;
42
+ li {
43
+ width: 11px;
44
+ height: 4px;
45
+ margin: 0 3px;
46
+ background: #63656e;
47
+ border-radius: 2px;
48
+ transition: width 0.525s;
49
+ list-style-type: none;
50
+ &.bk-current-index {
51
+ width: 17px;
52
+ background: #c5c7d1;
53
+ }
54
+ }
55
+ }
56
+ .bk-swiper-nav {
57
+ cursor: pointer;
58
+ position: absolute;
59
+ border-radius: 50%;
60
+ width: 30px;
61
+ height: 30px;
62
+ background: rgba(31,45,61,.4);
63
+ top: calc(50% - 15px);
64
+ display: none;
65
+ .bk-swiper-nav-icon {
66
+ position: absolute;
67
+ top: 9px;
68
+ left: 11px;
69
+ width: 10px;
70
+ height: 10px;
71
+ border-left: 2px solid #fff;
72
+ border-bottom: 2px solid #fff;
73
+ }
74
+ &.bk-nav-prev {
75
+ left: 14px;
76
+ transform: rotate(45deg);
77
+ &:hover {
78
+ transform: rotate(45deg);
79
+ }
80
+ }
81
+ &.bk-nav-next {
82
+ right: 14px;
83
+ transform: rotate(225deg);
84
+ &:hover {
85
+ transform: rotate(225deg);
86
+ }
87
+ }
88
+ &:hover {
89
+ background: rgba(31,45,61,.6);
90
+ }
91
+ }