bkui-vue 1.0.3-beta.7 → 1.0.3-beta.70

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 (230) hide show
  1. package/dist/index.cjs.js +148 -150
  2. package/dist/index.esm.js +17965 -16537
  3. package/dist/index.umd.js +148 -150
  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.variable.css +3 -0
  26. package/lib/collapse-transition/collapse-transition.variable.css +3 -0
  27. package/lib/color-picker/color-picker.variable.css +3 -0
  28. package/lib/components.d.ts +1 -0
  29. package/lib/components.js +2 -5
  30. package/lib/config-provider/config-provider.d.ts +3 -0
  31. package/lib/config-provider/config-provider.variable.css +3 -0
  32. package/lib/config-provider/index.d.ts +4 -0
  33. package/lib/config-provider/token.d.ts +1 -0
  34. package/lib/container/container.variable.css +3 -0
  35. package/lib/date-picker/base/month-table.d.ts +2 -2
  36. package/lib/date-picker/date-picker.d.ts +1 -0
  37. package/lib/date-picker/date-picker.variable.css +3 -0
  38. package/lib/date-picker/index.d.ts +3 -0
  39. package/lib/date-picker/index.js +70 -32
  40. package/lib/date-picker/interface.d.ts +1 -1
  41. package/lib/date-picker/time-picker.d.ts +1 -0
  42. package/lib/date-picker/utils.d.ts +4 -0
  43. package/lib/dialog/dialog.css +93 -122
  44. package/lib/dialog/dialog.d.ts +39 -14
  45. package/lib/dialog/dialog.less +92 -98
  46. package/lib/dialog/dialog.variable.css +96 -122
  47. package/lib/dialog/index.d.ts +81 -30
  48. package/lib/dialog/index.js +146 -124
  49. package/lib/dialog/props.d.ts +18 -6
  50. package/lib/directives/index.js +0 -1
  51. package/lib/dist.index.js +0 -1
  52. package/lib/divider/divider.variable.css +3 -0
  53. package/lib/dropdown/dropdown.css +3 -1
  54. package/lib/dropdown/dropdown.variable.css +6 -1
  55. package/lib/exception/exception.variable.css +3 -0
  56. package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
  57. package/lib/form/form.variable.css +3 -0
  58. package/lib/form/index.js +3 -1
  59. package/lib/hooks.js +1 -8
  60. package/lib/icon/image-fill.js +82 -167
  61. package/lib/icon/img-error.js +82 -167
  62. package/lib/icon/img-placehoulder.js +82 -167
  63. package/lib/icon/index.d.ts +1 -0
  64. package/lib/icon/index.js +87 -2427
  65. package/lib/icon/info-line.js +82 -167
  66. package/lib/icon/info.js +82 -167
  67. package/lib/icon/left-shape.js +82 -167
  68. package/lib/icon/left-turn-line.js +82 -167
  69. package/lib/icon/loading.js +82 -167
  70. package/lib/icon/narrow-line.js +82 -167
  71. package/lib/icon/original.js +82 -167
  72. package/lib/icon/pdf-fill.js +82 -167
  73. package/lib/icon/play-shape.js +82 -167
  74. package/lib/icon/plus.js +82 -167
  75. package/lib/icon/ppt-fill.js +82 -167
  76. package/lib/icon/qq.js +82 -167
  77. package/lib/icon/right-shape.js +82 -167
  78. package/lib/icon/right-turn-line.js +82 -167
  79. package/lib/icon/search.js +82 -167
  80. package/lib/icon/share.js +82 -167
  81. package/lib/icon/spinner.js +82 -167
  82. package/lib/icon/success.js +82 -167
  83. package/lib/icon/switcher-loading.js +82 -167
  84. package/lib/icon/text-all.d.ts +4 -0
  85. package/lib/icon/text-all.js +191 -0
  86. package/lib/icon/text-file.js +82 -167
  87. package/lib/icon/text-fill.js +82 -167
  88. package/lib/icon/transfer.js +82 -167
  89. package/lib/icon/tree-application-shape.js +82 -167
  90. package/lib/icon/unfull-screen.js +82 -167
  91. package/lib/icon/unvisible.js +82 -167
  92. package/lib/icon/up-shape.js +82 -167
  93. package/lib/icon/upload.js +82 -167
  94. package/lib/icon/video-fill.js +82 -167
  95. package/lib/icon/warn.js +82 -167
  96. package/lib/icon/weixin-pro.js +82 -167
  97. package/lib/icon/weixin.js +82 -167
  98. package/lib/image/image-viewer.variable.css +3 -0
  99. package/lib/image/image.variable.css +3 -0
  100. package/lib/image/index.js +5 -2
  101. package/lib/index.js +0 -1
  102. package/lib/info-box/index.js +41 -455
  103. package/lib/info-box/info-box.css +6 -32
  104. package/lib/info-box/info-box.d.ts +1 -1
  105. package/lib/info-box/info-box.less +16 -47
  106. package/lib/info-box/info-box.variable.css +9 -32
  107. package/lib/input/index.js +5 -0
  108. package/lib/input/input.variable.css +3 -0
  109. package/lib/link/link.variable.css +3 -0
  110. package/lib/loading/loading.variable.css +3 -0
  111. package/lib/locale/index.js +4 -2
  112. package/lib/locale/lang/en.d.ts +1 -0
  113. package/lib/menu/menu.variable.css +3 -0
  114. package/lib/menu/submenu.variable.css +3 -0
  115. package/lib/message/message.variable.css +3 -0
  116. package/lib/modal/hooks.d.ts +6 -0
  117. package/lib/modal/index.d.ts +100 -52
  118. package/lib/modal/index.js +173 -74
  119. package/lib/modal/modal.css +41 -65
  120. package/lib/modal/modal.d.ts +40 -17
  121. package/lib/modal/modal.less +50 -57
  122. package/lib/modal/modal.variable.css +44 -65
  123. package/lib/modal/props.mixin.d.ts +12 -0
  124. package/lib/navigation/navigation.variable.css +3 -0
  125. package/lib/notify/notify.variable.css +3 -0
  126. package/lib/pagination/index.js +2 -1
  127. package/lib/pagination/pagination.variable.css +3 -0
  128. package/lib/plugin-popover/index.d.ts +1 -1
  129. package/lib/plugin-popover/index.js +45 -26
  130. package/lib/pop-confirm/index.js +8 -5
  131. package/lib/pop-confirm/pop-confirm.variable.css +3 -0
  132. package/lib/popover/content.d.ts +1 -1
  133. package/lib/popover/index.js +45 -26
  134. package/lib/popover/plugin-popover.d.ts +4 -1
  135. package/lib/popover/popover.css +3 -1
  136. package/lib/popover/popover.less +4 -1
  137. package/lib/popover/popover.variable.css +6 -1
  138. package/lib/preset.d.ts +2 -0
  139. package/lib/preset.js +14 -20
  140. package/lib/process/process.variable.css +3 -0
  141. package/lib/progress/progress.variable.css +3 -0
  142. package/lib/radio/index.js +5 -5
  143. package/lib/radio/radio.variable.css +3 -0
  144. package/lib/rate/rate.variable.css +3 -0
  145. package/lib/rate/star.variable.css +3 -0
  146. package/lib/resize-layout/index.js +1 -1
  147. package/lib/resize-layout/resize-layout.variable.css +3 -0
  148. package/lib/search-select/index.d.ts +375 -16
  149. package/lib/search-select/index.js +701 -366
  150. package/lib/search-select/input.d.ts +14 -5
  151. package/lib/search-select/search-select.css +20 -6
  152. package/lib/search-select/search-select.d.ts +129 -7
  153. package/lib/search-select/search-select.less +16 -12
  154. package/lib/search-select/search-select.variable.css +23 -6
  155. package/lib/search-select/selected.d.ts +116 -6
  156. package/lib/search-select/utils.d.ts +19 -6
  157. package/lib/select/index.d.ts +143 -6
  158. package/lib/select/index.js +1355 -78
  159. package/lib/select/option.d.ts +3 -1
  160. package/lib/select/pinyin/core.d.ts +14 -0
  161. package/lib/select/pinyin/dict.d.ts +34 -0
  162. package/lib/select/pinyin/index.d.ts +2 -0
  163. package/lib/select/select.css +55 -12
  164. package/lib/select/select.d.ts +59 -2
  165. package/lib/select/select.less +69 -19
  166. package/lib/select/select.variable.css +58 -12
  167. package/lib/select/selectTagInput.d.ts +7 -0
  168. package/lib/select/type.d.ts +2 -3
  169. package/lib/shared/index.js +67 -3
  170. package/lib/shared/utils.d.ts +12 -0
  171. package/lib/shared/vue-types.d.ts +5 -0
  172. package/lib/sideslider/index.d.ts +55 -9
  173. package/lib/sideslider/index.js +26 -25
  174. package/lib/sideslider/sideslider.css +51 -46
  175. package/lib/sideslider/sideslider.d.ts +25 -3
  176. package/lib/sideslider/sideslider.less +108 -104
  177. package/lib/sideslider/sideslider.variable.css +54 -46
  178. package/lib/slider/slider.variable.css +3 -0
  179. package/lib/steps/steps.variable.css +3 -0
  180. package/lib/styles/mixins/animate.variable.css +3 -0
  181. package/lib/styles/mixins/popper.variable.css +3 -0
  182. package/lib/styles/mixins/scroll.variable.css +3 -0
  183. package/lib/styles/reset.css +1 -3
  184. package/lib/styles/reset.less +3 -6
  185. package/lib/styles/reset.variable.css +4 -3
  186. package/lib/styles/themes/themes.less +5 -0
  187. package/lib/swiper/swiper.variable.css +3 -0
  188. package/lib/switcher/switcher.variable.css +3 -0
  189. package/lib/tab/tab.variable.css +3 -0
  190. package/lib/table/cache.d.ts +11 -3
  191. package/lib/table/components/table-column.d.ts +111 -5
  192. package/lib/table/index.d.ts +51 -5
  193. package/lib/table/index.js +504 -261
  194. package/lib/table/plugins/head-filter.variable.css +3 -0
  195. package/lib/table/plugins/head-sort.variable.css +3 -0
  196. package/lib/table/plugins/settings.variable.css +3 -0
  197. package/lib/table/plugins/use-draggable.d.ts +2 -2
  198. package/lib/table/plugins/use-observer-resize.d.ts +5 -0
  199. package/lib/table/props.d.ts +6 -4
  200. package/lib/table/table.css +6 -12
  201. package/lib/table/table.less +12 -9
  202. package/lib/table/table.variable.css +9 -12
  203. package/lib/table/use-attributes.d.ts +4 -42
  204. package/lib/table/utils.d.ts +2 -2
  205. package/lib/table-column/index.d.ts +235 -119
  206. package/lib/table-column/index.js +217 -30
  207. package/lib/tag/tag.variable.css +3 -0
  208. package/lib/tag-input/index.d.ts +4 -4
  209. package/lib/tag-input/tag-input.d.ts +2 -2
  210. package/lib/tag-input/tag-input.variable.css +3 -0
  211. package/lib/tag-input/tag-props.d.ts +1 -1
  212. package/lib/tag-input/tag-render.d.ts +1 -1
  213. package/lib/time-picker/index.d.ts +38 -35
  214. package/lib/time-picker/time-picker.variable.css +3 -0
  215. package/lib/timeline/index.d.ts +80 -44
  216. package/lib/timeline/index.js +54 -65
  217. package/lib/timeline/timeline.d.ts +46 -29
  218. package/lib/timeline/timeline.variable.css +3 -0
  219. package/lib/transfer/transfer.variable.css +3 -0
  220. package/lib/tree/tree.variable.css +3 -0
  221. package/lib/upload/index.d.ts +12 -0
  222. package/lib/upload/index.js +21 -30
  223. package/lib/upload/props.d.ts +3 -0
  224. package/lib/upload/upload-trigger.d.ts +6 -0
  225. package/lib/upload/upload.d.ts +6 -0
  226. package/lib/upload/upload.variable.css +3 -0
  227. package/lib/virtual-render/index.d.ts +9 -9
  228. package/lib/virtual-render/virtual-render.d.ts +3 -3
  229. package/lib/virtual-render/virtual-render.variable.css +3 -0
  230. package/package.json +3 -2
@@ -1,39 +1,13 @@
1
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper {
1
+ .bk-info-wrapper .bk-modal-wrapper {
2
2
  width: 440px;
3
3
  }
4
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper.normal {
5
- width: 440px;
6
- }
7
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper.small {
8
- width: 400px;
9
- }
10
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-body {
11
- border-radius: 2px;
12
- }
13
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header {
14
- padding: 24px 24px 0;
15
- }
16
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
17
- height: 27px;
18
- margin: 15px 0 10px;
4
+ .bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
5
+ margin-top: 16px;
19
6
  }
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;
7
+ .bk-info-wrapper .bk-dialog-footer button {
8
+ min-width: 88px;
26
9
  }
27
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content .bk-info-sub-title {
28
- margin-bottom: 10px;
10
+ .bk-info-sub-title {
29
11
  text-align: center;
30
12
  word-break: break-all;
31
13
  }
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;
39
- }
@@ -4,7 +4,7 @@ export interface ModalFuncProps {
4
4
  width?: string | number;
5
5
  height?: string | number;
6
6
  'ext-cls': string | string[];
7
- type?: 'primary' | 'warning' | 'success' | 'danger';
7
+ theme?: 'primary' | 'warning' | 'success' | 'danger';
8
8
  infoType?: 'success' | 'danger' | 'warning' | 'loading';
9
9
  title?: string | (() => VNode | string) | VNode;
10
10
  subTitle?: string | (() => VNode) | VNode;
@@ -1,55 +1,24 @@
1
1
  @import '../styles/themes/themes.less';
2
- .@{bk-prefix}-modal-ctx {
3
- &.@{bk-prefix}-info-wrapper {
4
- .@{bk-prefix}-modal-wrapper {
5
- width: 440px;
6
2
 
7
- &.normal {
8
- width: 440px;
9
- }
10
-
11
- &.small {
12
- width: 400px;
13
- }
14
-
15
- .@{bk-prefix}-modal-body {
16
- border-radius: 2px;
17
- }
18
-
19
- .@{bk-prefix}-dialog-header {
20
- padding: 24px 24px 0;
21
-
22
- .@{bk-prefix}-dialog-title {
23
- height: 27px;
24
- margin: 15px 0 10px;
25
- }
26
- }
3
+ &.@{bk-prefix}-info-wrapper {
4
+ .@{bk-prefix}-modal-wrapper {
5
+ width: 440px;
27
6
 
28
- .@{bk-prefix}-modal-content {
29
- height: 100%;
30
- max-height: 100%;
31
- min-height: 100%;
32
- padding: 0 50px 10px;
33
- word-break: break-all;
34
- .@{bk-prefix}-info-sub-title {
35
- margin-bottom: 10px;
36
- text-align: center;
37
- word-break: break-all;
38
- }
39
- }
40
-
41
- .@{bk-prefix}-modal-footer {
42
- padding: 0 65px 33px;
43
- background-color: #fff;
44
- border-top: none;
45
-
46
- .@{bk-prefix}-dialog-footer {
47
- button {
48
- min-width: 88px;
49
- }
50
- }
7
+ .@{bk-prefix}-dialog-header {
8
+ .@{bk-prefix}-dialog-title {
9
+ margin-top: 16px;
51
10
  }
52
11
  }
12
+ }
53
13
 
14
+ .@{bk-prefix}-dialog-footer {
15
+ button {
16
+ min-width: 88px;
17
+ }
54
18
  }
55
19
  }
20
+
21
+ .@{bk-prefix}-info-sub-title {
22
+ text-align: center;
23
+ word-break: break-all;
24
+ }
@@ -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,43 +124,19 @@
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
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper {
130
+ .bk-info-wrapper .bk-modal-wrapper {
128
131
  width: 440px;
129
132
  }
130
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper.normal {
131
- width: 440px;
132
- }
133
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper.small {
134
- width: 400px;
135
- }
136
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-body {
137
- border-radius: 2px;
138
- }
139
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header {
140
- padding: 24px 24px 0;
141
- }
142
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
143
- height: 27px;
144
- margin: 15px 0 10px;
133
+ .bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
134
+ margin-top: 16px;
145
135
  }
146
- .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;
151
- word-break: break-all;
136
+ .bk-info-wrapper .bk-dialog-footer button {
137
+ min-width: 88px;
152
138
  }
153
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content .bk-info-sub-title {
154
- margin-bottom: 10px;
139
+ .bk-info-sub-title {
155
140
  text-align: center;
156
141
  word-break: break-all;
157
142
  }
158
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer {
159
- padding: 0 65px 33px;
160
- background-color: #fff;
161
- border-top: none;
162
- }
163
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer .bk-dialog-footer button {
164
- min-width: 88px;
165
- }
@@ -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;
@@ -0,0 +1,6 @@
1
+ import { type Ref } from 'vue';
2
+ import type { ModalProps } from './modal';
3
+ export declare const useContentResize: (root: Ref<HTMLElement>, resizeTarget: Ref<HTMLElement>, props: ModalProps) => {
4
+ contentStyles: Ref<{}>;
5
+ isContentScroll: Ref<boolean>;
6
+ };
@@ -62,6 +62,8 @@ declare const BkModal: {
62
62
  };
63
63
  direction: import("vue-types").VueTypeValidableDef<string> & {
64
64
  default: string;
65
+ } & {
66
+ default: string;
65
67
  };
66
68
  title: import("vue-types").VueTypeValidableDef<string> & {
67
69
  default: string;
@@ -84,39 +86,43 @@ declare const BkModal: {
84
86
  default: boolean;
85
87
  };
86
88
  infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
89
+ bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
90
+ default: string;
91
+ }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
92
+ default: () => unknown[];
93
+ });
87
94
  left: import("vue-types").VueTypeValidableDef<string> & {
88
95
  default: string;
89
96
  };
90
97
  top: import("vue-types").VueTypeValidableDef<string> & {
91
98
  default: string;
92
99
  };
100
+ hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
101
+ default: number;
102
+ } & {
103
+ default: number;
104
+ };
93
105
  }>> & {
94
106
  onClose?: (...args: any[]) => any;
95
- onShown?: (...args: any[]) => any;
96
107
  onHidden?: (...args: any[]) => any;
97
- "onQuick-close"?: (...args: any[]) => any;
108
+ onShown?: (...args: any[]) => any;
98
109
  onQuickClose?: (...args: any[]) => any;
110
+ "onQuick-close"?: (...args: any[]) => any;
99
111
  }, {
112
+ zIndex: import("vue").Ref<string | number>;
100
113
  visible: import("vue").Ref<boolean>;
101
- compStyle: import("vue").ComputedRef<{
102
- [x: string]: string | number;
103
- width: string | number;
104
- height: string | number;
105
- minHeigth: string;
114
+ contentStyles: import("vue").Ref<{}>;
115
+ isContentScroll: import("vue").Ref<boolean>;
116
+ modalWrapperStyles: import("vue").ComputedRef<{
106
117
  display: string;
107
- zIndex: string | number;
108
- left: string;
109
- top: string;
110
- }>;
111
- fullscreenStyle: import("vue").ComputedRef<{
112
- width: string;
113
- height: string;
114
118
  }>;
115
119
  handleClickOutSide: (e: MouseEvent) => void;
116
120
  refRoot: import("vue").Ref<HTMLElement>;
117
121
  refMask: import("vue").Ref<HTMLElement>;
118
- 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<{
122
+ resolveClassName: (cls: string) => string;
123
+ close: () => void;
124
+ resizeTargetRef: import("vue").Ref<HTMLElement>;
125
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "shown" | "quickClose" | "quick-close")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
120
126
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
121
127
  default: boolean;
122
128
  } & {
@@ -178,6 +184,8 @@ declare const BkModal: {
178
184
  };
179
185
  direction: import("vue-types").VueTypeValidableDef<string> & {
180
186
  default: string;
187
+ } & {
188
+ default: string;
181
189
  };
182
190
  title: import("vue-types").VueTypeValidableDef<string> & {
183
191
  default: string;
@@ -200,18 +208,28 @@ declare const BkModal: {
200
208
  default: boolean;
201
209
  };
202
210
  infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
211
+ bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
212
+ default: string;
213
+ }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
214
+ default: () => unknown[];
215
+ });
203
216
  left: import("vue-types").VueTypeValidableDef<string> & {
204
217
  default: string;
205
218
  };
206
219
  top: import("vue-types").VueTypeValidableDef<string> & {
207
220
  default: string;
208
221
  };
222
+ hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
223
+ default: number;
224
+ } & {
225
+ default: number;
226
+ };
209
227
  }>> & {
210
228
  onClose?: (...args: any[]) => any;
211
- onShown?: (...args: any[]) => any;
212
229
  onHidden?: (...args: any[]) => any;
213
- "onQuick-close"?: (...args: any[]) => any;
230
+ onShown?: (...args: any[]) => any;
214
231
  onQuickClose?: (...args: any[]) => any;
232
+ "onQuick-close"?: (...args: any[]) => any;
215
233
  }, {
216
234
  title: string;
217
235
  width: string | number;
@@ -225,14 +243,16 @@ declare const BkModal: {
225
243
  transfer: string | boolean | HTMLElement;
226
244
  direction: string;
227
245
  renderDirective: "show" | "if";
228
- quickClose: boolean;
229
246
  scrollable: boolean;
230
247
  showMask: boolean;
231
248
  closeIcon: boolean;
232
249
  escClose: boolean;
233
250
  fullscreen: boolean;
251
+ quickClose: boolean;
234
252
  animateType: string;
235
253
  multiInstance: boolean;
254
+ bodyClass: string | unknown[];
255
+ hiddenDelay: number;
236
256
  }, true, {}, {}, {
237
257
  P: {};
238
258
  B: {};
@@ -302,6 +322,8 @@ declare const BkModal: {
302
322
  };
303
323
  direction: import("vue-types").VueTypeValidableDef<string> & {
304
324
  default: string;
325
+ } & {
326
+ default: string;
305
327
  };
306
328
  title: import("vue-types").VueTypeValidableDef<string> & {
307
329
  default: string;
@@ -324,38 +346,42 @@ declare const BkModal: {
324
346
  default: boolean;
325
347
  };
326
348
  infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
349
+ bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
350
+ default: string;
351
+ }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
352
+ default: () => unknown[];
353
+ });
327
354
  left: import("vue-types").VueTypeValidableDef<string> & {
328
355
  default: string;
329
356
  };
330
357
  top: import("vue-types").VueTypeValidableDef<string> & {
331
358
  default: string;
332
359
  };
360
+ hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
361
+ default: number;
362
+ } & {
363
+ default: number;
364
+ };
333
365
  }>> & {
334
366
  onClose?: (...args: any[]) => any;
335
- onShown?: (...args: any[]) => any;
336
367
  onHidden?: (...args: any[]) => any;
337
- "onQuick-close"?: (...args: any[]) => any;
368
+ onShown?: (...args: any[]) => any;
338
369
  onQuickClose?: (...args: any[]) => any;
370
+ "onQuick-close"?: (...args: any[]) => any;
339
371
  }, {
372
+ zIndex: import("vue").Ref<string | number>;
340
373
  visible: import("vue").Ref<boolean>;
341
- compStyle: import("vue").ComputedRef<{
342
- [x: string]: string | number;
343
- width: string | number;
344
- height: string | number;
345
- minHeigth: string;
374
+ contentStyles: import("vue").Ref<{}>;
375
+ isContentScroll: import("vue").Ref<boolean>;
376
+ modalWrapperStyles: import("vue").ComputedRef<{
346
377
  display: string;
347
- zIndex: string | number;
348
- left: string;
349
- top: string;
350
- }>;
351
- fullscreenStyle: import("vue").ComputedRef<{
352
- width: string;
353
- height: string;
354
378
  }>;
355
379
  handleClickOutSide: (e: MouseEvent) => void;
356
380
  refRoot: import("vue").Ref<HTMLElement>;
357
381
  refMask: import("vue").Ref<HTMLElement>;
358
- showMask: boolean;
382
+ resolveClassName: (cls: string) => string;
383
+ close: () => void;
384
+ resizeTargetRef: import("vue").Ref<HTMLElement>;
359
385
  }, {}, {}, {}, {
360
386
  title: string;
361
387
  width: string | number;
@@ -369,14 +395,16 @@ declare const BkModal: {
369
395
  transfer: string | boolean | HTMLElement;
370
396
  direction: string;
371
397
  renderDirective: "show" | "if";
372
- quickClose: boolean;
373
398
  scrollable: boolean;
374
399
  showMask: boolean;
375
400
  closeIcon: boolean;
376
401
  escClose: boolean;
377
402
  fullscreen: boolean;
403
+ quickClose: boolean;
378
404
  animateType: string;
379
405
  multiInstance: boolean;
406
+ bodyClass: string | unknown[];
407
+ hiddenDelay: number;
380
408
  }>;
381
409
  __isFragment?: never;
382
410
  __isTeleport?: never;
@@ -443,6 +471,8 @@ declare const BkModal: {
443
471
  };
444
472
  direction: import("vue-types").VueTypeValidableDef<string> & {
445
473
  default: string;
474
+ } & {
475
+ default: string;
446
476
  };
447
477
  title: import("vue-types").VueTypeValidableDef<string> & {
448
478
  default: string;
@@ -465,39 +495,43 @@ declare const BkModal: {
465
495
  default: boolean;
466
496
  };
467
497
  infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
498
+ bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
499
+ default: string;
500
+ }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
501
+ default: () => unknown[];
502
+ });
468
503
  left: import("vue-types").VueTypeValidableDef<string> & {
469
504
  default: string;
470
505
  };
471
506
  top: import("vue-types").VueTypeValidableDef<string> & {
472
507
  default: string;
473
508
  };
509
+ hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
510
+ default: number;
511
+ } & {
512
+ default: number;
513
+ };
474
514
  }>> & {
475
515
  onClose?: (...args: any[]) => any;
476
- onShown?: (...args: any[]) => any;
477
516
  onHidden?: (...args: any[]) => any;
478
- "onQuick-close"?: (...args: any[]) => any;
517
+ onShown?: (...args: any[]) => any;
479
518
  onQuickClose?: (...args: any[]) => any;
519
+ "onQuick-close"?: (...args: any[]) => any;
480
520
  }, {
521
+ zIndex: import("vue").Ref<string | number>;
481
522
  visible: import("vue").Ref<boolean>;
482
- compStyle: import("vue").ComputedRef<{
483
- [x: string]: string | number;
484
- width: string | number;
485
- height: string | number;
486
- minHeigth: string;
523
+ contentStyles: import("vue").Ref<{}>;
524
+ isContentScroll: import("vue").Ref<boolean>;
525
+ modalWrapperStyles: import("vue").ComputedRef<{
487
526
  display: string;
488
- zIndex: string | number;
489
- left: string;
490
- top: string;
491
- }>;
492
- fullscreenStyle: import("vue").ComputedRef<{
493
- width: string;
494
- height: string;
495
527
  }>;
496
528
  handleClickOutSide: (e: MouseEvent) => void;
497
529
  refRoot: import("vue").Ref<HTMLElement>;
498
530
  refMask: import("vue").Ref<HTMLElement>;
499
- showMask: boolean;
500
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "shown" | "hidden" | "quick-close" | "quickClose")[], "close" | "shown" | "hidden" | "quick-close" | "quickClose", {
531
+ resolveClassName: (cls: string) => string;
532
+ close: () => void;
533
+ resizeTargetRef: import("vue").Ref<HTMLElement>;
534
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "shown" | "quickClose" | "quick-close")[], "close" | "hidden" | "shown" | "quickClose" | "quick-close", {
501
535
  title: string;
502
536
  width: string | number;
503
537
  height: string | number;
@@ -510,14 +544,16 @@ declare const BkModal: {
510
544
  transfer: string | boolean | HTMLElement;
511
545
  direction: string;
512
546
  renderDirective: "show" | "if";
513
- quickClose: boolean;
514
547
  scrollable: boolean;
515
548
  showMask: boolean;
516
549
  closeIcon: boolean;
517
550
  escClose: boolean;
518
551
  fullscreen: boolean;
552
+ quickClose: boolean;
519
553
  animateType: string;
520
554
  multiInstance: boolean;
555
+ bodyClass: string | unknown[];
556
+ hiddenDelay: number;
521
557
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & Readonly<{
522
558
  propsMixin: {
523
559
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
@@ -581,6 +617,8 @@ declare const BkModal: {
581
617
  };
582
618
  direction: import("vue-types").VueTypeValidableDef<string> & {
583
619
  default: string;
620
+ } & {
621
+ default: string;
584
622
  };
585
623
  title: import("vue-types").VueTypeValidableDef<string> & {
586
624
  default: string;
@@ -603,12 +641,22 @@ declare const BkModal: {
603
641
  default: boolean;
604
642
  };
605
643
  infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
644
+ bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
645
+ default: string;
646
+ }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
647
+ default: () => unknown[];
648
+ });
606
649
  left: import("vue-types").VueTypeValidableDef<string> & {
607
650
  default: string;
608
651
  };
609
652
  top: import("vue-types").VueTypeValidableDef<string> & {
610
653
  default: string;
611
654
  };
655
+ hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
656
+ default: number;
657
+ } & {
658
+ default: number;
659
+ };
612
660
  };
613
661
  }>;
614
662
  export default BkModal;