bkui-vue 0.0.1-beta.60 → 0.0.1-beta.63

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 (228) hide show
  1. package/dist/index.cjs.js +30 -30
  2. package/dist/index.esm.js +1736 -452
  3. package/dist/index.umd.js +29 -29
  4. package/dist/style.css +1 -1
  5. package/lib/affix/affix.css +3 -0
  6. package/lib/affix/affix.d.ts +47 -0
  7. package/lib/affix/affix.less +5 -0
  8. package/lib/affix/affix.variable.css +102 -0
  9. package/lib/affix/index.d.ts +143 -0
  10. package/lib/affix/index.js +1 -0
  11. package/lib/alert/alert.variable.css +5 -0
  12. package/lib/alert/index.js +1 -1
  13. package/lib/backtop/backtop.d.ts +1 -1
  14. package/lib/backtop/backtop.variable.css +5 -0
  15. package/lib/backtop/index.d.ts +4 -4
  16. package/lib/badge/badge.d.ts +1 -1
  17. package/lib/badge/badge.variable.css +5 -0
  18. package/lib/badge/index.d.ts +4 -4
  19. package/lib/breadcrumb/breadcrumb.variable.css +5 -0
  20. package/lib/button/button.css +2 -1
  21. package/lib/button/button.less +9 -8
  22. package/lib/button/button.variable.css +7 -1
  23. package/lib/button/index.js +1 -1
  24. package/lib/card/card.variable.css +5 -0
  25. package/lib/cascader/cascader-panel.d.ts +48 -0
  26. package/lib/cascader/cascader.css +130 -0
  27. package/lib/cascader/cascader.d.ts +271 -0
  28. package/lib/cascader/cascader.less +146 -0
  29. package/lib/cascader/cascader.variable.css +229 -0
  30. package/lib/cascader/index.d.ts +721 -0
  31. package/lib/cascader/index.js +1 -0
  32. package/lib/cascader/interface.d.ts +44 -0
  33. package/lib/cascader/node.d.ts +24 -0
  34. package/lib/cascader/store.d.ts +15 -0
  35. package/lib/checkbox/checkbox.css +3 -2
  36. package/lib/checkbox/checkbox.less +3 -2
  37. package/lib/checkbox/checkbox.variable.css +8 -2
  38. package/lib/code-diff/code-diff.variable.css +5 -0
  39. package/lib/code-diff/index.js +1 -1
  40. package/lib/collapse/collapse.css +17 -1
  41. package/lib/collapse/collapse.d.ts +11 -14
  42. package/lib/collapse/collapse.less +24 -2
  43. package/lib/collapse/collapse.variable.css +116 -1
  44. package/lib/collapse/index.d.ts +31 -15
  45. package/lib/collapse/index.js +1 -1
  46. package/lib/collapse/utils.d.ts +11 -0
  47. package/lib/components.d.ts +12 -9
  48. package/lib/components.js +1 -1
  49. package/lib/container/container.variable.css +5 -0
  50. package/lib/container/index.js +1 -1
  51. package/lib/date-picker/date-picker.css +1 -0
  52. package/lib/date-picker/date-picker.d.ts +20 -3
  53. package/lib/date-picker/date-picker.less +1 -0
  54. package/lib/date-picker/date-picker.variable.css +6 -0
  55. package/lib/date-picker/index.d.ts +47 -10
  56. package/lib/date-picker/index.js +1 -1
  57. package/lib/date-picker/props.d.ts +7 -0
  58. package/lib/dialog/dialog.css +10 -1
  59. package/lib/dialog/dialog.d.ts +75 -8
  60. package/lib/dialog/dialog.variable.css +10 -1
  61. package/lib/dialog/index.d.ts +166 -25
  62. package/lib/dialog/index.js +1 -1
  63. package/lib/divider/divider.d.ts +1 -1
  64. package/lib/divider/divider.variable.css +5 -0
  65. package/lib/divider/index.d.ts +4 -4
  66. package/lib/dropdown/dropdown.css +4 -0
  67. package/lib/dropdown/dropdown.less +5 -0
  68. package/lib/dropdown/dropdown.variable.css +9 -0
  69. package/lib/dropdown/index.js +1 -1
  70. package/lib/exception/exception.variable.css +5 -0
  71. package/lib/fixed-navbar/fixed-navbar.d.ts +17 -3
  72. package/lib/fixed-navbar/fixed-navbar.variable.css +5 -0
  73. package/lib/fixed-navbar/index.d.ts +43 -8
  74. package/lib/fixed-navbar/index.js +1 -1
  75. package/lib/form/form-item.d.ts +1 -1
  76. package/lib/form/form.css +4 -0
  77. package/lib/form/form.d.ts +5 -2
  78. package/lib/form/form.less +4 -0
  79. package/lib/form/form.variable.css +9 -0
  80. package/lib/form/index.d.ts +19 -8
  81. package/lib/form/index.js +1 -1
  82. package/lib/icon/archive-fill.d.ts +4 -0
  83. package/lib/icon/archive-fill.js +1 -0
  84. package/lib/icon/audio-fill.d.ts +4 -0
  85. package/lib/icon/audio-fill.js +1 -0
  86. package/lib/icon/del.d.ts +4 -0
  87. package/lib/icon/del.js +1 -0
  88. package/lib/icon/doc-fill.d.ts +4 -0
  89. package/lib/icon/doc-fill.js +1 -0
  90. package/lib/icon/excel-fill.d.ts +4 -0
  91. package/lib/icon/excel-fill.js +1 -0
  92. package/lib/icon/image-fill.d.ts +4 -0
  93. package/lib/icon/image-fill.js +1 -0
  94. package/lib/icon/index.d.ts +12 -1
  95. package/lib/icon/index.js +1 -1
  96. package/lib/icon/pdf-fill.d.ts +4 -0
  97. package/lib/icon/pdf-fill.js +1 -0
  98. package/lib/icon/ppt-fill.d.ts +4 -0
  99. package/lib/icon/ppt-fill.js +1 -0
  100. package/lib/icon/text-fill.d.ts +4 -0
  101. package/lib/icon/text-fill.js +1 -0
  102. package/lib/icon/upload.d.ts +4 -0
  103. package/lib/icon/upload.js +1 -0
  104. package/lib/icon/video-fill.d.ts +4 -0
  105. package/lib/icon/video-fill.js +1 -0
  106. package/lib/input/index.d.ts +8 -8
  107. package/lib/input/input.css +3 -0
  108. package/lib/input/input.d.ts +2 -2
  109. package/lib/input/input.less +3 -0
  110. package/lib/input/input.variable.css +8 -0
  111. package/lib/link/index.d.ts +4 -4
  112. package/lib/link/link.d.ts +1 -1
  113. package/lib/link/link.variable.css +5 -0
  114. package/lib/loading/loading.variable.css +5 -0
  115. package/lib/menu/menu.variable.css +5 -0
  116. package/lib/menu/submenu.variable.css +5 -0
  117. package/lib/message/index.js +1 -1
  118. package/lib/message/message.css +4 -4
  119. package/lib/message/message.less +4 -4
  120. package/lib/message/message.variable.css +9 -4
  121. package/lib/modal/index.d.ts +277 -24
  122. package/lib/modal/index.js +1 -1
  123. package/lib/modal/modal.css +10 -1
  124. package/lib/modal/modal.d.ts +108 -9
  125. package/lib/modal/modal.less +15 -4
  126. package/lib/modal/modal.variable.css +10 -1
  127. package/lib/modal/props.mixin.d.ts +47 -3
  128. package/lib/navigation/index.d.ts +291 -1
  129. package/lib/navigation/index.js +1 -1
  130. package/lib/navigation/navigation.variable.css +5 -0
  131. package/lib/notify/index.js +1 -1
  132. package/lib/notify/notify.css +17 -1
  133. package/lib/notify/notify.less +19 -1
  134. package/lib/notify/notify.variable.css +22 -1
  135. package/lib/notify/notifyConstructor.d.ts +49 -5
  136. package/lib/pagination/index.d.ts +4 -4
  137. package/lib/pagination/pagination.d.ts +1 -1
  138. package/lib/pagination/pagination.variable.css +5 -0
  139. package/lib/popover/index.d.ts +57 -11
  140. package/lib/popover/index.js +1 -1
  141. package/lib/popover/popover.css +3 -0
  142. package/lib/popover/popover.d.ts +26 -4
  143. package/lib/popover/popover.less +2 -0
  144. package/lib/popover/popover.variable.css +8 -0
  145. package/lib/popover/props.d.ts +11 -1
  146. package/lib/process/process.variable.css +5 -0
  147. package/lib/progress/index.d.ts +7 -7
  148. package/lib/progress/progress.d.ts +2 -2
  149. package/lib/progress/progress.variable.css +5 -0
  150. package/lib/radio/radio.css +6 -6
  151. package/lib/radio/radio.less +7 -7
  152. package/lib/radio/radio.variable.css +12 -7
  153. package/lib/resize-layout/resize-layout.variable.css +5 -0
  154. package/lib/select/select.variable.css +5 -0
  155. package/lib/shared/index.d.ts +18 -0
  156. package/lib/shared/index.js +1 -1
  157. package/lib/shared/mask-manager.d.ts +3 -2
  158. package/lib/shared/pop-manager.d.ts +3 -2
  159. package/lib/shared/popover.d.ts +3 -0
  160. package/lib/sideslider/index.d.ts +227 -33
  161. package/lib/sideslider/index.js +1 -1
  162. package/lib/sideslider/sideslider.css +48 -3
  163. package/lib/sideslider/sideslider.d.ts +103 -12
  164. package/lib/sideslider/sideslider.less +65 -6
  165. package/lib/sideslider/sideslider.variable.css +53 -3
  166. package/lib/slider/index.d.ts +414 -1
  167. package/lib/slider/index.js +1 -1
  168. package/lib/slider/slider.variable.css +5 -0
  169. package/lib/steps/steps.variable.css +5 -0
  170. package/lib/styles/index.d.ts +3 -0
  171. package/lib/styles/themes/themes.less +7 -0
  172. package/lib/switcher/switcher.variable.css +5 -0
  173. package/lib/tab/index.d.ts +6 -6
  174. package/lib/tab/tab-panel.d.ts +2 -2
  175. package/lib/tab/tab.d.ts +1 -1
  176. package/lib/tab/tab.variable.css +5 -0
  177. package/lib/table/index.d.ts +4 -4
  178. package/lib/table/index.js +1 -1
  179. package/lib/table/plugins/head-filter.variable.css +5 -0
  180. package/lib/table/plugins/head-sort.variable.css +5 -0
  181. package/lib/table/plugins/settings.variable.css +5 -0
  182. package/lib/table/props.d.ts +4 -0
  183. package/lib/table/render.d.ts +1 -0
  184. package/lib/table/table.css +55 -2
  185. package/lib/table/table.d.ts +1 -1
  186. package/lib/table/table.less +53 -2
  187. package/lib/table/table.variable.css +60 -2
  188. package/lib/table/use-common.d.ts +5 -3
  189. package/lib/table/utils.d.ts +10 -0
  190. package/lib/tag/index.d.ts +3 -3
  191. package/lib/tag/tag.d.ts +1 -1
  192. package/lib/tag/tag.variable.css +5 -0
  193. package/lib/tag-input/index.d.ts +893 -1
  194. package/lib/tag-input/index.js +1 -1
  195. package/lib/tag-input/tag-input.d.ts +1 -1
  196. package/lib/tag-input/tag-input.variable.css +5 -0
  197. package/lib/timeline/timeline.variable.css +5 -0
  198. package/lib/transfer/transfer.variable.css +5 -0
  199. package/lib/tree/constant.d.ts +22 -0
  200. package/lib/tree/index.d.ts +54 -8
  201. package/lib/tree/index.js +1 -1
  202. package/lib/tree/props.d.ts +19 -0
  203. package/lib/tree/tree.css +4 -1
  204. package/lib/tree/tree.d.ts +23 -4
  205. package/lib/tree/tree.less +4 -1
  206. package/lib/tree/tree.variable.css +9 -1
  207. package/lib/tree/use-empty.d.ts +6 -0
  208. package/lib/tree/use-node-action.d.ts +2 -1
  209. package/lib/tree/use-node-attribute.d.ts +2 -0
  210. package/lib/tree/use-search.d.ts +11 -0
  211. package/lib/upload/index.d.ts +2 -0
  212. package/lib/upload/index.js +1 -0
  213. package/lib/upload/props.d.ts +113 -0
  214. package/lib/upload/upload-list.d.ts +46 -0
  215. package/lib/upload/upload-trigger.d.ts +54 -0
  216. package/lib/upload/upload.css +374 -0
  217. package/lib/upload/upload.d.ts +252 -0
  218. package/lib/upload/upload.less +455 -0
  219. package/lib/upload/upload.type.d.ts +78 -0
  220. package/lib/upload/upload.variable.css +473 -0
  221. package/lib/upload/use-ajax-upload.d.ts +3 -0
  222. package/lib/upload/use-file-handler.d.ts +44 -0
  223. package/lib/virtual-render/index.d.ts +27 -4
  224. package/lib/virtual-render/index.js +1 -1
  225. package/lib/virtual-render/props.d.ts +10 -0
  226. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  227. package/lib/virtual-render/virtual-render.d.ts +14 -3
  228. package/package.json +2 -2
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"),require("../icon"),require("../shared"));else if("function"==typeof define&&define.amd)define(["vue","../icon","../shared"],t);else{var o="object"==typeof exports?t(require("vue"),require("../icon"),require("../shared")):t(e.vue,e["../icon"],e["../shared"]);for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,((e,t,o)=>(()=>{"use strict";var n={6870:e=>{e.exports=t},4212:e=>{e.exports=o},748:t=>{t.exports=e}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,i),o.exports}i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{i.r(s),i.d(s,{default:()=>l});var e=i(748),t={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},o=1;function n(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var r=i(6870),a=i(4212),c={id:a.PropTypes.string.def(""),title:a.PropTypes.string.def(""),message:a.PropTypes.string.def(""),theme:a.PropTypes.theme(["primary","warning","success","danger"]).def("primary"),position:a.PropTypes.position().def("top-right"),delay:a.PropTypes.number.def(3e3),offset:a.PropTypes.number.def(0),onClose:a.PropTypes.func};const u=(0,e.defineComponent)({name:"Notify",props:c,emits:["destory"],setup:function(t,o){var r=o.emit,i=(0,e.computed)((function(){return["bk-notify","bk-notify-".concat(t.theme)]})),s=a.bkZIndexManager.getMessageNextIndex(),c=(0,e.computed)((function(){return t.position.indexOf("right")>1?"right":"left"})),u=(0,e.computed)((function(){return t.position.startsWith("top")?"top":"bottom"})),l=(0,e.computed)((function(){var e;return n(e={},c.value,"10px"),n(e,u.value,"".concat(t.offset,"px")),n(e,"zIndex",s),e})),f=(0,e.ref)(!1),d=null;return(0,e.onMounted)((function(){d=setTimeout((function(){f.value=!1}),t.delay),f.value=!0})),(0,e.onUnmounted)((function(){clearTimeout(d)})),(0,e.watch)(f,(function(){f.value||r("destory",t.id)})),{classNames:i,styles:l,visible:f,handleClose:function(){f.value=!1}}},render:function(){var t=this;return(0,e.createVNode)(e.Transition,{name:"bk-notify-fade"},{default:function(){return[(0,e.withDirectives)((0,e.createVNode)("div",{class:t.classNames,style:t.styles},[(0,e.createVNode)("div",{class:"bk-notify-content"},[(0,e.createVNode)("div",{class:"bk-notify-icon"},[{primary:(0,e.createVNode)(r.Info,null,null),warning:(0,e.createVNode)(r.Warn,null,null),success:(0,e.createVNode)(r.Success,null,null),danger:(0,e.createVNode)(r.Close,null,null)}[t.theme]]),t.title?(0,e.createVNode)("h3",{class:"bk-notify-content-header"},[t.title]):"",(0,e.createVNode)("div",{class:"bk-notify-content-text"},[t.message])]),(0,e.createVNode)(r.Error,{class:"bk-notify-icon bk-notify-close",onClick:t.handleClose},null)]),[[e.vShow,t.visible]])]}})}}),l=function(n){!function(n,r){var i=r,s=i.position||"top-right";"string"==typeof r&&(i={message:r});var a=r.onClose,c=i.offsetY||30,u=i.spacing,l=void 0===u?10:u;t[s].forEach((function(e){c+=(e.el.offsetHeight||0)+l}));var f="message_".concat(o+=1);i=Object.assign(Object.assign({},i),{offsetY:c,id:f});var d=document.createElement("div"),p=(0,e.createVNode)(n,i);p.props.onDestory=function(o){!function(e,o,n,r){null==r||r();var i=o.startsWith("top")?"top":"bottom",s=-1;t[o].forEach((function(t,o){t.props.id===e&&(s=o)}));for(var a=t[o][s].el.offsetHeight,c=t[o].length,u=s;u<c;u++){var l=parseInt(t[o][u].el.style[i],10)-a-n;t[o][u].component.props.offsetY=l}t[o].splice(s,1)}(o,s,l,a),(0,e.render)(null,d)},(0,e.render)(p,d),t[s].push(p),document.body.appendChild(d.firstElementChild)}(u,n)}})(),s})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"),require("../icon"),require("../shared"));else if("function"==typeof define&&define.amd)define(["vue","../icon","../shared"],t);else{var o="object"==typeof exports?t(require("vue"),require("../icon"),require("../shared")):t(e.vue,e["../icon"],e["../shared"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o)=>(()=>{"use strict";var r={6870:e=>{e.exports=t},4212:e=>{e.exports=o},748:t=>{t.exports=e}},n={};function s(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,s),o.exports}s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{s.r(i),s.d(i,{default:()=>l});var e=s(748),t={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},o=1;function r(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var n=s(6870),a=s(4212),f={id:a.PropTypes.string.def(""),title:a.PropTypes.string.def(""),message:a.PropTypes.string.def(""),theme:a.PropTypes.theme(["primary","warning","success","error"]).def("primary"),position:a.PropTypes.position().def("top-right"),delay:a.PropTypes.number.def(5e3),dismissable:a.PropTypes.bool.def(!0),offsetX:a.PropTypes.number.def(100),offsetY:a.PropTypes.number.def(30),spacing:a.PropTypes.number.def(10),extCls:a.PropTypes.string.def(""),onClose:a.PropTypes.func};const c=(0,e.defineComponent)({name:"Notify",props:f,emits:["destory"],setup:function(t,o){var n=o.emit,s=a.bkZIndexManager.getMessageNextIndex(),i=(0,e.computed)((function(){return t.position.indexOf("right")>1?"right":"left"})),f=(0,e.computed)((function(){return t.position.startsWith("top")?"top":"bottom"})),c=(0,e.computed)((function(){var e;return r(e={},i.value,"".concat(t.offsetX,"px")),r(e,f.value,"".concat(t.offsetY,"px")),r(e,"zIndex",s),e})),l=(0,e.computed)((function(){return["bk-notify","bk-notify-".concat(t.theme),i.value]})),u=(0,e.ref)(!1),p=null;return(0,e.onMounted)((function(){t.delay&&(p=setTimeout((function(){u.value=!1}),t.delay)),u.value=!0})),(0,e.onUnmounted)((function(){clearTimeout(p)})),(0,e.watch)(u,(function(){u.value||n("destory",t.id)})),{classNames:l,styles:c,visible:u,handleClose:function(){u.value=!1}}},render:function(){var t=this;return(0,e.createVNode)(e.Transition,{name:"bk-notify-fade"},{default:function(){return[(0,e.withDirectives)((0,e.createVNode)("div",{class:t.classNames,style:t.styles},[(0,e.createVNode)("div",{class:"bk-notify-content"},[(0,e.createVNode)("div",{class:"bk-notify-icon"},[{primary:(0,e.createVNode)(n.Info,null,null),warning:(0,e.createVNode)(n.Warn,null,null),success:(0,e.createVNode)(n.Success,null,null),error:(0,e.createVNode)(n.Close,null,null)}[t.theme]]),t.title?(0,e.createVNode)("h3",{class:"bk-notify-content-header"},[t.title]):"",(0,e.createVNode)("div",{class:"bk-notify-content-text"},[t.message])]),t.dismissable&&(0,e.createVNode)(n.Error,{class:"bk-notify-icon bk-notify-close",onClick:t.handleClose},null)]),[[e.vShow,t.visible]])]}})}}),l=function(r){!function(r,n){var s=n,i=s.position||"top-right";"string"==typeof n&&(s={message:n});var a=n.onClose,f=s.offsetX||10,c=s.offsetY||30,l=s.spacing,u=void 0===l?10:l;t[i].forEach((function(e){c+=(e.el.offsetHeight||0)+u}));var p="message_".concat(o+=1);s=Object.assign(Object.assign({},s),{offsetX:f,offsetY:c,id:p});var d=document.createElement("div"),y=(0,e.createVNode)(r,s);y.props.onDestory=function(o){!function(e,o,r,n){null==n||n();var s=o.startsWith("top")?"top":"bottom",i=-1;t[o].forEach((function(t,o){t.props.id===e&&(i=o)}));for(var a=t[o][i].el.offsetHeight,f=t[o].length,c=i;c<f;c++){var l=parseInt(t[o][c].el.style[s],10)-a-r;t[o][c].component.props.offsetY=l}t[o].splice(i,1)}(o,i,u,a),(0,e.render)(null,d)},(0,e.render)(y,d),t[i].push(y),document.body.appendChild(d.firstElementChild)}(c,r)}})(),i})()));
@@ -24,7 +24,7 @@
24
24
  .bk-notify.bk-notify-success .bk-notify-icon {
25
25
  color: #2dcb56;
26
26
  }
27
- .bk-notify.bk-notify-danger .bk-notify-icon {
27
+ .bk-notify.bk-notify-error .bk-notify-icon {
28
28
  color: #ea3636;
29
29
  }
30
30
  .bk-notify .bk-notify-icon.bk-notify-close {
@@ -47,3 +47,19 @@
47
47
  display: inline-block;
48
48
  padding-left: 23px;
49
49
  }
50
+ .bk-notify-fade-enter-active,
51
+ .bk-notify-fade-leave-active {
52
+ transition: transform 0.3s linear, opacity 0.2s linear;
53
+ }
54
+ .bk-notify-fade-enter-from,
55
+ .bk-notify-fade-leave-to {
56
+ opacity: 0;
57
+ }
58
+ .bk-notify-fade-enter-from.right,
59
+ .bk-notify-fade-leave-to.right {
60
+ transform: translateX(100%);
61
+ }
62
+ .bk-notify-fade-enter-from.left,
63
+ .bk-notify-fade-leave-to.left {
64
+ transform: translateX(-100%);
65
+ }
@@ -29,7 +29,7 @@
29
29
  color: @success-color;
30
30
  }
31
31
 
32
- &.@{bk-prefix}-notify-danger .@{bk-prefix}-notify-icon {
32
+ &.@{bk-prefix}-notify-error .@{bk-prefix}-notify-icon {
33
33
  color: @danger-color;
34
34
  }
35
35
 
@@ -56,3 +56,21 @@
56
56
  padding-left: 23px;
57
57
  }
58
58
  }
59
+
60
+ .bk-notify-fade-enter-active,
61
+ .bk-notify-fade-leave-active {
62
+ transition: transform .3s linear, opacity .2s linear;
63
+ }
64
+
65
+ .bk-notify-fade-enter-from,
66
+ .bk-notify-fade-leave-to {
67
+ opacity: 0;
68
+
69
+ &.right {
70
+ transform: translateX(100%);
71
+ }
72
+
73
+ &.left {
74
+ transform: translateX(-100%);
75
+ }
76
+ }
@@ -9,6 +9,7 @@
9
9
  --gray-color: #979ba5;
10
10
  --light-gray: #c4c6cc;
11
11
  --white-color: white;
12
+ --whitesmoke-color: #fafbfd;
12
13
  --disable-color: #dcdee5;
13
14
  --font-size-base: 12px;
14
15
  --font-size-medium: 14px;
@@ -91,6 +92,10 @@
91
92
  --table-body-font-color: #575961;
92
93
  --table-row-hover-bg-color: #f5f7fa;
93
94
  --table-row-active-bg-color: #f0f1f5;
95
+ --cascader-panel-border-color: #dcdee5;
96
+ --cascader-panel-hover: #eaf3ff;
97
+ --cascader-panel-active: #f4f6fa;
98
+ --cascader-panel-disabled-bg: #fff;
94
99
  }
95
100
  .bk-notify {
96
101
  position: fixed;
@@ -118,7 +123,7 @@
118
123
  .bk-notify.bk-notify-success .bk-notify-icon {
119
124
  color: var(--success-color);
120
125
  }
121
- .bk-notify.bk-notify-danger .bk-notify-icon {
126
+ .bk-notify.bk-notify-error .bk-notify-icon {
122
127
  color: var(--danger-color);
123
128
  }
124
129
  .bk-notify .bk-notify-icon.bk-notify-close {
@@ -141,3 +146,19 @@
141
146
  display: inline-block;
142
147
  padding-left: 23px;
143
148
  }
149
+ .bk-notify-fade-enter-active,
150
+ .bk-notify-fade-leave-active {
151
+ transition: transform 0.3s linear, opacity 0.2s linear;
152
+ }
153
+ .bk-notify-fade-enter-from,
154
+ .bk-notify-fade-leave-to {
155
+ opacity: 0;
156
+ }
157
+ .bk-notify-fade-enter-from.right,
158
+ .bk-notify-fade-leave-to.right {
159
+ transform: translateX(100%);
160
+ }
161
+ .bk-notify-fade-enter-from.left,
162
+ .bk-notify-fade-leave-to.left {
163
+ transform: translateX(-100%);
164
+ }
@@ -25,11 +25,31 @@ declare const _default: import("vue").DefineComponent<{
25
25
  } & {
26
26
  default: number;
27
27
  };
28
- offset: import("vue-types").VueTypeValidableDef<number> & {
28
+ dismissable: import("vue-types").VueTypeValidableDef<boolean> & {
29
+ default: boolean;
30
+ } & {
31
+ default: boolean;
32
+ };
33
+ offsetX: import("vue-types").VueTypeValidableDef<number> & {
34
+ default: number;
35
+ } & {
36
+ default: number;
37
+ };
38
+ offsetY: import("vue-types").VueTypeValidableDef<number> & {
39
+ default: number;
40
+ } & {
41
+ default: number;
42
+ };
43
+ spacing: import("vue-types").VueTypeValidableDef<number> & {
29
44
  default: number;
30
45
  } & {
31
46
  default: number;
32
47
  };
48
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
49
+ default: string;
50
+ } & {
51
+ default: string;
52
+ };
33
53
  onClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
34
54
  default: (...args: any[]) => any;
35
55
  };
@@ -68,24 +88,48 @@ declare const _default: import("vue").DefineComponent<{
68
88
  } & {
69
89
  default: number;
70
90
  };
71
- offset: import("vue-types").VueTypeValidableDef<number> & {
91
+ dismissable: import("vue-types").VueTypeValidableDef<boolean> & {
92
+ default: boolean;
93
+ } & {
94
+ default: boolean;
95
+ };
96
+ offsetX: import("vue-types").VueTypeValidableDef<number> & {
97
+ default: number;
98
+ } & {
99
+ default: number;
100
+ };
101
+ offsetY: import("vue-types").VueTypeValidableDef<number> & {
102
+ default: number;
103
+ } & {
104
+ default: number;
105
+ };
106
+ spacing: import("vue-types").VueTypeValidableDef<number> & {
72
107
  default: number;
73
108
  } & {
74
109
  default: number;
75
110
  };
111
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
112
+ default: string;
113
+ } & {
114
+ default: string;
115
+ };
76
116
  onClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
77
117
  default: (...args: any[]) => any;
78
118
  };
79
119
  }>> & {
80
120
  onDestory?: (...args: any[]) => any;
81
121
  }, {
82
- id: string;
83
122
  title: string;
84
- offset: number;
123
+ position: string;
124
+ id: string;
85
125
  onClose: (...args: any[]) => any;
86
126
  theme: string;
87
- position: string;
127
+ extCls: string;
88
128
  message: string;
129
+ spacing: number;
89
130
  delay: number;
131
+ dismissable: boolean;
132
+ offsetY: number;
133
+ offsetX: number;
90
134
  }>;
91
135
  export default _default;
@@ -3,9 +3,9 @@ declare const BkPagination: {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: Partial<{
6
+ small: boolean;
6
7
  type: string;
7
8
  location: string;
8
- small: boolean;
9
9
  layout: string[];
10
10
  disabled: boolean;
11
11
  count: number;
@@ -82,7 +82,7 @@ declare const BkPagination: {
82
82
  "onUpdate:modelValue"?: (...args: any[]) => any;
83
83
  "onUpdate:limit"?: (...args: any[]) => any;
84
84
  onLimitChange?: (...args: any[]) => any;
85
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "location" | "small" | "layout" | "disabled" | "count" | "modelValue" | "prevText" | "nextText" | "align" | "limit" | "limitList" | "showLimit" | "showTotalCount">;
85
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "small" | "type" | "location" | "layout" | "disabled" | "count" | "modelValue" | "prevText" | "nextText" | "align" | "limit" | "limitList" | "showLimit" | "showTotalCount">;
86
86
  $attrs: {
87
87
  [x: string]: unknown;
88
88
  };
@@ -177,9 +177,9 @@ declare const BkPagination: {
177
177
  }) => JSX.Element;
178
178
  renderSmallList: () => JSX.Element;
179
179
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:limit" | "limitChange")[], string, {
180
+ small: boolean;
180
181
  type: string;
181
182
  location: string;
182
- small: boolean;
183
183
  layout: string[];
184
184
  disabled: boolean;
185
185
  count: number;
@@ -376,9 +376,9 @@ declare const BkPagination: {
376
376
  }) => JSX.Element;
377
377
  renderSmallList: () => JSX.Element;
378
378
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:limit" | "limitChange")[], "change" | "update:modelValue" | "update:limit" | "limitChange", {
379
+ small: boolean;
379
380
  type: string;
380
381
  location: string;
381
- small: boolean;
382
382
  layout: string[];
383
383
  disabled: boolean;
384
384
  count: number;
@@ -202,9 +202,9 @@ declare const _default: import("vue").DefineComponent<{
202
202
  "onUpdate:limit"?: (...args: any[]) => any;
203
203
  onLimitChange?: (...args: any[]) => any;
204
204
  }, {
205
+ small: boolean;
205
206
  type: string;
206
207
  location: string;
207
- small: boolean;
208
208
  layout: string[];
209
209
  disabled: boolean;
210
210
  count: number;
@@ -9,6 +9,7 @@
9
9
  --gray-color: #979ba5;
10
10
  --light-gray: #c4c6cc;
11
11
  --white-color: white;
12
+ --whitesmoke-color: #fafbfd;
12
13
  --disable-color: #dcdee5;
13
14
  --font-size-base: 12px;
14
15
  --font-size-medium: 14px;
@@ -91,6 +92,10 @@
91
92
  --table-body-font-color: #575961;
92
93
  --table-row-hover-bg-color: #f5f7fa;
93
94
  --table-row-active-bg-color: #f0f1f5;
95
+ --cascader-panel-border-color: #dcdee5;
96
+ --cascader-panel-hover: #eaf3ff;
97
+ --cascader-panel-active: #f4f6fa;
98
+ --cascader-panel-disabled-bg: #fff;
94
99
  }
95
100
  .bk-pagination {
96
101
  display: flex;
@@ -3,17 +3,19 @@ declare const BkPopover: {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: Partial<{
6
- width: string | number;
7
- height: string | number;
8
6
  placement: string;
9
7
  modifiers: unknown[];
10
8
  content: string | number;
9
+ width: string | number;
10
+ height: string | number;
11
11
  theme: string;
12
+ always: boolean;
12
13
  transition: string;
14
+ disabled: boolean;
13
15
  trigger: string;
14
16
  arrow: boolean;
15
- isShow: boolean;
16
17
  stopBehaviors: string | string[];
18
+ isShow: boolean;
17
19
  handleFirstUpdate: import("@bkui-vue/shared").OnFirstUpdateFnType;
18
20
  fixOnBoundary: boolean;
19
21
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
@@ -24,6 +26,16 @@ declare const BkPopover: {
24
26
  } & {
25
27
  default: boolean;
26
28
  };
29
+ always: import("vue-types").VueTypeValidableDef<boolean> & {
30
+ default: boolean;
31
+ } & {
32
+ default: boolean;
33
+ };
34
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
35
+ default: boolean;
36
+ } & {
37
+ default: boolean;
38
+ };
27
39
  width: import("vue-types").VueTypeDef<string | number> & {
28
40
  default: string | number;
29
41
  };
@@ -74,7 +86,7 @@ declare const BkPopover: {
74
86
  stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
75
87
  default: string | (() => string[]);
76
88
  };
77
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "placement" | "modifiers" | "content" | "theme" | "transition" | "trigger" | "arrow" | "isShow" | "stopBehaviors" | "handleFirstUpdate" | "fixOnBoundary">;
89
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "modifiers" | "content" | "width" | "height" | "theme" | "always" | "transition" | "disabled" | "trigger" | "arrow" | "stopBehaviors" | "isShow" | "handleFirstUpdate" | "fixOnBoundary">;
78
90
  $attrs: {
79
91
  [x: string]: unknown;
80
92
  };
@@ -96,6 +108,16 @@ declare const BkPopover: {
96
108
  } & {
97
109
  default: boolean;
98
110
  };
111
+ always: import("vue-types").VueTypeValidableDef<boolean> & {
112
+ default: boolean;
113
+ } & {
114
+ default: boolean;
115
+ };
116
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
117
+ default: boolean;
118
+ } & {
119
+ default: boolean;
120
+ };
99
121
  width: import("vue-types").VueTypeDef<string | number> & {
100
122
  default: string | number;
101
123
  };
@@ -147,17 +169,19 @@ declare const BkPopover: {
147
169
  default: string | (() => string[]);
148
170
  };
149
171
  }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {
150
- width: string | number;
151
- height: string | number;
152
172
  placement: string;
153
173
  modifiers: unknown[];
154
174
  content: string | number;
175
+ width: string | number;
176
+ height: string | number;
155
177
  theme: string;
178
+ always: boolean;
156
179
  transition: string;
180
+ disabled: boolean;
157
181
  trigger: string;
158
182
  arrow: boolean;
159
- isShow: boolean;
160
183
  stopBehaviors: string | string[];
184
+ isShow: boolean;
161
185
  handleFirstUpdate: import("@bkui-vue/shared").OnFirstUpdateFnType;
162
186
  fixOnBoundary: boolean;
163
187
  }> & {
@@ -188,6 +212,16 @@ declare const BkPopover: {
188
212
  } & {
189
213
  default: boolean;
190
214
  };
215
+ always: import("vue-types").VueTypeValidableDef<boolean> & {
216
+ default: boolean;
217
+ } & {
218
+ default: boolean;
219
+ };
220
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
221
+ default: boolean;
222
+ } & {
223
+ default: boolean;
224
+ };
191
225
  width: import("vue-types").VueTypeDef<string | number> & {
192
226
  default: string | number;
193
227
  };
@@ -250,6 +284,16 @@ declare const BkPopover: {
250
284
  } & {
251
285
  default: boolean;
252
286
  };
287
+ always: import("vue-types").VueTypeValidableDef<boolean> & {
288
+ default: boolean;
289
+ } & {
290
+ default: boolean;
291
+ };
292
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
293
+ default: boolean;
294
+ } & {
295
+ default: boolean;
296
+ };
253
297
  width: import("vue-types").VueTypeDef<string | number> & {
254
298
  default: string | number;
255
299
  };
@@ -300,18 +344,20 @@ declare const BkPopover: {
300
344
  stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
301
345
  default: string | (() => string[]);
302
346
  };
303
- }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "update:isShow" | "afterHidden" | "afterShow", {
304
- width: string | number;
305
- height: string | number;
347
+ }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "afterHidden" | "afterShow" | "update:isShow", {
306
348
  placement: string;
307
349
  modifiers: unknown[];
308
350
  content: string | number;
351
+ width: string | number;
352
+ height: string | number;
309
353
  theme: string;
354
+ always: boolean;
310
355
  transition: string;
356
+ disabled: boolean;
311
357
  trigger: string;
312
358
  arrow: boolean;
313
- isShow: boolean;
314
359
  stopBehaviors: string | string[];
360
+ isShow: boolean;
315
361
  handleFirstUpdate: import("@bkui-vue/shared").OnFirstUpdateFnType;
316
362
  fixOnBoundary: boolean;
317
363
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue")):t(e["../shared"],e.vue);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t)=>(()=>{"use strict";var o={4212:t=>{t.exports=e},748:e=>{e.exports=t}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return o[e](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{default:()=>s});var e=n(4212),t=n(748),o={onAfterHidden:Function,onAfterShow:Function},r=Object.assign({isShow:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),content:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),transition:e.PropTypes.string.def("fade-in"),placement:e.PropTypes.placement(["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"]).def("top"),theme:e.PropTypes.string.def("light"),handleFirstUpdate:{type:Function,default:function(){}},trigger:e.PropTypes.string.def("hover"),arrow:e.PropTypes.bool.def(!0),modifiers:e.PropTypes.array.def([{name:"offset",options:{offset:[0,8]}}]),boundary:e.PropTypes.oneOfType([e.PropTypes.string.def("parent"),e.PropTypes.instanceOf(HTMLElement)]),fixOnBoundary:e.PropTypes.bool.def(!1),stopBehaviors:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.commonType(["stopPropagation","stopImmediatePropagation","preventDefault"],"stopBehaviors")),e.PropTypes.string]).def([])},o);const i=(0,t.defineComponent)({name:"Popover",props:r,emits:["afterHidden","afterShow","update:isShow"],setup:function(o,r){var n=!1,a=Object.create(null),i=(0,t.toRefs)(o),s=i.width,p=i.height,u=i.theme,d=i.trigger,f=i.isShow,l=i.placement,c=i.modifiers,v=i.arrow,y=i.content,m=(0,t.ref)(),h=(0,t.ref)(),T=(0,t.computed)((function(){return{width:/^\d+$/.test(String(s.value))?"".concat(s.value,"px"):s.value,height:/^\d+$/.test(String(p.value))?"".concat(p.value,"px"):p.value,zIndex:e.bkZIndexManager.getModalNextIndex()}})),b=["dark","light"],g=(0,t.computed)((function(){var e=u.value.split(/\s+/);return e.sort((function(e,t){return Number(b.includes(t))-Number(b.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!b.includes(e)}))}})),P=function(e){var t,o;n&&(e?null===(t=a.show)||void 0===t||t.call(a):null===(o=a.hide)||void 0===o||o.call(a))};(0,t.watch)((function(){return o.isShow}),(function(e){P(e)}),{immediate:!0});var w=function(){r.emit("update:isShow",!1),r.emit("afterHidden",!1)},x=function(){r.emit("update:isShow",!0),r.emit("afterShow",!1)},O=function(){var e=a;e.constructor&&(e.isShow&&e.hide(),e.destroy(),a=Object.create(null))},S=function(){a=new e.BKPopover(m.value,h.value,{theme:g.value.systemThemes.join(" "),placement:l.value,trigger:d.value,modifiers:c.value,onFirstUpdate:o.handleFirstUpdate,afterShow:x,afterHidden:w,appendTo:o.boundary,fixOnBoundary:o.fixOnBoundary}),n=!0,P(f.value)},j=function(){O(),(0,t.nextTick)(S)};r.expose({update:j}),(0,t.onMounted)(j),(0,t.onBeforeUnmount)(O);var B=function(){r.emit("after-enter")},k=function(){r.emit("after-leave")},N=g.value.customThemes.join(" "),A=g.value.customThemes.reduce((function(e,t){return Object.assign((o={},!0,(r="data-".concat(t,"-theme"))in o?Object.defineProperty(o,r,{value:true,enumerable:!0,configurable:!0,writable:!0}):o[r]=true,o),e);var o,r}),{}),F="bk-popover-content ".concat(N),M=function(e){var t=function(t){"function"==typeof e[t]&&e[t]()};Array.isArray(o.stopBehaviors)&&o.stopBehaviors.forEach(t),"string"==typeof o.stopBehaviors&&t(o.stopBehaviors)};return function(){var e,n,a,i,s;return(0,t.createVNode)("div",{class:"bk-popover","data-bk-pop-container":!0},[(0,t.createVNode)("div",{ref:m,class:"bk-popover-reference"},[null===(n=(e=r.slots).default)||void 0===n?void 0:n.call(e)]),(0,t.createVNode)(t.Transition,{name:o.transition,onAfterEnter:B,onAfterLeave:k},{default:function(){return[(0,t.createVNode)("div",(0,t.mergeProps)({ref:h,class:F,style:T.value},A,{onClick:M}),[null!==(s=null===(i=(a=r.slots).content)||void 0===i?void 0:i.call(a))&&void 0!==s?s:y.value,v.value&&(0,t.createVNode)("div",{class:"arrow","data-popper-arrow":!0},null)])]}})])}}}),s=(0,e.withInstall)(i)})(),a})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue")):t(e["../shared"],e.vue);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t)=>(()=>{"use strict";var o={4212:t=>{t.exports=e},748:e=>{e.exports=t}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return o[e](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{default:()=>s});var e=n(4212),t=n(748),o={onAfterHidden:Function,onAfterShow:Function},r=Object.assign({isShow:e.PropTypes.bool.def(!1),always:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),content:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),transition:e.PropTypes.string.def("fade-in"),placement:e.PropTypes.placement(["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"]).def("top"),theme:e.PropTypes.string.def("dark"),handleFirstUpdate:{type:Function,default:function(){}},trigger:e.PropTypes.string.def("hover"),arrow:e.PropTypes.bool.def(!0),modifiers:e.PropTypes.array.def([{name:"offset",options:{offset:[0,8]}}]),boundary:e.PropTypes.oneOfType([e.PropTypes.string.def("parent"),e.PropTypes.instanceOf(HTMLElement)]),fixOnBoundary:e.PropTypes.bool.def(!1),stopBehaviors:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.commonType(["stopPropagation","stopImmediatePropagation","preventDefault"],"stopBehaviors")),e.PropTypes.string]).def([])},o);const i=(0,t.defineComponent)({name:"Popover",props:r,emits:["afterHidden","afterShow","update:isShow"],setup:function(o,r){var n=!1,a=Object.create(null),i=(0,t.toRefs)(o),s=i.width,p=i.height,u=i.theme,d=i.trigger,f=i.isShow,l=i.placement,c=i.modifiers,v=i.arrow,y=i.content,m=(0,t.ref)(),h=(0,t.ref)(),b=(0,t.computed)((function(){return{width:/^\d+$/.test(String(s.value))?"".concat(s.value,"px"):s.value,height:/^\d+$/.test(String(p.value))?"".concat(p.value,"px"):p.value,zIndex:e.bkZIndexManager.getModalNextIndex()}})),T=["dark","light"],g=(0,t.computed)((function(){var e=u.value.split(/\s+/);return e.sort((function(e,t){return Number(T.includes(t))-Number(T.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!T.includes(e)}))}})),P=function(e){var t,o;n&&(e?null===(t=a.show)||void 0===t||t.call(a):null===(o=a.hide)||void 0===o||o.call(a))};(0,t.watch)((function(){return o.isShow}),(function(e){P(e)}),{immediate:!0});var w=function(){r.emit("update:isShow",!1),r.emit("afterHidden",!1)},x=function(){r.emit("update:isShow",!0),r.emit("afterShow",!1)},O=function(){var e=a;e.constructor&&(e.isShow&&e.hide(),e.destroy(),a=Object.create(null))},S=function(){a=new e.BKPopover(m.value,h.value,{theme:g.value.systemThemes.join(" "),placement:l.value,trigger:d.value,modifiers:c.value,onFirstUpdate:o.handleFirstUpdate,afterShow:x,afterHidden:w,appendTo:o.boundary,always:o.always,disabled:o.disabled,fixOnBoundary:o.fixOnBoundary}),n=!0,f.value&&P(f.value)},j=function(){O(),(0,t.nextTick)(S)};r.expose({update:j}),(0,t.onMounted)(j),(0,t.onBeforeUnmount)(O);var B=function(){r.emit("after-enter")},k=function(){r.emit("after-leave")},N=g.value.customThemes.join(" "),A=g.value.customThemes.reduce((function(e,t){return Object.assign((o={},!0,(r="data-".concat(t,"-theme"))in o?Object.defineProperty(o,r,{value:true,enumerable:!0,configurable:!0,writable:!0}):o[r]=true,o),e);var o,r}),{}),F="bk-popover-content ".concat(N),M=function(e){var t=function(t){"function"==typeof e[t]&&e[t]()};Array.isArray(o.stopBehaviors)&&o.stopBehaviors.forEach(t),"string"==typeof o.stopBehaviors&&t(o.stopBehaviors)};return function(){var e,n,a,i,s;return(0,t.createVNode)("div",{class:"bk-popover","data-bk-pop-container":!0},[(0,t.createVNode)("div",{ref:m,class:"bk-popover-reference"},[null===(n=(e=r.slots).default)||void 0===n?void 0:n.call(e)]),(0,t.createVNode)(t.Transition,{name:o.transition,onAfterEnter:B,onAfterLeave:k},{default:function(){return[(0,t.createVNode)("div",(0,t.mergeProps)({ref:h,class:F,style:b.value},A,{onClick:M}),[null!==(s=null===(i=(a=r.slots).content)||void 0===i?void 0:i.call(a))&&void 0!==s?s:y.value,v.value&&(0,t.createVNode)("div",{class:"arrow","data-popper-arrow":!0},null)])]}})])}}}),s=(0,e.withInstall)(i)})(),a})()));
@@ -1,3 +1,6 @@
1
+ .bk-popover {
2
+ display: inline-block;
3
+ }
1
4
  .bk-popover .bk-popover-reference {
2
5
  display: inline-block;
3
6
  }
@@ -6,6 +6,16 @@ declare const _default: import("vue").DefineComponent<{
6
6
  } & {
7
7
  default: boolean;
8
8
  };
9
+ always: import("vue-types").VueTypeValidableDef<boolean> & {
10
+ default: boolean;
11
+ } & {
12
+ default: boolean;
13
+ };
14
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
15
+ default: boolean;
16
+ } & {
17
+ default: boolean;
18
+ };
9
19
  width: import("vue-types").VueTypeDef<string | number> & {
10
20
  default: string | number;
11
21
  };
@@ -56,7 +66,7 @@ declare const _default: import("vue").DefineComponent<{
56
66
  stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
57
67
  default: string | (() => string[]);
58
68
  };
59
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "update:isShow" | "afterHidden" | "afterShow", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
69
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "afterHidden" | "afterShow" | "update:isShow", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
60
70
  onAfterHidden: FunctionConstructor;
61
71
  onAfterShow: FunctionConstructor;
62
72
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
@@ -64,6 +74,16 @@ declare const _default: import("vue").DefineComponent<{
64
74
  } & {
65
75
  default: boolean;
66
76
  };
77
+ always: import("vue-types").VueTypeValidableDef<boolean> & {
78
+ default: boolean;
79
+ } & {
80
+ default: boolean;
81
+ };
82
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
83
+ default: boolean;
84
+ } & {
85
+ default: boolean;
86
+ };
67
87
  width: import("vue-types").VueTypeDef<string | number> & {
68
88
  default: string | number;
69
89
  };
@@ -115,17 +135,19 @@ declare const _default: import("vue").DefineComponent<{
115
135
  default: string | (() => string[]);
116
136
  };
117
137
  }>>, {
118
- width: string | number;
119
- height: string | number;
120
138
  placement: string;
121
139
  modifiers: unknown[];
122
140
  content: string | number;
141
+ width: string | number;
142
+ height: string | number;
123
143
  theme: string;
144
+ always: boolean;
124
145
  transition: string;
146
+ disabled: boolean;
125
147
  trigger: string;
126
148
  arrow: boolean;
127
- isShow: boolean;
128
149
  stopBehaviors: string | string[];
150
+ isShow: boolean;
129
151
  handleFirstUpdate: import("@bkui-vue/shared").OnFirstUpdateFnType;
130
152
  fixOnBoundary: boolean;
131
153
  }>;
@@ -1,6 +1,8 @@
1
1
  @import '../styles/themes/themes.less';
2
2
 
3
3
  .@{bk-prefix}-popover {
4
+ display: inline-block;
5
+
4
6
  .bk-popover-reference {
5
7
  display: inline-block;
6
8
  }
@@ -9,6 +9,7 @@
9
9
  --gray-color: #979ba5;
10
10
  --light-gray: #c4c6cc;
11
11
  --white-color: white;
12
+ --whitesmoke-color: #fafbfd;
12
13
  --disable-color: #dcdee5;
13
14
  --font-size-base: 12px;
14
15
  --font-size-medium: 14px;
@@ -91,6 +92,13 @@
91
92
  --table-body-font-color: #575961;
92
93
  --table-row-hover-bg-color: #f5f7fa;
93
94
  --table-row-active-bg-color: #f0f1f5;
95
+ --cascader-panel-border-color: #dcdee5;
96
+ --cascader-panel-hover: #eaf3ff;
97
+ --cascader-panel-active: #f4f6fa;
98
+ --cascader-panel-disabled-bg: #fff;
99
+ }
100
+ .bk-popover {
101
+ display: inline-block;
94
102
  }
95
103
  .bk-popover .bk-popover-reference {
96
104
  display: inline-block;
@@ -8,6 +8,16 @@ export declare const PopoverProps: {
8
8
  } & {
9
9
  default: boolean;
10
10
  };
11
+ always: import("vue-types").VueTypeValidableDef<boolean> & {
12
+ default: boolean;
13
+ } & {
14
+ default: boolean;
15
+ };
16
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
17
+ default: boolean;
18
+ } & {
19
+ default: boolean;
20
+ };
11
21
  width: import("vue-types").VueTypeDef<string | number> & {
12
22
  default: string | number;
13
23
  };
@@ -26,7 +36,7 @@ export declare const PopoverProps: {
26
36
  default: string;
27
37
  };
28
38
  /**
29
- * 展示位置
39
+ * 组件显示位置
30
40
  */
31
41
  placement: import("vue-types").VueTypeDef<string> & {
32
42
  default: string;
@@ -9,6 +9,7 @@
9
9
  --gray-color: #979ba5;
10
10
  --light-gray: #c4c6cc;
11
11
  --white-color: white;
12
+ --whitesmoke-color: #fafbfd;
12
13
  --disable-color: #dcdee5;
13
14
  --font-size-base: 12px;
14
15
  --font-size-medium: 14px;
@@ -91,6 +92,10 @@
91
92
  --table-body-font-color: #575961;
92
93
  --table-row-hover-bg-color: #f5f7fa;
93
94
  --table-row-active-bg-color: #f0f1f5;
95
+ --cascader-panel-border-color: #dcdee5;
96
+ --cascader-panel-hover: #eaf3ff;
97
+ --cascader-panel-active: #f4f6fa;
98
+ --cascader-panel-disabled-bg: #fff;
94
99
  }
95
100
  * {
96
101
  box-sizing: border-box;