bkui-vue 1.0.3-beta.4 → 1.0.3-beta.40

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 (207) hide show
  1. package/dist/index.cjs.js +71 -71
  2. package/dist/index.esm.js +15481 -14247
  3. package/dist/index.umd.js +70 -70
  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/code-diff/code-diff.variable.css +3 -0
  24. package/lib/collapse/collapse.variable.css +3 -0
  25. package/lib/collapse-transition/collapse-transition.variable.css +3 -0
  26. package/lib/color-picker/color-picker.variable.css +3 -0
  27. package/lib/components.js +0 -4
  28. package/lib/config-provider/config-provider.d.ts +3 -0
  29. package/lib/config-provider/config-provider.variable.css +3 -0
  30. package/lib/config-provider/index.d.ts +4 -0
  31. package/lib/config-provider/token.d.ts +1 -0
  32. package/lib/container/container.variable.css +3 -0
  33. package/lib/date-picker/base/month-table.d.ts +2 -2
  34. package/lib/date-picker/date-picker.d.ts +1 -0
  35. package/lib/date-picker/date-picker.variable.css +3 -0
  36. package/lib/date-picker/index.d.ts +3 -0
  37. package/lib/date-picker/index.js +69 -31
  38. package/lib/date-picker/interface.d.ts +1 -1
  39. package/lib/date-picker/time-picker.d.ts +1 -0
  40. package/lib/date-picker/utils.d.ts +4 -0
  41. package/lib/dialog/dialog.css +28 -31
  42. package/lib/dialog/dialog.d.ts +11 -0
  43. package/lib/dialog/dialog.less +18 -17
  44. package/lib/dialog/dialog.variable.css +31 -31
  45. package/lib/dialog/index.d.ts +23 -0
  46. package/lib/dialog/index.js +15 -9
  47. package/lib/dialog/props.d.ts +5 -0
  48. package/lib/dist.index.js +0 -1
  49. package/lib/divider/divider.variable.css +3 -0
  50. package/lib/dropdown/dropdown.css +3 -1
  51. package/lib/dropdown/dropdown.variable.css +6 -1
  52. package/lib/exception/exception.variable.css +3 -0
  53. package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
  54. package/lib/form/form.variable.css +3 -0
  55. package/lib/hooks.js +1 -8
  56. package/lib/icon/image-fill.js +82 -167
  57. package/lib/icon/img-error.js +82 -167
  58. package/lib/icon/img-placehoulder.js +82 -167
  59. package/lib/icon/index.d.ts +1 -0
  60. package/lib/icon/index.js +87 -2427
  61. package/lib/icon/info-line.js +82 -167
  62. package/lib/icon/info.js +82 -167
  63. package/lib/icon/left-shape.js +82 -167
  64. package/lib/icon/left-turn-line.js +82 -167
  65. package/lib/icon/loading.js +82 -167
  66. package/lib/icon/narrow-line.js +82 -167
  67. package/lib/icon/original.js +82 -167
  68. package/lib/icon/pdf-fill.js +82 -167
  69. package/lib/icon/play-shape.js +82 -167
  70. package/lib/icon/plus.js +82 -167
  71. package/lib/icon/ppt-fill.js +82 -167
  72. package/lib/icon/qq.js +82 -167
  73. package/lib/icon/right-shape.js +82 -167
  74. package/lib/icon/right-turn-line.js +82 -167
  75. package/lib/icon/search.js +82 -167
  76. package/lib/icon/share.js +82 -167
  77. package/lib/icon/spinner.js +82 -167
  78. package/lib/icon/success.js +82 -167
  79. package/lib/icon/switcher-loading.js +82 -167
  80. package/lib/icon/text-all.d.ts +4 -0
  81. package/lib/icon/text-all.js +191 -0
  82. package/lib/icon/text-file.js +82 -167
  83. package/lib/icon/text-fill.js +82 -167
  84. package/lib/icon/transfer.js +82 -167
  85. package/lib/icon/tree-application-shape.js +82 -167
  86. package/lib/icon/unfull-screen.js +82 -167
  87. package/lib/icon/unvisible.js +82 -167
  88. package/lib/icon/up-shape.js +82 -167
  89. package/lib/icon/upload.js +82 -167
  90. package/lib/icon/video-fill.js +82 -167
  91. package/lib/icon/warn.js +82 -167
  92. package/lib/icon/weixin-pro.js +82 -167
  93. package/lib/icon/weixin.js +82 -167
  94. package/lib/image/image-viewer.variable.css +3 -0
  95. package/lib/image/image.variable.css +3 -0
  96. package/lib/image/index.js +5 -2
  97. package/lib/index.js +0 -1
  98. package/lib/info-box/index.js +40 -455
  99. package/lib/info-box/info-box.css +6 -11
  100. package/lib/info-box/info-box.d.ts +1 -1
  101. package/lib/info-box/info-box.less +6 -10
  102. package/lib/info-box/info-box.variable.css +9 -11
  103. package/lib/input/index.js +5 -0
  104. package/lib/input/input.variable.css +3 -0
  105. package/lib/link/link.variable.css +3 -0
  106. package/lib/loading/loading.variable.css +3 -0
  107. package/lib/locale/index.js +4 -2
  108. package/lib/locale/lang/en.d.ts +1 -0
  109. package/lib/menu/menu.variable.css +3 -0
  110. package/lib/menu/submenu.variable.css +3 -0
  111. package/lib/message/message.variable.css +3 -0
  112. package/lib/modal/index.d.ts +34 -6
  113. package/lib/modal/index.js +15 -15
  114. package/lib/modal/modal.css +10 -15
  115. package/lib/modal/modal.d.ts +13 -2
  116. package/lib/modal/modal.less +5 -5
  117. package/lib/modal/modal.variable.css +13 -15
  118. package/lib/modal/props.mixin.d.ts +5 -0
  119. package/lib/navigation/navigation.variable.css +3 -0
  120. package/lib/notify/notify.variable.css +3 -0
  121. package/lib/pagination/index.js +2 -1
  122. package/lib/pagination/pagination.variable.css +3 -0
  123. package/lib/plugin-popover/index.d.ts +1 -1
  124. package/lib/plugin-popover/index.js +55 -31
  125. package/lib/pop-confirm/pop-confirm.variable.css +3 -0
  126. package/lib/popover/content.d.ts +1 -1
  127. package/lib/popover/index.js +55 -31
  128. package/lib/popover/plugin-popover.d.ts +4 -1
  129. package/lib/popover/popover.css +3 -1
  130. package/lib/popover/popover.less +4 -1
  131. package/lib/popover/popover.variable.css +6 -1
  132. package/lib/preset.d.ts +2 -0
  133. package/lib/preset.js +14 -20
  134. package/lib/process/process.variable.css +3 -0
  135. package/lib/progress/progress.variable.css +3 -0
  136. package/lib/radio/radio.variable.css +3 -0
  137. package/lib/rate/rate.variable.css +3 -0
  138. package/lib/rate/star.variable.css +3 -0
  139. package/lib/resize-layout/resize-layout.variable.css +3 -0
  140. package/lib/search-select/search-select.variable.css +3 -0
  141. package/lib/select/index.d.ts +68 -6
  142. package/lib/select/index.js +1326 -68
  143. package/lib/select/option.d.ts +3 -1
  144. package/lib/select/pinyin/core.d.ts +14 -0
  145. package/lib/select/pinyin/dict.d.ts +34 -0
  146. package/lib/select/pinyin/index.d.ts +2 -0
  147. package/lib/select/select.css +36 -7
  148. package/lib/select/select.d.ts +28 -2
  149. package/lib/select/select.less +43 -13
  150. package/lib/select/select.variable.css +39 -7
  151. package/lib/select/type.d.ts +2 -3
  152. package/lib/shared/index.js +44 -3
  153. package/lib/shared/utils.d.ts +12 -0
  154. package/lib/sideslider/index.d.ts +29 -6
  155. package/lib/sideslider/index.js +5 -2
  156. package/lib/sideslider/sideslider.d.ts +13 -2
  157. package/lib/sideslider/sideslider.variable.css +3 -0
  158. package/lib/slider/slider.variable.css +3 -0
  159. package/lib/steps/steps.variable.css +3 -0
  160. package/lib/styles/mixins/animate.variable.css +3 -0
  161. package/lib/styles/mixins/popper.variable.css +3 -0
  162. package/lib/styles/mixins/scroll.variable.css +3 -0
  163. package/lib/styles/reset.css +1 -3
  164. package/lib/styles/reset.less +3 -6
  165. package/lib/styles/reset.variable.css +4 -3
  166. package/lib/styles/themes/themes.less +5 -0
  167. package/lib/swiper/swiper.variable.css +3 -0
  168. package/lib/switcher/switcher.variable.css +3 -0
  169. package/lib/tab/tab.variable.css +3 -0
  170. package/lib/table/cache.d.ts +11 -3
  171. package/lib/table/components/table-column.d.ts +111 -5
  172. package/lib/table/index.d.ts +66 -5
  173. package/lib/table/index.js +857 -561
  174. package/lib/table/plugins/head-filter.variable.css +3 -0
  175. package/lib/table/plugins/head-sort.d.ts +7 -0
  176. package/lib/table/plugins/head-sort.variable.css +3 -0
  177. package/lib/table/plugins/settings.variable.css +3 -0
  178. package/lib/table/plugins/use-draggable.d.ts +2 -2
  179. package/lib/table/plugins/use-observer-resize.d.ts +5 -0
  180. package/lib/table/props.d.ts +15 -4
  181. package/lib/table/table.css +6 -12
  182. package/lib/table/table.d.ts +7 -0
  183. package/lib/table/table.less +12 -9
  184. package/lib/table/table.variable.css +9 -12
  185. package/lib/table/use-attributes.d.ts +5 -43
  186. package/lib/table/utils.d.ts +5 -4
  187. package/lib/table-column/index.d.ts +235 -119
  188. package/lib/table-column/index.js +221 -30
  189. package/lib/tag/tag.variable.css +3 -0
  190. package/lib/tag-input/index.d.ts +4 -4
  191. package/lib/tag-input/tag-input.d.ts +2 -2
  192. package/lib/tag-input/tag-input.variable.css +3 -0
  193. package/lib/tag-input/tag-props.d.ts +1 -1
  194. package/lib/tag-input/tag-render.d.ts +1 -1
  195. package/lib/time-picker/index.d.ts +38 -35
  196. package/lib/time-picker/time-picker.variable.css +3 -0
  197. package/lib/timeline/index.d.ts +73 -44
  198. package/lib/timeline/index.js +45 -63
  199. package/lib/timeline/timeline.d.ts +42 -29
  200. package/lib/timeline/timeline.variable.css +3 -0
  201. package/lib/transfer/transfer.variable.css +3 -0
  202. package/lib/tree/tree.variable.css +3 -0
  203. package/lib/upload/upload.variable.css +3 -0
  204. package/lib/virtual-render/index.d.ts +9 -9
  205. package/lib/virtual-render/virtual-render.d.ts +3 -3
  206. package/lib/virtual-render/virtual-render.variable.css +3 -0
  207. package/package.json +3 -2
@@ -17,29 +17,25 @@
17
17
  }
18
18
 
19
19
  .@{bk-prefix}-dialog-header {
20
- padding: 24px 24px 0;
21
-
22
20
  .@{bk-prefix}-dialog-title {
23
- height: 27px;
24
- margin: 15px 0 10px;
21
+ margin-top: 16px;
25
22
  }
26
23
  }
27
24
 
28
25
  .@{bk-prefix}-modal-content {
29
- height: 100%;
30
- max-height: 100%;
31
- min-height: 100%;
32
- padding: 0 50px 10px;
26
+ height: initial;
27
+ max-height: initial;
28
+ min-height: initial;
33
29
  word-break: break-all;
34
30
  .@{bk-prefix}-info-sub-title {
35
- margin-bottom: 10px;
36
31
  text-align: center;
37
32
  word-break: break-all;
38
33
  }
39
34
  }
40
35
 
41
36
  .@{bk-prefix}-modal-footer {
42
- padding: 0 65px 33px;
37
+ height: initial;
38
+ margin-top: 24px;
43
39
  background-color: #fff;
44
40
  border-top: none;
45
41
 
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper {
128
131
  width: 440px;
@@ -136,27 +139,22 @@
136
139
  .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-body {
137
140
  border-radius: 2px;
138
141
  }
139
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header {
140
- padding: 24px 24px 0;
141
- }
142
142
  .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
143
- height: 27px;
144
- margin: 15px 0 10px;
143
+ margin-top: 16px;
145
144
  }
146
145
  .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content {
147
- height: 100%;
148
- max-height: 100%;
149
- min-height: 100%;
150
- padding: 0 50px 10px;
146
+ height: initial;
147
+ max-height: initial;
148
+ min-height: initial;
151
149
  word-break: break-all;
152
150
  }
153
151
  .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content .bk-info-sub-title {
154
- margin-bottom: 10px;
155
152
  text-align: center;
156
153
  word-break: break-all;
157
154
  }
158
155
  .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer {
159
- padding: 0 65px 33px;
156
+ height: initial;
157
+ margin-top: 24px;
160
158
  background-color: #fff;
161
159
  border-top: none;
162
160
  }
@@ -948,6 +948,11 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
948
948
  });
949
949
  });
950
950
  var tooltips = (0,external_vue_namespaceObject.computed)(function () {
951
+ if (showMaxLimit.value && ceilMaxLength.value - modelValueLength.value === 0) {
952
+ return {
953
+ content: t.value.maxlengthLimitTips
954
+ };
955
+ }
951
956
  return props.showOverflowTooltips && isOverflow.value && props.modelValue ? {
952
957
  content: props.modelValue,
953
958
  sameWidth: true
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  @keyframes loading-scale-animate {
128
131
  0% {
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  .bk-link {
128
131
  font-size: var(--font-size-medium);
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  @keyframes loading-scale-animate {
128
131
  0% {
@@ -173,7 +173,8 @@ var en = {
173
173
  uploadLabel: 'Upload Files'
174
174
  },
175
175
  input: {
176
- placeholder: 'Please input'
176
+ placeholder: 'Please input',
177
+ maxlengthLimitTips: 'Reached character limit'
177
178
  },
178
179
  tagInput: {
179
180
  placeholder: 'Please input and press ENTER to finish'
@@ -380,7 +381,8 @@ var zhCn = {
380
381
  uploadLabel: '上传文件'
381
382
  },
382
383
  input: {
383
- placeholder: '请输入'
384
+ placeholder: '请输入',
385
+ maxlengthLimitTips: '已达到字数上限'
384
386
  },
385
387
  tagInput: {
386
388
  placeholder: '请输入并按Enter结束'
@@ -114,6 +114,7 @@ declare const en: {
114
114
  };
115
115
  input: {
116
116
  placeholder: string;
117
+ maxlengthLimitTips: string;
117
118
  };
118
119
  tagInput: {
119
120
  placeholder: string;
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  @keyframes loading-scale-animate {
128
131
  0% {
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  .bk-menu {
128
131
  display: block;
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  .bk-message {
128
131
  position: fixed;
@@ -84,6 +84,11 @@ declare const BkModal: {
84
84
  default: boolean;
85
85
  };
86
86
  infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
87
+ bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
88
+ default: string;
89
+ }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
90
+ default: () => unknown[];
91
+ });
87
92
  left: import("vue-types").VueTypeValidableDef<string> & {
88
93
  default: string;
89
94
  };
@@ -92,8 +97,8 @@ declare const BkModal: {
92
97
  };
93
98
  }>> & {
94
99
  onClose?: (...args: any[]) => any;
95
- onShown?: (...args: any[]) => any;
96
100
  onHidden?: (...args: any[]) => any;
101
+ onShown?: (...args: any[]) => any;
97
102
  "onQuick-close"?: (...args: any[]) => any;
98
103
  onQuickClose?: (...args: any[]) => any;
99
104
  }, {
@@ -116,7 +121,7 @@ declare const BkModal: {
116
121
  refRoot: import("vue").Ref<HTMLElement>;
117
122
  refMask: import("vue").Ref<HTMLElement>;
118
123
  showMask: boolean;
119
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "shown" | "hidden" | "quick-close" | "quickClose")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
124
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "shown" | "quick-close" | "quickClose")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
120
125
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
121
126
  default: boolean;
122
127
  } & {
@@ -200,6 +205,11 @@ declare const BkModal: {
200
205
  default: boolean;
201
206
  };
202
207
  infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
208
+ bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
209
+ default: string;
210
+ }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
211
+ default: () => unknown[];
212
+ });
203
213
  left: import("vue-types").VueTypeValidableDef<string> & {
204
214
  default: string;
205
215
  };
@@ -208,8 +218,8 @@ declare const BkModal: {
208
218
  };
209
219
  }>> & {
210
220
  onClose?: (...args: any[]) => any;
211
- onShown?: (...args: any[]) => any;
212
221
  onHidden?: (...args: any[]) => any;
222
+ onShown?: (...args: any[]) => any;
213
223
  "onQuick-close"?: (...args: any[]) => any;
214
224
  onQuickClose?: (...args: any[]) => any;
215
225
  }, {
@@ -233,6 +243,7 @@ declare const BkModal: {
233
243
  fullscreen: boolean;
234
244
  animateType: string;
235
245
  multiInstance: boolean;
246
+ bodyClass: string | unknown[];
236
247
  }, true, {}, {}, {
237
248
  P: {};
238
249
  B: {};
@@ -324,6 +335,11 @@ declare const BkModal: {
324
335
  default: boolean;
325
336
  };
326
337
  infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
338
+ bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
339
+ default: string;
340
+ }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
341
+ default: () => unknown[];
342
+ });
327
343
  left: import("vue-types").VueTypeValidableDef<string> & {
328
344
  default: string;
329
345
  };
@@ -332,8 +348,8 @@ declare const BkModal: {
332
348
  };
333
349
  }>> & {
334
350
  onClose?: (...args: any[]) => any;
335
- onShown?: (...args: any[]) => any;
336
351
  onHidden?: (...args: any[]) => any;
352
+ onShown?: (...args: any[]) => any;
337
353
  "onQuick-close"?: (...args: any[]) => any;
338
354
  onQuickClose?: (...args: any[]) => any;
339
355
  }, {
@@ -377,6 +393,7 @@ declare const BkModal: {
377
393
  fullscreen: boolean;
378
394
  animateType: string;
379
395
  multiInstance: boolean;
396
+ bodyClass: string | unknown[];
380
397
  }>;
381
398
  __isFragment?: never;
382
399
  __isTeleport?: never;
@@ -465,6 +482,11 @@ declare const BkModal: {
465
482
  default: boolean;
466
483
  };
467
484
  infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
485
+ bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
486
+ default: string;
487
+ }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
488
+ default: () => unknown[];
489
+ });
468
490
  left: import("vue-types").VueTypeValidableDef<string> & {
469
491
  default: string;
470
492
  };
@@ -473,8 +495,8 @@ declare const BkModal: {
473
495
  };
474
496
  }>> & {
475
497
  onClose?: (...args: any[]) => any;
476
- onShown?: (...args: any[]) => any;
477
498
  onHidden?: (...args: any[]) => any;
499
+ onShown?: (...args: any[]) => any;
478
500
  "onQuick-close"?: (...args: any[]) => any;
479
501
  onQuickClose?: (...args: any[]) => any;
480
502
  }, {
@@ -497,7 +519,7 @@ declare const BkModal: {
497
519
  refRoot: import("vue").Ref<HTMLElement>;
498
520
  refMask: import("vue").Ref<HTMLElement>;
499
521
  showMask: boolean;
500
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "shown" | "hidden" | "quick-close" | "quickClose")[], "close" | "shown" | "hidden" | "quick-close" | "quickClose", {
522
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "shown" | "quick-close" | "quickClose")[], "close" | "hidden" | "shown" | "quick-close" | "quickClose", {
501
523
  title: string;
502
524
  width: string | number;
503
525
  height: string | number;
@@ -518,6 +540,7 @@ declare const BkModal: {
518
540
  fullscreen: boolean;
519
541
  animateType: string;
520
542
  multiInstance: boolean;
543
+ bodyClass: string | unknown[];
521
544
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & Readonly<{
522
545
  propsMixin: {
523
546
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
@@ -603,6 +626,11 @@ declare const BkModal: {
603
626
  default: boolean;
604
627
  };
605
628
  infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
629
+ bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
630
+ default: string;
631
+ }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
632
+ default: () => unknown[];
633
+ });
606
634
  left: import("vue-types").VueTypeValidableDef<string> & {
607
635
  default: string;
608
636
  };
@@ -425,7 +425,7 @@ __webpack_require__.d(__webpack_exports__, {
425
425
  ;// CONCATENATED MODULE: external "../shared"
426
426
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
427
427
  var y = x => () => x
428
- const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.dialogTypeUnion, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement, ["isPromise"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isPromise, ["mask"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.mask, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
428
+ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.dialogTypeUnion, ["getFullscreenRoot"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.getFullscreenRoot, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement, ["isPromise"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isPromise, ["mask"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.mask, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
429
429
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
430
430
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
431
431
  try {
@@ -576,7 +576,7 @@ var propsMixin = {
576
576
  // 是否允许点击遮罩关闭弹窗
577
577
  quickClose: shared_namespaceObject.PropTypes.bool.def(true),
578
578
  // 是否显示在body内(即与id#app同级
579
- transfer: shared_namespaceObject.PropTypes.oneOfType([Boolean, String, HTMLElement]).def(false),
579
+ transfer: shared_namespaceObject.PropTypes.oneOfType([Boolean, String, HTMLElement]).def(true),
580
580
  // 弹出层z-index,实际显示的值会自动+1。为了抱证在遮罩上正常显示
581
581
  zIndex: shared_namespaceObject.PropTypes.oneOfType([String, Number]),
582
582
  // 内容区最大高度
@@ -599,6 +599,7 @@ var propsMixin = {
599
599
  multiInstance: shared_namespaceObject.PropTypes.bool.def(true),
600
600
  // info-box
601
601
  infoType: shared_namespaceObject.PropTypes.theme(),
602
+ bodyClass: shared_namespaceObject.PropTypes.string || shared_namespaceObject.PropTypes.array,
602
603
  left: shared_namespaceObject.PropTypes.string,
603
604
  top: shared_namespaceObject.PropTypes.string
604
605
  };
@@ -671,17 +672,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
671
672
  var resolveTransfer = function resolveTransfer() {
672
673
  if (props.transfer) {
673
674
  if (typeof props.transfer === 'boolean') {
674
- teleportTo.value = 'body';
675
+ teleportTo.value = (0,shared_namespaceObject.getFullscreenRoot)();
675
676
  return;
676
677
  }
677
- teleportTo.value = props.transfer;
678
+ teleportTo.value = (0,shared_namespaceObject.getFullscreenRoot)(props.transfer);
678
679
  }
679
680
  };
680
- resolveTransfer();
681
681
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
682
682
  resolveClassName = _usePrefix.resolveClassName;
683
683
  var resolveClosetModal = function resolveClosetModal() {
684
684
  var _refRoot$value;
685
+ resolveTransfer();
685
686
  if (enableTeleport.value) {
686
687
  if (typeof teleportTo.value === 'string') {
687
688
  var target = document.querySelector(teleportTo.value);
@@ -817,19 +818,18 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
817
818
  },
818
819
  render: function render() {
819
820
  var _this$extCls,
821
+ _this$bodyClass,
820
822
  _this$$slots$header,
821
823
  _this$$slots$header2,
822
824
  _this$$slots,
823
- _this$$slots$default,
824
- _this$$slots$default2,
825
- _this$$slots2,
826
825
  _this$$slots$footer,
827
826
  _this$$slots$footer2,
828
- _this$$slots3,
827
+ _this$$slots2,
829
828
  _this$$slots$close,
830
829
  _this$$slots$close2,
831
- _this$$slots4,
830
+ _this$$slots3,
832
831
  _this = this;
832
+ console.log('this.$sltos = ', this.$slots);
833
833
  var _usePrefix2 = (0,config_provider_namespaceObject.usePrefix)(),
834
834
  resolveClassName = _usePrefix2.resolveClassName;
835
835
  var maxHeight = this.maxHeight ? {
@@ -850,7 +850,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
850
850
  zIndex: this.compStyle.zIndex
851
851
  }
852
852
  }, null) : '', (0,external_vue_namespaceObject.createVNode)("div", {
853
- "class": [resolveClassName('modal-wrapper'), (_this$extCls = this.extCls) !== null && _this$extCls !== void 0 ? _this$extCls : '', this.size, this.fullscreen ? 'fullscreen' : ''],
853
+ "class": [resolveClassName('modal-wrapper'), (_this$extCls = this.extCls) !== null && _this$extCls !== void 0 ? _this$extCls : '', (_this$bodyClass = this.bodyClass) !== null && _this$bodyClass !== void 0 ? _this$bodyClass : '', this.size, this.fullscreen ? 'fullscreen' : ''],
854
854
  "style": [this.compStyle, this.fullscreen ? this.fullscreenStyle : '']
855
855
  }, [(0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
856
856
  "name": this.animateType
@@ -860,14 +860,14 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
860
860
  "class": bodyClass
861
861
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
862
862
  "class": resolveClassName('modal-header')
863
- }, [(_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", {
863
+ }, [(_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 : '']), _this.$slots["default"] && (0,external_vue_namespaceObject.createVNode)("div", {
864
864
  "class": resolveClassName('modal-content'),
865
865
  "style": [_this.dialogType === 'show' ? 'padding-bottom: 20px' : '', _objectSpread({}, maxHeight)]
866
- }, [(_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", {
866
+ }, [_this.$slots["default"]()]), _this.dialogType === 'show' ? '' : (0,external_vue_namespaceObject.createVNode)("div", {
867
867
  "class": resolveClassName('modal-footer')
868
- }, [(_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", {
868
+ }, [(_this$$slots$footer = (_this$$slots$footer2 = (_this$$slots2 = _this.$slots).footer) === null || _this$$slots$footer2 === void 0 ? void 0 : _this$$slots$footer2.call(_this$$slots2)) !== null && _this$$slots$footer !== void 0 ? _this$$slots$footer : '']), _this.closeIcon && (0,external_vue_namespaceObject.createVNode)("div", {
869
869
  "class": resolveClassName('modal-close')
870
- }, [(_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 : ''])]) : ''];
870
+ }, [(_this$$slots$close = (_this$$slots$close2 = (_this$$slots3 = _this.$slots).close) === null || _this$$slots$close2 === void 0 ? void 0 : _this$$slots$close2.call(_this$$slots3)) !== null && _this$$slots$close !== void 0 ? _this$$slots$close : ''])]) : ''];
871
871
  }
872
872
  })])]);
873
873
  }
@@ -10,27 +10,22 @@
10
10
  .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-body {
11
11
  border-radius: 2px;
12
12
  }
13
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header {
14
- padding: 24px 24px 0;
15
- }
16
13
  .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
17
- height: 27px;
18
- margin: 15px 0 10px;
14
+ margin-top: 16px;
19
15
  }
20
16
  .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;
17
+ height: initial;
18
+ max-height: initial;
19
+ min-height: initial;
25
20
  word-break: break-all;
26
21
  }
27
22
  .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content .bk-info-sub-title {
28
- margin-bottom: 10px;
29
23
  text-align: center;
30
24
  word-break: break-all;
31
25
  }
32
26
  .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer {
33
- padding: 0 65px 33px;
27
+ height: initial;
28
+ margin-top: 24px;
34
29
  background-color: #fff;
35
30
  border-top: none;
36
31
  }
@@ -38,11 +33,11 @@
38
33
  min-width: 88px;
39
34
  }
40
35
  .bk-modal-ctx {
41
- pointer-events: auto;
42
36
  top: 0px;
43
37
  left: 0px;
44
38
  width: 100%;
45
39
  height: 100%;
40
+ pointer-events: auto;
46
41
  }
47
42
  .bk-modal-ctx.--show {
48
43
  position: fixed;
@@ -51,9 +46,9 @@
51
46
  display: none;
52
47
  }
53
48
  .bk-modal-ctx .bk-modal-ctx-mask {
54
- display: none;
55
- left: 0;
56
49
  top: 0;
50
+ left: 0;
51
+ display: none;
57
52
  width: 100%;
58
53
  height: 100%;
59
54
  background-color: rgba(0, 0, 0, 0.6);
@@ -95,7 +90,7 @@
95
90
  }
96
91
  .bk-modal-wrapper .bk-modal-body {
97
92
  height: 100%;
98
- width: 100%;
93
+ overflow: hidden;
99
94
  background: #fff;
100
95
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
101
96
  }
@@ -82,6 +82,11 @@ declare const _default: import("vue").DefineComponent<{
82
82
  default: boolean;
83
83
  };
84
84
  infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
85
+ bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
86
+ default: string;
87
+ }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
88
+ default: () => unknown[];
89
+ });
85
90
  left: import("vue-types").VueTypeValidableDef<string> & {
86
91
  default: string;
87
92
  };
@@ -108,7 +113,7 @@ declare const _default: import("vue").DefineComponent<{
108
113
  refRoot: import("vue").Ref<HTMLElement>;
109
114
  refMask: import("vue").Ref<HTMLElement>;
110
115
  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<{
116
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "shown" | "quick-close" | "quickClose")[], "close" | "hidden" | "shown" | "quick-close" | "quickClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
112
117
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
113
118
  default: boolean;
114
119
  } & {
@@ -192,6 +197,11 @@ declare const _default: import("vue").DefineComponent<{
192
197
  default: boolean;
193
198
  };
194
199
  infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
200
+ bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
201
+ default: string;
202
+ }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
203
+ default: () => unknown[];
204
+ });
195
205
  left: import("vue-types").VueTypeValidableDef<string> & {
196
206
  default: string;
197
207
  };
@@ -200,8 +210,8 @@ declare const _default: import("vue").DefineComponent<{
200
210
  };
201
211
  }>> & {
202
212
  onClose?: (...args: any[]) => any;
203
- onShown?: (...args: any[]) => any;
204
213
  onHidden?: (...args: any[]) => any;
214
+ onShown?: (...args: any[]) => any;
205
215
  "onQuick-close"?: (...args: any[]) => any;
206
216
  onQuickClose?: (...args: any[]) => any;
207
217
  }, {
@@ -225,5 +235,6 @@ declare const _default: import("vue").DefineComponent<{
225
235
  fullscreen: boolean;
226
236
  animateType: string;
227
237
  multiInstance: boolean;
238
+ bodyClass: string | unknown[];
228
239
  }, {}>;
229
240
  export default _default;
@@ -2,12 +2,12 @@
2
2
  @import '../info-box/info-box.less';
3
3
 
4
4
  .@{bk-prefix}-modal-ctx {
5
- pointer-events: auto;
6
5
  top: 0px;
7
6
  left: 0px;
8
7
 
9
8
  width: 100%;
10
9
  height: 100%;
10
+ pointer-events: auto;
11
11
 
12
12
  &.--show {
13
13
  position: fixed;
@@ -18,12 +18,12 @@
18
18
  }
19
19
 
20
20
  .@{bk-prefix}-modal-ctx-mask {
21
- display: none;
22
- left: 0;
23
21
  top: 0;
22
+ left: 0;
23
+ display: none;
24
24
  width: 100%;
25
25
  height: 100%;
26
- background-color: rgba(0,0,0,0.6);
26
+ background-color: rgba(0,0,0,.6);
27
27
 
28
28
  &.--show {
29
29
  position: fixed;
@@ -73,7 +73,7 @@
73
73
 
74
74
  .@{bk-prefix}-modal-body {
75
75
  height: 100%;
76
- width: 100%;
76
+ overflow: hidden;
77
77
  background: #fff;
78
78
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
79
79
  }