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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/dist/index.cjs.js +71 -73
  2. package/dist/index.esm.js +20956 -18684
  3. package/dist/index.umd.js +71 -73
  4. package/dist/locale/en.esm.js +1 -1
  5. package/dist/locale/en.esm.js.map +1 -1
  6. package/dist/locale/en.umd.js +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/zh-cn.esm.js +1 -1
  9. package/dist/locale/zh-cn.esm.js.map +1 -1
  10. package/dist/locale/zh-cn.umd.js +1 -1
  11. package/dist/locale/zh-cn.umd.js.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/style.variable.css +1 -1
  14. package/lib/affix/affix.variable.css +3 -0
  15. package/lib/alert/alert.variable.css +3 -0
  16. package/lib/backtop/backtop.variable.css +3 -0
  17. package/lib/badge/badge.variable.css +3 -0
  18. package/lib/breadcrumb/breadcrumb.variable.css +3 -0
  19. package/lib/button/button.variable.css +3 -0
  20. package/lib/card/card.variable.css +3 -0
  21. package/lib/cascader/cascader.variable.css +3 -0
  22. package/lib/checkbox/checkbox.variable.css +3 -0
  23. package/lib/checkbox/index.js +4 -4
  24. package/lib/code-diff/code-diff.variable.css +3 -0
  25. package/lib/collapse/collapse.css +11 -0
  26. package/lib/collapse/collapse.d.ts +11 -0
  27. package/lib/collapse/collapse.less +15 -1
  28. package/lib/collapse/collapse.variable.css +14 -0
  29. package/lib/collapse/index.d.ts +23 -0
  30. package/lib/collapse/index.js +9 -1
  31. package/lib/collapse/props.d.ts +8 -0
  32. package/lib/collapse-transition/collapse-transition.variable.css +3 -0
  33. package/lib/color-picker/color-picker.variable.css +3 -0
  34. package/lib/components.d.ts +2 -0
  35. package/lib/components.js +62 -505
  36. package/lib/config-provider/config-provider.d.ts +3 -0
  37. package/lib/config-provider/config-provider.variable.css +3 -0
  38. package/lib/config-provider/index.d.ts +4 -0
  39. package/lib/config-provider/token.d.ts +1 -0
  40. package/lib/container/container.variable.css +3 -0
  41. package/lib/date-picker/base/month-table.d.ts +2 -2
  42. package/lib/date-picker/date-picker.d.ts +1 -0
  43. package/lib/date-picker/date-picker.variable.css +3 -0
  44. package/lib/date-picker/index.d.ts +3 -0
  45. package/lib/date-picker/index.js +70 -32
  46. package/lib/date-picker/interface.d.ts +1 -1
  47. package/lib/date-picker/time-picker.d.ts +1 -0
  48. package/lib/date-picker/utils.d.ts +4 -0
  49. package/lib/dialog/dialog.css +176 -150
  50. package/lib/dialog/dialog.d.ts +40 -109
  51. package/lib/dialog/dialog.less +51 -124
  52. package/lib/dialog/dialog.variable.css +179 -150
  53. package/lib/dialog/index.d.ts +99 -263
  54. package/lib/dialog/index.js +244 -246
  55. package/lib/dialog/props.d.ts +10 -35
  56. package/lib/directives/index.js +0 -1
  57. package/lib/dist.index.js +5 -62
  58. package/lib/divider/divider.variable.css +3 -0
  59. package/lib/dropdown/dropdown.css +3 -1
  60. package/lib/dropdown/dropdown.variable.css +6 -1
  61. package/lib/exception/exception.variable.css +3 -0
  62. package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
  63. package/lib/form/form.variable.css +3 -0
  64. package/lib/form/index.js +3 -1
  65. package/lib/hooks.js +1 -48
  66. package/lib/icon/image-fill.js +82 -167
  67. package/lib/icon/img-error.js +82 -167
  68. package/lib/icon/img-placehoulder.js +82 -167
  69. package/lib/icon/index.d.ts +1 -0
  70. package/lib/icon/index.js +87 -2427
  71. package/lib/icon/info-line.js +82 -167
  72. package/lib/icon/info.js +82 -167
  73. package/lib/icon/left-shape.js +82 -167
  74. package/lib/icon/left-turn-line.js +82 -167
  75. package/lib/icon/loading.js +82 -167
  76. package/lib/icon/narrow-line.js +82 -167
  77. package/lib/icon/original.js +82 -167
  78. package/lib/icon/pdf-fill.js +82 -167
  79. package/lib/icon/play-shape.js +82 -167
  80. package/lib/icon/plus.js +82 -167
  81. package/lib/icon/ppt-fill.js +82 -167
  82. package/lib/icon/qq.js +82 -167
  83. package/lib/icon/right-shape.js +82 -167
  84. package/lib/icon/right-turn-line.js +82 -167
  85. package/lib/icon/search.js +82 -167
  86. package/lib/icon/share.js +82 -167
  87. package/lib/icon/spinner.js +82 -167
  88. package/lib/icon/success.js +82 -167
  89. package/lib/icon/switcher-loading.js +82 -167
  90. package/lib/icon/text-all.d.ts +4 -0
  91. package/lib/icon/text-all.js +191 -0
  92. package/lib/icon/text-file.js +82 -167
  93. package/lib/icon/text-fill.js +82 -167
  94. package/lib/icon/transfer.js +82 -167
  95. package/lib/icon/tree-application-shape.js +82 -167
  96. package/lib/icon/unfull-screen.js +82 -167
  97. package/lib/icon/unvisible.js +82 -167
  98. package/lib/icon/up-shape.js +82 -167
  99. package/lib/icon/upload.js +82 -167
  100. package/lib/icon/video-fill.js +82 -167
  101. package/lib/icon/warn.js +82 -167
  102. package/lib/icon/weixin-pro.js +82 -167
  103. package/lib/icon/weixin.js +82 -167
  104. package/lib/image/image-viewer.variable.css +3 -0
  105. package/lib/image/image.variable.css +3 -0
  106. package/lib/image/index.js +5 -2
  107. package/lib/index.js +7 -72
  108. package/lib/info-box/index.d.ts +2 -2
  109. package/lib/info-box/index.js +257 -516
  110. package/lib/info-box/info-box.css +58 -28
  111. package/lib/info-box/info-box.d.ts +18 -16
  112. package/lib/info-box/info-box.less +82 -51
  113. package/lib/info-box/info-box.variable.css +61 -28
  114. package/lib/info-box/render-component.d.ts +4 -0
  115. package/lib/input/index.js +7 -1
  116. package/lib/input/input.variable.css +3 -0
  117. package/lib/link/link.variable.css +3 -0
  118. package/lib/loading/loading.variable.css +3 -0
  119. package/lib/locale/index.js +4 -2
  120. package/lib/locale/lang/en.d.ts +1 -0
  121. package/lib/menu/menu.variable.css +3 -0
  122. package/lib/menu/submenu.variable.css +3 -0
  123. package/lib/message/message.variable.css +3 -0
  124. package/lib/modal/hooks.d.ts +6 -0
  125. package/lib/modal/index.d.ts +41 -309
  126. package/lib/modal/index.js +285 -671
  127. package/lib/modal/mask.d.ts +6 -0
  128. package/lib/modal/modal.css +155 -76
  129. package/lib/modal/modal.d.ts +18 -116
  130. package/lib/modal/modal.less +107 -55
  131. package/lib/modal/modal.variable.css +158 -76
  132. package/lib/modal/props.mixin.d.ts +5 -41
  133. package/lib/navigation/navigation.variable.css +3 -0
  134. package/lib/notify/notify.variable.css +3 -0
  135. package/lib/overflow-title/index.js +46 -52
  136. package/lib/pagination/index.js +2 -1
  137. package/lib/pagination/pagination.variable.css +3 -0
  138. package/lib/plugin-popover/index.d.ts +1 -1
  139. package/lib/plugin-popover/index.js +45 -26
  140. package/lib/pop-confirm/index.js +8 -5
  141. package/lib/pop-confirm/pop-confirm.variable.css +3 -0
  142. package/lib/popover/content.d.ts +1 -1
  143. package/lib/popover/index.js +45 -26
  144. package/lib/popover/plugin-popover.d.ts +4 -1
  145. package/lib/popover/popover.css +3 -1
  146. package/lib/popover/popover.less +4 -1
  147. package/lib/popover/popover.variable.css +6 -1
  148. package/lib/preset.d.ts +2 -0
  149. package/lib/preset.js +18 -64
  150. package/lib/process/process.variable.css +3 -0
  151. package/lib/progress/progress.variable.css +3 -0
  152. package/lib/radio/index.d.ts +29 -0
  153. package/lib/radio/index.js +49 -26
  154. package/lib/radio/radio-button.d.ts +10 -0
  155. package/lib/radio/radio-group.d.ts +10 -0
  156. package/lib/radio/radio.d.ts +10 -0
  157. package/lib/radio/radio.variable.css +3 -0
  158. package/lib/rate/rate.variable.css +3 -0
  159. package/lib/rate/star.variable.css +3 -0
  160. package/lib/resize-layout/index.js +1 -1
  161. package/lib/resize-layout/resize-layout.variable.css +3 -0
  162. package/lib/scrollbar/index.d.ts +15 -0
  163. package/lib/scrollbar/index.js +18763 -0
  164. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
  165. package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
  166. package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
  167. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
  168. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
  169. package/lib/scrollbar/scrollbar.css +75 -0
  170. package/lib/scrollbar/scrollbar.less +94 -0
  171. package/lib/scrollbar/scrollbar.variable.css +204 -0
  172. package/lib/search-select/index.d.ts +375 -16
  173. package/lib/search-select/index.js +701 -366
  174. package/lib/search-select/input.d.ts +14 -5
  175. package/lib/search-select/search-select.css +20 -6
  176. package/lib/search-select/search-select.d.ts +129 -7
  177. package/lib/search-select/search-select.less +16 -12
  178. package/lib/search-select/search-select.variable.css +23 -6
  179. package/lib/search-select/selected.d.ts +116 -6
  180. package/lib/search-select/utils.d.ts +19 -6
  181. package/lib/select/index.d.ts +124 -6
  182. package/lib/select/index.js +1336 -72
  183. package/lib/select/option.d.ts +3 -1
  184. package/lib/select/pinyin/core.d.ts +14 -0
  185. package/lib/select/pinyin/dict.d.ts +34 -0
  186. package/lib/select/pinyin/index.d.ts +2 -0
  187. package/lib/select/select.css +55 -12
  188. package/lib/select/select.d.ts +50 -2
  189. package/lib/select/select.less +69 -19
  190. package/lib/select/select.variable.css +58 -12
  191. package/lib/select/selectTagInput.d.ts +7 -0
  192. package/lib/select/type.d.ts +2 -3
  193. package/lib/shared/index.d.ts +0 -1
  194. package/lib/shared/index.js +70 -50
  195. package/lib/shared/utils.d.ts +12 -0
  196. package/lib/shared/vue-types.d.ts +5 -0
  197. package/lib/sideslider/index.d.ts +55 -185
  198. package/lib/sideslider/index.js +81 -55
  199. package/lib/sideslider/sideslider.css +26 -90
  200. package/lib/sideslider/sideslider.d.ts +25 -87
  201. package/lib/sideslider/sideslider.less +56 -132
  202. package/lib/sideslider/sideslider.variable.css +29 -90
  203. package/lib/slider/index.d.ts +19 -0
  204. package/lib/slider/index.js +45 -5
  205. package/lib/slider/slider.css +14 -0
  206. package/lib/slider/slider.d.ts +9 -0
  207. package/lib/slider/slider.less +15 -0
  208. package/lib/slider/slider.variable.css +17 -0
  209. package/lib/steps/steps.variable.css +3 -0
  210. package/lib/styles/mixins/animate.variable.css +3 -0
  211. package/lib/styles/mixins/popper.variable.css +3 -0
  212. package/lib/styles/mixins/scroll.variable.css +3 -0
  213. package/lib/styles/reset.css +1 -3
  214. package/lib/styles/reset.less +3 -6
  215. package/lib/styles/reset.variable.css +4 -3
  216. package/lib/styles/themes/themes.less +5 -0
  217. package/lib/swiper/swiper.variable.css +3 -0
  218. package/lib/switcher/switcher.variable.css +3 -0
  219. package/lib/tab/tab.variable.css +3 -0
  220. package/lib/table/cache.d.ts +11 -3
  221. package/lib/table/components/table-cell.d.ts +3 -2
  222. package/lib/table/components/table-column.d.ts +7 -17
  223. package/lib/table/const.d.ts +4 -4
  224. package/lib/table/index.d.ts +29 -64
  225. package/lib/table/index.js +18068 -613
  226. package/lib/table/plugins/head-filter.css +8 -4
  227. package/lib/table/plugins/head-filter.less +6 -3
  228. package/lib/table/plugins/head-filter.variable.css +11 -4
  229. package/lib/table/plugins/head-sort.variable.css +3 -0
  230. package/lib/table/plugins/settings.variable.css +3 -0
  231. package/lib/table/plugins/use-active-columns.d.ts +2 -2
  232. package/lib/table/plugins/use-column-template.d.ts +7 -0
  233. package/lib/table/plugins/use-draggable.d.ts +2 -2
  234. package/lib/table/plugins/use-fixed-column.d.ts +1 -1
  235. package/lib/table/plugins/use-observer-resize.d.ts +5 -0
  236. package/lib/table/plugins/use-pagination.d.ts +3 -1
  237. package/lib/table/plugins/use-shift-key.d.ts +11 -0
  238. package/lib/table/props.d.ts +17 -7
  239. package/lib/table/table.css +112 -58
  240. package/lib/table/table.d.ts +11 -0
  241. package/lib/table/table.less +46 -58
  242. package/lib/table/table.variable.css +115 -58
  243. package/lib/table/use-attributes.d.ts +6 -43
  244. package/lib/table/use-column.d.ts +9 -10
  245. package/lib/table/use-common.d.ts +1 -1
  246. package/lib/table/use-render.d.ts +1 -1
  247. package/lib/table/utils.d.ts +1 -1
  248. package/lib/table-column/index.d.ts +92 -266
  249. package/lib/table-column/index.js +24 -98
  250. package/lib/tag/tag.variable.css +3 -0
  251. package/lib/tag-input/index.d.ts +4 -4
  252. package/lib/tag-input/tag-input.d.ts +2 -2
  253. package/lib/tag-input/tag-input.variable.css +3 -0
  254. package/lib/tag-input/tag-props.d.ts +1 -1
  255. package/lib/tag-input/tag-render.d.ts +1 -1
  256. package/lib/time-picker/index.d.ts +38 -35
  257. package/lib/time-picker/time-picker.variable.css +3 -0
  258. package/lib/timeline/index.d.ts +80 -44
  259. package/lib/timeline/index.js +54 -65
  260. package/lib/timeline/timeline.d.ts +46 -29
  261. package/lib/timeline/timeline.variable.css +3 -0
  262. package/lib/transfer/transfer.variable.css +3 -0
  263. package/lib/tree/constant.d.ts +3 -1
  264. package/lib/tree/index.d.ts +44 -0
  265. package/lib/tree/index.js +17548 -25
  266. package/lib/tree/props.d.ts +18 -0
  267. package/lib/tree/tree.css +76 -2
  268. package/lib/tree/tree.d.ts +28 -2
  269. package/lib/tree/tree.variable.css +79 -2
  270. package/lib/tree/use-intersection-observer.d.ts +27 -0
  271. package/lib/tree/use-node-attribute.d.ts +9 -0
  272. package/lib/upload/index.d.ts +12 -0
  273. package/lib/upload/index.js +21 -30
  274. package/lib/upload/props.d.ts +3 -0
  275. package/lib/upload/upload-trigger.d.ts +6 -0
  276. package/lib/upload/upload.d.ts +6 -0
  277. package/lib/upload/upload.variable.css +3 -0
  278. package/lib/virtual-render/index.d.ts +36 -9
  279. package/lib/virtual-render/index.js +295 -80
  280. package/lib/virtual-render/props.d.ts +16 -0
  281. package/lib/virtual-render/use-fix-top.d.ts +2 -7
  282. package/lib/virtual-render/use-scrollbar.d.ts +24 -0
  283. package/lib/virtual-render/v-virtual-render.d.ts +2 -1
  284. package/lib/virtual-render/virtual-render.css +76 -2
  285. package/lib/virtual-render/virtual-render.d.ts +16 -3
  286. package/lib/virtual-render/virtual-render.less +3 -3
  287. package/lib/virtual-render/virtual-render.variable.css +79 -2
  288. package/package.json +3 -2
  289. package/lib/shared/mask.d.ts +0 -11
@@ -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,105 +124,186 @@
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 {
128
- width: 440px;
130
+ .bk-infobox {
131
+ font-size: 12px;
129
132
  }
130
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper.normal {
131
- width: 440px;
133
+ .bk-infobox .bk-modal-wrapper {
134
+ top: 50%;
135
+ left: 50%;
136
+ transform: translate(-50%, -50%);
132
137
  }
133
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper.small {
134
- width: 400px;
138
+ .bk-infobox-header {
139
+ padding-top: 24px;
135
140
  }
136
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-body {
137
- border-radius: 2px;
141
+ .bk-infobox-type {
142
+ display: flex;
143
+ justify-content: center;
144
+ align-items: center;
138
145
  }
139
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header {
140
- padding: 24px 24px 0;
146
+ .bk-infobox-icon {
147
+ width: 42px;
148
+ height: 42px;
149
+ font-size: 42px;
141
150
  }
142
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
143
- height: 27px;
144
- margin: 15px 0 10px;
151
+ .bk-infobox-icon.success {
152
+ color: #2dcb56;
145
153
  }
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;
152
- }
153
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content .bk-info-sub-title {
154
- margin-bottom: 10px;
155
- text-align: center;
156
- word-break: break-all;
157
- }
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;
154
+ .bk-infobox-icon.warning {
155
+ color: #ff9c01;
165
156
  }
166
- .bk-modal-ctx {
167
- pointer-events: auto;
168
- top: 0px;
169
- left: 0px;
170
- width: 100%;
171
- height: 100%;
157
+ .bk-infobox-icon.danger {
158
+ color: #ea3636;
172
159
  }
173
- .bk-modal-ctx.--show {
174
- position: fixed;
160
+ .bk-infobox-icon.loading {
161
+ color: #3a84ff;
175
162
  }
176
- .bk-modal-ctx.--hide {
177
- display: none;
163
+ .bk-infobox-title {
164
+ padding-right: 24px;
165
+ padding-left: 24px;
166
+ margin-top: 24px;
167
+ font-size: 20px;
168
+ line-height: 32px;
169
+ color: #313238;
178
170
  }
179
- .bk-modal-ctx .bk-modal-ctx-mask {
180
- display: none;
181
- left: 0;
171
+ .bk-infobox-content {
172
+ padding-right: 24px;
173
+ padding-left: 24px;
174
+ margin-top: 16px;
175
+ }
176
+ .bk-infobox-footer {
177
+ display: flex;
178
+ padding-right: 24px;
179
+ padding-bottom: 24px;
180
+ padding-left: 24px;
181
+ margin-top: 24px;
182
+ align-content: center;
183
+ }
184
+ .bk-infobox-footer.is-position-right {
185
+ justify-content: right;
186
+ }
187
+ .bk-infobox-footer.is-position-center {
188
+ justify-content: center;
189
+ }
190
+ .bk-infobox-footer.is-position-left {
191
+ justify-content: left;
192
+ }
193
+ .bk-infobox-footer .bk-button {
194
+ min-width: 88px;
195
+ }
196
+ .bk-infobox-footer .bk-button ~ .bk-button {
197
+ margin-left: 8px;
198
+ }
199
+ .bk-modal-mask {
200
+ position: fixed;
182
201
  top: 0;
202
+ left: 0;
183
203
  width: 100%;
184
204
  height: 100%;
185
205
  background-color: rgba(0, 0, 0, 0.6);
186
206
  }
187
- .bk-modal-ctx .bk-modal-ctx-mask.--show {
207
+ .bk-modal-wrapper {
188
208
  position: fixed;
189
- display: inherit;
190
209
  }
191
- .bk-modal-wrapper {
192
- position: absolute;
193
- top: 50%;
194
- left: 50%;
195
- width: 480px;
210
+ .bk-modal-body {
211
+ height: 100%;
212
+ overflow: hidden;
213
+ background: #fff;
196
214
  border-radius: 2px;
197
- transform: translate(-50%, -50%);
215
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
198
216
  }
199
- .bk-modal-wrapper .bk-modal-outside {
200
- position: fixed;
201
- top: 0;
202
- right: 0;
203
- bottom: 0;
204
- left: 0;
217
+ .bk-modal-content {
218
+ position: relative;
219
+ max-height: 100vh;
220
+ font-size: 0;
205
221
  }
206
- .bk-modal-wrapper.normal {
207
- width: 480px;
208
- height: 240px;
222
+ .bk-modal-content div {
223
+ font-size: 12px;
209
224
  }
210
- .bk-modal-wrapper.small {
211
- width: 400px;
212
- height: 200px;
225
+ .bk-modal-footer {
226
+ position: relative;
213
227
  }
214
- .bk-modal-wrapper.medium {
215
- width: 640px;
216
- height: 400px;
228
+ .bk-modal-close {
229
+ position: absolute;
230
+ top: 6px;
231
+ right: 6px;
232
+ display: flex;
233
+ width: 32px;
234
+ height: 32px;
235
+ font-size: 18px;
236
+ color: #979ba5;
237
+ cursor: pointer;
238
+ align-items: center;
239
+ justify-content: center;
240
+ border-radius: 50%;
241
+ transition: 0.15s;
217
242
  }
218
- .bk-modal-wrapper.large {
219
- width: 960px;
220
- height: 720px;
243
+ .bk-modal-close:hover {
244
+ background: #f0f1f5;
221
245
  }
222
- .bk-modal-wrapper .bk-modal-body {
223
- height: 100%;
224
- width: 100%;
225
- background: #fff;
226
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
246
+ .modal-fadein-enter-from {
247
+ opacity: 0;
248
+ }
249
+ .modal-fadein-enter-from .bk-modal-body {
250
+ transform: translateY(-20px);
251
+ }
252
+ .modal-fadein-enter-to {
253
+ opacity: 1;
254
+ }
255
+ .modal-fadein-enter-to .bk-modal-body {
256
+ transform: translateY(0);
257
+ }
258
+ .modal-fadein-leave-from {
259
+ opacity: 1;
260
+ }
261
+ .modal-fadein-leave-from .bk-modal-body {
262
+ transform: translateY(0);
263
+ }
264
+ .modal-fadein-leave-to {
265
+ opacity: 0;
266
+ }
267
+ .modal-fadein-leave-to .bk-modal-body {
268
+ transform: translateY(-20px);
269
+ }
270
+ .modal-fadein-enter-active,
271
+ .modal-fadein-leave-active {
272
+ transition: opacity 0.15s linear;
273
+ }
274
+ .modal-fadein-enter-active .bk-modal-body,
275
+ .modal-fadein-leave-active .bk-modal-body {
276
+ transition: transform 0.08s linear;
277
+ }
278
+ .modal-right-enter-from {
279
+ transform: translateX(100%);
280
+ }
281
+ .modal-right-enter-to {
282
+ transform: translateX(0);
283
+ }
284
+ .modal-right-leave-from {
285
+ transform: translateX(0);
286
+ }
287
+ .modal-right-leave-to {
288
+ transform: translateX(100%);
289
+ }
290
+ .modal-right-enter-active,
291
+ .modal-right-leave-active {
292
+ transition: transform 0.15s ease;
293
+ }
294
+ .modal-left-enter-from {
295
+ transform: translateX(-100%);
296
+ }
297
+ .modal-left-enter-to {
298
+ transform: translateX(0);
299
+ }
300
+ .modal-left-leave-from {
301
+ transform: translateX(0);
302
+ }
303
+ .modal-left-leave-to {
304
+ transform: translateX(-100%);
305
+ }
306
+ .modal-left-enter-active,
307
+ .modal-left-leave-active {
308
+ transition: transform 0.15s ease;
227
309
  }
@@ -4,18 +4,8 @@ export declare const propsMixin: {
4
4
  } & {
5
5
  default: boolean;
6
6
  };
7
- width: import("vue-types").VueTypeDef<string | number> & {
8
- default: string | number;
9
- };
10
- height: import("vue-types").VueTypeDef<string | number> & {
11
- default: string | number;
12
- };
13
- extCls: (import("vue-types").VueTypeValidableDef<string> & {
14
- default: string;
15
- }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
16
- default: () => unknown[];
17
- });
18
- scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
7
+ width: import("vue-types").VueTypeDef<string | number>;
8
+ fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
19
9
  default: boolean;
20
10
  } & {
21
11
  default: boolean;
@@ -35,17 +25,6 @@ export declare const propsMixin: {
35
25
  } & {
36
26
  default: boolean;
37
27
  };
38
- fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
39
- default: boolean;
40
- } & {
41
- default: boolean;
42
- };
43
- size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
44
- draggable: import("vue-types").VueTypeValidableDef<boolean> & {
45
- default: boolean;
46
- } & {
47
- default: boolean;
48
- };
49
28
  quickClose: import("vue-types").VueTypeValidableDef<boolean> & {
50
29
  default: boolean;
51
30
  } & {
@@ -55,17 +34,6 @@ export declare const propsMixin: {
55
34
  default: string | boolean | (() => HTMLElement);
56
35
  };
57
36
  zIndex: import("vue-types").VueTypeDef<string | number>;
58
- maxHeight: import("vue-types").VueTypeValidableDef<string> & {
59
- default: string;
60
- };
61
- direction: import("vue-types").VueTypeValidableDef<string> & {
62
- default: string;
63
- };
64
- title: import("vue-types").VueTypeValidableDef<string> & {
65
- default: string;
66
- } & {
67
- default: string;
68
- };
69
37
  animateType: import("vue-types").VueTypeValidableDef<string> & {
70
38
  default: string;
71
39
  } & {
@@ -75,17 +43,13 @@ export declare const propsMixin: {
75
43
  default: "show" | "if";
76
44
  };
77
45
  beforeClose: import("vue-types").VueTypeDef<unknown>;
78
- dialogType: import("vue-types").VueTypeDef<"show" | "process" | "operation" | "confirm">;
79
- multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
80
- default: boolean;
81
- } & {
82
- default: boolean;
83
- };
84
- infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
85
46
  left: import("vue-types").VueTypeValidableDef<string> & {
86
47
  default: string;
87
48
  };
88
49
  top: import("vue-types").VueTypeValidableDef<string> & {
89
50
  default: string;
90
51
  };
52
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
53
+ default: string;
54
+ };
91
55
  };
@@ -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-navigation {
128
131
  display: flex;
@@ -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-notify {
128
131
  position: fixed;
@@ -41,7 +41,7 @@ __webpack_require__.d(__webpack_exports__, {
41
41
  ;// CONCATENATED MODULE: external "../shared"
42
42
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
43
43
  var y = x => () => x
44
- const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
44
+ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["hasOverflowEllipsis"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.hasOverflowEllipsis, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
45
45
  ;// CONCATENATED MODULE: external "vue"
46
46
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
47
47
  var external_vue_y = x => () => x
@@ -91,38 +91,6 @@ function placementType() {
91
91
  resizeable: shared_namespaceObject.PropTypes.bool,
92
92
  popoverOptions: Object // popover属性
93
93
  });
94
- ;// CONCATENATED MODULE: ../../packages/overflow-title/src/utils/getActualWidthByCanvas.ts
95
- function getActualWidthByCanvas(text, options) {
96
- var _options$fontSize = options.fontSize,
97
- fontSize = _options$fontSize === void 0 ? 14 : _options$fontSize,
98
- _options$fontFamily = options.fontFamily,
99
- fontFamily = _options$fontFamily === void 0 ? 'Microsoft YaHei' : _options$fontFamily;
100
- var canvas = document.createElement('canvas');
101
- var ctx = canvas.getContext('2d');
102
- ctx.font = "".concat(fontSize, "px ").concat(fontFamily);
103
- var metrics = ctx.measureText(text);
104
- var actual = Math.abs(metrics.actualBoundingBoxLeft) + Math.abs(metrics.actualBoundingBoxRight);
105
- return Math.max(metrics.width, actual);
106
- }
107
- /* harmony default export */ const utils_getActualWidthByCanvas = (getActualWidthByCanvas);
108
- ;// CONCATENATED MODULE: ../../packages/overflow-title/src/utils/getActualWidthByDom.ts
109
- function getActualWidthByDom(text, options) {
110
- var dom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document.body;
111
- if (!dom) {
112
- return 0;
113
- }
114
- var _ref = options || {},
115
- fontSize = _ref.fontSize,
116
- fontFamily = _ref.fontFamily;
117
- var tempDom = document.createElement('div');
118
- tempDom.style.cssText = "position: absolute;left: -999em;top:-999em;z-index: -1;text-overflow: initial;\n ".concat(fontSize ? "font-size:".concat(fontSize, " ;") : '', "\n ").concat(fontFamily ? "font-family:".concat(fontFamily, " ") : '', "\n ");
119
- tempDom.innerText = text;
120
- dom.append(tempDom);
121
- var clientWidth = tempDom.clientWidth;
122
- dom.removeChild(tempDom);
123
- return clientWidth;
124
- }
125
- /* harmony default export */ const utils_getActualWidthByDom = (getActualWidthByDom);
126
94
  ;// CONCATENATED MODULE: ../../packages/overflow-title/src/components/overflow-title.tsx
127
95
 
128
96
 
@@ -130,8 +98,8 @@ function getActualWidthByDom(text, options) {
130
98
 
131
99
 
132
100
 
133
-
134
-
101
+ // import getActualWidthByCanvas from '../utils/getActualWidthByCanvas';
102
+ // import getActualWidthByDom from '../utils/getActualWidthByDom';
135
103
  /* harmony default export */ const overflow_title = ((0,external_vue_namespaceObject.defineComponent)({
136
104
  name: 'OverflowTitle',
137
105
  props: props,
@@ -149,29 +117,23 @@ function getActualWidthByDom(text, options) {
149
117
  return slots === null || slots === void 0 || (_slots$default = slots["default"]) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
150
118
  });
151
119
  (0,external_vue_namespaceObject.onMounted)(function () {
152
- var clientWidth = boxRef.value.clientWidth;
120
+ // const { clientWidth } = boxRef.value;
153
121
  var resizeHandler = (0,shared_namespaceObject.debounce)(500, function () {
154
122
  isShowTips.value = false;
155
123
  textProps.value = {};
156
- var textWidth = 0;
157
- if (props.calType === 'dom') {
158
- var _textRef$value;
159
- textWidth = utils_getActualWidthByDom((_textRef$value = textRef.value) === null || _textRef$value === void 0 ? void 0 : _textRef$value.textContent, null, boxRef.value);
160
- } else {
161
- var _getComputedStyle = getComputedStyle(boxRef.value),
162
- fontSize = _getComputedStyle.fontSize,
163
- fontFamily = _getComputedStyle.fontFamily;
164
- textWidth = utils_getActualWidthByCanvas(contentText.value, {
165
- fontSize: fontSize,
166
- fontFamily: fontFamily
167
- });
168
- }
169
- if (textWidth > clientWidth) {
124
+ // let textWidth = 0;
125
+ // if (props.calType === 'dom') {
126
+ // textWidth = getActualWidthByDom(textRef.value?.textContent, null, boxRef.value);
127
+ // } else {
128
+ // const { fontSize, fontFamily } = getComputedStyle(boxRef.value);
129
+ // textWidth = getActualWidthByCanvas(contentText.value as string, { fontSize, fontFamily });
130
+ // }
131
+ if ((0,shared_namespaceObject.hasOverflowEllipsis)(textRef.value)) {
170
132
  isShowTips.value = true;
171
133
  if (props.type === 'title') {
172
- var _textRef$value$innerT, _textRef$value2;
134
+ var _textRef$value$innerT, _textRef$value;
173
135
  textProps.value = {
174
- title: (_textRef$value$innerT = textRef === null || textRef === void 0 || (_textRef$value2 = textRef.value) === null || _textRef$value2 === void 0 ? void 0 : _textRef$value2.innerText) !== null && _textRef$value$innerT !== void 0 ? _textRef$value$innerT : props.content
136
+ title: (_textRef$value$innerT = textRef === null || textRef === void 0 || (_textRef$value = textRef.value) === null || _textRef$value === void 0 ? void 0 : _textRef$value.innerText) !== null && _textRef$value$innerT !== void 0 ? _textRef$value$innerT : props.content
175
137
  };
176
138
  }
177
139
  }
@@ -218,6 +180,38 @@ function getActualWidthByDom(text, options) {
218
180
  })]);
219
181
  }
220
182
  }));
183
+ ;// CONCATENATED MODULE: ../../packages/overflow-title/src/utils/getActualWidthByCanvas.ts
184
+ function getActualWidthByCanvas(text, options) {
185
+ var _options$fontSize = options.fontSize,
186
+ fontSize = _options$fontSize === void 0 ? 14 : _options$fontSize,
187
+ _options$fontFamily = options.fontFamily,
188
+ fontFamily = _options$fontFamily === void 0 ? 'Microsoft YaHei' : _options$fontFamily;
189
+ var canvas = document.createElement('canvas');
190
+ var ctx = canvas.getContext('2d');
191
+ ctx.font = "".concat(fontSize, "px ").concat(fontFamily);
192
+ var metrics = ctx.measureText(text);
193
+ var actual = Math.abs(metrics.actualBoundingBoxLeft) + Math.abs(metrics.actualBoundingBoxRight);
194
+ return Math.max(metrics.width, actual);
195
+ }
196
+ /* harmony default export */ const utils_getActualWidthByCanvas = (getActualWidthByCanvas);
197
+ ;// CONCATENATED MODULE: ../../packages/overflow-title/src/utils/getActualWidthByDom.ts
198
+ function getActualWidthByDom(text, options) {
199
+ var dom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document.body;
200
+ if (!dom) {
201
+ return 0;
202
+ }
203
+ var _ref = options || {},
204
+ fontSize = _ref.fontSize,
205
+ fontFamily = _ref.fontFamily;
206
+ var tempDom = document.createElement('div');
207
+ tempDom.style.cssText = "position: absolute;left: -999em;top:-999em;z-index: -1;text-overflow: initial;\n ".concat(fontSize ? "font-size:".concat(fontSize, " ;") : '', "\n ").concat(fontFamily ? "font-family:".concat(fontFamily, " ") : '', "\n ");
208
+ tempDom.innerText = text;
209
+ dom.append(tempDom);
210
+ var clientWidth = tempDom.clientWidth;
211
+ dom.removeChild(tempDom);
212
+ return clientWidth;
213
+ }
214
+ /* harmony default export */ const utils_getActualWidthByDom = (getActualWidthByDom);
221
215
  ;// CONCATENATED MODULE: ../../packages/overflow-title/src/directive/overflow-title.ts
222
216
 
223
217
 
@@ -253,7 +253,8 @@ function _isSlot(s) {
253
253
  "withValidate": false,
254
254
  "modelValue": localLimit.value,
255
255
  "onChange": handleLimitChange,
256
- "disabled": proxy.disabled
256
+ "disabled": proxy.disabled,
257
+ "filterable": false
257
258
  }, _isSlot(_slot = proxy.limitList.map(function (num, index) {
258
259
  return (0,external_vue_namespaceObject.createVNode)(select_namespaceObject.BkOption, {
259
260
  "id": num,
@@ -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-pagination {
128
131
  display: flex;
@@ -23,5 +23,5 @@
23
23
  * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24
24
  * IN THE SOFTWARE.
25
25
  */
26
- import $bkPopover from '../../popover/src/plugin-popover';
26
+ import $bkPopover from '../popover/plugin-popover';
27
27
  export default $bkPopover;