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

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 (209) hide show
  1. package/dist/index.cjs.js +70 -70
  2. package/dist/index.esm.js +15540 -14307
  3. package/dist/index.umd.js +69 -69
  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 +14 -9
  47. package/lib/dialog/props.d.ts +5 -0
  48. package/lib/directives/index.js +0 -1
  49. package/lib/dist.index.js +0 -1
  50. package/lib/divider/divider.variable.css +3 -0
  51. package/lib/dropdown/dropdown.css +3 -1
  52. package/lib/dropdown/dropdown.variable.css +6 -1
  53. package/lib/exception/exception.variable.css +3 -0
  54. package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
  55. package/lib/form/form.variable.css +3 -0
  56. package/lib/hooks.js +1 -8
  57. package/lib/icon/image-fill.js +82 -167
  58. package/lib/icon/img-error.js +82 -167
  59. package/lib/icon/img-placehoulder.js +82 -167
  60. package/lib/icon/index.d.ts +1 -0
  61. package/lib/icon/index.js +87 -2427
  62. package/lib/icon/info-line.js +82 -167
  63. package/lib/icon/info.js +82 -167
  64. package/lib/icon/left-shape.js +82 -167
  65. package/lib/icon/left-turn-line.js +82 -167
  66. package/lib/icon/loading.js +82 -167
  67. package/lib/icon/narrow-line.js +82 -167
  68. package/lib/icon/original.js +82 -167
  69. package/lib/icon/pdf-fill.js +82 -167
  70. package/lib/icon/play-shape.js +82 -167
  71. package/lib/icon/plus.js +82 -167
  72. package/lib/icon/ppt-fill.js +82 -167
  73. package/lib/icon/qq.js +82 -167
  74. package/lib/icon/right-shape.js +82 -167
  75. package/lib/icon/right-turn-line.js +82 -167
  76. package/lib/icon/search.js +82 -167
  77. package/lib/icon/share.js +82 -167
  78. package/lib/icon/spinner.js +82 -167
  79. package/lib/icon/success.js +82 -167
  80. package/lib/icon/switcher-loading.js +82 -167
  81. package/lib/icon/text-all.d.ts +4 -0
  82. package/lib/icon/text-all.js +191 -0
  83. package/lib/icon/text-file.js +82 -167
  84. package/lib/icon/text-fill.js +82 -167
  85. package/lib/icon/transfer.js +82 -167
  86. package/lib/icon/tree-application-shape.js +82 -167
  87. package/lib/icon/unfull-screen.js +82 -167
  88. package/lib/icon/unvisible.js +82 -167
  89. package/lib/icon/up-shape.js +82 -167
  90. package/lib/icon/upload.js +82 -167
  91. package/lib/icon/video-fill.js +82 -167
  92. package/lib/icon/warn.js +82 -167
  93. package/lib/icon/weixin-pro.js +82 -167
  94. package/lib/icon/weixin.js +82 -167
  95. package/lib/image/image-viewer.variable.css +3 -0
  96. package/lib/image/image.variable.css +3 -0
  97. package/lib/image/index.js +5 -2
  98. package/lib/index.js +0 -1
  99. package/lib/info-box/index.js +40 -455
  100. package/lib/info-box/info-box.css +6 -11
  101. package/lib/info-box/info-box.d.ts +1 -1
  102. package/lib/info-box/info-box.less +6 -10
  103. package/lib/info-box/info-box.variable.css +9 -11
  104. package/lib/input/index.js +5 -0
  105. package/lib/input/input.variable.css +3 -0
  106. package/lib/link/link.variable.css +3 -0
  107. package/lib/loading/loading.variable.css +3 -0
  108. package/lib/locale/index.js +4 -2
  109. package/lib/locale/lang/en.d.ts +1 -0
  110. package/lib/menu/menu.variable.css +3 -0
  111. package/lib/menu/submenu.variable.css +3 -0
  112. package/lib/message/message.variable.css +3 -0
  113. package/lib/modal/index.d.ts +34 -6
  114. package/lib/modal/index.js +14 -15
  115. package/lib/modal/modal.css +10 -15
  116. package/lib/modal/modal.d.ts +13 -2
  117. package/lib/modal/modal.less +5 -5
  118. package/lib/modal/modal.variable.css +13 -15
  119. package/lib/modal/props.mixin.d.ts +5 -0
  120. package/lib/navigation/navigation.variable.css +3 -0
  121. package/lib/notify/notify.variable.css +3 -0
  122. package/lib/pagination/index.js +2 -1
  123. package/lib/pagination/pagination.variable.css +3 -0
  124. package/lib/plugin-popover/index.d.ts +1 -1
  125. package/lib/plugin-popover/index.js +55 -31
  126. package/lib/pop-confirm/pop-confirm.variable.css +3 -0
  127. package/lib/popover/content.d.ts +1 -1
  128. package/lib/popover/index.js +55 -31
  129. package/lib/popover/plugin-popover.d.ts +4 -1
  130. package/lib/popover/popover.css +3 -1
  131. package/lib/popover/popover.less +4 -1
  132. package/lib/popover/popover.variable.css +6 -1
  133. package/lib/preset.d.ts +2 -0
  134. package/lib/preset.js +14 -20
  135. package/lib/process/process.variable.css +3 -0
  136. package/lib/progress/progress.variable.css +3 -0
  137. package/lib/radio/radio.variable.css +3 -0
  138. package/lib/rate/rate.variable.css +3 -0
  139. package/lib/rate/star.variable.css +3 -0
  140. package/lib/resize-layout/resize-layout.variable.css +3 -0
  141. package/lib/search-select/index.js +0 -1
  142. package/lib/search-select/search-select.variable.css +3 -0
  143. package/lib/select/index.d.ts +68 -6
  144. package/lib/select/index.js +1326 -68
  145. package/lib/select/option.d.ts +3 -1
  146. package/lib/select/pinyin/core.d.ts +14 -0
  147. package/lib/select/pinyin/dict.d.ts +34 -0
  148. package/lib/select/pinyin/index.d.ts +2 -0
  149. package/lib/select/select.css +36 -7
  150. package/lib/select/select.d.ts +28 -2
  151. package/lib/select/select.less +43 -13
  152. package/lib/select/select.variable.css +39 -7
  153. package/lib/select/type.d.ts +2 -3
  154. package/lib/shared/index.js +44 -3
  155. package/lib/shared/utils.d.ts +12 -0
  156. package/lib/sideslider/index.d.ts +29 -6
  157. package/lib/sideslider/index.js +5 -2
  158. package/lib/sideslider/sideslider.d.ts +13 -2
  159. package/lib/sideslider/sideslider.variable.css +3 -0
  160. package/lib/slider/slider.variable.css +3 -0
  161. package/lib/steps/steps.variable.css +3 -0
  162. package/lib/styles/mixins/animate.variable.css +3 -0
  163. package/lib/styles/mixins/popper.variable.css +3 -0
  164. package/lib/styles/mixins/scroll.variable.css +3 -0
  165. package/lib/styles/reset.css +1 -3
  166. package/lib/styles/reset.less +3 -6
  167. package/lib/styles/reset.variable.css +4 -3
  168. package/lib/styles/themes/themes.less +5 -0
  169. package/lib/swiper/swiper.variable.css +3 -0
  170. package/lib/switcher/switcher.variable.css +3 -0
  171. package/lib/tab/tab.variable.css +3 -0
  172. package/lib/table/cache.d.ts +11 -3
  173. package/lib/table/components/table-column.d.ts +111 -5
  174. package/lib/table/index.d.ts +66 -5
  175. package/lib/table/index.js +857 -562
  176. package/lib/table/plugins/head-filter.variable.css +3 -0
  177. package/lib/table/plugins/head-sort.d.ts +7 -0
  178. package/lib/table/plugins/head-sort.variable.css +3 -0
  179. package/lib/table/plugins/settings.variable.css +3 -0
  180. package/lib/table/plugins/use-draggable.d.ts +2 -2
  181. package/lib/table/plugins/use-observer-resize.d.ts +5 -0
  182. package/lib/table/props.d.ts +15 -4
  183. package/lib/table/table.css +6 -12
  184. package/lib/table/table.d.ts +7 -0
  185. package/lib/table/table.less +12 -9
  186. package/lib/table/table.variable.css +9 -12
  187. package/lib/table/use-attributes.d.ts +5 -43
  188. package/lib/table/utils.d.ts +5 -4
  189. package/lib/table-column/index.d.ts +235 -119
  190. package/lib/table-column/index.js +221 -30
  191. package/lib/tag/tag.variable.css +3 -0
  192. package/lib/tag-input/index.d.ts +4 -4
  193. package/lib/tag-input/tag-input.d.ts +2 -2
  194. package/lib/tag-input/tag-input.variable.css +3 -0
  195. package/lib/tag-input/tag-props.d.ts +1 -1
  196. package/lib/tag-input/tag-render.d.ts +1 -1
  197. package/lib/time-picker/index.d.ts +38 -35
  198. package/lib/time-picker/time-picker.variable.css +3 -0
  199. package/lib/timeline/index.d.ts +73 -44
  200. package/lib/timeline/index.js +45 -63
  201. package/lib/timeline/timeline.d.ts +42 -29
  202. package/lib/timeline/timeline.variable.css +3 -0
  203. package/lib/transfer/transfer.variable.css +3 -0
  204. package/lib/tree/tree.variable.css +3 -0
  205. package/lib/upload/upload.variable.css +3 -0
  206. package/lib/virtual-render/index.d.ts +9 -9
  207. package/lib/virtual-render/virtual-render.d.ts +3 -3
  208. package/lib/virtual-render/virtual-render.variable.css +3 -0
  209. package/package.json +3 -2
@@ -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
  }
@@ -164,11 +162,11 @@
164
162
  min-width: 88px;
165
163
  }
166
164
  .bk-modal-ctx {
167
- pointer-events: auto;
168
165
  top: 0px;
169
166
  left: 0px;
170
167
  width: 100%;
171
168
  height: 100%;
169
+ pointer-events: auto;
172
170
  }
173
171
  .bk-modal-ctx.--show {
174
172
  position: fixed;
@@ -177,9 +175,9 @@
177
175
  display: none;
178
176
  }
179
177
  .bk-modal-ctx .bk-modal-ctx-mask {
180
- display: none;
181
- left: 0;
182
178
  top: 0;
179
+ left: 0;
180
+ display: none;
183
181
  width: 100%;
184
182
  height: 100%;
185
183
  background-color: rgba(0, 0, 0, 0.6);
@@ -221,7 +219,7 @@
221
219
  }
222
220
  .bk-modal-wrapper .bk-modal-body {
223
221
  height: 100%;
224
- width: 100%;
222
+ overflow: hidden;
225
223
  background: #fff;
226
224
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
227
225
  }
@@ -82,6 +82,11 @@ export declare const propsMixin: {
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
  };
@@ -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;
@@ -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;
@@ -380,10 +380,13 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
380
380
  };
381
381
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
382
382
  resolveClassName = _usePrefix.resolveClassName;
383
+ var contentClassName = (0,external_vue_namespaceObject.computed)(function () {
384
+ return [resolveClassName('popover'), resolveClassName('pop2-content'), props.visible ? 'visible' : 'hidden', props.extCls];
385
+ });
383
386
  return {
384
387
  style: style,
385
388
  refContent: refContent,
386
- resolveClassName: resolveClassName,
389
+ contentClassName: contentClassName,
387
390
  resetPointerEvent: resetPointerEvent,
388
391
  setContentPointerEvent: setContentPointerEvent
389
392
  };
@@ -398,7 +401,6 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
398
401
  _this$$slots$default2,
399
402
  _this$$slots$default3,
400
403
  _this$$slots3;
401
- var className = [this.resolveClassName('popover'), this.resolveClassName('pop2-content'), this.extCls];
402
404
  var resolveContentStyle = function resolveContentStyle(slot) {
403
405
  var _slot$;
404
406
  if (external_vue_namespaceObject.Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
@@ -411,7 +413,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
411
413
  };
412
414
  var style = resolveContentStyle((_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots));
413
415
  return (0,external_vue_namespaceObject.createVNode)("div", {
414
- "class": className,
416
+ "class": this.contentClassName,
415
417
  "style": style,
416
418
  "ref": "refContent"
417
419
  }, [(_this$$slots$arrow = (_this$$slots$arrow2 = (_this$$slots2 = this.$slots).arrow) === null || _this$$slots$arrow2 === void 0 ? void 0 : _this$$slots$arrow2.call(_this$$slots2)) !== null && _this$$slots$arrow !== void 0 ? _this$$slots$arrow : '', (_this$$slots$default2 = (_this$$slots$default3 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default3 === void 0 ? void 0 : _this$$slots$default3.call(_this$$slots3)) !== null && _this$$slots$default2 !== void 0 ? _this$$slots$default2 : '']);
@@ -3085,9 +3087,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
3085
3087
  var delay = resolvePopoverDelay()[0];
3086
3088
  // 设置settimeout避免hidePopover导致显示问题
3087
3089
  popShowTimerId = setTimeout(function () {
3088
- if (popHideTimerId) {
3089
- clearTimeout(popHideTimerId);
3090
- }
3090
+ // if (popHideTimerId) {
3091
+ // clearTimeout(popHideTimerId);
3092
+ // }
3091
3093
  if (!props.disabled) {
3092
3094
  localIsShow.value = true;
3093
3095
  }
@@ -3424,14 +3426,19 @@ var parentNodeReferId = null;
3424
3426
  storeEvents = null;
3425
3427
  }
3426
3428
  };
3429
+ var getClosestFullscreenElement = function getClosestFullscreenElement(elment) {
3430
+ var _elment$closest;
3431
+ return (_elment$closest = elment === null || elment === void 0 ? void 0 : elment.closest('[data-fllsrn-id]')) !== null && _elment$closest !== void 0 ? _elment$closest : elment;
3432
+ };
3427
3433
  var updateBoundary = function updateBoundary() {
3428
3434
  var _resolvePopElements3 = resolvePopElements(),
3429
3435
  elReference = _resolvePopElements3.elReference,
3430
3436
  root = _resolvePopElements3.root;
3431
3437
  if (isFullscreen.value) {
3438
+ var _fullScreenTarget$val;
3432
3439
  var _ref6 = elReference || root || {},
3433
3440
  parentNode = _ref6.parentNode;
3434
- boundary.value = (fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) || parentNode;
3441
+ boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
3435
3442
  return;
3436
3443
  }
3437
3444
  boundary.value = getPrefixId(root || elReference);
@@ -3439,13 +3446,13 @@ var parentNodeReferId = null;
3439
3446
  var _usePopperId = use_popper_id(props, '#'),
3440
3447
  getPrefixId = _usePopperId.getPrefixId;
3441
3448
  var setFullscreenTag = function setFullscreenTag() {
3442
- var _fullScreenTarget$val;
3443
- fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val = fullScreenTarget.value) === null || _fullScreenTarget$val === void 0 || _fullScreenTarget$val.setAttribute('data-fllsrn-id', fullscreenReferId);
3449
+ var _fullScreenTarget$val2;
3450
+ fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
3444
3451
  };
3445
3452
  var clearFullscreenTag = function clearFullscreenTag() {
3446
- var _fullScreenTarget$val2, _fullScreenTarget$val3;
3453
+ var _fullScreenTarget$val3, _fullScreenTarget$val4;
3447
3454
  var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
3448
- ((_fullScreenTarget$val2 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val3 = fullScreenTarget.value) === null || _fullScreenTarget$val3 === void 0 ? void 0 : _fullScreenTarget$val3.querySelectorAll(query)) !== null && _fullScreenTarget$val2 !== void 0 ? _fullScreenTarget$val2 : []).forEach(function (element) {
3455
+ ((_fullScreenTarget$val3 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val4 = fullScreenTarget.value) === null || _fullScreenTarget$val4 === void 0 ? void 0 : _fullScreenTarget$val4.querySelectorAll(query)) !== null && _fullScreenTarget$val3 !== void 0 ? _fullScreenTarget$val3 : []).forEach(function (element) {
3449
3456
  element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
3450
3457
  });
3451
3458
  };
@@ -3623,7 +3630,7 @@ function _isSlot(s) {
3623
3630
  (0,external_vue_namespaceObject.onMounted)(onMountedFn);
3624
3631
  (0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
3625
3632
  var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
3626
- return !props.disableTeleport;
3633
+ return localIsShow.value && !props.disableTeleport;
3627
3634
  });
3628
3635
  var show = function show() {
3629
3636
  showFn();
@@ -3762,9 +3769,11 @@ function plugin_popover_objectSpread(e) { for (var r = 1; r < arguments.length;
3762
3769
 
3763
3770
 
3764
3771
  function createPopoverComponent(options) {
3772
+ var _options$immediate;
3765
3773
  var $PopoverInstance = null;
3766
3774
  var $PopoverInstanceVm = null;
3767
3775
  var $PopoverInstanceEl = null;
3776
+ var immediate = (_options$immediate = options.immediate) !== null && _options$immediate !== void 0 ? _options$immediate : true;
3768
3777
  var resolvedOptions = plugin_popover_objectSpread(plugin_popover_objectSpread({
3769
3778
  boundary: 'body',
3770
3779
  placement: 'top',
@@ -3857,37 +3866,52 @@ function createPopoverComponent(options) {
3857
3866
  }
3858
3867
  return document.body;
3859
3868
  }
3860
- if ($PopoverInstance === null) {
3861
- $PopoverInstanceEl = document.createElement('div');
3862
- getBoundaryDom(resolvedOptions.boundary).append($PopoverInstanceEl);
3863
- $PopoverInstance = (0,external_vue_namespaceObject.createApp)(popoverComponent);
3864
- $PopoverInstanceVm = $PopoverInstance.mount($PopoverInstanceEl);
3865
- }
3866
- function close() {
3867
- if ($PopoverInstance) {
3868
- $PopoverInstance.unmount();
3869
- $PopoverInstanceVm = null;
3870
- $PopoverInstance = null;
3871
- $PopoverInstanceEl.remove();
3869
+ var install = function install() {
3870
+ if ($PopoverInstance === null) {
3871
+ $PopoverInstanceEl = document.createElement('div');
3872
+ getBoundaryDom(resolvedOptions.boundary).append($PopoverInstanceEl);
3873
+ $PopoverInstance = (0,external_vue_namespaceObject.createApp)(popoverComponent);
3874
+ $PopoverInstanceVm = $PopoverInstance.mount($PopoverInstanceEl);
3875
+ }
3876
+ };
3877
+ var uninstall = function uninstall() {
3878
+ var _$PopoverInstanceEl;
3879
+ if (utils_isElement(options.content)) {
3880
+ options.content.remove();
3872
3881
  }
3882
+ $PopoverInstance.unmount();
3883
+ $PopoverInstance = null;
3884
+ (_$PopoverInstanceEl = $PopoverInstanceEl) === null || _$PopoverInstanceEl === void 0 || _$PopoverInstanceEl.remove();
3885
+ };
3886
+ function close() {
3887
+ uninstall();
3888
+ $PopoverInstanceVm = null;
3873
3889
  }
3874
- function show() {
3875
- var _$PopoverInstanceVm;
3876
- (_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 || _$PopoverInstanceVm.show();
3890
+ function show(target) {
3891
+ var _$PopoverInstanceVm2;
3892
+ install();
3893
+ if (target) {
3894
+ var _$PopoverInstanceVm;
3895
+ (_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 || _$PopoverInstanceVm.updateTarget(target);
3896
+ }
3897
+ (_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 || _$PopoverInstanceVm2.show();
3877
3898
  }
3878
3899
  function update(e) {
3879
- var _$PopoverInstanceVm2;
3880
- (_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 || _$PopoverInstanceVm2.updateTarget(e);
3900
+ var _$PopoverInstanceVm3;
3901
+ (_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 || _$PopoverInstanceVm3.updateTarget(e);
3881
3902
  }
3882
3903
  function hide() {
3883
- var _$PopoverInstanceVm3;
3884
- (_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 || _$PopoverInstanceVm3.hide();
3904
+ var _$PopoverInstanceVm4;
3905
+ (_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0 || _$PopoverInstanceVm4.hide();
3885
3906
  }
3907
+ immediate && install();
3886
3908
  return {
3909
+ install: install,
3887
3910
  close: close,
3888
3911
  show: show,
3889
3912
  hide: hide,
3890
3913
  update: update,
3914
+ uninstall: uninstall,
3891
3915
  get vm() {
3892
3916
  return $PopoverInstanceVm;
3893
3917
  },
@@ -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-popover.bk-pop-confirm-box {
128
131
  padding: 16px;
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
34
34
  maxWidth: string | number;
35
35
  }>;
36
36
  refContent: import("vue").Ref<any>;
37
- resolveClassName: (cls: string) => string;
37
+ contentClassName: import("vue").ComputedRef<string[]>;
38
38
  resetPointerEvent: () => void;
39
39
  setContentPointerEvent: (val: string) => void;
40
40
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -383,10 +383,13 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
383
383
  };
384
384
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
385
385
  resolveClassName = _usePrefix.resolveClassName;
386
+ var contentClassName = (0,external_vue_namespaceObject.computed)(function () {
387
+ return [resolveClassName('popover'), resolveClassName('pop2-content'), props.visible ? 'visible' : 'hidden', props.extCls];
388
+ });
386
389
  return {
387
390
  style: style,
388
391
  refContent: refContent,
389
- resolveClassName: resolveClassName,
392
+ contentClassName: contentClassName,
390
393
  resetPointerEvent: resetPointerEvent,
391
394
  setContentPointerEvent: setContentPointerEvent
392
395
  };
@@ -401,7 +404,6 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
401
404
  _this$$slots$default2,
402
405
  _this$$slots$default3,
403
406
  _this$$slots3;
404
- var className = [this.resolveClassName('popover'), this.resolveClassName('pop2-content'), this.extCls];
405
407
  var resolveContentStyle = function resolveContentStyle(slot) {
406
408
  var _slot$;
407
409
  if (external_vue_namespaceObject.Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
@@ -414,7 +416,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
414
416
  };
415
417
  var style = resolveContentStyle((_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots));
416
418
  return (0,external_vue_namespaceObject.createVNode)("div", {
417
- "class": className,
419
+ "class": this.contentClassName,
418
420
  "style": style,
419
421
  "ref": "refContent"
420
422
  }, [(_this$$slots$arrow = (_this$$slots$arrow2 = (_this$$slots2 = this.$slots).arrow) === null || _this$$slots$arrow2 === void 0 ? void 0 : _this$$slots$arrow2.call(_this$$slots2)) !== null && _this$$slots$arrow !== void 0 ? _this$$slots$arrow : '', (_this$$slots$default2 = (_this$$slots$default3 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default3 === void 0 ? void 0 : _this$$slots$default3.call(_this$$slots3)) !== null && _this$$slots$default2 !== void 0 ? _this$$slots$default2 : '']);
@@ -3088,9 +3090,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
3088
3090
  var delay = resolvePopoverDelay()[0];
3089
3091
  // 设置settimeout避免hidePopover导致显示问题
3090
3092
  popShowTimerId = setTimeout(function () {
3091
- if (popHideTimerId) {
3092
- clearTimeout(popHideTimerId);
3093
- }
3093
+ // if (popHideTimerId) {
3094
+ // clearTimeout(popHideTimerId);
3095
+ // }
3094
3096
  if (!props.disabled) {
3095
3097
  localIsShow.value = true;
3096
3098
  }
@@ -3427,14 +3429,19 @@ var parentNodeReferId = null;
3427
3429
  storeEvents = null;
3428
3430
  }
3429
3431
  };
3432
+ var getClosestFullscreenElement = function getClosestFullscreenElement(elment) {
3433
+ var _elment$closest;
3434
+ return (_elment$closest = elment === null || elment === void 0 ? void 0 : elment.closest('[data-fllsrn-id]')) !== null && _elment$closest !== void 0 ? _elment$closest : elment;
3435
+ };
3430
3436
  var updateBoundary = function updateBoundary() {
3431
3437
  var _resolvePopElements3 = resolvePopElements(),
3432
3438
  elReference = _resolvePopElements3.elReference,
3433
3439
  root = _resolvePopElements3.root;
3434
3440
  if (isFullscreen.value) {
3441
+ var _fullScreenTarget$val;
3435
3442
  var _ref6 = elReference || root || {},
3436
3443
  parentNode = _ref6.parentNode;
3437
- boundary.value = (fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) || parentNode;
3444
+ boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
3438
3445
  return;
3439
3446
  }
3440
3447
  boundary.value = getPrefixId(root || elReference);
@@ -3442,13 +3449,13 @@ var parentNodeReferId = null;
3442
3449
  var _usePopperId = use_popper_id(props, '#'),
3443
3450
  getPrefixId = _usePopperId.getPrefixId;
3444
3451
  var setFullscreenTag = function setFullscreenTag() {
3445
- var _fullScreenTarget$val;
3446
- fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val = fullScreenTarget.value) === null || _fullScreenTarget$val === void 0 || _fullScreenTarget$val.setAttribute('data-fllsrn-id', fullscreenReferId);
3452
+ var _fullScreenTarget$val2;
3453
+ fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
3447
3454
  };
3448
3455
  var clearFullscreenTag = function clearFullscreenTag() {
3449
- var _fullScreenTarget$val2, _fullScreenTarget$val3;
3456
+ var _fullScreenTarget$val3, _fullScreenTarget$val4;
3450
3457
  var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
3451
- ((_fullScreenTarget$val2 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val3 = fullScreenTarget.value) === null || _fullScreenTarget$val3 === void 0 ? void 0 : _fullScreenTarget$val3.querySelectorAll(query)) !== null && _fullScreenTarget$val2 !== void 0 ? _fullScreenTarget$val2 : []).forEach(function (element) {
3458
+ ((_fullScreenTarget$val3 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val4 = fullScreenTarget.value) === null || _fullScreenTarget$val4 === void 0 ? void 0 : _fullScreenTarget$val4.querySelectorAll(query)) !== null && _fullScreenTarget$val3 !== void 0 ? _fullScreenTarget$val3 : []).forEach(function (element) {
3452
3459
  element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
3453
3460
  });
3454
3461
  };
@@ -3626,7 +3633,7 @@ function _isSlot(s) {
3626
3633
  (0,external_vue_namespaceObject.onMounted)(onMountedFn);
3627
3634
  (0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
3628
3635
  var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
3629
- return !props.disableTeleport;
3636
+ return localIsShow.value && !props.disableTeleport;
3630
3637
  });
3631
3638
  var show = function show() {
3632
3639
  showFn();
@@ -3765,9 +3772,11 @@ function plugin_popover_objectSpread(e) { for (var r = 1; r < arguments.length;
3765
3772
 
3766
3773
 
3767
3774
  function createPopoverComponent(options) {
3775
+ var _options$immediate;
3768
3776
  var $PopoverInstance = null;
3769
3777
  var $PopoverInstanceVm = null;
3770
3778
  var $PopoverInstanceEl = null;
3779
+ var immediate = (_options$immediate = options.immediate) !== null && _options$immediate !== void 0 ? _options$immediate : true;
3771
3780
  var resolvedOptions = plugin_popover_objectSpread(plugin_popover_objectSpread({
3772
3781
  boundary: 'body',
3773
3782
  placement: 'top',
@@ -3860,37 +3869,52 @@ function createPopoverComponent(options) {
3860
3869
  }
3861
3870
  return document.body;
3862
3871
  }
3863
- if ($PopoverInstance === null) {
3864
- $PopoverInstanceEl = document.createElement('div');
3865
- getBoundaryDom(resolvedOptions.boundary).append($PopoverInstanceEl);
3866
- $PopoverInstance = (0,external_vue_namespaceObject.createApp)(popoverComponent);
3867
- $PopoverInstanceVm = $PopoverInstance.mount($PopoverInstanceEl);
3868
- }
3869
- function close() {
3870
- if ($PopoverInstance) {
3871
- $PopoverInstance.unmount();
3872
- $PopoverInstanceVm = null;
3873
- $PopoverInstance = null;
3874
- $PopoverInstanceEl.remove();
3872
+ var install = function install() {
3873
+ if ($PopoverInstance === null) {
3874
+ $PopoverInstanceEl = document.createElement('div');
3875
+ getBoundaryDom(resolvedOptions.boundary).append($PopoverInstanceEl);
3876
+ $PopoverInstance = (0,external_vue_namespaceObject.createApp)(popoverComponent);
3877
+ $PopoverInstanceVm = $PopoverInstance.mount($PopoverInstanceEl);
3878
+ }
3879
+ };
3880
+ var uninstall = function uninstall() {
3881
+ var _$PopoverInstanceEl;
3882
+ if (utils_isElement(options.content)) {
3883
+ options.content.remove();
3875
3884
  }
3885
+ $PopoverInstance.unmount();
3886
+ $PopoverInstance = null;
3887
+ (_$PopoverInstanceEl = $PopoverInstanceEl) === null || _$PopoverInstanceEl === void 0 || _$PopoverInstanceEl.remove();
3888
+ };
3889
+ function close() {
3890
+ uninstall();
3891
+ $PopoverInstanceVm = null;
3876
3892
  }
3877
- function show() {
3878
- var _$PopoverInstanceVm;
3879
- (_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 || _$PopoverInstanceVm.show();
3893
+ function show(target) {
3894
+ var _$PopoverInstanceVm2;
3895
+ install();
3896
+ if (target) {
3897
+ var _$PopoverInstanceVm;
3898
+ (_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 || _$PopoverInstanceVm.updateTarget(target);
3899
+ }
3900
+ (_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 || _$PopoverInstanceVm2.show();
3880
3901
  }
3881
3902
  function update(e) {
3882
- var _$PopoverInstanceVm2;
3883
- (_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 || _$PopoverInstanceVm2.updateTarget(e);
3903
+ var _$PopoverInstanceVm3;
3904
+ (_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 || _$PopoverInstanceVm3.updateTarget(e);
3884
3905
  }
3885
3906
  function hide() {
3886
- var _$PopoverInstanceVm3;
3887
- (_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 || _$PopoverInstanceVm3.hide();
3907
+ var _$PopoverInstanceVm4;
3908
+ (_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0 || _$PopoverInstanceVm4.hide();
3888
3909
  }
3910
+ immediate && install();
3889
3911
  return {
3912
+ install: install,
3890
3913
  close: close,
3891
3914
  show: show,
3892
3915
  hide: hide,
3893
3916
  update: update,
3917
+ uninstall: uninstall,
3894
3918
  get vm() {
3895
3919
  return $PopoverInstanceVm;
3896
3920
  },
@@ -1,12 +1,15 @@
1
1
  import { PopoverPropTypes } from './props';
2
2
  export type $Popover = PopoverPropTypes & {
3
3
  target: HTMLElement | HTMLElement | MouseEvent;
4
+ immediate: boolean;
4
5
  };
5
6
  export default function createPopoverComponent(options: $Popover): {
7
+ install: () => void;
6
8
  close: () => void;
7
- show: () => void;
9
+ show: (target?: MouseEvent | HTMLElement) => void;
8
10
  hide: () => void;
9
11
  update: (e: MouseEvent) => void;
12
+ uninstall: () => void;
10
13
  readonly vm: any;
11
14
  readonly $el: HTMLElement;
12
15
  };
@@ -1,6 +1,5 @@
1
1
  .bk-popover.bk-pop2-content {
2
2
  position: absolute;
3
- display: none;
4
3
  padding: 12px;
5
4
  font-size: 12px;
6
5
  color: #fff;
@@ -8,6 +7,9 @@
8
7
  border-radius: 4px;
9
8
  box-sizing: border-box;
10
9
  }
10
+ .bk-popover.bk-pop2-content.hidden {
11
+ display: none;
12
+ }
11
13
  .bk-popover.bk-pop2-content .bk-pop2-arrow {
12
14
  position: absolute;
13
15
  z-index: -1;
@@ -4,7 +4,10 @@
4
4
  .@{bk-prefix}-popover {
5
5
  &.@{bk-prefix}-pop2-content {
6
6
  position: absolute;
7
- display: none;
7
+
8
+ &.hidden {
9
+ display: none;
10
+ }
8
11
 
9
12
  padding: 12px;
10
13
 
@@ -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,10 +124,11 @@
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-popover.bk-pop2-content {
128
131
  position: absolute;
129
- display: none;
130
132
  padding: 12px;
131
133
  font-size: 12px;
132
134
  color: #fff;
@@ -134,6 +136,9 @@
134
136
  border-radius: 4px;
135
137
  box-sizing: border-box;
136
138
  }
139
+ .bk-popover.bk-pop2-content.hidden {
140
+ display: none;
141
+ }
137
142
  .bk-popover.bk-pop2-content .bk-pop2-arrow {
138
143
  position: absolute;
139
144
  z-index: -1;
package/lib/preset.d.ts CHANGED
@@ -118,6 +118,7 @@ declare const _default: {
118
118
  };
119
119
  input: {
120
120
  placeholder: string;
121
+ maxlengthLimitTips: string;
121
122
  };
122
123
  tagInput: {
123
124
  placeholder: string;
@@ -261,6 +262,7 @@ declare const _default: {
261
262
  };
262
263
  input: {
263
264
  placeholder: string;
265
+ maxlengthLimitTips: string;
264
266
  };
265
267
  tagInput: {
266
268
  placeholder: string;