bkui-vue 0.0.1-beta.15 → 0.0.1-beta.16

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 (80) hide show
  1. package/dist/bkui-vue.cjs.js +51 -25
  2. package/dist/bkui-vue.esm.js +51 -25
  3. package/dist/bkui-vue.umd.js +51 -25
  4. package/lib/alert/index.js +1 -1
  5. package/lib/backtop/index.js +1 -1
  6. package/lib/breadcrumb/index.js +1 -1
  7. package/lib/collapse/index.js +1 -1
  8. package/lib/date-picker/index.js +1 -1
  9. package/lib/dialog/dialog.d.ts +3 -3
  10. package/lib/dialog/index.d.ts +7 -7
  11. package/lib/icon/angle-double-left.js +15 -0
  12. package/lib/icon/angle-double-right.js +15 -0
  13. package/lib/icon/angle-down-fill.js +15 -0
  14. package/lib/icon/angle-down-line.js +15 -0
  15. package/lib/icon/angle-down.js +15 -0
  16. package/lib/icon/angle-left.js +15 -0
  17. package/lib/icon/angle-right.js +15 -0
  18. package/lib/icon/angle-up-fill.js +15 -0
  19. package/lib/icon/angle-up.js +15 -0
  20. package/lib/icon/arrows-left.js +15 -0
  21. package/lib/icon/circle.js +15 -0
  22. package/lib/icon/close.js +15 -0
  23. package/lib/icon/code.js +15 -0
  24. package/lib/icon/cog-shape.js +15 -0
  25. package/lib/icon/collapse-left.js +15 -0
  26. package/lib/icon/copy.js +15 -0
  27. package/lib/icon/done.js +15 -0
  28. package/lib/icon/down-shape.js +15 -0
  29. package/lib/icon/down-small.js +15 -0
  30. package/lib/icon/error.js +15 -0
  31. package/lib/icon/eye.js +15 -0
  32. package/lib/icon/folder-open.js +15 -0
  33. package/lib/icon/folder-shape-open.js +15 -0
  34. package/lib/icon/folder-shape.js +15 -0
  35. package/lib/icon/folder.js +15 -0
  36. package/lib/icon/help-document-fill.js +15 -0
  37. package/lib/icon/help-fill.js +15 -0
  38. package/lib/icon/help.js +15 -0
  39. package/lib/icon/icon.js +15 -0
  40. package/lib/icon/info-line.js +15 -0
  41. package/lib/icon/info.js +15 -0
  42. package/lib/icon/play-shape.js +15 -0
  43. package/lib/icon/plus.js +15 -0
  44. package/lib/icon/right-shape.js +15 -0
  45. package/lib/icon/search.js +15 -0
  46. package/lib/icon/share.js +15 -0
  47. package/lib/icon/spinner.js +15 -0
  48. package/lib/icon/success.js +15 -0
  49. package/lib/icon/switcher-loading.js +15 -0
  50. package/lib/icon/text-file.js +15 -0
  51. package/lib/icon/tree-application-shape.js +15 -0
  52. package/lib/icon/unvisible.js +15 -0
  53. package/lib/icon/warn.js +15 -0
  54. package/lib/input/index.js +2 -2
  55. package/lib/menu/index.js +1 -1
  56. package/lib/menu/submenu.css +3 -0
  57. package/lib/menu/submenu.less +1 -1
  58. package/lib/menu/submenu.variable.css +3 -0
  59. package/lib/message/index.js +1 -1
  60. package/lib/modal/index.d.ts +8 -8
  61. package/lib/modal/index.js +1 -1
  62. package/lib/modal/modal.d.ts +3 -3
  63. package/lib/modal/props.mixin.d.ts +1 -1
  64. package/lib/navigation/index.js +1 -1
  65. package/lib/notify/index.js +1 -1
  66. package/lib/process/index.js +1 -1
  67. package/lib/select/index.js +2 -2
  68. package/lib/sideslider/index.d.ts +7 -7
  69. package/lib/sideslider/sideslider.d.ts +3 -3
  70. package/lib/steps/index.js +1 -1
  71. package/lib/switcher/index.js +1 -1
  72. package/lib/tab/index.js +1 -1
  73. package/lib/table/index.js +1 -1
  74. package/lib/table/utils.d.ts +2 -1
  75. package/lib/tree/index.js +1 -1
  76. package/lib/virtual-render/index.d.ts +17 -2
  77. package/lib/virtual-render/index.js +1 -1
  78. package/lib/virtual-render/props.d.ts +9 -0
  79. package/lib/virtual-render/virtual-render.d.ts +9 -1
  80. package/package.json +2 -2
@@ -0,0 +1,15 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue)}(this,(function(e,t){"use strict";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function n(e,a,r){return t.h(e.name,Object.assign(Object.assign({key:a},e.attributes),{style:"".concat(e.attributes.style," ").concat(r)}),(e.elements||[]).map((function(t,r){return n(t,"".concat(a,"-").concat(e.name,"-").concat(r))})))}var a=function(e,a){var r=Object.assign(Object.assign({},a.attrs),e),i=r.data,o=r.name,c=r.width,s=r.height,l=r.fill,u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(r,["data","name","width","height","fill"]),f="width: ".concat(c,"; height: ").concat(s,"; fill: ").concat(l);return t.createVNode("span",u,[n(i,o,f)])};a.inheritAttrs=!1,a.displayName="bkIcon";var r=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M822.3999999999999 493.43999999999994l-439.03999999999996-356.48c-10.239999999999998-8.32-26.24-10.879999999999999-40.31999999999999-7.04s-23.04 14.08-23.04 25.599999999999998v712.96c0 11.52 8.959999999999999 21.119999999999997 23.04 25.599999999999998 4.4799999999999995 1.2799999999999998 8.959999999999999 1.92 13.44 1.92 10.239999999999998 0 19.84-3.1999999999999997 26.88-8.959999999999999l439.03999999999996-356.48c12.799999999999999-10.239999999999998 12.799999999999999-26.88 0-37.12z"}}]}'),i=function(e,n){var i=Object.assign(Object.assign({},e),n.attrs);return t.createVNode(a,t.mergeProps(i,{data:r,name:"rightShape"}),null)};i.displayName="rightShape",i.inheritAttrs=!1,e.default=i,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,15 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue)}(this,(function(e,t){"use strict";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function n(e,a,r){return t.h(e.name,Object.assign(Object.assign({key:a},e.attributes),{style:"".concat(e.attributes.style," ").concat(r)}),(e.elements||[]).map((function(t,r){return n(t,"".concat(a,"-").concat(e.name,"-").concat(r))})))}var a=function(e,a){var r=Object.assign(Object.assign({},a.attrs),e),i=r.data,o=r.name,s=r.width,c=r.height,l=r.fill,u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(r,["data","name","width","height","fill"]),f="width: ".concat(s,"; height: ").concat(c,"; fill: ").concat(l);return t.createVNode("span",u,[n(i,o,f)])};a.inheritAttrs=!1,a.displayName="bkIcon";var r=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M842.56 797.28l-151.52-151.52a336 336 0 1 0-45.28 45.28l151.52 151.52a32 32 0 0 0 45.28-45.28ZM432 704A272 272 0 1 1 704 432 272 272 0 0 1 432 704Z"}}]}'),i=function(e,n){var i=Object.assign(Object.assign({},e),n.attrs);return t.createVNode(a,t.mergeProps(i,{data:r,name:"search"}),null)};i.displayName="search",i.inheritAttrs=!1,e.default=i,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,15 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue)}(this,(function(e,t){"use strict";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function n(e,a,r){return t.h(e.name,Object.assign(Object.assign({key:a},e.attributes),{style:"".concat(e.attributes.style," ").concat(r)}),(e.elements||[]).map((function(t,r){return n(t,"".concat(a,"-").concat(e.name,"-").concat(r))})))}var a=function(e,a){var r=Object.assign(Object.assign({},a.attrs),e),i=r.data,o=r.name,s=r.width,c=r.height,l=r.fill,u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(r,["data","name","width","height","fill"]),f="width: ".concat(s,"; height: ").concat(c,"; fill: ").concat(l);return t.createVNode("span",u,[n(i,o,f)])};a.inheritAttrs=!1,a.displayName="bkIcon";var r=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"icon","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M981.333333 1024H42.666667a42.666667 42.666667 0 0 1-42.666667-42.666667V42.666667a42.666667 42.666667 0 0 1 42.666667-42.666667h341.333333a42.666667 42.666667 0 0 1 0 85.333333H85.333333v853.333334h853.333334V618.666667a42.666667 42.666667 0 0 1 85.333333 0v362.666666a42.666667 42.666667 0 0 1-42.666667 42.666667z m0-576a42.666667 42.666667 0 0 1-42.666666-42.666667V152.746667L315.306667 796.8a48 48 0 0 1-67.2 0 47.36 47.36 0 0 1 0-66.133333L871.893333 85.333333H640a42.666667 42.666667 0 0 1 0-85.333333h341.333333a42.666667 42.666667 0 0 1 42.666667 42.666667v362.666666a42.666667 42.666667 0 0 1-42.666667 42.666667z"}}]}'),i=function(e,n){var i=Object.assign(Object.assign({},e),n.attrs);return t.createVNode(a,t.mergeProps(i,{data:r,name:"share"}),null)};i.displayName="share",i.inheritAttrs=!1,e.default=i,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,15 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue)}(this,(function(e,t){"use strict";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function a(e,i,n){return t.h(e.name,Object.assign(Object.assign({key:i},e.attributes),{style:"".concat(e.attributes.style," ").concat(n)}),(e.elements||[]).map((function(t,n){return a(t,"".concat(i,"-").concat(e.name,"-").concat(n))})))}var i=function(e,i){var n=Object.assign(Object.assign({},i.attrs),e),s=n.data,r=n.name,m=n.width,l=n.height,u=n.fill,p=function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(a[i[n]]=e[i[n]])}return a}(n,["data","name","width","height","fill"]),o="width: ".concat(m,"; height: ").concat(l,"; fill: ").concat(u);return t.createVNode("span",p,[a(s,r,o)])};i.inheritAttrs=!1,i.displayName="bkIcon";var n=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"lds-spin","preserveAspectRatio":"xMidYMid","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M874.3255040000001 512A55.125504 55.125504 0 0 1 819.2 567.125504 55.125504 55.125504 0 0 1 764.074496 512 55.125504 55.125504 0 0 1 874.3255040000001 512z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.9166666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.9166666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".917","d":"M826.5220089266763 693.5878203150381A55.978496 55.978496 0 0 1 750.0539613250309 714.0773719166838 55.978496 55.978496 0 0 1 729.5644097233852 637.6093243150382 55.978496 55.978496 0 0 1 826.5220089266763 693.5878203150381z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.8333333333333334s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.8333333333333334s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".833","d":"M694.0170969047495 827.2583983352753A56.83200000000001 56.83200000000001 0 0 1 616.3831411568723 806.4564425873981 56.83200000000001 56.83200000000001 0 0 1 637.1850969047495 728.8224868395207 56.83200000000001 56.83200000000001 0 0 1 694.0170969047495 827.2583983352753z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.75s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.75s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".75","d":"M512 876.8855040000001A57.685504 57.685504 0 0 1 454.314496 819.2 57.685504 57.685504 0 0 1 512 761.5144959999999 57.685504 57.685504 0 0 1 512 876.8855040000001z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.6666666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.6666666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".667","d":"M329.1269198807941 828.7408206328269A58.538495999999995 58.538495999999995 0 0 1 307.7003432454604 748.7757479974932 58.538495999999995 58.538495999999995 0 0 1 387.6654158807941 727.3491713621594 58.538495999999995 58.538495999999995 0 0 1 329.1269198807941 828.7408206328269z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.5833333333333334s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.5833333333333334s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".583","d":"M194.5170177632531 695.2980006130954A59.39199999999999 59.39199999999999 0 0 1 216.2559985448185 614.16701983153 59.39199999999999 59.39199999999999 0 0 1 297.3869793263839 635.9060006130953 59.39199999999999 59.39199999999999 0 0 1 194.5170177632531 695.2980006130954z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.5s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.5s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".5","d":"M144.55449600000003 512A60.245504000000004 60.245504000000004 0 0 1 204.80000000000004 451.754496 60.245504000000004 60.245504000000004 0 0 1 265.04550400000005 512 60.245504000000004 60.245504000000004 0 0 1 144.55449600000003 512z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.4166666666666667s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.4166666666666667s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".417","d":"M193.04947448121268 327.85151812453734A61.098496 61.098496 0 0 1 276.5115721502346 305.48791645551546 61.098496 61.098496 0 0 1 298.87517381925653 388.95001412453735 61.098496 61.098496 0 0 1 193.04947448121268 327.85151812453734z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.3333333333333333s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.3333333333333333s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".333","d":"M332.5476411431614 201.1754130120454A51.711999999999996 51.711999999999996 0 0 1 403.1875468236623 220.1033186925463 51.711999999999996 51.711999999999996 0 0 1 384.2596411431614 290.7432243730472 51.711999999999996 51.711999999999996 0 0 1 332.5476411431614 201.1754130120454z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.25s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.25s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".25","d":"M512 152.234496A52.565504000000004 52.565504000000004 0 0 1 564.565504 204.8 52.565504000000004 52.565504000000004 0 0 1 512 257.365504 52.565504000000004 52.565504000000004 0 0 1 512 152.234496z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.16666666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.16666666666666666s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".167","d":"M692.3075781671167 199.69299071449373A53.418496000000005 53.418496000000005 0 0 1 711.8601047350743 272.66401328245115 53.418496000000005 53.418496000000005 0 0 1 638.8890821671168 292.21653985040854 53.418496000000005 53.418496000000005 0 0 1 692.3075781671167 199.69299071449373z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"-0.08333333333333333s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"-0.08333333333333333s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]},{"type":"element","name":"path","attributes":{"fill-opacity":".083","d":"M825.0362880000001 331.264A54.27213621356492 54.27213621356492 0 0 1 805.1712000000001 405.401088 54.27213621356492 54.27213621356492 0 0 1 731.034112 385.536 54.27213621356492 54.27213621356492 0 0 1 825.0362880000001 331.264z"},"elements":[{"type":"element","name":"animateTransform","attributes":{"attributeName":"transform","begin":"0s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","type":"scale","values":"1.2 1.2;1 1"}},{"type":"element","name":"animate","attributes":{"attributeName":"fill-opacity","begin":"0s","dur":"1s","keyTimes":"0;1","repeatCount":"indefinite","values":"1;0"}}]}]}'),s=function(e,a){var s=Object.assign(Object.assign({},e),a.attrs);return t.createVNode(i,t.mergeProps(s,{data:n,name:"spinner"}),null)};s.displayName="spinner",s.inheritAttrs=!1,e.default=s,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,15 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue)}(this,(function(e,t){"use strict";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function n(e,a,i){return t.h(e.name,Object.assign(Object.assign({key:a},e.attributes),{style:"".concat(e.attributes.style," ").concat(i)}),(e.elements||[]).map((function(t,i){return n(t,"".concat(a,"-").concat(e.name,"-").concat(i))})))}var a=function(e,a){var i=Object.assign(Object.assign({},a.attrs),e),r=i.data,o=i.name,s=i.width,c=i.height,l=i.fill,u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n}(i,["data","name","width","height","fill"]),f="width: ".concat(s,"; height: ").concat(c,"; fill: ").concat(l);return t.createVNode("span",u,[n(r,o,f)])};a.inheritAttrs=!1,a.displayName="bkIcon";var i=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM485.7 670.3l-181-181L350 444l135.8 135.8L712 353.5l45.3 45.3L485.7 670.3z"}}]}'),r=function(e,n){var r=Object.assign(Object.assign({},e),n.attrs);return t.createVNode(a,t.mergeProps(r,{data:i,name:"success"}),null)};r.displayName="success",r.inheritAttrs=!1,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,15 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue)}(this,(function(e,t){"use strict";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function n(e,a,i){return t.h(e.name,Object.assign(Object.assign({key:a},e.attributes),{style:"".concat(e.attributes.style," ").concat(i)}),(e.elements||[]).map((function(t,i){return n(t,"".concat(a,"-").concat(e.name,"-").concat(i))})))}var a=function(e,a){var i=Object.assign(Object.assign({},a.attrs),e),r=i.data,o=i.name,c=i.width,s=i.height,l=i.fill,d=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n}(i,["data","name","width","height","fill"]),u="width: ".concat(c,"; height: ").concat(s,"; fill: ").concat(l);return t.createVNode("span",d,[n(r,o,u)])};a.inheritAttrs=!1,a.displayName="bkIcon";var i=JSON.parse('{"type":"element","name":"svg","attributes":{"aria-hidden":"true","class":"anticon-spin","data-icon":"loading","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3 0.1 19.9-16 36-35.9 36z"}}]}'),r=function(e,n){var r=Object.assign(Object.assign({},e),n.attrs);return t.createVNode(a,t.mergeProps(r,{data:i,name:"switcherLoading"}),null)};r.displayName="switcherLoading",r.inheritAttrs=!1,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,15 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue)}(this,(function(e,t){"use strict";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function n(e,a,s){return t.h(e.name,Object.assign(Object.assign({key:a},e.attributes),{style:"".concat(e.attributes.style," ").concat(s)}),(e.elements||[]).map((function(t,s){return n(t,"".concat(a,"-").concat(e.name,"-").concat(s))})))}var a=function(e,a){var s=Object.assign(Object.assign({},a.attrs),e),i=s.data,r=s.name,l=s.width,o=s.height,c=s.fill,u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]])}return n}(s,["data","name","width","height","fill"]),p="width: ".concat(l,"; height: ").concat(o,"; fill: ").concat(c);return t.createVNode("span",u,[n(i,r,p)])};a.inheritAttrs=!1,a.displayName="bkIcon";var s=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M704 64L704 64H128v896h768V256l0 0L704 64zM704 154.5L805.5 256H704V154.5zM832 896H192V128h448v192h192V896z","class":"st0"}},{"type":"element","name":"path","attributes":{"d":"M288 320H544V384H288V320z","class":"st0"}},{"type":"element","name":"path","attributes":{"d":"M288 448H736V512H288V448z","class":"st0"}},{"type":"element","name":"path","attributes":{"d":"M288 576H736V640H288V576z","class":"st0"}},{"type":"element","name":"path","attributes":{"d":"M288 704H736V768H288V704z","class":"st0"}}]}'),i=function(e,n){var i=Object.assign(Object.assign({},e),n.attrs);return t.createVNode(a,t.mergeProps(i,{data:s,name:"textFile"}),null)};i.displayName="textFile",i.inheritAttrs=!1,e.default=i,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,15 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue)}(this,(function(e,t){"use strict";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function n(e,a,i){return t.h(e.name,Object.assign(Object.assign({key:a},e.attributes),{style:"".concat(e.attributes.style," ").concat(i)}),(e.elements||[]).map((function(t,i){return n(t,"".concat(a,"-").concat(e.name,"-").concat(i))})))}var a=function(e,a){var i=Object.assign(Object.assign({},a.attrs),e),r=i.data,o=i.name,c=i.width,l=i.height,s=i.fill,p=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n}(i,["data","name","width","height","fill"]),u="width: ".concat(c,"; height: ").concat(l,"; fill: ").concat(s);return t.createVNode("span",p,[n(r,o,u)])};a.inheritAttrs=!1,a.displayName="bkIcon";var i=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M432.64 576h156.79999999999998l-79.36-260.48-77.44 260.48z"}},{"type":"element","name":"path","attributes":{"d":"M512 0c-282.75199999999995 0-512 229.248-512 512s229.248 512 512 512c282.75199999999995 0 512-229.248 512-512s-229.248-512-512-512zM681.5999999999999 768h-9.6c-0.042666666666666665 0-0.128 0-0.21333333333333332 0-14.250666666666667 0-26.325333333333333-9.301333333333332-30.464-22.186666666666667l-32.04266666666666-105.81333333333333h-192l-33.28 105.6c-4.1386666666666665 13.994666666666667-16.896 24.02133333333333-32 24.02133333333333-18.389333333333333 0-33.32266666666666-14.933333333333332-33.32266666666666-33.32266666666666 0-3.328 0.46933333333333327-6.485333333333333 1.3653333333333333-9.514666666666667l133.07733333333334-429.82399999999996c9.813333333333333-23.552 32.64-39.808 59.263999999999996-39.808 24.917333333333332 0 46.464 14.208 57.04533333333333 34.986666666666665l134.57066666666665 434.304c1.152 3.157333333333333 1.792 6.784 1.792 10.581333333333333 0 14.890666666666664-10.197333333333333 27.434666666666665-23.97866666666667 30.976z"}}]}'),r=function(e,n){var r=Object.assign(Object.assign({},e),n.attrs);return t.createVNode(a,t.mergeProps(r,{data:i,name:"treeApplicationShape"}),null)};r.displayName="treeApplicationShape",r.inheritAttrs=!1,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,15 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue)}(this,(function(e,t){"use strict";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function n(e,a,i){return t.h(e.name,Object.assign(Object.assign({key:a},e.attributes),{style:"".concat(e.attributes.style," ").concat(i)}),(e.elements||[]).map((function(t,i){return n(t,"".concat(a,"-").concat(e.name,"-").concat(i))})))}var a=function(e,a){var i=Object.assign(Object.assign({},a.attrs),e),r=i.data,l=i.name,o=i.width,s=i.height,c=i.fill,u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n}(i,["data","name","width","height","fill"]),p="width: ".concat(o,"; height: ").concat(s,"; fill: ").concat(c);return t.createVNode("span",u,[n(r,l,p)])};a.inheritAttrs=!1,a.displayName="bkIcon";var i=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M500.16 304a355.04 355.04 0 0 1 128 24.8l48-48.96a426.08 426.08 0 0 0-176-39.84v64Z"}},{"type":"element","name":"path","attributes":{"d":"M763.2 328.8l-46.08 46.08a822.24 822.24 0 0 1 160 138.88 807.52 807.52 0 0 1-86.88 85.12C723.84 654.24 620.48 720 502.56 720a331.52 331.52 0 0 1-111.04-19.52l-49.44 49.28a402.4 402.4 0 0 0 160 34.24C768 784 960 512 960 512A962.56 962.56 0 0 0 763.2 328.8Z"}},{"type":"element","name":"path","attributes":{"d":"M254.88 701.12l46.08-46.08a706.56 706.56 0 0 1-156.64-144C197.44 442.88 328.16 304 500.16 304V240h0C234.72 240 64 512 64 512A838.72 838.72 0 0 0 254.88 701.12Z"}},{"type":"element","name":"path","attributes":{"d":"M512 640a128 128 0 0 0 110.24-192.96L888 181.28A32 32 0 1 0 842.72 136L576.96 401.76a128 128 0 0 0-176 176L136 842.72a32 32 0 1 0 45.28 45.28L447.04 622.24A128 128 0 0 0 512 640Zm64-128a64 64 0 0 1-64 64 60.96 60.96 0 0 1-16-2.4L573.6 496A60.96 60.96 0 0 1 576 512Zm-64-64a60.96 60.96 0 0 1 16 2.4L450.4 528A60.96 60.96 0 0 1 448 512 64 64 0 0 1 512 448Z"}}]}'),r=function(e,n){var r=Object.assign(Object.assign({},e),n.attrs);return t.createVNode(a,t.mergeProps(r,{data:i,name:"unvisible"}),null)};r.displayName="unvisible",r.inheritAttrs=!1,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,15 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue)}(this,(function(e,t){"use strict";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function n(e,a,r){return t.h(e.name,Object.assign(Object.assign({key:a},e.attributes),{style:"".concat(e.attributes.style," ").concat(r)}),(e.elements||[]).map((function(t,r){return n(t,"".concat(a,"-").concat(e.name,"-").concat(r))})))}var a=function(e,a){var r=Object.assign(Object.assign({},a.attrs),e),i=r.data,o=r.name,s=r.width,c=r.height,l=r.fill,u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(r,["data","name","width","height","fill"]),f="width: ".concat(s,"; height: ").concat(c,"; fill: ").concat(l);return t.createVNode("span",u,[n(i,o,f)])};a.inheritAttrs=!1,a.displayName="bkIcon";var r=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM544 704h-64v-64h64V704zM544 576h-64V320h64V576z"}}]}'),i=function(e,n){var i=Object.assign(Object.assign({},e),n.attrs);return t.createVNode(a,t.mergeProps(i,{data:r,name:"warn"}),null)};i.displayName="warn",i.inheritAttrs=!1,e.default=i,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("@bkui-vue/icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","@bkui-vue/icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e["@bkui-vue/icon/icons"])}(this,(function(e,t,o,n){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l={exports:{}};!function(e){e.exports=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(l);var a=r(l.exports);
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","../icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e["@bkui-vue/icon/icons"])}(this,(function(e,t,o,n){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l={exports:{}};!function(e){e.exports=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(l);var a=r(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
- ***************************************************************************** */var i={type:o.PropTypes.string.def("text"),clearable:o.PropTypes.bool,disabled:o.PropTypes.bool,readonly:o.PropTypes.bool,placeholder:o.PropTypes.string,prefixIcon:o.PropTypes.string,suffixIcon:o.PropTypes.string,suffix:o.PropTypes.string,prefix:o.PropTypes.string,step:o.PropTypes.integer,max:o.PropTypes.integer,min:o.PropTypes.integer,maxlength:o.PropTypes.integer,showWordLimit:o.PropTypes.bool,showControl:o.PropTypes.bool.def(!0),precision:o.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]),size:o.PropTypes.size()},u=t.defineComponent({name:"Input",inheritAttrs:!1,props:i,emits:["update:modelValue","focus","blur","change","clear","input","keydown"],setup:function(e,r){var l=t.ref(!1),i="bk-input",u=r.attrs,s=u.class,p=u.style,c=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o}(u,["class","style"]),d=t.computed((function(){var t;return o.classes((a(t={},"".concat(i,"--").concat(e.size),!!e.size),a(t,"is-focused",l.value),a(t,"is-readonly",e.readonly),a(t,"is-disabled",e.disabled),a(t,"".concat(s),!!s),t),i)})),f={search:function(){return t.createVNode(n.Search,null,null)},password:function(){return t.createVNode(n.Eye,{onClick:C},null)}},m=I("suffix-icon"),y=t.computed((function(){var o=f[e.type];return x.value?t.createVNode(n.Unvisible,{onClick:C,class:m},null):o?t.createVNode(o,{class:m},null):null})),v=t.computed((function(){return"number"===e.type})),b=t.computed((function(){return Math.floor(e.maxlength)})),x=t.ref(!1);function g(){r.emit("update:modelValue",""),r.emit("change",""),r.emit("clear")}function h(e){l.value=!0,r.emit("focus",e)}function V(e){l.value=!1,r.emit("blur",e)}function P(e){r.emit("update:modelValue",v.value?+e.target.value:e.target.value),r.emit("input",e.target.value)}function T(e){r.emit("keydown",e.target.value,e)}function N(e){r.emit("change",e.target.value,e)}function w(t){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Number.isInteger(e.precision)?e.precision:0,r=parseFloat(e.modelValue.toString()),l=Number.isInteger(t)?t:1,a=r+(o?l:-1*l);return Number.isInteger(e.max)&&(a=Math.min(a,e.max)),Number.isInteger(e.min)&&(a=Math.max(a,e.min)),+a.toFixed(n)}function O(){var t=w(parseInt(String(e.step),10));r.emit("update:modelValue",t)}function k(){var t=w(parseInt(String(e.step),10),!1);r.emit("update:modelValue",t)}function I(e){return"".concat(i,"--").concat(e)}function C(){x.value=!x.value}return function(){var o,l,a,u,s,f;return t.createVNode("div",{class:d.value,style:p},[null!==(a=null===(l=null===(o=r.slots)||void 0===o?void 0:o.prefix)||void 0===l?void 0:l.call(o))&&void 0!==a?a:e.prefix&&t.createVNode("div",{class:I("prefix-area")},[t.createVNode("span",{class:I("prefix-area--text")},[e.prefix])]),t.createVNode("input",t.mergeProps(c,{class:"".concat(i,"--text"),value:e.modelValue,type:x.value&&"password"===e.type?"text":e.type,maxlength:e.maxlength,step:e.step,max:e.max,min:e.min,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled,onInput:P,onFocus:h,onBlur:V,onChange:N,onKeydown:T}),null),e.clearable&&!!e.modelValue&&t.createVNode(n.Close,{onClick:g,class:m},null),y.value,"number"==typeof e.maxlength&&e.showWordLimit&&t.createVNode("p",{class:I("max-length")},[e.modelValue.toString().length,t.createTextVNode("/"),t.createVNode("span",null,[b.value])]),v.value&&e.showControl&&t.createVNode("div",{class:I("number-control")},[t.createVNode(n.DownSmall,{onClick:O},null),t.createVNode(n.DownSmall,{onClick:k},null)]),null!==(f=null===(s=null===(u=r.slots)||void 0===u?void 0:u.suffix)||void 0===s?void 0:s.call(u))&&void 0!==f?f:e.suffix&&t.createVNode("div",{class:I("suffix-area")},[t.createVNode("span",{class:I("suffix-area--text")},[e.suffix])])])}}}),s=o.withInstall(u);e.default=s,Object.defineProperty(e,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */var i={type:o.PropTypes.string.def("text"),clearable:o.PropTypes.bool,disabled:o.PropTypes.bool,readonly:o.PropTypes.bool,placeholder:o.PropTypes.string,prefixIcon:o.PropTypes.string,suffixIcon:o.PropTypes.string,suffix:o.PropTypes.string,prefix:o.PropTypes.string,step:o.PropTypes.integer,max:o.PropTypes.integer,min:o.PropTypes.integer,maxlength:o.PropTypes.integer,showWordLimit:o.PropTypes.bool,showControl:o.PropTypes.bool.def(!0),precision:o.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]),size:o.PropTypes.size()},u=t.defineComponent({name:"Input",inheritAttrs:!1,props:i,emits:["update:modelValue","focus","blur","change","clear","input","keydown"],setup:function(e,r){var l=t.ref(!1),i="bk-input",u=r.attrs,s=u.class,p=u.style,c=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o}(u,["class","style"]),d=t.computed((function(){var t;return o.classes((a(t={},"".concat(i,"--").concat(e.size),!!e.size),a(t,"is-focused",l.value),a(t,"is-readonly",e.readonly),a(t,"is-disabled",e.disabled),a(t,"".concat(s),!!s),t),i)})),f={search:function(){return t.createVNode(n.Search,null,null)},password:function(){return t.createVNode(n.Eye,{onClick:C},null)}},m=k("suffix-icon"),y=t.computed((function(){var o=f[e.type];return b.value?t.createVNode(n.Unvisible,{onClick:C,class:m},null):o?t.createVNode(o,{class:m},null):null})),v=t.computed((function(){return"number"===e.type})),x=t.computed((function(){return Math.floor(e.maxlength)})),b=t.ref(!1);function g(){r.emit("update:modelValue",""),r.emit("change",""),r.emit("clear")}function h(e){l.value=!0,r.emit("focus",e)}function V(e){l.value=!1,r.emit("blur",e)}function P(e){r.emit("update:modelValue",v.value?+e.target.value:e.target.value),r.emit("input",e.target.value)}function T(e){r.emit("keydown",e.target.value,e)}function N(e){r.emit("change",e.target.value,e)}function w(t){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Number.isInteger(e.precision)?e.precision:0,r=parseFloat(e.modelValue.toString()),l=Number.isInteger(t)?t:1,a=r+(o?l:-1*l);return Number.isInteger(e.max)&&(a=Math.min(a,e.max)),Number.isInteger(e.min)&&(a=Math.max(a,e.min)),+a.toFixed(n)}function O(){var t=w(parseInt(String(e.step),10));r.emit("update:modelValue",t)}function I(){var t=w(parseInt(String(e.step),10),!1);r.emit("update:modelValue",t)}function k(e){return"".concat(i,"--").concat(e)}function C(){b.value=!b.value}return function(){var o,l,a,u,s,f;return t.createVNode("div",{class:d.value,style:p},[null!==(a=null===(l=null===(o=r.slots)||void 0===o?void 0:o.prefix)||void 0===l?void 0:l.call(o))&&void 0!==a?a:e.prefix&&t.createVNode("div",{class:k("prefix-area")},[t.createVNode("span",{class:k("prefix-area--text")},[e.prefix])]),t.createVNode("input",t.mergeProps(c,{class:"".concat(i,"--text"),value:e.modelValue,type:b.value&&"password"===e.type?"text":e.type,maxlength:e.maxlength,step:e.step,max:e.max,min:e.min,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled,onInput:P,onFocus:h,onBlur:V,onChange:N,onKeydown:T}),null),e.clearable&&!!e.modelValue&&t.createVNode(n.Close,{onClick:g,class:m},null),y.value,"number"==typeof e.maxlength&&e.showWordLimit&&t.createVNode("p",{class:k("max-length")},[e.modelValue.toString().length,t.createTextVNode("/"),t.createVNode("span",null,[x.value])]),v.value&&e.showControl&&t.createVNode("div",{class:k("number-control")},[t.createVNode(n.DownSmall,{onClick:O},null),t.createVNode(n.DownSmall,{onClick:I},null)]),null!==(f=null===(s=null===(u=r.slots)||void 0===u?void 0:u.suffix)||void 0===s?void 0:s.call(u))&&void 0!==f?f:e.suffix&&t.createVNode("div",{class:k("suffix-area")},[t.createVNode("span",{class:k("suffix-area--text")},[e.suffix])])])}}}),s=o.withInstall(u);e.default=s,Object.defineProperty(e,"__esModule",{value:!0})}));
package/lib/menu/index.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@bkui-vue/icon/"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","@bkui-vue/icon/","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e._,e.Shared)}(this,(function(e,t,n,o){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l={exports:{}};!function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(l);var a=r(l.exports),u={exports:{}},i={exports:{}},s={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o},e.exports.__esModule=!0,e.exports.default=e.exports}(s),function(e){var t=s.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(i);var c={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(c);var p={exports:{}};!function(e){var t=s.exports;e.exports=function(e,n){if(e){if("string"==typeof e)return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(p);var d={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(d),function(e){var t=i.exports,n=c.exports,o=p.exports,r=d.exports;e.exports=function(e){return t(e)||n(e)||o(e)||r()},e.exports.__esModule=!0,e.exports.default=e.exports}(u);var f=r(u.exports),v=Symbol("MENU_PROVIDER_KEY"),y=Symbol("MENU_PROVIDER_KEY_PATH"),m=function(){return t.inject(v)},h=function(){var e,n=t.getCurrentInstance(),o=n.parent?n.parent.provides:null===(e=n.vnode.appContext)||void 0===e?void 0:e.provides;return o&&y in o?t.inject(y):{parentInfo:void 0,parentKeys:t.ref([])}},x=function(e){return(e||"").split(" ").filter((function(e){return!!e.trim()}))};function g(e,t){if(e&&t){var n=x(t),o=e.getAttribute("class")||"";if(e.classList){var r;(r=e.classList).remove.apply(r,f(n))}else{n.forEach((function(e){o=o.replace(" ".concat(e," ")," ")}));var l=x(o).join(" ");e.setAttribute("class",l)}}}function b(e,t){if(e){var n,o=e.getAttribute("class")||"",r=x(o),l=(t||"").split(" ").filter((function(e){return!r.includes(e)&&!!e.trim()}));if(e.classList)(n=e.classList).add.apply(n,f(l));else o+=" ".concat(l.join(" ")),e.setAttribute("class",o)}}var I={activeKey:String,collapse:{type:Boolean,default:!1},OpenedKeys:{type:Array},mode:{type:String,default:"vertical"},uniqueOpen:{type:Boolean,default:!0}},_=t.defineComponent({name:"Menu",props:I,emits:["update:activeKey","update:openKeys","click","openChange"],setup:function(e,n){var o=n.slots,r=n.emit,l=t.ref(""),u=t.ref([]),i=t.ref({}),s=t.computed((function(){return e.mode})),c=t.ref(e.collapse),p=t.ref([]);t.watch((function(){return e.OpenedKeys}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.value;u.value=e}),{immediate:!0}),t.watchEffect((function(){void 0!==e.activeKey&&(l.value=e.activeKey)})),t.watch((function(){return e.collapse}),(function(){c.value=e.collapse;var t=f(p.value),n=f(u.value);u.value=c.value?[]:t,p.value=c.value?n:[]}),{immediate:!0});var d;return d={activeKey:l,menuStore:i,registerMenuInfo:function(e,t){i.value=Object.assign(Object.assign({},i.value),a({},e,t))},unregisterMenuInfo:function(e){delete i.value[e],i.value=Object.assign({},i.value)},mode:s.value,openedKeys:u,collapse:c,handleOpenChange:function(t,n){n?e.uniqueOpen?u.value=[t]:u.value.push(t):u.value=u.value.filter((function(e){return e!==t})),r("openChange",n,i.value[t]),r("update:openKeys",f(u.value))},handleActiveChange:function(e){l.value=e,r("click",i.value[e]),r("update:activeKey",e,i.value[e])}},t.provide(v,d),function(){var e;return t.createVNode("div",{class:{"bk-menu":!0,"is-collapse":c.value}},[null===(e=null==o?void 0:o.default)||void 0===e?void 0:e.call(o)])}}}),w=t.defineComponent({name:"MenuItem",props:{needIcon:{type:Boolean,default:!0}},emits:["click"],slots:["icon"],setup:function(e,n){var o,r,l=n.slots,a=n.emit,u=m(),i=u.registerMenuInfo,s=u.unregisterMenuInfo,c=u.activeKey,p=u.handleActiveChange,d=t.getCurrentInstance(),f=h().parentInfo,v=(null===(r=null===(o=d.vnode.key)||void 0===o?void 0:o.toString)||void 0===r?void 0:r.call(o))||String(d.uid),y=t.computed((function(){return c.value===v})),x=t.computed((function(){return e.needIcon}));i(v,{key:v,parentKey:null==f?void 0:f.key});var g=function(e){p(v),a("click",e)};return t.onBeforeUnmount((function(){return s(v)})),function(){var e,n;return t.createVNode("li",{class:{"bk-menu-item":!0,"is-active":y.value},onClick:g},[x.value&&t.createVNode("span",{class:"item-icon"},[(null===(e=null==l?void 0:l.icon)||void 0===e?void 0:e.call(l))||t.createVNode("i",{class:"default-icon"},null)]),t.createVNode("span",{class:"item-content"},[null===(n=l.default)||void 0===n?void 0:n.call(l)])])}}}),K={title:{type:String,default:"title"}},S=t.defineComponent({name:"Submenu",props:K,emits:["collapse"],slots:["icon"],setup:function(e,o){var r,l,a=o.slots,u=o.emit,i=m(),s=i.registerMenuInfo,c=i.unregisterMenuInfo,p=i.openedKeys,d=i.handleOpenChange,v=i.collapse,x=i.activeKey,I=i.menuStore,_=h().parentInfo,w=t.getCurrentInstance(),K=(null===(l=null===(r=w.vnode.key)||void 0===r?void 0:r.toString)||void 0===l?void 0:l.call(r))||String(w.uid),S=t.ref({css:!0,onBeforeEnter:function(e){b(e,"collapse-transition"),e.dataset||(e.dataset={}),e.style.height="0px",e.style.maxHeight="0px"},onEnter:function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height="".concat(e.scrollHeight,"px"),e.style.maxHeight="".concat(e.scrollHeight,"px")):(e.style.height="0px",e.style.maxHeight="0px"),e.style.overflow="hidden"},onAfterEnter:function(e){e.style.height="",e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,g(e,"collapse-transition")},onBeforeLeave:function(e){e.dataset||(e.dataset={}),e.dataset.oldOverflow=e.style.overflow,e.style.height="".concat(e.scrollHeight,"px"),e.style.maxHeight="".concat(e.scrollHeight,"px"),e.style.overflow="hidden"},onLeave:function(e){0!==e.scrollHeight&&(b(e,"collapse-transition"),e.style.transitionProperty="height",e.style.height="0px",e.style.maxHeight="0px")},onAfterLeave:function(e){g(e,"collapse-transition"),e.style.height="",e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow}}),k=t.computed((function(){return p.value.includes(K)})),M=t.computed((function(){var e,t,n=null===(t=null===(e=I.value)||void 0===e?void 0:e[x.value])||void 0===t?void 0:t.parentKey;return v.value&&n===K&&k}));!function(e){var n=h(),o=n.parentKeys,r=n.parentInfo,l=t.computed((function(){return[].concat(f(o.value),[e])}));t.provide(y,{parentInfo:{key:e,parentKey:null==r?void 0:r.key},parentKeys:l})}(K),s(K,{key:K,parentKey:null==_?void 0:_.key}),t.onBeforeUnmount((function(){return c(K)}));var O=function(){d(K,!k.value),u("collapse",!k.value,w)};return function(){var o,r;return t.createVNode("li",{class:{"bk-menu-submenu":!0,"is-opened":k.value}},[t.createVNode("div",{class:{"submenu-header":!0,"is-collapse":M.value},onClick:O},[t.createVNode("span",{class:"submenu-header-icon"},[(null===(o=a.icon)||void 0===o?void 0:o.call(a))||t.createVNode(n.TreeApplicationShape,{class:"menu-icon"},null)]),t.createVNode("span",{class:"submenu-header-content"},[e.title]),t.createVNode(n.AngleDown,{class:{"submenu-header-collapse":!0,"is-collapse":p.value.includes(K)}},null)]),t.createVNode(t.Transition,S.value,{default:function(){return[t.withDirectives(t.createVNode("ul",{class:"submenu-list"},[null===(r=a.default)||void 0===r?void 0:r.call(a)]),[[t.vShow,k.value]])]}})])}}}),k=t.defineComponent({name:"MenuGroup",props:{name:{type:String,default:""}},setup:function(e,n){var o=n.slots;return function(){var n;return t.createVNode("div",{class:"bk-menu-group"},[t.createVNode("div",{class:"group-name"},[e.name]),t.createVNode("ul",{class:"group-wrap"},[null===(n=o.default)||void 0===n?void 0:n.call(o)])])}}}),M=o.withInstallProps(_,{Item:w,Submenu:S,Group:k});e.default=M,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../icon/"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../icon/","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e._,e.Shared)}(this,(function(e,t,n,o){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l={exports:{}};!function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(l);var a=r(l.exports),u={exports:{}},i={exports:{}},s={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o},e.exports.__esModule=!0,e.exports.default=e.exports}(s),function(e){var t=s.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(i);var c={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(c);var p={exports:{}};!function(e){var t=s.exports;e.exports=function(e,n){if(e){if("string"==typeof e)return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(p);var d={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(d),function(e){var t=i.exports,n=c.exports,o=p.exports,r=d.exports;e.exports=function(e){return t(e)||n(e)||o(e)||r()},e.exports.__esModule=!0,e.exports.default=e.exports}(u);var f=r(u.exports),v=Symbol("MENU_PROVIDER_KEY"),y=Symbol("MENU_PROVIDER_KEY_PATH"),m=function(){return t.inject(v)},h=function(){var e,n=t.getCurrentInstance(),o=n.parent?n.parent.provides:null===(e=n.vnode.appContext)||void 0===e?void 0:e.provides;return o&&y in o?t.inject(y):{parentInfo:void 0,parentKeys:t.ref([])}},x=function(e){return(e||"").split(" ").filter((function(e){return!!e.trim()}))};function g(e,t){if(e&&t){var n=x(t),o=e.getAttribute("class")||"";if(e.classList){var r;(r=e.classList).remove.apply(r,f(n))}else{n.forEach((function(e){o=o.replace(" ".concat(e," ")," ")}));var l=x(o).join(" ");e.setAttribute("class",l)}}}function b(e,t){if(e){var n,o=e.getAttribute("class")||"",r=x(o),l=(t||"").split(" ").filter((function(e){return!r.includes(e)&&!!e.trim()}));if(e.classList)(n=e.classList).add.apply(n,f(l));else o+=" ".concat(l.join(" ")),e.setAttribute("class",o)}}var I={activeKey:String,collapse:{type:Boolean,default:!1},OpenedKeys:{type:Array},mode:{type:String,default:"vertical"},uniqueOpen:{type:Boolean,default:!0}},_=t.defineComponent({name:"Menu",props:I,emits:["update:activeKey","update:openKeys","click","openChange"],setup:function(e,n){var o=n.slots,r=n.emit,l=t.ref(""),u=t.ref([]),i=t.ref({}),s=t.computed((function(){return e.mode})),c=t.ref(e.collapse),p=t.ref([]);t.watch((function(){return e.OpenedKeys}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.value;u.value=e}),{immediate:!0}),t.watchEffect((function(){void 0!==e.activeKey&&(l.value=e.activeKey)})),t.watch((function(){return e.collapse}),(function(){c.value=e.collapse;var t=f(p.value),n=f(u.value);u.value=c.value?[]:t,p.value=c.value?n:[]}),{immediate:!0});var d;return d={activeKey:l,menuStore:i,registerMenuInfo:function(e,t){i.value=Object.assign(Object.assign({},i.value),a({},e,t))},unregisterMenuInfo:function(e){delete i.value[e],i.value=Object.assign({},i.value)},mode:s.value,openedKeys:u,collapse:c,handleOpenChange:function(t,n){n?e.uniqueOpen?u.value=[t]:u.value.push(t):u.value=u.value.filter((function(e){return e!==t})),r("openChange",n,i.value[t]),r("update:openKeys",f(u.value))},handleActiveChange:function(e){l.value=e,r("click",i.value[e]),r("update:activeKey",e,i.value[e])}},t.provide(v,d),function(){var e;return t.createVNode("div",{class:{"bk-menu":!0,"is-collapse":c.value}},[null===(e=null==o?void 0:o.default)||void 0===e?void 0:e.call(o)])}}}),w=t.defineComponent({name:"MenuItem",props:{needIcon:{type:Boolean,default:!0}},emits:["click"],slots:["icon"],setup:function(e,n){var o,r,l=n.slots,a=n.emit,u=m(),i=u.registerMenuInfo,s=u.unregisterMenuInfo,c=u.activeKey,p=u.handleActiveChange,d=t.getCurrentInstance(),f=h().parentInfo,v=(null===(r=null===(o=d.vnode.key)||void 0===o?void 0:o.toString)||void 0===r?void 0:r.call(o))||String(d.uid),y=t.computed((function(){return c.value===v})),x=t.computed((function(){return e.needIcon}));i(v,{key:v,parentKey:null==f?void 0:f.key});var g=function(e){p(v),a("click",e)};return t.onBeforeUnmount((function(){return s(v)})),function(){var e,n;return t.createVNode("li",{class:{"bk-menu-item":!0,"is-active":y.value},onClick:g},[x.value&&t.createVNode("span",{class:"item-icon"},[(null===(e=null==l?void 0:l.icon)||void 0===e?void 0:e.call(l))||t.createVNode("i",{class:"default-icon"},null)]),t.createVNode("span",{class:"item-content"},[null===(n=l.default)||void 0===n?void 0:n.call(l)])])}}}),K={title:{type:String,default:"title"}},S=t.defineComponent({name:"Submenu",props:K,emits:["collapse"],slots:["icon"],setup:function(e,o){var r,l,a=o.slots,u=o.emit,i=m(),s=i.registerMenuInfo,c=i.unregisterMenuInfo,p=i.openedKeys,d=i.handleOpenChange,v=i.collapse,x=i.activeKey,I=i.menuStore,_=h().parentInfo,w=t.getCurrentInstance(),K=(null===(l=null===(r=w.vnode.key)||void 0===r?void 0:r.toString)||void 0===l?void 0:l.call(r))||String(w.uid),S=t.ref({css:!0,onBeforeEnter:function(e){b(e,"collapse-transition"),e.dataset||(e.dataset={}),e.style.height="0px",e.style.maxHeight="0px"},onEnter:function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height="".concat(e.scrollHeight,"px"),e.style.maxHeight="".concat(e.scrollHeight,"px")):(e.style.height="0px",e.style.maxHeight="0px"),e.style.overflow="hidden"},onAfterEnter:function(e){e.style.height="",e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,g(e,"collapse-transition")},onBeforeLeave:function(e){e.dataset||(e.dataset={}),e.dataset.oldOverflow=e.style.overflow,e.style.height="".concat(e.scrollHeight,"px"),e.style.maxHeight="".concat(e.scrollHeight,"px"),e.style.overflow="hidden"},onLeave:function(e){0!==e.scrollHeight&&(b(e,"collapse-transition"),e.style.transitionProperty="height",e.style.height="0px",e.style.maxHeight="0px")},onAfterLeave:function(e){g(e,"collapse-transition"),e.style.height="",e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow}}),M=t.computed((function(){return p.value.includes(K)})),O=t.computed((function(){var e,t,n=null===(t=null===(e=I.value)||void 0===e?void 0:e[x.value])||void 0===t?void 0:t.parentKey;return v.value&&n===K&&M}));!function(e){var n=h(),o=n.parentKeys,r=n.parentInfo,l=t.computed((function(){return[].concat(f(o.value),[e])}));t.provide(y,{parentInfo:{key:e,parentKey:null==r?void 0:r.key},parentKeys:l})}(K),s(K,{key:K,parentKey:null==_?void 0:_.key}),t.onBeforeUnmount((function(){return c(K)}));var V=function(){d(K,!M.value),u("collapse",!M.value,w)};return function(){var o,r;return t.createVNode("li",{class:{"bk-menu-submenu":!0,"is-opened":M.value}},[t.createVNode("div",{class:{"submenu-header":!0,"is-collapse":O.value},onClick:V},[t.createVNode("span",{class:"submenu-header-icon"},[(null===(o=a.icon)||void 0===o?void 0:o.call(a))||t.createVNode(n.TreeApplicationShape,{class:"menu-icon"},null)]),t.createVNode("span",{class:"submenu-header-content"},[e.title]),t.createVNode(n.AngleDown,{class:{"submenu-header-collapse":!0,"is-collapse":p.value.includes(K)}},null)]),t.createVNode(t.Transition,S.value,{default:function(){return[t.withDirectives(t.createVNode("ul",{class:"submenu-list"},[null===(r=a.default)||void 0===r?void 0:r.call(a)]),[[t.vShow,M.value]])]}})])}}}),M=t.defineComponent({name:"MenuGroup",props:{name:{type:String,default:""}},setup:function(e,n){var o=n.slots;return function(){var n;return t.createVNode("div",{class:"bk-menu-group"},[t.createVNode("div",{class:"group-name"},[e.name]),t.createVNode("ul",{class:"group-wrap"},[null===(n=o.default)||void 0===n?void 0:n.call(o)])])}}}),O=o.withInstallProps(_,{Item:w,Submenu:S,Group:M});e.default=O,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,3 @@
1
+ .bk-menu {
2
+ display: block;
3
+ }
@@ -1,5 +1,5 @@
1
1
  @import '../styles/themes/themes.less';
2
2
 
3
3
  .@{bk-prefix}-menu {
4
-
4
+ display: block;
5
5
  }
@@ -84,3 +84,6 @@
84
84
  --date-picker-dropdown-mb: 4px;
85
85
  --date-picker-dropdown-bg: #fff;
86
86
  }
87
+ .bk-menu {
88
+ display: block;
89
+ }
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("@bkui-vue/icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","@bkui-vue/icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e["@bkui-vue/icon/icons"])}(this,(function(e,t,n,o){"use strict";var s={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},r=1,i=function(e,n){var o=n,i=o.position||"top-right";"string"==typeof n&&(o={message:n});var a=n.onClose,u=o.offset||20;s[i].forEach((function(e){u+=(e.el.offsetHeight||0)+16})),u+=16;var c="message_".concat(r+=1);o=Object.assign(Object.assign({},o),{offset:u,id:c});var l=document.createElement("div"),d=t.createVNode(e,o);d.props.onDestory=function(e){!function(e,t,n){null==n||n();var o=t.startsWith("top")?"top":"bottom",r=-1;s[t].forEach((function(t,n){t.props.id===e&&(r=n)}));for(var i=s[t][r].el.offsetHeight,a=s[t].length,u=r;u<a;u++){var c=parseInt(s[t][u].el.style[o],10)-i-16;s[t][u].component.props.offset=c}s[t].splice(r,1)}(e,i,a),t.render(null,l)},t.render(d,l),s[i].push(d),document.body.appendChild(l.firstElementChild)};var a={id:n.PropTypes.string.def(""),message:n.PropTypes.string.def(""),theme:n.PropTypes.theme(["primary","warning","success","danger"]).def("primary"),delay:n.PropTypes.number.def(3e3),offset:n.PropTypes.number.def(0),onClose:n.PropTypes.func},u=t.defineComponent({name:"Message",props:a,emits:["destory"],setup:function(e,o){var s=o.emit,r=t.computed((function(){return["bk-message","bk-message-".concat(e.theme)]})),i=n.bkZIndexManager.getMessageNextIndex(),a=t.computed((function(){return{top:"".concat(e.offset,"px"),zIndex:i}})),u=t.ref(!1),c=null;return t.onMounted((function(){c=setTimeout((function(){u.value=!1}),e.delay),u.value=!0})),t.onUnmounted((function(){clearTimeout(c)})),t.watch(u,(function(){u.value||s("destory",e.id)})),{classNames:r,styles:a,visible:u,handleClose:function(){u.value=!1}}},render:function(){var e=this;return t.createVNode(t.Transition,{name:"bk-message-fade"},{default:function(){return[t.withDirectives(t.createVNode("div",{class:e.classNames,style:e.styles},[t.createVNode("div",{class:"bk-message-content"},[t.createVNode("div",{class:"bk-message-icon"},[{primary:t.createVNode(o.Info,null,null),warning:t.createVNode(o.Warn,null,null),success:t.createVNode(o.Success,null,null),danger:t.createVNode(o.Close,null,null)}[e.theme]]),e.message]),t.createVNode(o.Error,{class:"bk-message-icon bk-message-close",onClick:e.handleClose},null)]),[[t.vShow,e.visible]])]}})}});e.default=function(e){i(u,e)},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","../icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e["@bkui-vue/icon/icons"])}(this,(function(e,t,n,o){"use strict";var s={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},r=1,a=function(e,n){var o=n,a=o.position||"top-right";"string"==typeof n&&(o={message:n});var i=n.onClose,c=o.offset||20;s[a].forEach((function(e){c+=(e.el.offsetHeight||0)+16})),c+=16;var u="message_".concat(r+=1);o=Object.assign(Object.assign({},o),{offset:c,id:u});var l=document.createElement("div"),d=t.createVNode(e,o);d.props.onDestory=function(e){!function(e,t,n){null==n||n();var o=t.startsWith("top")?"top":"bottom",r=-1;s[t].forEach((function(t,n){t.props.id===e&&(r=n)}));for(var a=s[t][r].el.offsetHeight,i=s[t].length,c=r;c<i;c++){var u=parseInt(s[t][c].el.style[o],10)-a-16;s[t][c].component.props.offset=u}s[t].splice(r,1)}(e,a,i),t.render(null,l)},t.render(d,l),s[a].push(d),document.body.appendChild(l.firstElementChild)};var i={id:n.PropTypes.string.def(""),message:n.PropTypes.string.def(""),theme:n.PropTypes.theme(["primary","warning","success","danger"]).def("primary"),delay:n.PropTypes.number.def(3e3),offset:n.PropTypes.number.def(0),onClose:n.PropTypes.func},c=t.defineComponent({name:"Message",props:i,emits:["destory"],setup:function(e,o){var s=o.emit,r=t.computed((function(){return["bk-message","bk-message-".concat(e.theme)]})),a=n.bkZIndexManager.getMessageNextIndex(),i=t.computed((function(){return{top:"".concat(e.offset,"px"),zIndex:a}})),c=t.ref(!1),u=null;return t.onMounted((function(){u=setTimeout((function(){c.value=!1}),e.delay),c.value=!0})),t.onUnmounted((function(){clearTimeout(u)})),t.watch(c,(function(){c.value||s("destory",e.id)})),{classNames:r,styles:i,visible:c,handleClose:function(){c.value=!1}}},render:function(){var e=this;return t.createVNode(t.Transition,{name:"bk-message-fade"},{default:function(){return[t.withDirectives(t.createVNode("div",{class:e.classNames,style:e.styles},[t.createVNode("div",{class:"bk-message-content"},[t.createVNode("div",{class:"bk-message-icon"},[{primary:t.createVNode(o.Info,null,null),warning:t.createVNode(o.Warn,null,null),success:t.createVNode(o.Success,null,null),danger:t.createVNode(o.Close,null,null)}[e.theme]]),e.message]),t.createVNode(o.Error,{class:"bk-message-icon bk-message-close",onClick:e.handleClose},null)]),[[t.vShow,e.visible]])]}})}});e.default=function(e){a(c,e)},Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -9,7 +9,7 @@ declare const BkModal: {
9
9
  width: string | number;
10
10
  height: string | number;
11
11
  isShow: boolean;
12
- customClass: string;
12
+ customClass: string | unknown[];
13
13
  scrollable: boolean;
14
14
  }> & Omit<Readonly<{
15
15
  isShow?: unknown;
@@ -21,7 +21,7 @@ declare const BkModal: {
21
21
  width: string | number;
22
22
  height: string | number;
23
23
  isShow: boolean;
24
- customClass: string;
24
+ customClass: string | unknown[];
25
25
  scrollable: boolean;
26
26
  } & {}> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "isShow" | "customClass" | "scrollable">;
27
27
  $attrs: {
@@ -47,7 +47,7 @@ declare const BkModal: {
47
47
  width: string | number;
48
48
  height: string | number;
49
49
  isShow: boolean;
50
- customClass: string;
50
+ customClass: string | unknown[];
51
51
  scrollable: boolean;
52
52
  } & {}> & {}, unknown, {
53
53
  visible: boolean;
@@ -59,7 +59,7 @@ declare const BkModal: {
59
59
  width: string | number;
60
60
  height: string | number;
61
61
  isShow: boolean;
62
- customClass: string;
62
+ customClass: string | unknown[];
63
63
  scrollable: boolean;
64
64
  }> & {
65
65
  beforeCreate?: (() => void) | (() => void)[];
@@ -91,7 +91,7 @@ declare const BkModal: {
91
91
  width: string | number;
92
92
  height: string | number;
93
93
  isShow: boolean;
94
- customClass: string;
94
+ customClass: string | unknown[];
95
95
  scrollable: boolean;
96
96
  } & {}> & {} & import("vue").ShallowUnwrapRef<{}> & {
97
97
  visible: boolean;
@@ -113,7 +113,7 @@ declare const BkModal: {
113
113
  width: string | number;
114
114
  height: string | number;
115
115
  isShow: boolean;
116
- customClass: string;
116
+ customClass: string | unknown[];
117
117
  scrollable: boolean;
118
118
  } & {}> & {}, unknown, {
119
119
  visible: boolean;
@@ -125,7 +125,7 @@ declare const BkModal: {
125
125
  width: string | number;
126
126
  height: string | number;
127
127
  isShow: boolean;
128
- customClass: string;
128
+ customClass: string | unknown[];
129
129
  scrollable: boolean;
130
130
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
131
131
  propsMixin: {
@@ -142,7 +142,7 @@ declare const BkModal: {
142
142
  default: string;
143
143
  };
144
144
  customClass: {
145
- type: (ObjectConstructor | StringConstructor)[];
145
+ type: (ArrayConstructor | StringConstructor)[];
146
146
  default: string;
147
147
  };
148
148
  scrollable: {
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,o){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={exports:{}},i={exports:{}},s={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r},e.exports.__esModule=!0,e.exports.default=e.exports}(s),function(e){var t=s.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(i);var a={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(a);var l={exports:{}};!function(e){var t=s.exports;e.exports=function(e,o){if(e){if("string"==typeof e)return t(e,o);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,o):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(l);var d={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(d),function(e){var t=i.exports,o=a.exports,r=l.exports,n=d.exports;e.exports=function(e){return t(e)||o(e)||r(e)||n()},e.exports.__esModule=!0,e.exports.default=e.exports}(n);var u=r(n.exports),p={isShow:{type:Boolean,default:!1},width:{type:[Number,String],default:"50%"},height:{type:[Number,String],default:"50%"},customClass:{type:[Object,String],default:""},scrollable:{type:Boolean,default:!0}},c=t.defineComponent({name:"Modal",props:Object.assign({},p),data:function(){return{visible:!1}},watch:{isShow:{handler:function(e){this.visible=e}},visible:function(e){var t=this;e?this.$nextTick((function(){o.bkPopIndexManager.show(t.$el)})):o.bkPopIndexManager.hide(this.$el)}},computed:{dialogWidth:function(){return/^\d+$/.test("".concat(this.width))?"".concat(this.width,"px"):this.width},dialogHeight:function(){return/^\d+$/.test("".concat(this.height))?"".concat(this.height,"px"):this.height},compStyle:function(){return{width:this.dialogWidth,height:this.dialogHeight,display:this.visible?"inherit":"none"}}},beforeUnmount:function(){o.bkPopIndexManager.hide(this.$el)},render:function(){var e,o,r,n,i,s,a,l,d;return t.createVNode("div",{class:["bk-modal-wrapper"].concat(u(this.customClass)),style:this.compStyle},[this.isShow?t.createVNode("div",{class:"bk-modal-body"},[t.createVNode("div",{class:"bk-modal-header"},[null!==(r=null===(o=(e=this.$slots).header)||void 0===o?void 0:o.call(e))&&void 0!==r?r:""]),t.createVNode("div",{class:"bk-modal-content"},[null!==(s=null===(i=(n=this.$slots).default)||void 0===i?void 0:i.call(n))&&void 0!==s?s:""]),t.createVNode("div",{class:"bk-modal-footer"},[null!==(d=null===(l=(a=this.$slots).footer)||void 0===l?void 0:l.call(a))&&void 0!==d?d:""])]):""])}}),f=o.withInstallProps(c,{propsMixin:p},!0);e.BkModal=f,e.default=f,e.propsMixin=p,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,o){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={exports:{}},i={exports:{}},s={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r},e.exports.__esModule=!0,e.exports.default=e.exports}(s),function(e){var t=s.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(i);var a={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(a);var l={exports:{}};!function(e){var t=s.exports;e.exports=function(e,o){if(e){if("string"==typeof e)return t(e,o);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,o):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(l);var d={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(d),function(e){var t=i.exports,o=a.exports,r=l.exports,n=d.exports;e.exports=function(e){return t(e)||o(e)||r(e)||n()},e.exports.__esModule=!0,e.exports.default=e.exports}(n);var u=r(n.exports),p={isShow:{type:Boolean,default:!1},width:{type:[Number,String],default:"50%"},height:{type:[Number,String],default:"50%"},customClass:{type:[Array,String],default:""},scrollable:{type:Boolean,default:!0}},c=t.defineComponent({name:"Modal",props:Object.assign({},p),data:function(){return{visible:!1}},computed:{dialogWidth:function(){return/^\d+$/.test("".concat(this.width))?"".concat(this.width,"px"):this.width},dialogHeight:function(){return/^\d+$/.test("".concat(this.height))?"".concat(this.height,"px"):this.height},compStyle:function(){return{width:this.dialogWidth,height:this.dialogHeight,display:this.visible?"inherit":"none"}}},watch:{isShow:{handler:function(e){this.visible=e}},visible:function(e){var t=this;e?this.$nextTick((function(){o.bkPopIndexManager.show(t.$el)})):o.bkPopIndexManager.hide(this.$el)}},beforeUnmount:function(){o.bkPopIndexManager.hide(this.$el)},render:function(){var e,o,r,n,i,s,a,l,d;return t.createVNode("div",{class:["bk-modal-wrapper"].concat(u(this.customClass)),style:this.compStyle},[this.isShow?t.createVNode("div",{class:"bk-modal-body"},[t.createVNode("div",{class:"bk-modal-header"},[null!==(r=null===(o=(e=this.$slots).header)||void 0===o?void 0:o.call(e))&&void 0!==r?r:""]),t.createVNode("div",{class:"bk-modal-content"},[null!==(s=null===(i=(n=this.$slots).default)||void 0===i?void 0:i.call(n))&&void 0!==s?s:""]),t.createVNode("div",{class:"bk-modal-footer"},[null!==(d=null===(l=(a=this.$slots).footer)||void 0===l?void 0:l.call(a))&&void 0!==d?d:""])]):""])}}),f=o.withInstallProps(c,{propsMixin:p},!0);e.BkModal=f,e.default=f,e.propsMixin=p,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
12
12
  default: string;
13
13
  };
14
14
  customClass: {
15
- type: (ObjectConstructor | StringConstructor)[];
15
+ type: (ArrayConstructor | StringConstructor)[];
16
16
  default: string;
17
17
  };
18
18
  scrollable: {
@@ -35,13 +35,13 @@ declare const _default: import("vue").DefineComponent<{
35
35
  width: string | number;
36
36
  height: string | number;
37
37
  isShow: boolean;
38
- customClass: string;
38
+ customClass: string | unknown[];
39
39
  scrollable: boolean;
40
40
  } & {}> & {}, {
41
41
  width: string | number;
42
42
  height: string | number;
43
43
  isShow: boolean;
44
- customClass: string;
44
+ customClass: string | unknown[];
45
45
  scrollable: boolean;
46
46
  }>;
47
47
  export default _default;
@@ -12,7 +12,7 @@ export declare const propsMixin: {
12
12
  default: string;
13
13
  };
14
14
  customClass: {
15
- type: (ObjectConstructor | StringConstructor)[];
15
+ type: (ArrayConstructor | StringConstructor)[];
16
16
  default: string;
17
17
  };
18
18
  scrollable: {
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@bkui-vue/icon")):"function"==typeof define&&define.amd?define(["exports","vue","@bkui-vue/icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e["@bkui-vue/icon/icons"])}(this,(function(e,t,i){"use strict";var o={sideTitle:{type:String,default:""},navigationType:{type:String,default:"left-right"}},a=t.defineComponent({props:o,slots:["side-icon"],setup:function(e,i){var o=i.slots;return function(){var i,a;return t.createVNode("div",{class:"bk-navigation-title",style:{borderBottomWidth:"left-right"===e.navigationType?"0":"1px"}},[(null===(i=o.default)||void 0===i?void 0:i.call(o))||[t.createVNode("span",{class:"title-icon"},[(null===(a=o["side-icon"])||void 0===a?void 0:a.call(o))||t.createVNode("i",{class:"bk-icon icon-rtx"},null)]),t.createVNode("span",{class:"title-desc"},[e.sideTitle])]])}}}),n={navWidth:{type:[Number,String],default:60},hoverWidth:{type:[Number,String],default:260},sideTitle:{type:String,default:""},headerTitle:{type:String,default:""},hoverLeaveDelay:{type:Number,default:0},hoverEnterDelay:{type:Number,default:100},defaultOpen:Boolean,headHeight:{type:[Number,String],default:52},navigationType:{type:String,default:"left-right",validator:function(e){return["top-bottom","left-right"].includes(e)}},needMenu:{type:Boolean,default:!0}},l=t.defineComponent({name:"Navigation",props:n,emits:["leave","toggle","hover","toggle-click"],slots:["header","menu","footer","side-icon","side-header"],setup:function(e,i){var o=i.emit,a=t.ref(e.headerTitle),n=t.reactive({click:!1,hover:!1,delay:!1,timer:null,enterTimer:null});e.defaultOpen&&(n.click=!n.click,n.hover=n.click,o("toggle",n.hover)),t.onBeforeUnmount((function(){n.timer&&window.clearTimeout(n.timer)}));return{defaultHeaderTitle:a,nav:n,onBeforeUnmount:t.onBeforeUnmount,handleMouseOver:function(){n.click||(n.enterTimer=setTimeout((function(){n.hover=!0,n.enterTimer&&window.clearTimeout(n.enterTimer),n.timer&&window.clearTimeout(n.timer),o("hover",n.hover),o("toggle",n.hover)}),e.hoverEnterDelay))},handleMouseLeave:function(){n.click||(n.enterTimer&&window.clearTimeout(n.enterTimer),n.timer=setTimeout((function(){n.hover=!1,window.clearTimeout(n.timer),o("leave",n.hover),o("toggle",n.hover)}),e.hoverLeaveDelay))},handleClick:function(){n.click=!n.click,n.hover=n.click,o("toggle",n.hover),o("toggle-click",n.hover)}}},render:function(){var e,o,n,l,s,r,d,c,h,v,u,f;return t.createVNode("div",{class:"bk-navigation"},["top-bottom"===this.navigationType&&t.createVNode("div",{class:"bk-navigation-header",style:{flexBasis:"".concat(this.headHeight,"px")}},[t.createVNode(a,{sideTitle:this.sideTitle},{default:this.$slots["side-header"],"side-icon":this.$slots["side-header"]?void 0:this.$slots["side-icon"]}),t.createVNode("div",{class:"header-right"},[null===(o=(e=this.$slots).header)||void 0===o?void 0:o.call(e)])]),t.createVNode("div",{class:"bk-navigation-wrapper"},[this.needMenu&&t.createVNode("div",{class:"navigation-nav",style:{width:this.nav.click?"".concat(this.hoverWidth,"px"):"".concat(this.navWidth,"px")}},[t.createVNode("div",{class:"nav-slider",onMouseenter:this.handleMouseOver,onMouseleave:this.handleMouseLeave,style:{width:this.nav.hover?"".concat(this.hoverWidth,"px"):"".concat(this.navWidth,"px"),borderRight:"top-bottom"!==this.navigationType?"none":"1px solid #DCDEE5"}},["top-bottom"!==this.navigationType&&t.createVNode(a,{style:{flexBasis:"".concat(this.headHeight,"px")},sideTitle:this.sideTitle},{default:this.$slots["side-header"],"side-icon":this.$slots["side-header"]?void 0:this.$slots["side-icon"]}),t.createVNode("div",{class:"nav-slider-list",style:{height:"calc(100vh - ".concat(+this.headHeight+56,"px)")}},[null===(l=(n=this.$slots).menu)||void 0===l?void 0:l.call(n)]),t.createVNode("div",{class:"nav-slider-footer"},[t.createVNode("div",{class:{"is-left":"top-bottom"!==this.navigationType,"footer-icon":!0},onClick:this.handleClick},[t.createVNode(i.CollapseLeft,{class:"footer-icon-svg",style:{transform:this.nav.click?"rotate(180deg)":"rotate(0deg)"}},null)])])])]),t.createVNode("div",{class:"navigation-container",style:{maxWidth:this.needMenu?"calc(100vw - 60px)":"100vw"}},["top-bottom"!==this.navigationType&&t.createVNode("div",{class:"container-header",style:{flexBasis:"".concat(this.headHeight,"px")}},[(null===(r=(s=this.$slots).header)||void 0===r?void 0:r.call(s))||[t.createVNode("div",{class:"container-header-title"},[this.headerTitle]),t.createVNode("div",{class:"container-header-sets"},[null===(c=(d=this.$slots)["header-set"])||void 0===c?void 0:c.call(d)])]]),t.createVNode("div",{class:"container-content",style:{maxHeight:"calc(100vh - ".concat(this.headHeight,"px)")}},[null===(v=(h=this.$slots).default)||void 0===v?void 0:v.call(h),t.createVNode("div",{class:"container-footer"},[null===(f=(u=this.$slots).footer)||void 0===f?void 0:f.call(u)])])])])])}});l.install=function(e){e.component(l.name,l)},e.default=l,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","vue","../icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e["@bkui-vue/icon/icons"])}(this,(function(e,t,i){"use strict";var o={sideTitle:{type:String,default:""},navigationType:{type:String,default:"left-right"}},a=t.defineComponent({props:o,slots:["side-icon"],setup:function(e,i){var o=i.slots;return function(){var i,a;return t.createVNode("div",{class:"bk-navigation-title",style:{borderBottomWidth:"left-right"===e.navigationType?"0":"1px"}},[(null===(i=o.default)||void 0===i?void 0:i.call(o))||[t.createVNode("span",{class:"title-icon"},[(null===(a=o["side-icon"])||void 0===a?void 0:a.call(o))||t.createVNode("i",{class:"bk-icon icon-rtx"},null)]),t.createVNode("span",{class:"title-desc"},[e.sideTitle])]])}}}),n={navWidth:{type:[Number,String],default:60},hoverWidth:{type:[Number,String],default:260},sideTitle:{type:String,default:""},headerTitle:{type:String,default:""},hoverLeaveDelay:{type:Number,default:0},hoverEnterDelay:{type:Number,default:100},defaultOpen:Boolean,headHeight:{type:[Number,String],default:52},navigationType:{type:String,default:"left-right",validator:function(e){return["top-bottom","left-right"].includes(e)}},needMenu:{type:Boolean,default:!0}},l=t.defineComponent({name:"Navigation",props:n,emits:["leave","toggle","hover","toggle-click"],slots:["header","menu","footer","side-icon","side-header"],setup:function(e,i){var o=i.emit,a=t.ref(e.headerTitle),n=t.reactive({click:!1,hover:!1,delay:!1,timer:null,enterTimer:null});e.defaultOpen&&(n.click=!n.click,n.hover=n.click,o("toggle",n.hover)),t.onBeforeUnmount((function(){n.timer&&window.clearTimeout(n.timer)}));return{defaultHeaderTitle:a,nav:n,onBeforeUnmount:t.onBeforeUnmount,handleMouseOver:function(){n.click||(n.enterTimer=setTimeout((function(){n.hover=!0,n.enterTimer&&window.clearTimeout(n.enterTimer),n.timer&&window.clearTimeout(n.timer),o("hover",n.hover),o("toggle",n.hover)}),e.hoverEnterDelay))},handleMouseLeave:function(){n.click||(n.enterTimer&&window.clearTimeout(n.enterTimer),n.timer=setTimeout((function(){n.hover=!1,window.clearTimeout(n.timer),o("leave",n.hover),o("toggle",n.hover)}),e.hoverLeaveDelay))},handleClick:function(){n.click=!n.click,n.hover=n.click,o("toggle",n.hover),o("toggle-click",n.hover)}}},render:function(){var e,o,n,l,s,r,d,c,h,v,u,f;return t.createVNode("div",{class:"bk-navigation"},["top-bottom"===this.navigationType&&t.createVNode("div",{class:"bk-navigation-header",style:{flexBasis:"".concat(this.headHeight,"px")}},[t.createVNode(a,{sideTitle:this.sideTitle},{default:this.$slots["side-header"],"side-icon":this.$slots["side-header"]?void 0:this.$slots["side-icon"]}),t.createVNode("div",{class:"header-right"},[null===(o=(e=this.$slots).header)||void 0===o?void 0:o.call(e)])]),t.createVNode("div",{class:"bk-navigation-wrapper"},[this.needMenu&&t.createVNode("div",{class:"navigation-nav",style:{width:this.nav.click?"".concat(this.hoverWidth,"px"):"".concat(this.navWidth,"px")}},[t.createVNode("div",{class:"nav-slider",onMouseenter:this.handleMouseOver,onMouseleave:this.handleMouseLeave,style:{width:this.nav.hover?"".concat(this.hoverWidth,"px"):"".concat(this.navWidth,"px"),borderRight:"top-bottom"!==this.navigationType?"none":"1px solid #DCDEE5"}},["top-bottom"!==this.navigationType&&t.createVNode(a,{style:{flexBasis:"".concat(this.headHeight,"px")},sideTitle:this.sideTitle},{default:this.$slots["side-header"],"side-icon":this.$slots["side-header"]?void 0:this.$slots["side-icon"]}),t.createVNode("div",{class:"nav-slider-list",style:{height:"calc(100vh - ".concat(+this.headHeight+56,"px)")}},[null===(l=(n=this.$slots).menu)||void 0===l?void 0:l.call(n)]),t.createVNode("div",{class:"nav-slider-footer"},[t.createVNode("div",{class:{"is-left":"top-bottom"!==this.navigationType,"footer-icon":!0},onClick:this.handleClick},[t.createVNode(i.CollapseLeft,{class:"footer-icon-svg",style:{transform:this.nav.click?"rotate(180deg)":"rotate(0deg)"}},null)])])])]),t.createVNode("div",{class:"navigation-container",style:{maxWidth:this.needMenu?"calc(100vw - 60px)":"100vw"}},["top-bottom"!==this.navigationType&&t.createVNode("div",{class:"container-header",style:{flexBasis:"".concat(this.headHeight,"px")}},[(null===(r=(s=this.$slots).header)||void 0===r?void 0:r.call(s))||[t.createVNode("div",{class:"container-header-title"},[this.headerTitle]),t.createVNode("div",{class:"container-header-sets"},[null===(c=(d=this.$slots)["header-set"])||void 0===c?void 0:c.call(d)])]]),t.createVNode("div",{class:"container-content",style:{maxHeight:"calc(100vh - ".concat(this.headHeight,"px)")}},[null===(v=(h=this.$slots).default)||void 0===v?void 0:v.call(h),t.createVNode("div",{class:"container-footer"},[null===(f=(u=this.$slots).footer)||void 0===f?void 0:f.call(u)])])])])])}});l.install=function(e){e.component(l.name,l)},e.default=l,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("@bkui-vue/icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","@bkui-vue/icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e["@bkui-vue/icon/icons"])}(this,(function(e,t,o,n){"use strict";var r={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},i=1,s=function(e,o){var n=o,s=n.position||"top-right";"string"==typeof o&&(n={message:o});var u=o.onClose,a=n.offset||20;r[s].forEach((function(e){a+=(e.el.offsetHeight||0)+16})),a+=16;var l="message_".concat(i+=1);n=Object.assign(Object.assign({},n),{offset:a,id:l});var c=document.createElement("div"),f=t.createVNode(e,n);f.props.onDestory=function(e){!function(e,t,o){null==o||o();var n=t.startsWith("top")?"top":"bottom",i=-1;r[t].forEach((function(t,o){t.props.id===e&&(i=o)}));for(var s=r[t][i].el.offsetHeight,u=r[t].length,a=i;a<u;a++){var l=parseInt(r[t][a].el.style[n],10)-s-16;r[t][a].component.props.offset=l}r[t].splice(i,1)}(e,s,u),t.render(null,c)},t.render(f,c),r[s].push(f),document.body.appendChild(c.firstElementChild)};function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a={exports:{}};!function(e){e.exports=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(a);var l=u(a.exports),c={id:o.PropTypes.string.def(""),title:o.PropTypes.string.def(""),message:o.PropTypes.string.def(""),theme:o.PropTypes.theme(["primary","warning","success","danger"]).def("primary"),position:o.PropTypes.position().def("top-right"),delay:o.PropTypes.number.def(3e3),offset:o.PropTypes.number.def(0),onClose:o.PropTypes.func},f=t.defineComponent({name:"Notify",props:c,emits:["destory"],setup:function(e,n){var r=n.emit,i=t.computed((function(){return["bk-notify","bk-notify-".concat(e.theme)]})),s=o.bkZIndexManager.getMessageNextIndex(),u=t.computed((function(){return e.position.indexOf("right")>1?"right":"left"})),a=t.computed((function(){return e.position.startsWith("top")?"top":"bottom"})),c=t.computed((function(){var t;return l(t={},u.value,"10px"),l(t,a.value,"".concat(e.offset,"px")),l(t,"zIndex",s),t})),f=t.ref(!1),d=null;return t.onMounted((function(){d=setTimeout((function(){f.value=!1}),e.delay),f.value=!0})),t.onUnmounted((function(){clearTimeout(d)})),t.watch(f,(function(){f.value||r("destory",e.id)})),{classNames:i,styles:c,visible:f,handleClose:function(){f.value=!1}}},render:function(){var e=this;return t.createVNode(t.Transition,{name:"bk-notify-fade"},{default:function(){return[t.withDirectives(t.createVNode("div",{class:e.classNames,style:e.styles},[t.createVNode("div",{class:"bk-notify-content"},[t.createVNode("div",{class:"bk-notify-icon"},[{primary:t.createVNode(n.Info,null,null),warning:t.createVNode(n.Warn,null,null),success:t.createVNode(n.Success,null,null),danger:t.createVNode(n.Close,null,null)}[e.theme]]),e.title?t.createVNode("h3",{class:"bk-notify-content-header"},[e.title]):"",t.createVNode("div",{class:"bk-notify-content-text"},[e.message])]),t.createVNode(n.Error,{class:"bk-notify-icon bk-notify-close",onClick:e.handleClose},null)]),[[t.vShow,e.visible]])]}})}});e.default=function(e){s(f,e)},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","../icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e["@bkui-vue/icon/icons"])}(this,(function(e,t,o,n){"use strict";var r={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},i=1,s=function(e,o){var n=o,s=n.position||"top-right";"string"==typeof o&&(n={message:o});var a=o.onClose,u=n.offset||20;r[s].forEach((function(e){u+=(e.el.offsetHeight||0)+16})),u+=16;var l="message_".concat(i+=1);n=Object.assign(Object.assign({},n),{offset:u,id:l});var c=document.createElement("div"),f=t.createVNode(e,n);f.props.onDestory=function(e){!function(e,t,o){null==o||o();var n=t.startsWith("top")?"top":"bottom",i=-1;r[t].forEach((function(t,o){t.props.id===e&&(i=o)}));for(var s=r[t][i].el.offsetHeight,a=r[t].length,u=i;u<a;u++){var l=parseInt(r[t][u].el.style[n],10)-s-16;r[t][u].component.props.offset=l}r[t].splice(i,1)}(e,s,a),t.render(null,c)},t.render(f,c),r[s].push(f),document.body.appendChild(c.firstElementChild)};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u={exports:{}};!function(e){e.exports=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(u);var l=a(u.exports),c={id:o.PropTypes.string.def(""),title:o.PropTypes.string.def(""),message:o.PropTypes.string.def(""),theme:o.PropTypes.theme(["primary","warning","success","danger"]).def("primary"),position:o.PropTypes.position().def("top-right"),delay:o.PropTypes.number.def(3e3),offset:o.PropTypes.number.def(0),onClose:o.PropTypes.func},f=t.defineComponent({name:"Notify",props:c,emits:["destory"],setup:function(e,n){var r=n.emit,i=t.computed((function(){return["bk-notify","bk-notify-".concat(e.theme)]})),s=o.bkZIndexManager.getMessageNextIndex(),a=t.computed((function(){return e.position.indexOf("right")>1?"right":"left"})),u=t.computed((function(){return e.position.startsWith("top")?"top":"bottom"})),c=t.computed((function(){var t;return l(t={},a.value,"10px"),l(t,u.value,"".concat(e.offset,"px")),l(t,"zIndex",s),t})),f=t.ref(!1),d=null;return t.onMounted((function(){d=setTimeout((function(){f.value=!1}),e.delay),f.value=!0})),t.onUnmounted((function(){clearTimeout(d)})),t.watch(f,(function(){f.value||r("destory",e.id)})),{classNames:i,styles:c,visible:f,handleClose:function(){f.value=!1}}},render:function(){var e=this;return t.createVNode(t.Transition,{name:"bk-notify-fade"},{default:function(){return[t.withDirectives(t.createVNode("div",{class:e.classNames,style:e.styles},[t.createVNode("div",{class:"bk-notify-content"},[t.createVNode("div",{class:"bk-notify-icon"},[{primary:t.createVNode(n.Info,null,null),warning:t.createVNode(n.Warn,null,null),success:t.createVNode(n.Success,null,null),danger:t.createVNode(n.Close,null,null)}[e.theme]]),e.title?t.createVNode("h3",{class:"bk-notify-content-header"},[e.title]):"",t.createVNode("div",{class:"bk-notify-content-text"},[e.message])]),t.createVNode(n.Error,{class:"bk-notify-icon bk-notify-close",onClick:e.handleClose},null)]),[[t.vShow,e.visible]])]}})}});e.default=function(e){s(f,e)},Object.defineProperty(e,"__esModule",{value:!0})}));