bkui-vue 1.0.3-beta.9 → 2.0.1-beta.10

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 (407) hide show
  1. package/dist/index.cjs.js +162 -164
  2. package/dist/index.esm.js +31999 -29678
  3. package/dist/index.umd.js +162 -164
  4. package/dist/locale/en.esm.js +1 -1
  5. package/dist/locale/en.esm.js.map +1 -1
  6. package/dist/locale/en.umd.js +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/zh-cn.esm.js +1 -1
  9. package/dist/locale/zh-cn.esm.js.map +1 -1
  10. package/dist/locale/zh-cn.umd.js +1 -1
  11. package/dist/locale/zh-cn.umd.js.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/style.variable.css +1 -1
  14. package/lib/affix/affix.variable.css +3 -0
  15. package/lib/affix/index.js +7 -7
  16. package/lib/alert/alert.d.ts +5 -5
  17. package/lib/alert/alert.variable.css +3 -0
  18. package/lib/alert/index.d.ts +11 -11
  19. package/lib/backtop/backtop.d.ts +1 -1
  20. package/lib/backtop/backtop.variable.css +3 -0
  21. package/lib/backtop/index.d.ts +3 -3
  22. package/lib/backtop/index.js +6 -6
  23. package/lib/badge/badge.variable.css +3 -0
  24. package/lib/badge/index.js +1 -1
  25. package/lib/breadcrumb/breadcrumb.variable.css +3 -0
  26. package/lib/button/button.d.ts +7 -7
  27. package/lib/button/button.variable.css +3 -0
  28. package/lib/button/index.d.ts +8 -8
  29. package/lib/button/index.js +6 -6
  30. package/lib/card/card.variable.css +3 -0
  31. package/lib/cascader/cascader-panel.d.ts +1 -1
  32. package/lib/cascader/cascader.css +3 -3
  33. package/lib/cascader/cascader.d.ts +1 -1
  34. package/lib/cascader/cascader.less +4 -4
  35. package/lib/cascader/cascader.variable.css +6 -3
  36. package/lib/cascader/index.js +35 -36
  37. package/lib/cascader/interface.d.ts +1 -1
  38. package/lib/checkbox/checkbox.variable.css +3 -0
  39. package/lib/checkbox/index.js +7 -7
  40. package/lib/checkbox/type.d.ts +1 -1
  41. package/lib/code-diff/code-diff.variable.css +3 -0
  42. package/lib/code-diff/index.js +8 -8
  43. package/lib/collapse/collapse.css +11 -0
  44. package/lib/collapse/collapse.d.ts +11 -0
  45. package/lib/collapse/collapse.less +15 -1
  46. package/lib/collapse/collapse.variable.css +14 -0
  47. package/lib/collapse/index.d.ts +23 -0
  48. package/lib/collapse/index.js +11 -3
  49. package/lib/collapse/props.d.ts +8 -0
  50. package/lib/collapse/utils.d.ts +2 -2
  51. package/lib/collapse-transition/collapse-transition.variable.css +3 -0
  52. package/lib/color-picker/color-picker.css +3 -3
  53. package/lib/color-picker/color-picker.less +3 -3
  54. package/lib/color-picker/color-picker.variable.css +6 -3
  55. package/lib/color-picker/index.js +45 -45
  56. package/lib/components.d.ts +32 -30
  57. package/lib/components.js +31 -29
  58. package/lib/config-provider/config-provider.d.ts +3 -0
  59. package/lib/config-provider/config-provider.variable.css +3 -0
  60. package/lib/config-provider/index.d.ts +5 -1
  61. package/lib/config-provider/token.d.ts +1 -0
  62. package/lib/container/container.variable.css +3 -0
  63. package/lib/container/index.js +6 -6
  64. package/lib/date-picker/base/date-table.d.ts +1 -1
  65. package/lib/date-picker/base/month-table.d.ts +3 -3
  66. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  67. package/lib/date-picker/base/year-table.d.ts +3 -3
  68. package/lib/date-picker/date-picker.d.ts +1 -0
  69. package/lib/date-picker/date-picker.variable.css +3 -0
  70. package/lib/date-picker/index.d.ts +3 -0
  71. package/lib/date-picker/index.js +340 -224
  72. package/lib/date-picker/interface.d.ts +9 -9
  73. package/lib/date-picker/panel/date-range.d.ts +2 -64
  74. package/lib/date-picker/panel/date.d.ts +1 -1
  75. package/lib/date-picker/panel/time-range.d.ts +1 -1
  76. package/lib/date-picker/panel/time.d.ts +1 -1
  77. package/lib/date-picker/props.d.ts +1 -1
  78. package/lib/date-picker/time-picker.d.ts +1 -0
  79. package/lib/date-picker/utils.d.ts +9 -1
  80. package/lib/dialog/dialog.css +172 -150
  81. package/lib/dialog/dialog.d.ts +55 -124
  82. package/lib/dialog/dialog.less +51 -124
  83. package/lib/dialog/dialog.variable.css +175 -150
  84. package/lib/dialog/index.d.ts +132 -296
  85. package/lib/dialog/index.js +244 -246
  86. package/lib/dialog/props.d.ts +16 -41
  87. package/lib/directives/index.d.ts +3 -3
  88. package/lib/directives/index.js +166 -167
  89. package/lib/directives/tooltips.d.ts +1 -1
  90. package/lib/dist.index.js +2 -2
  91. package/lib/divider/divider.d.ts +5 -5
  92. package/lib/divider/divider.variable.css +3 -0
  93. package/lib/divider/index.d.ts +11 -11
  94. package/lib/divider/index.js +2 -2
  95. package/lib/divider/props.d.ts +2 -2
  96. package/lib/dropdown/dropdown.css +3 -1
  97. package/lib/dropdown/dropdown.d.ts +5 -5
  98. package/lib/dropdown/dropdown.variable.css +6 -1
  99. package/lib/dropdown/index.d.ts +11 -11
  100. package/lib/dropdown/index.js +7 -7
  101. package/lib/exception/exception.d.ts +9 -9
  102. package/lib/exception/exception.variable.css +3 -0
  103. package/lib/exception/index.d.ts +11 -11
  104. package/lib/exception/index.js +10 -10
  105. package/lib/exception/typings/index.d.ts +1 -1
  106. package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
  107. package/lib/fixed-navbar/index.js +2 -2
  108. package/lib/form/form.d.ts +2 -2
  109. package/lib/form/form.variable.css +3 -0
  110. package/lib/form/index.js +17 -15
  111. package/lib/form/type.d.ts +2 -2
  112. package/lib/icon/image-fill.js +82 -167
  113. package/lib/icon/img-error.js +82 -167
  114. package/lib/icon/img-placehoulder.js +82 -167
  115. package/lib/icon/index.d.ts +12 -11
  116. package/lib/icon/index.js +87 -2427
  117. package/lib/icon/info-line.js +82 -167
  118. package/lib/icon/info.js +82 -167
  119. package/lib/icon/left-shape.js +82 -167
  120. package/lib/icon/left-turn-line.js +82 -167
  121. package/lib/icon/loading.js +82 -167
  122. package/lib/icon/narrow-line.js +82 -167
  123. package/lib/icon/original.js +82 -167
  124. package/lib/icon/pdf-fill.js +82 -167
  125. package/lib/icon/play-shape.js +82 -167
  126. package/lib/icon/plus.js +82 -167
  127. package/lib/icon/ppt-fill.js +82 -167
  128. package/lib/icon/qq.js +82 -167
  129. package/lib/icon/right-shape.js +82 -167
  130. package/lib/icon/right-turn-line.js +82 -167
  131. package/lib/icon/search.js +82 -167
  132. package/lib/icon/share.js +82 -167
  133. package/lib/icon/spinner.js +82 -167
  134. package/lib/icon/success.js +82 -167
  135. package/lib/icon/switcher-loading.js +82 -167
  136. package/lib/icon/text-all.d.ts +4 -0
  137. package/lib/icon/text-all.js +191 -0
  138. package/lib/icon/text-file.js +82 -167
  139. package/lib/icon/text-fill.js +82 -167
  140. package/lib/icon/transfer.js +82 -167
  141. package/lib/icon/tree-application-shape.js +82 -167
  142. package/lib/icon/unfull-screen.js +82 -167
  143. package/lib/icon/unvisible.js +82 -167
  144. package/lib/icon/up-shape.js +82 -167
  145. package/lib/icon/upload.js +82 -167
  146. package/lib/icon/video-fill.js +82 -167
  147. package/lib/icon/warn.js +82 -167
  148. package/lib/icon/weixin-pro.js +82 -167
  149. package/lib/icon/weixin.js +82 -167
  150. package/lib/image/image-viewer.d.ts +1 -1
  151. package/lib/image/image-viewer.variable.css +3 -0
  152. package/lib/image/image.variable.css +3 -0
  153. package/lib/image/index.js +25 -22
  154. package/lib/index.d.ts +3 -3
  155. package/lib/index.js +3 -3
  156. package/lib/info-box/index.d.ts +2 -2
  157. package/lib/info-box/index.js +257 -516
  158. package/lib/info-box/info-box.css +58 -28
  159. package/lib/info-box/info-box.d.ts +25 -23
  160. package/lib/info-box/info-box.less +82 -51
  161. package/lib/info-box/info-box.variable.css +61 -28
  162. package/lib/info-box/render-component.d.ts +4 -0
  163. package/lib/input/index.d.ts +15 -15
  164. package/lib/input/index.js +23 -17
  165. package/lib/input/input.d.ts +15 -15
  166. package/lib/input/input.variable.css +3 -0
  167. package/lib/link/index.d.ts +11 -11
  168. package/lib/link/index.js +3 -3
  169. package/lib/link/link.d.ts +5 -5
  170. package/lib/link/link.variable.css +3 -0
  171. package/lib/loading/index.d.ts +4 -4
  172. package/lib/loading/index.js +6 -6
  173. package/lib/loading/loading.d.ts +6 -6
  174. package/lib/loading/loading.variable.css +3 -0
  175. package/lib/locale/index.d.ts +1 -1
  176. package/lib/locale/index.js +4 -2
  177. package/lib/locale/lang/en.d.ts +1 -0
  178. package/lib/menu/index.js +0 -1
  179. package/lib/menu/menu.variable.css +3 -0
  180. package/lib/menu/submenu.variable.css +3 -0
  181. package/lib/menu/utils.d.ts +3 -3
  182. package/lib/message/index.js +18 -18
  183. package/lib/message/message.variable.css +3 -0
  184. package/lib/message/messageConstructor.d.ts +11 -11
  185. package/lib/modal/hooks.d.ts +6 -0
  186. package/lib/modal/index.d.ts +44 -312
  187. package/lib/modal/index.js +286 -672
  188. package/lib/modal/mask.d.ts +6 -0
  189. package/lib/modal/modal.css +151 -76
  190. package/lib/modal/modal.d.ts +19 -117
  191. package/lib/modal/modal.less +103 -56
  192. package/lib/modal/modal.variable.css +154 -76
  193. package/lib/modal/props.mixin.d.ts +5 -41
  194. package/lib/navigation/index.js +20 -20
  195. package/lib/navigation/navigation.d.ts +1 -1
  196. package/lib/navigation/navigation.variable.css +3 -0
  197. package/lib/notify/index.js +4 -4
  198. package/lib/notify/notify.variable.css +3 -0
  199. package/lib/overflow-title/components/overflow-title.d.ts +9 -9
  200. package/lib/overflow-title/index.d.ts +19 -19
  201. package/lib/overflow-title/index.js +107 -63
  202. package/lib/overflow-title/props.d.ts +18 -18
  203. package/lib/pagination/index.js +16 -15
  204. package/lib/pagination/pagination.variable.css +3 -0
  205. package/lib/pagination/type.d.ts +1 -1
  206. package/lib/pagination/use-limit.d.ts +1 -1
  207. package/lib/pagination/use-total.d.ts +1 -1
  208. package/lib/plugin-popover/index.d.ts +1 -1
  209. package/lib/plugin-popover/index.js +62 -44
  210. package/lib/pop-confirm/index.js +17 -14
  211. package/lib/pop-confirm/pop-confirm.variable.css +3 -0
  212. package/lib/pop-confirm/props.d.ts +2 -2
  213. package/lib/popover/const.d.ts +3 -3
  214. package/lib/popover/content.d.ts +1 -1
  215. package/lib/popover/index.d.ts +19 -19
  216. package/lib/popover/index.js +62 -44
  217. package/lib/popover/plugin-popover.d.ts +4 -1
  218. package/lib/popover/popover.css +3 -1
  219. package/lib/popover/popover.d.ts +7 -7
  220. package/lib/popover/popover.less +4 -1
  221. package/lib/popover/popover.variable.css +6 -1
  222. package/lib/popover/props.d.ts +4 -4
  223. package/lib/preset.d.ts +2 -0
  224. package/lib/process/index.js +3 -3
  225. package/lib/process/process.variable.css +3 -0
  226. package/lib/progress/index.d.ts +11 -11
  227. package/lib/progress/index.js +10 -10
  228. package/lib/progress/progress.d.ts +7 -7
  229. package/lib/progress/progress.variable.css +3 -0
  230. package/lib/radio/index.d.ts +29 -0
  231. package/lib/radio/index.js +49 -31
  232. package/lib/radio/radio-button.d.ts +10 -0
  233. package/lib/radio/radio-group.d.ts +10 -0
  234. package/lib/radio/radio.d.ts +10 -0
  235. package/lib/radio/radio.variable.css +3 -0
  236. package/lib/radio/type.d.ts +1 -1
  237. package/lib/rate/index.js +8 -8
  238. package/lib/rate/rate.css +27 -0
  239. package/lib/rate/rate.less +33 -0
  240. package/lib/rate/rate.variable.css +30 -0
  241. package/lib/resize-layout/index.d.ts +11 -11
  242. package/lib/resize-layout/index.js +8 -9
  243. package/lib/resize-layout/resize-layout.d.ts +5 -5
  244. package/lib/resize-layout/resize-layout.variable.css +3 -0
  245. package/lib/scrollbar/index.d.ts +15 -0
  246. package/lib/scrollbar/index.js +18762 -0
  247. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
  248. package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
  249. package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
  250. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
  251. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
  252. package/lib/scrollbar/scrollbar.css +75 -0
  253. package/lib/scrollbar/scrollbar.less +94 -0
  254. package/lib/{rate/star.variable.css → scrollbar/scrollbar.variable.css} +70 -19
  255. package/lib/search-select/index.d.ts +375 -16
  256. package/lib/search-select/index.js +754 -419
  257. package/lib/search-select/input.d.ts +14 -5
  258. package/lib/search-select/menu.d.ts +1 -1
  259. package/lib/search-select/search-select.css +20 -6
  260. package/lib/search-select/search-select.d.ts +129 -7
  261. package/lib/search-select/search-select.less +16 -12
  262. package/lib/search-select/search-select.variable.css +23 -6
  263. package/lib/search-select/selected.d.ts +117 -7
  264. package/lib/search-select/utils.d.ts +22 -9
  265. package/lib/select/index.d.ts +185 -67
  266. package/lib/select/index.js +1396 -136
  267. package/lib/select/option.d.ts +3 -1
  268. package/lib/select/pinyin/core.d.ts +14 -0
  269. package/lib/select/pinyin/dict.d.ts +34 -0
  270. package/lib/select/pinyin/index.d.ts +2 -0
  271. package/lib/select/select.css +56 -14
  272. package/lib/select/select.d.ts +74 -26
  273. package/lib/select/select.less +70 -21
  274. package/lib/select/select.variable.css +59 -14
  275. package/lib/select/selectTagInput.d.ts +13 -6
  276. package/lib/select/type.d.ts +4 -5
  277. package/lib/shared/index.d.ts +1 -2
  278. package/lib/shared/index.js +108 -96
  279. package/lib/shared/popover.d.ts +3 -3
  280. package/lib/shared/token.d.ts +1 -1
  281. package/lib/shared/utils.d.ts +12 -0
  282. package/lib/shared/vue-types.d.ts +51 -46
  283. package/lib/shared/z-index-manager.d.ts +6 -6
  284. package/lib/sideslider/index.d.ts +58 -188
  285. package/lib/sideslider/index.js +83 -57
  286. package/lib/sideslider/sideslider.css +26 -90
  287. package/lib/sideslider/sideslider.d.ts +26 -88
  288. package/lib/sideslider/sideslider.less +56 -132
  289. package/lib/sideslider/sideslider.variable.css +29 -90
  290. package/lib/slider/index.d.ts +19 -0
  291. package/lib/slider/index.js +64 -26
  292. package/lib/slider/slider.css +14 -0
  293. package/lib/slider/slider.d.ts +9 -0
  294. package/lib/slider/slider.less +15 -0
  295. package/lib/slider/slider.variable.css +17 -0
  296. package/lib/steps/index.d.ts +11 -11
  297. package/lib/steps/index.js +3 -3
  298. package/lib/steps/steps.d.ts +7 -7
  299. package/lib/steps/steps.variable.css +3 -0
  300. package/lib/styles/index.d.ts +0 -1
  301. package/lib/styles/mixins/animate.variable.css +3 -0
  302. package/lib/styles/mixins/popper.variable.css +3 -0
  303. package/lib/styles/mixins/scroll.variable.css +3 -0
  304. package/lib/styles/reset.css +1 -3
  305. package/lib/styles/reset.less +3 -6
  306. package/lib/styles/reset.variable.css +4 -3
  307. package/lib/styles/themes/themes.less +5 -0
  308. package/lib/swiper/index.js +5 -5
  309. package/lib/swiper/swiper.variable.css +3 -0
  310. package/lib/switcher/index.js +2 -2
  311. package/lib/switcher/switcher.d.ts +2 -2
  312. package/lib/switcher/switcher.variable.css +3 -0
  313. package/lib/tab/index.d.ts +22 -22
  314. package/lib/tab/index.js +15 -15
  315. package/lib/tab/props.d.ts +15 -15
  316. package/lib/tab/tab-nav.d.ts +10 -10
  317. package/lib/tab/tab.d.ts +10 -10
  318. package/lib/tab/tab.variable.css +3 -0
  319. package/lib/table/cache.d.ts +11 -3
  320. package/lib/table/components/table-cell.d.ts +3 -2
  321. package/lib/table/components/table-column.d.ts +30 -100
  322. package/lib/table/const.d.ts +12 -12
  323. package/lib/table/events.d.ts +21 -21
  324. package/lib/table/index.d.ts +220 -305
  325. package/lib/table/index.js +18165 -688
  326. package/lib/table/plugins/head-filter.css +8 -4
  327. package/lib/table/plugins/head-filter.less +6 -3
  328. package/lib/table/plugins/head-filter.variable.css +11 -4
  329. package/lib/table/plugins/head-sort.variable.css +3 -0
  330. package/lib/table/plugins/settings.variable.css +3 -0
  331. package/lib/table/plugins/use-active-columns.d.ts +2 -2
  332. package/lib/table/plugins/use-column-template.d.ts +7 -0
  333. package/lib/table/plugins/use-draggable.d.ts +2 -2
  334. package/lib/table/plugins/use-fixed-column.d.ts +1 -1
  335. package/lib/table/plugins/use-observer-resize.d.ts +5 -0
  336. package/lib/table/plugins/use-pagination.d.ts +3 -1
  337. package/lib/table/plugins/use-shift-key.d.ts +13 -0
  338. package/lib/table/props.d.ts +49 -39
  339. package/lib/table/table.css +112 -58
  340. package/lib/table/table.d.ts +58 -47
  341. package/lib/table/table.less +46 -58
  342. package/lib/table/table.variable.css +115 -58
  343. package/lib/table/use-attributes.d.ts +9 -46
  344. package/lib/table/use-column.d.ts +18 -139
  345. package/lib/table/use-common.d.ts +5 -5
  346. package/lib/table/use-render.d.ts +1 -1
  347. package/lib/table/utils.d.ts +6 -6
  348. package/lib/table-column/index.d.ts +127 -431
  349. package/lib/table-column/index.js +43 -117
  350. package/lib/tag/index.d.ts +11 -11
  351. package/lib/tag/index.js +2 -2
  352. package/lib/tag/tag.d.ts +5 -5
  353. package/lib/tag/tag.variable.css +3 -0
  354. package/lib/tag-input/common.d.ts +1 -1
  355. package/lib/tag-input/index.d.ts +12 -12
  356. package/lib/tag-input/index.js +30 -30
  357. package/lib/tag-input/tag-input.d.ts +6 -6
  358. package/lib/tag-input/tag-input.variable.css +3 -0
  359. package/lib/tag-input/tag-props.d.ts +3 -3
  360. package/lib/tag-input/tag-render.d.ts +1 -1
  361. package/lib/time-picker/index.d.ts +38 -35
  362. package/lib/time-picker/time-picker.variable.css +3 -0
  363. package/lib/timeline/index.d.ts +80 -44
  364. package/lib/timeline/index.js +56 -67
  365. package/lib/timeline/timeline.d.ts +46 -29
  366. package/lib/timeline/timeline.variable.css +3 -0
  367. package/lib/transfer/const.d.ts +2 -2
  368. package/lib/transfer/index.js +19 -19
  369. package/lib/transfer/transfer.css +9 -9
  370. package/lib/transfer/transfer.less +3 -3
  371. package/lib/transfer/transfer.variable.css +12 -9
  372. package/lib/tree/constant.d.ts +22 -20
  373. package/lib/tree/index.d.ts +64 -20
  374. package/lib/tree/index.js +17595 -72
  375. package/lib/tree/props.d.ts +24 -6
  376. package/lib/tree/tree.css +76 -2
  377. package/lib/tree/tree.d.ts +34 -8
  378. package/lib/tree/tree.less +1 -1
  379. package/lib/tree/tree.variable.css +79 -2
  380. package/lib/tree/use-empty.d.ts +1 -1
  381. package/lib/tree/use-intersection-observer.d.ts +27 -0
  382. package/lib/tree/use-node-action.d.ts +2 -2
  383. package/lib/tree/use-node-attribute.d.ts +9 -0
  384. package/lib/tree/use-search.d.ts +1 -1
  385. package/lib/tree/util.d.ts +1 -1
  386. package/lib/upload/index.d.ts +12 -0
  387. package/lib/upload/index.js +62 -65
  388. package/lib/upload/props.d.ts +4 -1
  389. package/lib/upload/upload-trigger.d.ts +6 -0
  390. package/lib/upload/upload.d.ts +6 -0
  391. package/lib/upload/upload.type.d.ts +7 -7
  392. package/lib/upload/upload.variable.css +3 -0
  393. package/lib/upload/use-file-handler.d.ts +1 -1
  394. package/lib/virtual-render/index.d.ts +36 -9
  395. package/lib/virtual-render/index.js +295 -80
  396. package/lib/virtual-render/props.d.ts +16 -0
  397. package/lib/virtual-render/use-fix-top.d.ts +2 -7
  398. package/lib/virtual-render/use-scrollbar.d.ts +24 -0
  399. package/lib/virtual-render/v-virtual-render.d.ts +2 -1
  400. package/lib/virtual-render/virtual-render.css +76 -2
  401. package/lib/virtual-render/virtual-render.d.ts +16 -3
  402. package/lib/virtual-render/virtual-render.less +3 -3
  403. package/lib/virtual-render/virtual-render.variable.css +79 -2
  404. package/package.json +13 -49
  405. package/lib/rate/star.css +0 -27
  406. package/lib/rate/star.less +0 -34
  407. package/lib/shared/mask.d.ts +0 -11
@@ -0,0 +1,6 @@
1
+ export declare const mask: {
2
+ showMask: (maskEle: HTMLElement) => void;
3
+ hideMask: (maskEle: HTMLElement) => void;
4
+ destroyMask: (maskEle: HTMLElement) => void;
5
+ getMaskCount: () => number;
6
+ };
@@ -1,101 +1,176 @@
1
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper {
2
- width: 440px;
1
+ .bk-infobox {
2
+ font-size: 12px;
3
3
  }
4
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper.normal {
5
- width: 440px;
4
+ .bk-infobox .bk-modal-wrapper {
5
+ top: 50%;
6
+ left: 50%;
7
+ transform: translate(-50%, -50%);
6
8
  }
7
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper.small {
8
- width: 400px;
9
+ .bk-infobox-header {
10
+ padding-top: 24px;
9
11
  }
10
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-body {
11
- border-radius: 2px;
12
+ .bk-infobox-type {
13
+ display: flex;
14
+ justify-content: center;
15
+ align-items: center;
12
16
  }
13
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header {
14
- padding: 24px 24px 0;
17
+ .bk-infobox-icon {
18
+ width: 42px;
19
+ height: 42px;
20
+ font-size: 42px;
15
21
  }
16
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
17
- height: 27px;
18
- margin: 15px 0 10px;
22
+ .bk-infobox-icon.success {
23
+ color: #2dcb56;
19
24
  }
20
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content {
21
- height: 100%;
22
- max-height: 100%;
23
- min-height: 100%;
24
- padding: 0 50px 10px;
25
- word-break: break-all;
26
- }
27
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content .bk-info-sub-title {
28
- margin-bottom: 10px;
29
- text-align: center;
30
- word-break: break-all;
31
- }
32
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer {
33
- padding: 0 65px 33px;
34
- background-color: #fff;
35
- border-top: none;
36
- }
37
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer .bk-dialog-footer button {
38
- min-width: 88px;
25
+ .bk-infobox-icon.warning {
26
+ color: #ff9c01;
39
27
  }
40
- .bk-modal-ctx {
41
- pointer-events: auto;
42
- top: 0px;
43
- left: 0px;
44
- width: 100%;
45
- height: 100%;
28
+ .bk-infobox-icon.danger {
29
+ color: #ea3636;
46
30
  }
47
- .bk-modal-ctx.--show {
48
- position: fixed;
31
+ .bk-infobox-icon.loading {
32
+ color: #3a84ff;
49
33
  }
50
- .bk-modal-ctx.--hide {
51
- display: none;
34
+ .bk-infobox-title {
35
+ padding-right: 24px;
36
+ padding-left: 24px;
37
+ margin-top: 24px;
38
+ font-size: 20px;
39
+ line-height: 32px;
40
+ color: #313238;
52
41
  }
53
- .bk-modal-ctx .bk-modal-ctx-mask {
54
- display: none;
55
- left: 0;
42
+ .bk-infobox-content {
43
+ padding-right: 24px;
44
+ padding-left: 24px;
45
+ margin-top: 16px;
46
+ }
47
+ .bk-infobox-footer {
48
+ display: flex;
49
+ padding-right: 24px;
50
+ padding-bottom: 24px;
51
+ padding-left: 24px;
52
+ margin-top: 24px;
53
+ align-content: center;
54
+ }
55
+ .bk-infobox-footer.is-position-right {
56
+ justify-content: right;
57
+ }
58
+ .bk-infobox-footer.is-position-center {
59
+ justify-content: center;
60
+ }
61
+ .bk-infobox-footer.is-position-left {
62
+ justify-content: left;
63
+ }
64
+ .bk-infobox-footer .bk-button {
65
+ min-width: 88px;
66
+ }
67
+ .bk-infobox-footer .bk-button ~ .bk-button {
68
+ margin-left: 8px;
69
+ }
70
+ .bk-modal-mask {
71
+ position: fixed;
56
72
  top: 0;
73
+ left: 0;
57
74
  width: 100%;
58
75
  height: 100%;
59
76
  background-color: rgba(0, 0, 0, 0.6);
60
77
  }
61
- .bk-modal-ctx .bk-modal-ctx-mask.--show {
78
+ .bk-modal-wrapper {
62
79
  position: fixed;
63
- display: inherit;
64
80
  }
65
- .bk-modal-wrapper {
66
- position: absolute;
67
- top: 50%;
68
- left: 50%;
69
- width: 480px;
81
+ .bk-modal-body {
82
+ height: 100%;
83
+ overflow: hidden;
84
+ background: #fff;
70
85
  border-radius: 2px;
71
- transform: translate(-50%, -50%);
86
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
72
87
  }
73
- .bk-modal-wrapper .bk-modal-outside {
74
- position: fixed;
75
- top: 0;
76
- right: 0;
77
- bottom: 0;
78
- left: 0;
88
+ .bk-modal-content {
89
+ position: relative;
90
+ max-height: 100vh;
79
91
  }
80
- .bk-modal-wrapper.normal {
81
- width: 480px;
82
- height: 240px;
92
+ .bk-modal-footer {
93
+ position: relative;
83
94
  }
84
- .bk-modal-wrapper.small {
85
- width: 400px;
86
- height: 200px;
95
+ .bk-modal-close {
96
+ position: absolute;
97
+ top: 6px;
98
+ right: 6px;
99
+ display: flex;
100
+ width: 32px;
101
+ height: 32px;
102
+ font-size: 18px;
103
+ color: #979ba5;
104
+ cursor: pointer;
105
+ align-items: center;
106
+ justify-content: center;
107
+ border-radius: 50%;
108
+ transition: 0.15s;
87
109
  }
88
- .bk-modal-wrapper.medium {
89
- width: 640px;
90
- height: 400px;
110
+ .bk-modal-close:hover {
111
+ background: #f0f1f5;
91
112
  }
92
- .bk-modal-wrapper.large {
93
- width: 960px;
94
- height: 720px;
113
+ .modal-fadein-enter-from {
114
+ opacity: 0;
95
115
  }
96
- .bk-modal-wrapper .bk-modal-body {
97
- height: 100%;
98
- width: 100%;
99
- background: #fff;
100
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
116
+ .modal-fadein-enter-from .bk-modal-body {
117
+ transform: translateY(-20px);
118
+ }
119
+ .modal-fadein-enter-to {
120
+ opacity: 1;
121
+ }
122
+ .modal-fadein-enter-to .bk-modal-body {
123
+ transform: translateY(0);
124
+ }
125
+ .modal-fadein-leave-from {
126
+ opacity: 1;
127
+ }
128
+ .modal-fadein-leave-from .bk-modal-body {
129
+ transform: translateY(0);
130
+ }
131
+ .modal-fadein-leave-to {
132
+ opacity: 0;
133
+ }
134
+ .modal-fadein-leave-to .bk-modal-body {
135
+ transform: translateY(-20px);
136
+ }
137
+ .modal-fadein-enter-active,
138
+ .modal-fadein-leave-active {
139
+ transition: opacity 0.15s linear;
140
+ }
141
+ .modal-fadein-enter-active .bk-modal-body,
142
+ .modal-fadein-leave-active .bk-modal-body {
143
+ transition: transform 0.08s linear;
144
+ }
145
+ .modal-right-enter-from {
146
+ transform: translateX(100%);
147
+ }
148
+ .modal-right-enter-to {
149
+ transform: translateX(0);
150
+ }
151
+ .modal-right-leave-from {
152
+ transform: translateX(0);
153
+ }
154
+ .modal-right-leave-to {
155
+ transform: translateX(100%);
156
+ }
157
+ .modal-right-enter-active,
158
+ .modal-right-leave-active {
159
+ transition: transform 0.15s ease;
160
+ }
161
+ .modal-left-enter-from {
162
+ transform: translateX(-100%);
163
+ }
164
+ .modal-left-enter-to {
165
+ transform: translateX(0);
166
+ }
167
+ .modal-left-leave-from {
168
+ transform: translateX(0);
169
+ }
170
+ .modal-left-leave-to {
171
+ transform: translateX(-100%);
172
+ }
173
+ .modal-left-enter-active,
174
+ .modal-left-leave-active {
175
+ transition: transform 0.15s ease;
101
176
  }
@@ -1,21 +1,14 @@
1
+ import { type ExtractPropTypes } from 'vue';
2
+ import { propsMixin } from './props.mixin';
3
+ export type ModalProps = Readonly<ExtractPropTypes<typeof propsMixin>>;
1
4
  declare const _default: import("vue").DefineComponent<{
2
5
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
3
6
  default: boolean;
4
7
  } & {
5
8
  default: boolean;
6
9
  };
7
- width: import("vue-types").VueTypeDef<string | number> & {
8
- default: string | number;
9
- };
10
- height: import("vue-types").VueTypeDef<string | number> & {
11
- default: string | number;
12
- };
13
- extCls: (import("vue-types").VueTypeValidableDef<string> & {
14
- default: string;
15
- }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
16
- default: () => unknown[];
17
- });
18
- scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
10
+ width: import("vue-types").VueTypeDef<string | number>;
11
+ fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
19
12
  default: boolean;
20
13
  } & {
21
14
  default: boolean;
@@ -35,17 +28,6 @@ declare const _default: import("vue").DefineComponent<{
35
28
  } & {
36
29
  default: boolean;
37
30
  };
38
- fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
39
- default: boolean;
40
- } & {
41
- default: boolean;
42
- };
43
- size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
44
- draggable: import("vue-types").VueTypeValidableDef<boolean> & {
45
- default: boolean;
46
- } & {
47
- default: boolean;
48
- };
49
31
  quickClose: import("vue-types").VueTypeValidableDef<boolean> & {
50
32
  default: boolean;
51
33
  } & {
@@ -55,17 +37,6 @@ declare const _default: import("vue").DefineComponent<{
55
37
  default: string | boolean | (() => HTMLElement);
56
38
  };
57
39
  zIndex: import("vue-types").VueTypeDef<string | number>;
58
- maxHeight: import("vue-types").VueTypeValidableDef<string> & {
59
- default: string;
60
- };
61
- direction: import("vue-types").VueTypeValidableDef<string> & {
62
- default: string;
63
- };
64
- title: import("vue-types").VueTypeValidableDef<string> & {
65
- default: string;
66
- } & {
67
- default: string;
68
- };
69
40
  animateType: import("vue-types").VueTypeValidableDef<string> & {
70
41
  default: string;
71
42
  } & {
@@ -75,57 +46,23 @@ declare const _default: import("vue").DefineComponent<{
75
46
  default: "show" | "if";
76
47
  };
77
48
  beforeClose: import("vue-types").VueTypeDef<unknown>;
78
- dialogType: import("vue-types").VueTypeDef<"show" | "process" | "operation" | "confirm">;
79
- multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
80
- default: boolean;
81
- } & {
82
- default: boolean;
83
- };
84
- infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
85
49
  left: import("vue-types").VueTypeValidableDef<string> & {
86
50
  default: string;
87
51
  };
88
52
  top: import("vue-types").VueTypeValidableDef<string> & {
89
53
  default: string;
90
54
  };
91
- }, {
92
- visible: import("vue").Ref<boolean>;
93
- compStyle: import("vue").ComputedRef<{
94
- [x: string]: string | number;
95
- width: string | number;
96
- height: string | number;
97
- minHeigth: string;
98
- display: string;
99
- zIndex: string | number;
100
- left: string;
101
- top: string;
102
- }>;
103
- fullscreenStyle: import("vue").ComputedRef<{
104
- width: string;
105
- height: string;
106
- }>;
107
- handleClickOutSide: (e: MouseEvent) => void;
108
- refRoot: import("vue").Ref<HTMLElement>;
109
- refMask: import("vue").Ref<HTMLElement>;
110
- showMask: boolean;
111
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "shown" | "hidden" | "quick-close" | "quickClose")[], "close" | "shown" | "hidden" | "quick-close" | "quickClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
55
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
56
+ default: string;
57
+ };
58
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "shown" | "quick-close")[], "close" | "hidden" | "shown" | "quick-close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
112
59
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
113
60
  default: boolean;
114
61
  } & {
115
62
  default: boolean;
116
63
  };
117
- width: import("vue-types").VueTypeDef<string | number> & {
118
- default: string | number;
119
- };
120
- height: import("vue-types").VueTypeDef<string | number> & {
121
- default: string | number;
122
- };
123
- extCls: (import("vue-types").VueTypeValidableDef<string> & {
124
- default: string;
125
- }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
126
- default: () => unknown[];
127
- });
128
- scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
64
+ width: import("vue-types").VueTypeDef<string | number>;
65
+ fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
129
66
  default: boolean;
130
67
  } & {
131
68
  default: boolean;
@@ -145,17 +82,6 @@ declare const _default: import("vue").DefineComponent<{
145
82
  } & {
146
83
  default: boolean;
147
84
  };
148
- fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
149
- default: boolean;
150
- } & {
151
- default: boolean;
152
- };
153
- size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
154
- draggable: import("vue-types").VueTypeValidableDef<boolean> & {
155
- default: boolean;
156
- } & {
157
- default: boolean;
158
- };
159
85
  quickClose: import("vue-types").VueTypeValidableDef<boolean> & {
160
86
  default: boolean;
161
87
  } & {
@@ -165,17 +91,6 @@ declare const _default: import("vue").DefineComponent<{
165
91
  default: string | boolean | (() => HTMLElement);
166
92
  };
167
93
  zIndex: import("vue-types").VueTypeDef<string | number>;
168
- maxHeight: import("vue-types").VueTypeValidableDef<string> & {
169
- default: string;
170
- };
171
- direction: import("vue-types").VueTypeValidableDef<string> & {
172
- default: string;
173
- };
174
- title: import("vue-types").VueTypeValidableDef<string> & {
175
- default: string;
176
- } & {
177
- default: string;
178
- };
179
94
  animateType: import("vue-types").VueTypeValidableDef<string> & {
180
95
  default: string;
181
96
  } & {
@@ -185,45 +100,32 @@ declare const _default: import("vue").DefineComponent<{
185
100
  default: "show" | "if";
186
101
  };
187
102
  beforeClose: import("vue-types").VueTypeDef<unknown>;
188
- dialogType: import("vue-types").VueTypeDef<"show" | "process" | "operation" | "confirm">;
189
- multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
190
- default: boolean;
191
- } & {
192
- default: boolean;
193
- };
194
- infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
195
103
  left: import("vue-types").VueTypeValidableDef<string> & {
196
104
  default: string;
197
105
  };
198
106
  top: import("vue-types").VueTypeValidableDef<string> & {
199
107
  default: string;
200
108
  };
109
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
110
+ default: string;
111
+ };
201
112
  }>> & {
202
113
  onClose?: (...args: any[]) => any;
203
- onShown?: (...args: any[]) => any;
204
114
  onHidden?: (...args: any[]) => any;
115
+ onShown?: (...args: any[]) => any;
205
116
  "onQuick-close"?: (...args: any[]) => any;
206
- onQuickClose?: (...args: any[]) => any;
207
117
  }, {
208
- title: string;
209
- width: string | number;
210
- height: string | number;
211
- maxHeight: string;
212
- extCls: string | unknown[];
213
- top: string;
118
+ extCls: string;
214
119
  left: string;
120
+ top: string;
215
121
  isShow: boolean;
216
- draggable: boolean;
217
122
  transfer: string | boolean | HTMLElement;
218
- direction: string;
219
123
  renderDirective: "show" | "if";
220
- quickClose: boolean;
221
- scrollable: boolean;
124
+ fullscreen: boolean;
222
125
  showMask: boolean;
223
126
  closeIcon: boolean;
224
127
  escClose: boolean;
225
- fullscreen: boolean;
128
+ quickClose: boolean;
226
129
  animateType: string;
227
- multiInstance: boolean;
228
130
  }, {}>;
229
131
  export default _default;
@@ -1,82 +1,129 @@
1
1
  @import '../styles/themes/themes.less';
2
2
  @import '../info-box/info-box.less';
3
3
 
4
- .@{bk-prefix}-modal-ctx {
5
- pointer-events: auto;
6
- top: 0px;
7
- left: 0px;
8
-
4
+ .@{bk-prefix}-modal-mask {
5
+ position: fixed;
6
+ top: 0;
7
+ left: 0;
9
8
  width: 100%;
10
9
  height: 100%;
10
+ background-color: rgba(0, 0, 0, 0.6);
11
+ }
11
12
 
12
- &.--show {
13
- position: fixed;
14
- }
15
-
16
- &.--hide {
17
- display: none;
18
- }
19
-
20
- .@{bk-prefix}-modal-ctx-mask {
21
- display: none;
22
- left: 0;
23
- top: 0;
24
- width: 100%;
25
- height: 100%;
26
- background-color: rgba(0,0,0,0.6);
27
-
28
- &.--show {
29
- position: fixed;
30
- display: inherit;
31
- }
32
- }
13
+ .@{bk-prefix}-modal-wrapper {
14
+ position: fixed;
33
15
  }
34
16
 
17
+ .@{bk-prefix}-modal-body {
18
+ height: 100%;
19
+ overflow: hidden;
20
+ background: #fff;
21
+ border-radius: 2px;
22
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
23
+ }
35
24
 
25
+ .@{bk-prefix}-modal-content {
26
+ position: relative;
27
+ max-height: 100vh;
28
+ }
29
+ .@{bk-prefix}-modal-footer {
30
+ position: relative;
31
+ }
36
32
 
37
- .@{bk-prefix}-modal-wrapper {
33
+ .@{bk-prefix}-modal-close {
38
34
  position: absolute;
39
- top: 50%;
40
- left: 50%;
41
- width: 480px;
42
- border-radius: 2px;
43
- // background: #fff;
44
- transform: translate(-50%, -50%);
45
-
46
- .@{bk-prefix}-modal-outside {
47
- position: fixed;
48
- top: 0;
49
- right: 0;
50
- bottom: 0;
51
- left: 0;
35
+ top: 6px;
36
+ right: 6px;
37
+ display: flex;
38
+ width: 32px;
39
+ height: 32px;
40
+ font-size: 18px;
41
+ color: #979ba5;
42
+ cursor: pointer;
43
+ align-items: center;
44
+ justify-content: center;
45
+ border-radius: 50%;
46
+ transition: 0.15s;
47
+
48
+ &:hover {
49
+ background: #f0f1f5;
52
50
  }
51
+ }
53
52
 
54
- &.normal {
55
- width: 480px;
56
- height: 240px;
53
+ .modal-fadein-enter-from {
54
+ opacity: 0;
55
+ .@{bk-prefix}-modal-body {
56
+ transform: translateY(-20px);
57
57
  }
58
+ }
58
59
 
59
- &.small {
60
- width: 400px;
61
- height: 200px;
60
+ .modal-fadein-enter-to {
61
+ opacity: 1;
62
+ .@{bk-prefix}-modal-body {
63
+ transform: translateY(0);
62
64
  }
65
+ }
63
66
 
64
- &.medium {
65
- width: 640px;
66
- height: 400px;
67
+ .modal-fadein-leave-from {
68
+ opacity: 1;
69
+ .@{bk-prefix}-modal-body {
70
+ transform: translateY(0);
67
71
  }
72
+ }
68
73
 
69
- &.large {
70
- width: 960px;
71
- height: 720px;
74
+ .modal-fadein-leave-to {
75
+ opacity: 0;
76
+ .@{bk-prefix}-modal-body {
77
+ transform: translateY(-20px);
72
78
  }
79
+ }
73
80
 
81
+ .modal-fadein-enter-active,
82
+ .modal-fadein-leave-active {
83
+ transition: opacity 0.15s linear;
74
84
  .@{bk-prefix}-modal-body {
75
- height: 100%;
76
- width: 100%;
77
- background: #fff;
78
- box-shadow: 0 4px 12px rgba(0,0,0,.15);
85
+ transition: transform 0.08s linear;
79
86
  }
80
87
  }
81
88
 
89
+ .modal-right-enter-from {
90
+ transform: translateX(100%);
91
+ }
92
+
93
+ .modal-right-enter-to {
94
+ transform: translateX(0);
95
+ }
82
96
 
97
+ .modal-right-leave-from {
98
+ transform: translateX(0);
99
+ }
100
+
101
+ .modal-right-leave-to {
102
+ transform: translateX(100%);
103
+ }
104
+
105
+ .modal-right-enter-active,
106
+ .modal-right-leave-active {
107
+ transition: transform 0.15s ease;
108
+ }
109
+
110
+ .modal-left-enter-from {
111
+ transform: translateX(-100%);
112
+ }
113
+
114
+ .modal-left-enter-to {
115
+ transform: translateX(0);
116
+ }
117
+
118
+ .modal-left-leave-from {
119
+ transform: translateX(0);
120
+ }
121
+
122
+ .modal-left-leave-to {
123
+ transform: translateX(-100%);
124
+ }
125
+
126
+ .modal-left-enter-active,
127
+ .modal-left-leave-active {
128
+ transition: transform 0.15s ease;
129
+ }