bkui-vue 0.0.2-beta.98 → 0.0.2-modal-refactor.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 (300) hide show
  1. package/dist/index.cjs.js +48 -48
  2. package/dist/index.esm.js +12578 -12295
  3. package/dist/index.umd.js +34 -34
  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.css +0 -122
  15. package/lib/affix/affix.variable.css +5 -245
  16. package/lib/alert/alert.css +3 -125
  17. package/lib/alert/alert.variable.css +5 -245
  18. package/lib/backtop/backtop.css +3 -125
  19. package/lib/backtop/backtop.variable.css +8 -370
  20. package/lib/badge/badge.css +34 -150
  21. package/lib/badge/badge.less +8 -4
  22. package/lib/badge/badge.variable.css +13 -247
  23. package/lib/breadcrumb/breadcrumb.css +5 -127
  24. package/lib/breadcrumb/breadcrumb.variable.css +10 -372
  25. package/lib/button/button-group.d.ts +2 -2
  26. package/lib/button/button.css +137 -256
  27. package/lib/button/button.d.ts +1 -1
  28. package/lib/button/button.less +98 -93
  29. package/lib/button/button.variable.css +23 -260
  30. package/lib/button/index.d.ts +5 -5
  31. package/lib/card/card.css +11 -133
  32. package/lib/card/card.less +7 -7
  33. package/lib/card/card.variable.css +16 -378
  34. package/lib/cascader/cascader-panel.d.ts +1 -0
  35. package/lib/cascader/cascader.css +26 -148
  36. package/lib/cascader/cascader.d.ts +1 -0
  37. package/lib/cascader/cascader.less +4 -6
  38. package/lib/cascader/cascader.variable.css +31 -393
  39. package/lib/cascader/index.d.ts +4 -0
  40. package/lib/cascader/index.js +31 -14
  41. package/lib/checkbox/checkbox.css +22 -132
  42. package/lib/checkbox/checkbox.d.ts +9 -8
  43. package/lib/checkbox/checkbox.less +15 -1
  44. package/lib/checkbox/checkbox.variable.css +18 -246
  45. package/lib/checkbox/common.d.ts +1 -0
  46. package/lib/checkbox/index.d.ts +15 -12
  47. package/lib/checkbox/index.js +33 -9
  48. package/lib/code-diff/code-diff.css +0 -122
  49. package/lib/code-diff/code-diff.variable.css +5 -245
  50. package/lib/collapse/collapse.css +1 -123
  51. package/lib/collapse/collapse.variable.css +5 -245
  52. package/lib/collapse-transition/collapse-transition.css +0 -122
  53. package/lib/collapse-transition/collapse-transition.variable.css +5 -245
  54. package/lib/color-picker/color-picker.css +0 -122
  55. package/lib/color-picker/color-picker.variable.css +5 -245
  56. package/lib/config-provider/config-provider.css +0 -122
  57. package/lib/config-provider/config-provider.d.ts +18 -0
  58. package/lib/config-provider/config-provider.variable.css +5 -245
  59. package/lib/config-provider/index.d.ts +24 -0
  60. package/lib/config-provider/token.d.ts +6 -0
  61. package/lib/container/container.css +0 -122
  62. package/lib/container/container.variable.css +5 -367
  63. package/lib/date-picker/common.d.ts +2 -0
  64. package/lib/date-picker/date-picker.css +17 -139
  65. package/lib/date-picker/date-picker.d.ts +2 -0
  66. package/lib/date-picker/date-picker.variable.css +5 -245
  67. package/lib/date-picker/index.d.ts +6 -0
  68. package/lib/date-picker/index.js +184 -110
  69. package/lib/date-picker/panel/date.d.ts +2 -2
  70. package/lib/date-picker/panel/time-range.d.ts +17 -0
  71. package/lib/date-picker/panel/time.d.ts +17 -1
  72. package/lib/date-picker/time-picker.d.ts +2 -0
  73. package/lib/dialog/dialog.css +66 -162
  74. package/lib/dialog/dialog.d.ts +16 -7
  75. package/lib/dialog/dialog.less +9 -8
  76. package/lib/dialog/dialog.variable.css +71 -407
  77. package/lib/dialog/index.d.ts +28 -12
  78. package/lib/dialog/index.js +4 -7
  79. package/lib/dialog/props.d.ts +7 -3
  80. package/lib/directives/index.js +15 -4
  81. package/lib/divider/divider.css +3 -125
  82. package/lib/divider/divider.variable.css +5 -245
  83. package/lib/dropdown/dropdown.css +1 -123
  84. package/lib/dropdown/dropdown.variable.css +6 -368
  85. package/lib/dropdown/index.js +2 -2
  86. package/lib/exception/exception.css +0 -122
  87. package/lib/exception/exception.variable.css +5 -245
  88. package/lib/fixed-navbar/fixed-navbar.css +4 -126
  89. package/lib/fixed-navbar/fixed-navbar.variable.css +5 -245
  90. package/lib/form/form.css +2 -123
  91. package/lib/form/form.less +3 -2
  92. package/lib/form/form.variable.css +7 -246
  93. package/lib/icon/index.d.ts +1 -0
  94. package/lib/icon/index.js +58 -25
  95. package/lib/icon/loading.d.ts +4 -0
  96. package/lib/icon/loading.js +276 -0
  97. package/lib/image/image-viewer.css +0 -122
  98. package/lib/image/image-viewer.variable.css +5 -245
  99. package/lib/image/image.css +0 -122
  100. package/lib/image/image.variable.css +5 -367
  101. package/lib/info-box/index.js +4 -7
  102. package/lib/info-box/info-box.css +0 -122
  103. package/lib/info-box/info-box.d.ts +4 -0
  104. package/lib/info-box/info-box.variable.css +5 -245
  105. package/lib/input/index.d.ts +4 -4
  106. package/lib/input/index.js +12 -5
  107. package/lib/input/input.css +84 -190
  108. package/lib/input/input.d.ts +3 -3
  109. package/lib/input/input.less +19 -0
  110. package/lib/input/input.variable.css +89 -435
  111. package/lib/link/link.css +16 -138
  112. package/lib/link/link.variable.css +5 -245
  113. package/lib/loading/index.d.ts +3 -3
  114. package/lib/loading/loading.css +25 -147
  115. package/lib/loading/loading.d.ts +1 -1
  116. package/lib/loading/loading.less +14 -9
  117. package/lib/loading/loading.variable.css +30 -392
  118. package/lib/locale/index.js +14 -2
  119. package/lib/locale/lang/en.d.ts +6 -0
  120. package/lib/menu/menu.css +18 -140
  121. package/lib/menu/menu.variable.css +23 -385
  122. package/lib/menu/submenu.css +0 -122
  123. package/lib/menu/submenu.variable.css +5 -245
  124. package/lib/message/message.css +21 -143
  125. package/lib/message/message.variable.css +5 -245
  126. package/lib/modal/index.d.ts +97 -54
  127. package/lib/modal/index.js +131 -103
  128. package/lib/modal/modal.css +25 -122
  129. package/lib/modal/modal.d.ts +36 -18
  130. package/lib/modal/modal.less +33 -0
  131. package/lib/modal/modal.variable.css +30 -367
  132. package/lib/modal/props.mixin.d.ts +7 -3
  133. package/lib/navigation/navigation.css +2 -124
  134. package/lib/navigation/navigation.variable.css +5 -245
  135. package/lib/notify/notify.css +13 -135
  136. package/lib/notify/notify.less +6 -6
  137. package/lib/notify/notify.variable.css +11 -251
  138. package/lib/overflow-title/components/overflow-title.d.ts +0 -1
  139. package/lib/overflow-title/index.js +2 -178
  140. package/lib/pagination/index.d.ts +4 -4
  141. package/lib/pagination/pagination.css +2 -123
  142. package/lib/pagination/pagination.d.ts +3 -3
  143. package/lib/pagination/pagination.less +1 -0
  144. package/lib/pagination/pagination.variable.css +6 -245
  145. package/lib/plugin-popover/index.js +31 -103
  146. package/lib/pop-confirm/index.d.ts +42 -3
  147. package/lib/pop-confirm/index.js +55 -47
  148. package/lib/pop-confirm/pop-confirm.css +4 -126
  149. package/lib/pop-confirm/pop-confirm.d.ts +14 -1
  150. package/lib/pop-confirm/pop-confirm.less +4 -4
  151. package/lib/pop-confirm/pop-confirm.variable.css +9 -249
  152. package/lib/popover/index.js +31 -103
  153. package/lib/popover/popover.css +1 -123
  154. package/lib/popover/popover.less +1 -1
  155. package/lib/popover/popover.variable.css +6 -246
  156. package/lib/preset.d.ts +12 -0
  157. package/lib/process/process.css +13 -135
  158. package/lib/process/process.variable.css +5 -245
  159. package/lib/progress/index.d.ts +4 -4
  160. package/lib/progress/progress.css +11 -129
  161. package/lib/progress/progress.d.ts +3 -3
  162. package/lib/progress/progress.less +8 -3
  163. package/lib/progress/progress.variable.css +16 -374
  164. package/lib/radio/common.d.ts +1 -0
  165. package/lib/radio/index.d.ts +8 -2
  166. package/lib/radio/index.js +11 -3
  167. package/lib/radio/radio-button.d.ts +4 -3
  168. package/lib/radio/radio-group.d.ts +3 -0
  169. package/lib/radio/radio.css +49 -157
  170. package/lib/radio/radio.d.ts +1 -0
  171. package/lib/radio/radio.less +42 -8
  172. package/lib/radio/radio.variable.css +25 -251
  173. package/lib/rate/index.d.ts +4 -4
  174. package/lib/rate/index.js +22 -6
  175. package/lib/rate/rate.css +0 -122
  176. package/lib/rate/rate.d.ts +2 -2
  177. package/lib/rate/rate.variable.css +5 -245
  178. package/lib/rate/star.css +3 -122
  179. package/lib/rate/star.less +3 -0
  180. package/lib/rate/star.variable.css +8 -245
  181. package/lib/resize-layout/index.d.ts +3 -3
  182. package/lib/resize-layout/resize-layout.css +2 -124
  183. package/lib/resize-layout/resize-layout.d.ts +1 -1
  184. package/lib/resize-layout/resize-layout.less +2 -2
  185. package/lib/resize-layout/resize-layout.variable.css +7 -247
  186. package/lib/search-select/index.js +6 -6
  187. package/lib/search-select/search-select.css +34 -156
  188. package/lib/search-select/search-select.less +9 -9
  189. package/lib/search-select/search-select.variable.css +39 -401
  190. package/lib/select/common.d.ts +3 -1
  191. package/lib/select/index.d.ts +92 -21
  192. package/lib/select/index.js +193 -63
  193. package/lib/select/option.d.ts +1 -0
  194. package/lib/select/select.css +27 -146
  195. package/lib/select/select.d.ts +38 -9
  196. package/lib/select/select.less +3 -0
  197. package/lib/select/select.variable.css +32 -391
  198. package/lib/select/selectTagInput.d.ts +2 -0
  199. package/lib/select/type.d.ts +3 -0
  200. package/lib/shared/index.d.ts +1 -0
  201. package/lib/shared/index.js +50 -5
  202. package/lib/shared/mask.d.ts +11 -0
  203. package/lib/shared/vue-types.d.ts +1 -1
  204. package/lib/sideslider/index.d.ts +28 -12
  205. package/lib/sideslider/index.js +0 -11
  206. package/lib/sideslider/sideslider.css +12 -134
  207. package/lib/sideslider/sideslider.d.ts +16 -7
  208. package/lib/sideslider/sideslider.less +80 -77
  209. package/lib/sideslider/sideslider.variable.css +16 -256
  210. package/lib/slider/index.js +7 -1
  211. package/lib/slider/slider.css +6 -126
  212. package/lib/slider/slider.less +2 -0
  213. package/lib/slider/slider.variable.css +7 -245
  214. package/lib/steps/index.d.ts +4 -4
  215. package/lib/steps/index.js +1 -1
  216. package/lib/steps/steps.css +53 -163
  217. package/lib/steps/steps.d.ts +3 -3
  218. package/lib/steps/steps.less +26 -5
  219. package/lib/steps/steps.variable.css +23 -251
  220. package/lib/styles/index.d.ts +1 -0
  221. package/lib/styles/mixins/animate.css +0 -122
  222. package/lib/styles/mixins/animate.variable.css +5 -245
  223. package/lib/styles/mixins/mixins.css +0 -122
  224. package/lib/styles/mixins/mixins.variable.css +0 -122
  225. package/lib/styles/mixins/popper.css +0 -122
  226. package/lib/styles/mixins/popper.variable.css +5 -245
  227. package/lib/styles/mixins/scroll.css +0 -122
  228. package/lib/styles/mixins/scroll.variable.css +5 -245
  229. package/lib/styles/reset.css +0 -122
  230. package/lib/styles/reset.variable.css +5 -245
  231. package/lib/styles/themes/themes.less +124 -289
  232. package/lib/swiper/swiper.css +0 -122
  233. package/lib/swiper/swiper.variable.css +5 -245
  234. package/lib/switcher/index.d.ts +4 -4
  235. package/lib/switcher/switcher.css +17 -139
  236. package/lib/switcher/switcher.d.ts +3 -3
  237. package/lib/switcher/switcher.variable.css +22 -384
  238. package/lib/tab/tab.css +17 -139
  239. package/lib/tab/tab.variable.css +5 -245
  240. package/lib/table/components/table-column.d.ts +5 -4
  241. package/lib/table/index.d.ts +8 -7
  242. package/lib/table/index.js +877 -630
  243. package/lib/table/plugins/body-empty.d.ts +1 -1
  244. package/lib/table/plugins/head-filter.css +1 -150
  245. package/lib/table/plugins/head-filter.less +2 -34
  246. package/lib/table/plugins/head-filter.variable.css +6 -273
  247. package/lib/table/plugins/head-sort.css +0 -122
  248. package/lib/table/plugins/head-sort.variable.css +5 -245
  249. package/lib/table/plugins/settings.css +0 -122
  250. package/lib/table/plugins/settings.d.ts +0 -7
  251. package/lib/table/plugins/settings.variable.css +5 -245
  252. package/lib/table/plugins/use-head-cell.d.ts +7 -0
  253. package/lib/table/plugins/use-pagination.d.ts +2 -1
  254. package/lib/table/props.d.ts +3 -1
  255. package/lib/table/table.css +207 -337
  256. package/lib/table/table.d.ts +1 -1
  257. package/lib/table/table.less +27 -21
  258. package/lib/table/table.variable.css +212 -582
  259. package/lib/table/use-attributes.d.ts +5 -1
  260. package/lib/table/use-column.d.ts +3 -0
  261. package/lib/table/use-common.d.ts +0 -1
  262. package/lib/table/utils.d.ts +6 -4
  263. package/lib/table-column/index.d.ts +13 -10
  264. package/lib/tag/tag.css +5 -127
  265. package/lib/tag/tag.variable.css +5 -245
  266. package/lib/tag-input/index.js +17 -13
  267. package/lib/tag-input/list-tag-render.d.ts +11 -0
  268. package/lib/tag-input/tag-input.css +18 -140
  269. package/lib/tag-input/tag-input.d.ts +14 -2
  270. package/lib/tag-input/tag-input.variable.css +5 -245
  271. package/lib/time-picker/index.d.ts +6 -0
  272. package/lib/time-picker/time-picker.css +4 -125
  273. package/lib/time-picker/time-picker.less +5 -9
  274. package/lib/time-picker/time-picker.variable.css +9 -248
  275. package/lib/timeline/timeline.css +19 -141
  276. package/lib/timeline/timeline.variable.css +5 -245
  277. package/lib/transfer/transfer.css +21 -143
  278. package/lib/transfer/transfer.less +2 -2
  279. package/lib/transfer/transfer.variable.css +7 -247
  280. package/lib/tree/index.d.ts +3 -3
  281. package/lib/tree/index.js +54 -8
  282. package/lib/tree/tree.css +22 -132
  283. package/lib/tree/tree.d.ts +5 -1
  284. package/lib/tree/tree.variable.css +27 -377
  285. package/lib/tree/use-empty.d.ts +1 -3
  286. package/lib/upload/index.js +2 -2
  287. package/lib/upload/upload.css +27 -149
  288. package/lib/upload/upload.variable.css +32 -394
  289. package/lib/virtual-render/index.js +71 -30
  290. package/lib/virtual-render/use-fix-top.d.ts +18 -0
  291. package/lib/virtual-render/v-virtual-render.d.ts +5 -0
  292. package/lib/virtual-render/virtual-render.css +0 -122
  293. package/lib/virtual-render/virtual-render.variable.css +5 -367
  294. package/package.json +4 -3
  295. package/lib/styles/themes/themes.css +0 -122
  296. package/lib/styles/themes/themes.variable.css +0 -122
  297. package/lib/table/render.d.ts +0 -130
  298. /package/lib/overflow-title/{overflow.css → overflow-title.css} +0 -0
  299. /package/lib/overflow-title/{overflow.less → overflow-title.less} +0 -0
  300. /package/lib/overflow-title/{overflow.variable.css → overflow-title.variable.css} +0 -0
@@ -36,7 +36,7 @@ __webpack_require__.d(__webpack_exports__, {
36
36
  ;// CONCATENATED MODULE: external "../shared"
37
37
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
38
38
  var y = x => () => x
39
- const external_shared_namespaceObject = x({ ["BKPopIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.BKPopIndexManager, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.dialogTypeUnion, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
39
+ const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.bkZIndexManager, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.dialogTypeUnion, ["mask"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.mask, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
40
40
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
41
41
  function _typeof(obj) {
42
42
  "@babel/helpers - typeof";
@@ -85,7 +85,7 @@ function _defineProperty(obj, key, value) {
85
85
  ;// CONCATENATED MODULE: external "vue"
86
86
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
87
87
  var external_vue_y = x => () => x
88
- const external_vue_namespaceObject = external_vue_x({ ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent });
88
+ const external_vue_namespaceObject = external_vue_x({ ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
89
89
  ;// CONCATENATED MODULE: external "../config-provider"
90
90
  var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
91
91
  var external_config_provider_y = x => () => x
@@ -155,7 +155,7 @@ var propsMixin = {
155
155
  // 是否显示在body内(即与id#app同级
156
156
  transfer: external_shared_namespaceObject.PropTypes.oneOfType([Boolean, String, HTMLElement]).def(false),
157
157
  // 弹出层z-index,实际显示的值会自动+1。为了抱证在遮罩上正常显示
158
- zIndex: external_shared_namespaceObject.PropTypes.oneOfType([String, Number]).def('inherit'),
158
+ zIndex: external_shared_namespaceObject.PropTypes.oneOfType([String, Number]),
159
159
  // 内容区最大高度
160
160
  maxHeight: external_shared_namespaceObject.PropTypes.string,
161
161
  // 弹出方向
@@ -175,7 +175,9 @@ var propsMixin = {
175
175
  // 是否允许多个弹框同时存在
176
176
  multiInstance: external_shared_namespaceObject.PropTypes.bool.def(true),
177
177
  // info-box
178
- infoType: external_shared_namespaceObject.PropTypes.theme()
178
+ infoType: external_shared_namespaceObject.PropTypes.theme(),
179
+ left: external_shared_namespaceObject.PropTypes.string,
180
+ top: external_shared_namespaceObject.PropTypes.string
179
181
  };
180
182
  ;// CONCATENATED MODULE: ../../packages/modal/src/modal.tsx
181
183
 
@@ -215,106 +217,119 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
215
217
  name: 'Modal',
216
218
  props: _objectSpread({}, propsMixin),
217
219
  emits: ['quick-close', 'quickClose', 'hidden', 'shown', 'close'],
218
- data: function data() {
219
- return {
220
- visible: false,
221
- closeTimer: null,
222
- bkPopIndexManager: null
223
- };
224
- },
225
- computed: {
226
- dialogWidth: function dialogWidth() {
227
- return /^\d+\.?\d*$/.test("".concat(this.width)) ? "".concat(this.width, "px") : this.width;
228
- },
229
- dialogHeight: function dialogHeight() {
230
- return /^\d+\.?\d*$/.test("".concat(this.height)) ? "".concat(this.height, "px") : this.height;
231
- },
232
- compStyle: function compStyle() {
233
- return {
234
- width: this.dialogWidth,
235
- height: this.dialogHeight,
220
+ setup: function setup(props, ctx) {
221
+ var visible = (0,external_vue_namespaceObject.ref)(false);
222
+ var zIndex = (0,external_vue_namespaceObject.ref)(props.zIndex);
223
+ var refRoot = (0,external_vue_namespaceObject.ref)();
224
+ var refMask = (0,external_vue_namespaceObject.ref)();
225
+ var backgroundColor = (0,external_vue_namespaceObject.ref)('rgba(0,0,0,0.6)');
226
+ var closeTimer;
227
+ var dialogWidth = (0,external_vue_namespaceObject.computed)(function () {
228
+ return /^\d+\.?\d*$/.test("".concat(props.width)) ? "".concat(props.width, "px") : props.width;
229
+ });
230
+ var dialogHeight = (0,external_vue_namespaceObject.computed)(function () {
231
+ return /^\d+\.?\d*$/.test("".concat(props.height)) ? "".concat(props.height, "px") : props.height;
232
+ });
233
+ var compStyle = (0,external_vue_namespaceObject.computed)(function () {
234
+ return _defineProperty({
235
+ width: dialogWidth.value,
236
+ height: dialogHeight.value,
236
237
  minHeigth: "".concat(200, "px"),
237
- display: this.visible ? 'inherit' : 'none',
238
- zIndex: this.zIndex || 'inherit'
239
- };
240
- },
241
- fullscreenStyle: function fullscreenStyle() {
238
+ display: visible.value ? 'inherit' : 'none',
239
+ zIndex: zIndex.value || 'inherit',
240
+ left: props.left,
241
+ top: props.top
242
+ }, props.direction, 0);
243
+ });
244
+ var enableTeleport = (0,external_vue_namespaceObject.ref)(!!props.transfer);
245
+ var teleportTo = (0,external_vue_namespaceObject.ref)('body');
246
+ var resolveTransfer = function resolveTransfer() {
247
+ if (props.transfer) {
248
+ if (typeof props.transfer === 'boolean') {
249
+ teleportTo.value = 'body';
250
+ return;
251
+ }
252
+ teleportTo.value = props.transfer;
253
+ }
254
+ };
255
+ resolveTransfer();
256
+ var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
257
+ resolveClassName = _usePrefix.resolveClassName;
258
+ var resolveClosetModal = function resolveClosetModal() {
259
+ var _refRoot$value;
260
+ var className = ".".concat(resolveClassName('modal-ctx'));
261
+ var parentNode = (_refRoot$value = refRoot.value) === null || _refRoot$value === void 0 || (_refRoot$value = _refRoot$value.parentElement) === null || _refRoot$value === void 0 ? void 0 : _refRoot$value.closest(className);
262
+ if (parentNode) {
263
+ enableTeleport.value = true;
264
+ teleportTo.value = 'body';
265
+ var target = document.querySelector(teleportTo.value);
266
+ target === null || target === void 0 ? void 0 : target.appendChild(refRoot.value);
267
+ }
268
+ };
269
+ var fullscreenStyle = (0,external_vue_namespaceObject.computed)(function () {
242
270
  return {
243
271
  width: "".concat(100, "%"),
244
272
  height: "".concat(100, "%")
245
273
  };
246
- }
247
- },
248
- watch: {
249
- isShow: {
250
- handler: function handler(val) {
251
- var _this = this;
252
- if (val) {
253
- // 避免is-show: false执行覆盖
254
- this.closeTimer && clearTimeout(this.closeTimer);
255
- this.closeTimer = null;
256
- this.visible = val;
257
- } else {
258
- this.closeTimer = setTimeout(function () {
259
- // 直接设为false会失去离开的动画效果,这里延迟设置
260
- _this.$emit('hidden'); // 为false直接触发hidden事件,在上层有200ms的延时
261
- _this.visible = val;
262
- }, 250);
274
+ });
275
+ (0,external_vue_namespaceObject.watch)(function () {
276
+ return props.isShow;
277
+ }, function (val) {
278
+ visible.value = val;
279
+ if (val) {
280
+ closeTimer && clearTimeout(closeTimer);
281
+ closeTimer = null;
282
+ if (!props.zIndex) {
283
+ zIndex.value = external_shared_namespaceObject.bkZIndexManager.getModalNextIndex();
263
284
  }
264
- },
265
- immediate: true
266
- },
267
- // isShow 初始化为 true 的时候,防止直接展示
268
- visible: {
269
- handler: function handler(val) {
270
- var _this2 = this;
271
- if (val) {
272
- this.$nextTick(function () {
273
- // isShow初始化为true的时候,放在nextTick才能获取$el
274
- var hideMaskStyle = {
275
- 'background-color': 'rgba(0,0,0,0)'
276
- };
277
- var appendStyle = _this2.showMask ? {} : hideMaskStyle;
278
- _this2.bkPopIndexManager.show(_this2.$el, _this2.showMask, appendStyle, !!_this2.transfer, _this2.zIndex, function (_e) {
279
- _this2.handleClickOutSide();
280
- });
281
- _this2.$emit('shown');
285
+ (0,external_vue_namespaceObject.nextTick)(function () {
286
+ ctx.emit('shown');
287
+ resolveClosetModal();
288
+ external_shared_namespaceObject.mask.showMask({
289
+ el: refRoot.value,
290
+ mask: refMask.value,
291
+ showMask: props.showMask,
292
+ backgroundColor: backgroundColor.value
282
293
  });
283
- } else {
284
- var _this$bkPopIndexManag, _this$bkPopIndexManag2, _this$bkPopIndexManag3;
285
- (_this$bkPopIndexManag = this.bkPopIndexManager) === null || _this$bkPopIndexManag === void 0 ? void 0 : _this$bkPopIndexManag.removeLastEvent();
286
- (_this$bkPopIndexManag2 = this.bkPopIndexManager) === null || _this$bkPopIndexManag2 === void 0 ? void 0 : _this$bkPopIndexManag2.hide(this.$el, !!this.transfer);
287
- (_this$bkPopIndexManag3 = this.bkPopIndexManager) === null || _this$bkPopIndexManag3 === void 0 ? void 0 : _this$bkPopIndexManag3.destroy();
288
- }
289
- },
294
+ });
295
+ return;
296
+ }
297
+ external_shared_namespaceObject.mask.hideMask({
298
+ el: refRoot.value,
299
+ mask: refMask.value,
300
+ showMask: props.showMask,
301
+ backgroundColor: backgroundColor.value
302
+ });
303
+ closeTimer = setTimeout(function () {
304
+ // 直接设为false会失去离开的动画效果,这里延迟设置
305
+ ctx.emit('hidden'); // 为false直接触发hidden事件,在上层有200ms的延时
306
+ }, 250);
307
+ }, {
290
308
  immediate: true
291
- }
292
- },
293
- mounted: function mounted() {
294
- var _this$$el;
295
- var popConfig = _objectSpread(_objectSpread({}, this.$props), {
296
- transfer: this.transfer === 'parent' ? (_this$$el = this.$el) === null || _this$$el === void 0 ? void 0 : _this$$el.parentElement : this.transfer
297
309
  });
298
- this.bkPopIndexManager = new external_shared_namespaceObject.BKPopIndexManager(popConfig);
299
- },
300
- beforeUnmount: function beforeUnmount() {
301
- if (this.visible) {
302
- var _this$bkPopIndexManag4, _this$bkPopIndexManag5;
303
- (_this$bkPopIndexManag4 = this.bkPopIndexManager) === null || _this$bkPopIndexManag4 === void 0 ? void 0 : _this$bkPopIndexManag4.hide(this.$el);
304
- (_this$bkPopIndexManag5 = this.bkPopIndexManager) === null || _this$bkPopIndexManag5 === void 0 ? void 0 : _this$bkPopIndexManag5.destroy();
305
- }
306
- },
307
- methods: {
308
- handleClickOutSide: function handleClickOutSide() {
309
- if (this.quickClose) {
310
- this.$emit('close');
311
- this.$emit('quick-close', this.$el);
312
- this.$emit('quickClose', this.$el);
310
+ var handleClickOutSide = function handleClickOutSide(e) {
311
+ e.stopImmediatePropagation();
312
+ e.stopPropagation();
313
+ e.preventDefault();
314
+ if (props.quickClose) {
315
+ ctx.emit('close');
316
+ ctx.emit('quick-close');
317
+ ctx.emit('quickClose');
313
318
  }
314
- }
319
+ };
320
+ return {
321
+ visible: visible,
322
+ compStyle: compStyle,
323
+ fullscreenStyle: fullscreenStyle,
324
+ handleClickOutSide: handleClickOutSide,
325
+ refRoot: refRoot,
326
+ refMask: refMask,
327
+ showMask: props.showMask
328
+ };
315
329
  },
316
330
  render: function render() {
317
- var _this$$slots$header,
331
+ var _this$extCls,
332
+ _this$$slots$header,
318
333
  _this$$slots$header2,
319
334
  _this$$slots,
320
335
  _this$$slots$default,
@@ -326,34 +341,47 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
326
341
  _this$$slots$close,
327
342
  _this$$slots$close2,
328
343
  _this$$slots4,
329
- _this3 = this;
330
- var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
331
- resolveClassName = _usePrefix.resolveClassName;
344
+ _this = this;
345
+ var _usePrefix2 = (0,external_config_provider_namespaceObject.usePrefix)(),
346
+ resolveClassName = _usePrefix2.resolveClassName;
332
347
  var maxHeight = this.maxHeight ? {
333
348
  maxHeight: this.maxHeight
334
349
  } : {};
335
350
  var bodyClass = "".concat(resolveClassName('modal-body'), " ").concat(this.animateType === 'slide' ? this.direction : '');
336
351
  return (0,external_vue_namespaceObject.createVNode)("div", {
337
- "class": [resolveClassName('modal-wrapper'), this.extCls, this.size, this.fullscreen ? 'fullscreen' : ''],
352
+ "ref": "refRoot",
353
+ "class": [resolveClassName('modal-ctx'), this.visible ? '--show' : '--hide'],
354
+ "style": {
355
+ zIndex: this.compStyle.zIndex
356
+ }
357
+ }, [this.showMask ? (0,external_vue_namespaceObject.createVNode)("div", {
358
+ "ref": "refMask",
359
+ "class": [resolveClassName('modal-ctx-mask'), this.visible ? '--show' : '--hide'],
360
+ "onClick": this.handleClickOutSide,
361
+ "style": {
362
+ zIndex: this.compStyle.zIndex
363
+ }
364
+ }, null) : '', (0,external_vue_namespaceObject.createVNode)("div", {
365
+ "class": [resolveClassName('modal-wrapper'), (_this$extCls = this.extCls) !== null && _this$extCls !== void 0 ? _this$extCls : '', this.size, this.fullscreen ? 'fullscreen' : ''],
338
366
  "style": [this.compStyle, this.fullscreen ? this.fullscreenStyle : '']
339
367
  }, [(0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
340
368
  "name": this.animateType
341
369
  }, {
342
370
  "default": function _default() {
343
- return [_this3.isShow ? (0,external_vue_namespaceObject.createVNode)("div", {
371
+ return [_this.visible ? (0,external_vue_namespaceObject.createVNode)("div", {
344
372
  "class": bodyClass
345
373
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
346
374
  "class": resolveClassName('modal-header')
347
- }, [(_this$$slots$header = (_this$$slots$header2 = (_this$$slots = _this3.$slots).header) === null || _this$$slots$header2 === void 0 ? void 0 : _this$$slots$header2.call(_this$$slots)) !== null && _this$$slots$header !== void 0 ? _this$$slots$header : '']), (0,external_vue_namespaceObject.createVNode)("div", {
375
+ }, [(_this$$slots$header = (_this$$slots$header2 = (_this$$slots = _this.$slots).header) === null || _this$$slots$header2 === void 0 ? void 0 : _this$$slots$header2.call(_this$$slots)) !== null && _this$$slots$header !== void 0 ? _this$$slots$header : '']), (0,external_vue_namespaceObject.createVNode)("div", {
348
376
  "class": resolveClassName('modal-content'),
349
- "style": [_this3.dialogType === 'show' ? 'padding-bottom: 20px' : '', _objectSpread({}, maxHeight)]
350
- }, [(_this$$slots$default = (_this$$slots$default2 = (_this$$slots2 = _this3.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots2)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : '']), _this3.dialogType === 'show' ? '' : (0,external_vue_namespaceObject.createVNode)("div", {
377
+ "style": [_this.dialogType === 'show' ? 'padding-bottom: 20px' : '', _objectSpread({}, maxHeight)]
378
+ }, [(_this$$slots$default = (_this$$slots$default2 = (_this$$slots2 = _this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots2)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : '']), _this.dialogType === 'show' ? '' : (0,external_vue_namespaceObject.createVNode)("div", {
351
379
  "class": resolveClassName('modal-footer')
352
- }, [(_this$$slots$footer = (_this$$slots$footer2 = (_this$$slots3 = _this3.$slots).footer) === null || _this$$slots$footer2 === void 0 ? void 0 : _this$$slots$footer2.call(_this$$slots3)) !== null && _this$$slots$footer !== void 0 ? _this$$slots$footer : '']), _this3.closeIcon && (0,external_vue_namespaceObject.createVNode)("div", {
380
+ }, [(_this$$slots$footer = (_this$$slots$footer2 = (_this$$slots3 = _this.$slots).footer) === null || _this$$slots$footer2 === void 0 ? void 0 : _this$$slots$footer2.call(_this$$slots3)) !== null && _this$$slots$footer !== void 0 ? _this$$slots$footer : '']), _this.closeIcon && (0,external_vue_namespaceObject.createVNode)("div", {
353
381
  "class": resolveClassName('modal-close')
354
- }, [(_this$$slots$close = (_this$$slots$close2 = (_this$$slots4 = _this3.$slots).close) === null || _this$$slots$close2 === void 0 ? void 0 : _this$$slots$close2.call(_this$$slots4)) !== null && _this$$slots$close !== void 0 ? _this$$slots$close : ''])]) : ''];
382
+ }, [(_this$$slots$close = (_this$$slots$close2 = (_this$$slots4 = _this.$slots).close) === null || _this$$slots$close2 === void 0 ? void 0 : _this$$slots$close2.call(_this$$slots4)) !== null && _this$$slots$close !== void 0 ? _this$$slots$close : ''])]) : ''];
355
383
  }
356
- })]);
384
+ })])]);
357
385
  }
358
386
  }));
359
387
  ;// CONCATENATED MODULE: ../../packages/modal/src/index.ts
@@ -1,125 +1,3 @@
1
- :root {
2
- --bk-prefix: bk;
3
- --popover-max-height: 216px;
4
- --primary-color: #3a84ff;
5
- --success-color: #2dcb56;
6
- --warning-color: #ff9c01;
7
- --danger-color: #ea3636;
8
- --default-color: #63656e;
9
- --gray-color: #979ba5;
10
- --light-gray: #c4c6cc;
11
- --white-color: white;
12
- --whitesmoke-color: #fafbfd;
13
- --disable-color: #dcdee5;
14
- --font-size-base: 12px;
15
- --font-size-medium: 14px;
16
- --font-size-large: 16px;
17
- --line-height-base: 16px;
18
- --line-height-medium: 16px;
19
- --line-height-large: 18px;
20
- --component-size-small: 26px;
21
- --component-size-base: 32px;
22
- --component-size-large: 40px;
23
- --border-width-base: 1px;
24
- --border-style-base: solid;
25
- --border-radius-base: 2px;
26
- --border-style-color: var(--light-gray);
27
- --input-disabled-bg: #fafbfd;
28
- --input-disabled-border: var(--disable-color);
29
- --input-height-base: var(--component-size-base);
30
- --input-color: var(--default-color);
31
- --input-bg: white;
32
- --input-border-color: var(--light-gray);
33
- --input-broder-radius: 3px;
34
- --input-shadow-color: #a3c5fd;
35
- --input-horizontal-padding: 10px;
36
- --input-block-color: #f5f7fa;
37
- --input-block-hover-color: #eaebf0;
38
- --input-icon-size: var(--font-size-medium);
39
- --input-maxlength-color: #979ba5;
40
- --button-primary-hover-color: #5594fa;
41
- --button-danger-hover-color: #ff5656;
42
- --button-success-hover-color: #45e35f;
43
- --button-warning-hover-color: #ffb848;
44
- --button-default-hover-border-color: #979ba5;
45
- --button-primary-active-color: #2c77f4;
46
- --button-danger-active-color: #db2626;
47
- --button-success-active-color: #1ab943;
48
- --button-warning-active-color: #eb9000;
49
- --button-selected-bg-color: #e1ecff;
50
- --button-disabled-selected-bg-color: #f0f1f5;
51
- --radio-font-color: #63656e;
52
- --radio-active-color: #3a84ff;
53
- --radio-hover-border-color: #979ba5;
54
- --radio-disabled-border: #dcdee5;
55
- --radio-disabled-font-color: #c4c6cc;
56
- --radio-disabled-checked-bg: #a3c5fd;
57
- --radio-button-checked-bg: #e1ecff;
58
- --radio-button-disabled-checked-bg: #fafbfd;
59
- --checkbox-disabled-checked-bg: #a3c5fd;
60
- --fixed-navbar-background: #fff;
61
- --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
62
- --switch-default-color: #fff;
63
- --switch-grey-color: #c4c6cc;
64
- --breadcrumb-black-color: #979ba5;
65
- --breadcrumb-primary-hover-color: #0082ff;
66
- --breadcrumb-fn-main-color: #63656e;
67
- --link-default-hover-color: #979ba5;
68
- --link-primary-hover-color: #699df4;
69
- --link-success-hover-color: #45e35f;
70
- --link-warning-hover-color: #ffb848;
71
- --link-danger-hover-color: #ff5656;
72
- --link-default-disabled-color: #dcdee5;
73
- --link-primary-disabled-color: #a3c5fd;
74
- --link-success-disabled-color: #94f5a4;
75
- --link-warning-disabled-color: #ffd695;
76
- --link-danger-disabled-color: #fd9c9c;
77
- --message-color: var(--default-color);
78
- --message-primary-bg-color: #f0f8ff;
79
- --message-primary-border-color: #e1ecff;
80
- --message-primary-shadow-color: #e1e8f4;
81
- --message-warning-bg-color: #fff4e2;
82
- --message-warning-border-color: #ffe8c3;
83
- --message-warning-shadow-color: #ede6db;
84
- --message-success-bg-color: #f2fff4;
85
- --message-success-border-color: #dcffe2;
86
- --message-success-shadow-color: #cef0d7;
87
- --message-danger-bg-color: #ffeded;
88
- --message-danger-border-color: #ffdddd;
89
- --message-danger-shadow-color: #f6dada;
90
- --slider-default-bg: #dcdee5;
91
- --slider-disable-bar-bg: #979ba5;
92
- --menu-bg-color: #182132;
93
- --submenu-bg-color: #151d2c;
94
- --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
95
- --menu-color: #96a2b9;
96
- --menu-group-color: var(--default-color);
97
- --menu-width: 260px;
98
- --menu-collapse-width: 60px;
99
- --menu-active-color: white;
100
- --nav-header-bg-color: #182132;
101
- --nav-bg-color: #182132;
102
- --date-picker-disabled-bg: #fafbfd;
103
- --date-picker-dropdown-mb: 4px;
104
- --date-picker-dropdown-bg: #fff;
105
- --table-bg-color: var(--white-color);
106
- --table-border-color: #dcdee5;
107
- --table-head-bg-color: #fafbfd;
108
- --table-head-font-color: #313238;
109
- --table-body-font-color: #63656E;
110
- --table-row-hover-bg-color: #f5f7fa;
111
- --table-row-active-bg-color: #f0f1f5;
112
- --cascader-panel-border-color: #dcdee5;
113
- --cascader-panel-hover: #f5f7fa;
114
- --cascader-panel-active: #e1ecff;
115
- --cascader-panel-disabled-bg: #fff;
116
- --search-select-focus-border-color: var(--primary-color);
117
- --search-select-focus-color: #3c96ff;
118
- --search-select-font-color: var(--default-color);
119
- --search-select-placeholder-color: var(--light-gray);
120
- --search-select-message-color: var(--danger-color);
121
- --search-select-menu-border-color: var(--disable-color);
122
- }
123
1
  .bk-modal-wrapper.bk-info-wrapper {
124
2
  width: 440px;
125
3
  }
@@ -159,6 +37,31 @@
159
37
  .bk-modal-wrapper.bk-info-wrapper .bk-modal-footer .bk-dialog-footer button {
160
38
  min-width: 88px;
161
39
  }
40
+ .bk-modal-ctx {
41
+ pointer-events: auto;
42
+ top: 0px;
43
+ left: 0px;
44
+ width: 100%;
45
+ height: 100%;
46
+ }
47
+ .bk-modal-ctx.--show {
48
+ position: fixed;
49
+ }
50
+ .bk-modal-ctx.--hide {
51
+ display: none;
52
+ }
53
+ .bk-modal-ctx .bk-modal-ctx-mask {
54
+ display: none;
55
+ left: 0;
56
+ top: 0;
57
+ width: 100%;
58
+ height: 100%;
59
+ background-color: rgba(0, 0, 0, 0.6);
60
+ }
61
+ .bk-modal-ctx .bk-modal-ctx-mask.--show {
62
+ position: fixed;
63
+ display: inherit;
64
+ }
162
65
  .bk-modal-wrapper {
163
66
  position: absolute;
164
67
  top: 50%;
@@ -54,9 +54,7 @@ declare const _default: import("vue").DefineComponent<{
54
54
  transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
55
55
  default: string | boolean | (() => HTMLElement);
56
56
  };
57
- zIndex: import("vue-types").VueTypeDef<string | number> & {
58
- default: string | number;
59
- };
57
+ zIndex: import("vue-types").VueTypeDef<string | number>;
60
58
  maxHeight: import("vue-types").VueTypeValidableDef<string> & {
61
59
  default: string;
62
60
  };
@@ -84,18 +82,33 @@ declare const _default: import("vue").DefineComponent<{
84
82
  default: boolean;
85
83
  };
86
84
  infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
87
- }, unknown, {
88
- visible: boolean;
89
- closeTimer: any;
90
- bkPopIndexManager: any;
91
- }, {
92
- dialogWidth(): String | Number;
93
- dialogHeight(): String | Number;
94
- compStyle(): any;
95
- fullscreenStyle(): any;
85
+ left: import("vue-types").VueTypeValidableDef<string> & {
86
+ default: string;
87
+ };
88
+ top: import("vue-types").VueTypeValidableDef<string> & {
89
+ default: string;
90
+ };
96
91
  }, {
97
- handleClickOutSide(): void;
98
- }, 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<{
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<{
99
112
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
100
113
  default: boolean;
101
114
  } & {
@@ -151,9 +164,7 @@ declare const _default: import("vue").DefineComponent<{
151
164
  transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
152
165
  default: string | boolean | (() => HTMLElement);
153
166
  };
154
- zIndex: import("vue-types").VueTypeDef<string | number> & {
155
- default: string | number;
156
- };
167
+ zIndex: import("vue-types").VueTypeDef<string | number>;
157
168
  maxHeight: import("vue-types").VueTypeValidableDef<string> & {
158
169
  default: string;
159
170
  };
@@ -181,6 +192,12 @@ declare const _default: import("vue").DefineComponent<{
181
192
  default: boolean;
182
193
  };
183
194
  infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
195
+ left: import("vue-types").VueTypeValidableDef<string> & {
196
+ default: string;
197
+ };
198
+ top: import("vue-types").VueTypeValidableDef<string> & {
199
+ default: string;
200
+ };
184
201
  }>> & {
185
202
  onClose?: (...args: any[]) => any;
186
203
  onShown?: (...args: any[]) => any;
@@ -193,8 +210,9 @@ declare const _default: import("vue").DefineComponent<{
193
210
  height: string | number;
194
211
  maxHeight: string;
195
212
  extCls: string | unknown[];
213
+ top: string;
214
+ left: string;
196
215
  isShow: boolean;
197
- zIndex: string | number;
198
216
  draggable: boolean;
199
217
  transfer: string | boolean | HTMLElement;
200
218
  showMask: boolean;
@@ -1,6 +1,39 @@
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
+
9
+ width: 100%;
10
+ height: 100%;
11
+
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
+ }
33
+ }
34
+
35
+
36
+
4
37
  .@{bk-prefix}-modal-wrapper {
5
38
  position: absolute;
6
39
  top: 50%;