bkui-vue 1.0.3-beta.8 → 2.0.1-beta.1

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 (289) hide show
  1. package/dist/index.cjs.js +71 -73
  2. package/dist/index.esm.js +20956 -18684
  3. package/dist/index.umd.js +71 -73
  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/alert/alert.variable.css +3 -0
  16. package/lib/backtop/backtop.variable.css +3 -0
  17. package/lib/badge/badge.variable.css +3 -0
  18. package/lib/breadcrumb/breadcrumb.variable.css +3 -0
  19. package/lib/button/button.variable.css +3 -0
  20. package/lib/card/card.variable.css +3 -0
  21. package/lib/cascader/cascader.variable.css +3 -0
  22. package/lib/checkbox/checkbox.variable.css +3 -0
  23. package/lib/checkbox/index.js +4 -4
  24. package/lib/code-diff/code-diff.variable.css +3 -0
  25. package/lib/collapse/collapse.css +11 -0
  26. package/lib/collapse/collapse.d.ts +11 -0
  27. package/lib/collapse/collapse.less +15 -1
  28. package/lib/collapse/collapse.variable.css +14 -0
  29. package/lib/collapse/index.d.ts +23 -0
  30. package/lib/collapse/index.js +9 -1
  31. package/lib/collapse/props.d.ts +8 -0
  32. package/lib/collapse-transition/collapse-transition.variable.css +3 -0
  33. package/lib/color-picker/color-picker.variable.css +3 -0
  34. package/lib/components.d.ts +2 -0
  35. package/lib/components.js +62 -505
  36. package/lib/config-provider/config-provider.d.ts +3 -0
  37. package/lib/config-provider/config-provider.variable.css +3 -0
  38. package/lib/config-provider/index.d.ts +4 -0
  39. package/lib/config-provider/token.d.ts +1 -0
  40. package/lib/container/container.variable.css +3 -0
  41. package/lib/date-picker/base/month-table.d.ts +2 -2
  42. package/lib/date-picker/date-picker.d.ts +1 -0
  43. package/lib/date-picker/date-picker.variable.css +3 -0
  44. package/lib/date-picker/index.d.ts +3 -0
  45. package/lib/date-picker/index.js +70 -32
  46. package/lib/date-picker/interface.d.ts +1 -1
  47. package/lib/date-picker/time-picker.d.ts +1 -0
  48. package/lib/date-picker/utils.d.ts +4 -0
  49. package/lib/dialog/dialog.css +176 -150
  50. package/lib/dialog/dialog.d.ts +40 -109
  51. package/lib/dialog/dialog.less +51 -124
  52. package/lib/dialog/dialog.variable.css +179 -150
  53. package/lib/dialog/index.d.ts +99 -263
  54. package/lib/dialog/index.js +244 -246
  55. package/lib/dialog/props.d.ts +10 -35
  56. package/lib/directives/index.js +0 -1
  57. package/lib/dist.index.js +5 -62
  58. package/lib/divider/divider.variable.css +3 -0
  59. package/lib/dropdown/dropdown.css +3 -1
  60. package/lib/dropdown/dropdown.variable.css +6 -1
  61. package/lib/exception/exception.variable.css +3 -0
  62. package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
  63. package/lib/form/form.variable.css +3 -0
  64. package/lib/form/index.js +3 -1
  65. package/lib/hooks.js +1 -48
  66. package/lib/icon/image-fill.js +82 -167
  67. package/lib/icon/img-error.js +82 -167
  68. package/lib/icon/img-placehoulder.js +82 -167
  69. package/lib/icon/index.d.ts +1 -0
  70. package/lib/icon/index.js +87 -2427
  71. package/lib/icon/info-line.js +82 -167
  72. package/lib/icon/info.js +82 -167
  73. package/lib/icon/left-shape.js +82 -167
  74. package/lib/icon/left-turn-line.js +82 -167
  75. package/lib/icon/loading.js +82 -167
  76. package/lib/icon/narrow-line.js +82 -167
  77. package/lib/icon/original.js +82 -167
  78. package/lib/icon/pdf-fill.js +82 -167
  79. package/lib/icon/play-shape.js +82 -167
  80. package/lib/icon/plus.js +82 -167
  81. package/lib/icon/ppt-fill.js +82 -167
  82. package/lib/icon/qq.js +82 -167
  83. package/lib/icon/right-shape.js +82 -167
  84. package/lib/icon/right-turn-line.js +82 -167
  85. package/lib/icon/search.js +82 -167
  86. package/lib/icon/share.js +82 -167
  87. package/lib/icon/spinner.js +82 -167
  88. package/lib/icon/success.js +82 -167
  89. package/lib/icon/switcher-loading.js +82 -167
  90. package/lib/icon/text-all.d.ts +4 -0
  91. package/lib/icon/text-all.js +191 -0
  92. package/lib/icon/text-file.js +82 -167
  93. package/lib/icon/text-fill.js +82 -167
  94. package/lib/icon/transfer.js +82 -167
  95. package/lib/icon/tree-application-shape.js +82 -167
  96. package/lib/icon/unfull-screen.js +82 -167
  97. package/lib/icon/unvisible.js +82 -167
  98. package/lib/icon/up-shape.js +82 -167
  99. package/lib/icon/upload.js +82 -167
  100. package/lib/icon/video-fill.js +82 -167
  101. package/lib/icon/warn.js +82 -167
  102. package/lib/icon/weixin-pro.js +82 -167
  103. package/lib/icon/weixin.js +82 -167
  104. package/lib/image/image-viewer.variable.css +3 -0
  105. package/lib/image/image.variable.css +3 -0
  106. package/lib/image/index.js +5 -2
  107. package/lib/index.js +7 -72
  108. package/lib/info-box/index.d.ts +2 -2
  109. package/lib/info-box/index.js +257 -516
  110. package/lib/info-box/info-box.css +58 -28
  111. package/lib/info-box/info-box.d.ts +18 -16
  112. package/lib/info-box/info-box.less +82 -51
  113. package/lib/info-box/info-box.variable.css +61 -28
  114. package/lib/info-box/render-component.d.ts +4 -0
  115. package/lib/input/index.js +7 -1
  116. package/lib/input/input.variable.css +3 -0
  117. package/lib/link/link.variable.css +3 -0
  118. package/lib/loading/loading.variable.css +3 -0
  119. package/lib/locale/index.js +4 -2
  120. package/lib/locale/lang/en.d.ts +1 -0
  121. package/lib/menu/menu.variable.css +3 -0
  122. package/lib/menu/submenu.variable.css +3 -0
  123. package/lib/message/message.variable.css +3 -0
  124. package/lib/modal/hooks.d.ts +6 -0
  125. package/lib/modal/index.d.ts +41 -309
  126. package/lib/modal/index.js +285 -671
  127. package/lib/modal/mask.d.ts +6 -0
  128. package/lib/modal/modal.css +155 -76
  129. package/lib/modal/modal.d.ts +18 -116
  130. package/lib/modal/modal.less +107 -55
  131. package/lib/modal/modal.variable.css +158 -76
  132. package/lib/modal/props.mixin.d.ts +5 -41
  133. package/lib/navigation/navigation.variable.css +3 -0
  134. package/lib/notify/notify.variable.css +3 -0
  135. package/lib/overflow-title/index.js +46 -52
  136. package/lib/pagination/index.js +2 -1
  137. package/lib/pagination/pagination.variable.css +3 -0
  138. package/lib/plugin-popover/index.d.ts +1 -1
  139. package/lib/plugin-popover/index.js +45 -26
  140. package/lib/pop-confirm/index.js +8 -5
  141. package/lib/pop-confirm/pop-confirm.variable.css +3 -0
  142. package/lib/popover/content.d.ts +1 -1
  143. package/lib/popover/index.js +45 -26
  144. package/lib/popover/plugin-popover.d.ts +4 -1
  145. package/lib/popover/popover.css +3 -1
  146. package/lib/popover/popover.less +4 -1
  147. package/lib/popover/popover.variable.css +6 -1
  148. package/lib/preset.d.ts +2 -0
  149. package/lib/preset.js +18 -64
  150. package/lib/process/process.variable.css +3 -0
  151. package/lib/progress/progress.variable.css +3 -0
  152. package/lib/radio/index.d.ts +29 -0
  153. package/lib/radio/index.js +49 -26
  154. package/lib/radio/radio-button.d.ts +10 -0
  155. package/lib/radio/radio-group.d.ts +10 -0
  156. package/lib/radio/radio.d.ts +10 -0
  157. package/lib/radio/radio.variable.css +3 -0
  158. package/lib/rate/rate.variable.css +3 -0
  159. package/lib/rate/star.variable.css +3 -0
  160. package/lib/resize-layout/index.js +1 -1
  161. package/lib/resize-layout/resize-layout.variable.css +3 -0
  162. package/lib/scrollbar/index.d.ts +15 -0
  163. package/lib/scrollbar/index.js +18763 -0
  164. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
  165. package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
  166. package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
  167. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
  168. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
  169. package/lib/scrollbar/scrollbar.css +75 -0
  170. package/lib/scrollbar/scrollbar.less +94 -0
  171. package/lib/scrollbar/scrollbar.variable.css +204 -0
  172. package/lib/search-select/index.d.ts +375 -16
  173. package/lib/search-select/index.js +701 -366
  174. package/lib/search-select/input.d.ts +14 -5
  175. package/lib/search-select/search-select.css +20 -6
  176. package/lib/search-select/search-select.d.ts +129 -7
  177. package/lib/search-select/search-select.less +16 -12
  178. package/lib/search-select/search-select.variable.css +23 -6
  179. package/lib/search-select/selected.d.ts +116 -6
  180. package/lib/search-select/utils.d.ts +19 -6
  181. package/lib/select/index.d.ts +124 -6
  182. package/lib/select/index.js +1336 -72
  183. package/lib/select/option.d.ts +3 -1
  184. package/lib/select/pinyin/core.d.ts +14 -0
  185. package/lib/select/pinyin/dict.d.ts +34 -0
  186. package/lib/select/pinyin/index.d.ts +2 -0
  187. package/lib/select/select.css +55 -12
  188. package/lib/select/select.d.ts +50 -2
  189. package/lib/select/select.less +69 -19
  190. package/lib/select/select.variable.css +58 -12
  191. package/lib/select/selectTagInput.d.ts +7 -0
  192. package/lib/select/type.d.ts +2 -3
  193. package/lib/shared/index.d.ts +0 -1
  194. package/lib/shared/index.js +70 -50
  195. package/lib/shared/utils.d.ts +12 -0
  196. package/lib/shared/vue-types.d.ts +5 -0
  197. package/lib/sideslider/index.d.ts +55 -185
  198. package/lib/sideslider/index.js +81 -55
  199. package/lib/sideslider/sideslider.css +26 -90
  200. package/lib/sideslider/sideslider.d.ts +25 -87
  201. package/lib/sideslider/sideslider.less +56 -132
  202. package/lib/sideslider/sideslider.variable.css +29 -90
  203. package/lib/slider/index.d.ts +19 -0
  204. package/lib/slider/index.js +45 -5
  205. package/lib/slider/slider.css +14 -0
  206. package/lib/slider/slider.d.ts +9 -0
  207. package/lib/slider/slider.less +15 -0
  208. package/lib/slider/slider.variable.css +17 -0
  209. package/lib/steps/steps.variable.css +3 -0
  210. package/lib/styles/mixins/animate.variable.css +3 -0
  211. package/lib/styles/mixins/popper.variable.css +3 -0
  212. package/lib/styles/mixins/scroll.variable.css +3 -0
  213. package/lib/styles/reset.css +1 -3
  214. package/lib/styles/reset.less +3 -6
  215. package/lib/styles/reset.variable.css +4 -3
  216. package/lib/styles/themes/themes.less +5 -0
  217. package/lib/swiper/swiper.variable.css +3 -0
  218. package/lib/switcher/switcher.variable.css +3 -0
  219. package/lib/tab/tab.variable.css +3 -0
  220. package/lib/table/cache.d.ts +11 -3
  221. package/lib/table/components/table-cell.d.ts +3 -2
  222. package/lib/table/components/table-column.d.ts +7 -17
  223. package/lib/table/const.d.ts +4 -4
  224. package/lib/table/index.d.ts +29 -64
  225. package/lib/table/index.js +18068 -613
  226. package/lib/table/plugins/head-filter.css +8 -4
  227. package/lib/table/plugins/head-filter.less +6 -3
  228. package/lib/table/plugins/head-filter.variable.css +11 -4
  229. package/lib/table/plugins/head-sort.variable.css +3 -0
  230. package/lib/table/plugins/settings.variable.css +3 -0
  231. package/lib/table/plugins/use-active-columns.d.ts +2 -2
  232. package/lib/table/plugins/use-column-template.d.ts +7 -0
  233. package/lib/table/plugins/use-draggable.d.ts +2 -2
  234. package/lib/table/plugins/use-fixed-column.d.ts +1 -1
  235. package/lib/table/plugins/use-observer-resize.d.ts +5 -0
  236. package/lib/table/plugins/use-pagination.d.ts +3 -1
  237. package/lib/table/plugins/use-shift-key.d.ts +11 -0
  238. package/lib/table/props.d.ts +17 -7
  239. package/lib/table/table.css +112 -58
  240. package/lib/table/table.d.ts +11 -0
  241. package/lib/table/table.less +46 -58
  242. package/lib/table/table.variable.css +115 -58
  243. package/lib/table/use-attributes.d.ts +6 -43
  244. package/lib/table/use-column.d.ts +9 -10
  245. package/lib/table/use-common.d.ts +1 -1
  246. package/lib/table/use-render.d.ts +1 -1
  247. package/lib/table/utils.d.ts +1 -1
  248. package/lib/table-column/index.d.ts +92 -266
  249. package/lib/table-column/index.js +24 -98
  250. package/lib/tag/tag.variable.css +3 -0
  251. package/lib/tag-input/index.d.ts +4 -4
  252. package/lib/tag-input/tag-input.d.ts +2 -2
  253. package/lib/tag-input/tag-input.variable.css +3 -0
  254. package/lib/tag-input/tag-props.d.ts +1 -1
  255. package/lib/tag-input/tag-render.d.ts +1 -1
  256. package/lib/time-picker/index.d.ts +38 -35
  257. package/lib/time-picker/time-picker.variable.css +3 -0
  258. package/lib/timeline/index.d.ts +80 -44
  259. package/lib/timeline/index.js +54 -65
  260. package/lib/timeline/timeline.d.ts +46 -29
  261. package/lib/timeline/timeline.variable.css +3 -0
  262. package/lib/transfer/transfer.variable.css +3 -0
  263. package/lib/tree/constant.d.ts +3 -1
  264. package/lib/tree/index.d.ts +44 -0
  265. package/lib/tree/index.js +17548 -25
  266. package/lib/tree/props.d.ts +18 -0
  267. package/lib/tree/tree.css +76 -2
  268. package/lib/tree/tree.d.ts +28 -2
  269. package/lib/tree/tree.variable.css +79 -2
  270. package/lib/tree/use-intersection-observer.d.ts +27 -0
  271. package/lib/tree/use-node-attribute.d.ts +9 -0
  272. package/lib/upload/index.d.ts +12 -0
  273. package/lib/upload/index.js +21 -30
  274. package/lib/upload/props.d.ts +3 -0
  275. package/lib/upload/upload-trigger.d.ts +6 -0
  276. package/lib/upload/upload.d.ts +6 -0
  277. package/lib/upload/upload.variable.css +3 -0
  278. package/lib/virtual-render/index.d.ts +36 -9
  279. package/lib/virtual-render/index.js +295 -80
  280. package/lib/virtual-render/props.d.ts +16 -0
  281. package/lib/virtual-render/use-fix-top.d.ts +2 -7
  282. package/lib/virtual-render/use-scrollbar.d.ts +24 -0
  283. package/lib/virtual-render/v-virtual-render.d.ts +2 -1
  284. package/lib/virtual-render/virtual-render.css +76 -2
  285. package/lib/virtual-render/virtual-render.d.ts +16 -3
  286. package/lib/virtual-render/virtual-render.less +3 -3
  287. package/lib/virtual-render/virtual-render.variable.css +79 -2
  288. package/package.json +3 -2
  289. 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,180 @@
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;
91
+ font-size: 0;
79
92
  }
80
- .bk-modal-wrapper.normal {
81
- width: 480px;
82
- height: 240px;
93
+ .bk-modal-content div {
94
+ font-size: 12px;
83
95
  }
84
- .bk-modal-wrapper.small {
85
- width: 400px;
86
- height: 200px;
96
+ .bk-modal-footer {
97
+ position: relative;
87
98
  }
88
- .bk-modal-wrapper.medium {
89
- width: 640px;
90
- height: 400px;
99
+ .bk-modal-close {
100
+ position: absolute;
101
+ top: 6px;
102
+ right: 6px;
103
+ display: flex;
104
+ width: 32px;
105
+ height: 32px;
106
+ font-size: 18px;
107
+ color: #979ba5;
108
+ cursor: pointer;
109
+ align-items: center;
110
+ justify-content: center;
111
+ border-radius: 50%;
112
+ transition: 0.15s;
91
113
  }
92
- .bk-modal-wrapper.large {
93
- width: 960px;
94
- height: 720px;
114
+ .bk-modal-close:hover {
115
+ background: #f0f1f5;
95
116
  }
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);
117
+ .modal-fadein-enter-from {
118
+ opacity: 0;
119
+ }
120
+ .modal-fadein-enter-from .bk-modal-body {
121
+ transform: translateY(-20px);
122
+ }
123
+ .modal-fadein-enter-to {
124
+ opacity: 1;
125
+ }
126
+ .modal-fadein-enter-to .bk-modal-body {
127
+ transform: translateY(0);
128
+ }
129
+ .modal-fadein-leave-from {
130
+ opacity: 1;
131
+ }
132
+ .modal-fadein-leave-from .bk-modal-body {
133
+ transform: translateY(0);
134
+ }
135
+ .modal-fadein-leave-to {
136
+ opacity: 0;
137
+ }
138
+ .modal-fadein-leave-to .bk-modal-body {
139
+ transform: translateY(-20px);
140
+ }
141
+ .modal-fadein-enter-active,
142
+ .modal-fadein-leave-active {
143
+ transition: opacity 0.15s linear;
144
+ }
145
+ .modal-fadein-enter-active .bk-modal-body,
146
+ .modal-fadein-leave-active .bk-modal-body {
147
+ transition: transform 0.08s linear;
148
+ }
149
+ .modal-right-enter-from {
150
+ transform: translateX(100%);
151
+ }
152
+ .modal-right-enter-to {
153
+ transform: translateX(0);
154
+ }
155
+ .modal-right-leave-from {
156
+ transform: translateX(0);
157
+ }
158
+ .modal-right-leave-to {
159
+ transform: translateX(100%);
160
+ }
161
+ .modal-right-enter-active,
162
+ .modal-right-leave-active {
163
+ transition: transform 0.15s ease;
164
+ }
165
+ .modal-left-enter-from {
166
+ transform: translateX(-100%);
167
+ }
168
+ .modal-left-enter-to {
169
+ transform: translateX(0);
170
+ }
171
+ .modal-left-leave-from {
172
+ transform: translateX(0);
173
+ }
174
+ .modal-left-leave-to {
175
+ transform: translateX(-100%);
176
+ }
177
+ .modal-left-enter-active,
178
+ .modal-left-leave-active {
179
+ transition: transform 0.15s ease;
101
180
  }
@@ -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[];
118
+ extCls: string;
213
119
  top: string;
214
120
  left: 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,134 @@
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
- }
13
+ .@{bk-prefix}-modal-wrapper {
14
+ position: fixed;
15
+ }
19
16
 
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
- }
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);
33
23
  }
34
24
 
25
+ .@{bk-prefix}-modal-content {
26
+ position: relative;
27
+ max-height: 100vh;
28
+ font-size: 0;
35
29
 
30
+ div {
31
+ font-size: 12px;
32
+ }
33
+ }
34
+ .@{bk-prefix}-modal-footer {
35
+ position: relative;
36
+ }
36
37
 
37
- .@{bk-prefix}-modal-wrapper {
38
+ .@{bk-prefix}-modal-close {
38
39
  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;
40
+ top: 6px;
41
+ right: 6px;
42
+ display: flex;
43
+ width: 32px;
44
+ height: 32px;
45
+ font-size: 18px;
46
+ color: #979ba5;
47
+ cursor: pointer;
48
+ align-items: center;
49
+ justify-content: center;
50
+ border-radius: 50%;
51
+ transition: 0.15s;
52
+
53
+ &:hover {
54
+ background: #f0f1f5;
52
55
  }
56
+ }
53
57
 
54
- &.normal {
55
- width: 480px;
56
- height: 240px;
58
+ .modal-fadein-enter-from {
59
+ opacity: 0;
60
+ .@{bk-prefix}-modal-body {
61
+ transform: translateY(-20px);
57
62
  }
63
+ }
58
64
 
59
- &.small {
60
- width: 400px;
61
- height: 200px;
65
+ .modal-fadein-enter-to {
66
+ opacity: 1;
67
+ .@{bk-prefix}-modal-body {
68
+ transform: translateY(0);
62
69
  }
70
+ }
63
71
 
64
- &.medium {
65
- width: 640px;
66
- height: 400px;
72
+ .modal-fadein-leave-from {
73
+ opacity: 1;
74
+ .@{bk-prefix}-modal-body {
75
+ transform: translateY(0);
67
76
  }
77
+ }
68
78
 
69
- &.large {
70
- width: 960px;
71
- height: 720px;
79
+ .modal-fadein-leave-to {
80
+ opacity: 0;
81
+ .@{bk-prefix}-modal-body {
82
+ transform: translateY(-20px);
72
83
  }
84
+ }
73
85
 
86
+ .modal-fadein-enter-active,
87
+ .modal-fadein-leave-active {
88
+ transition: opacity 0.15s linear;
74
89
  .@{bk-prefix}-modal-body {
75
- height: 100%;
76
- width: 100%;
77
- background: #fff;
78
- box-shadow: 0 4px 12px rgba(0,0,0,.15);
90
+ transition: transform 0.08s linear;
79
91
  }
80
92
  }
81
93
 
94
+ .modal-right-enter-from {
95
+ transform: translateX(100%);
96
+ }
97
+
98
+ .modal-right-enter-to {
99
+ transform: translateX(0);
100
+ }
82
101
 
102
+ .modal-right-leave-from {
103
+ transform: translateX(0);
104
+ }
105
+
106
+ .modal-right-leave-to {
107
+ transform: translateX(100%);
108
+ }
109
+
110
+ .modal-right-enter-active,
111
+ .modal-right-leave-active {
112
+ transition: transform 0.15s ease;
113
+ }
114
+
115
+ .modal-left-enter-from {
116
+ transform: translateX(-100%);
117
+ }
118
+
119
+ .modal-left-enter-to {
120
+ transform: translateX(0);
121
+ }
122
+
123
+ .modal-left-leave-from {
124
+ transform: translateX(0);
125
+ }
126
+
127
+ .modal-left-leave-to {
128
+ transform: translateX(-100%);
129
+ }
130
+
131
+ .modal-left-enter-active,
132
+ .modal-left-leave-active {
133
+ transition: transform 0.15s ease;
134
+ }