bkui-vue 0.0.1-beta.467 → 0.0.1-beta.468

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 (259) hide show
  1. package/dist/index.cjs.js +5 -5
  2. package/dist/index.esm.js +294 -294
  3. package/dist/index.umd.js +5 -5
  4. package/lib/affix/index.js +335 -1
  5. package/lib/alert/alert.d.ts +5 -5
  6. package/lib/alert/index.d.ts +9 -9
  7. package/lib/alert/index.js +276 -1
  8. package/lib/animate-number/index.js +219 -1
  9. package/lib/backtop/index.js +252 -1
  10. package/lib/badge/index.js +293 -1
  11. package/lib/breadcrumb/index.js +311 -1
  12. package/lib/button/index.js +388 -1
  13. package/lib/card/index.js +356 -1
  14. package/lib/cascader/cascader.d.ts +4 -4
  15. package/lib/cascader/index.d.ts +12 -12
  16. package/lib/cascader/index.js +2075 -2
  17. package/lib/checkbox/index.js +536 -1
  18. package/lib/code-diff/code-diff.d.ts +7 -7
  19. package/lib/code-diff/index.d.ts +9 -9
  20. package/lib/code-diff/index.js +5535 -1
  21. package/lib/collapse/collapse-panel.d.ts +5 -5
  22. package/lib/collapse/index.d.ts +5 -5
  23. package/lib/collapse/index.js +589 -1
  24. package/lib/collapse/props.d.ts +2 -2
  25. package/lib/collapse-transition/index.js +234 -1
  26. package/lib/color-picker/index.js +2701 -1
  27. package/lib/components.js +781 -1
  28. package/lib/config-provider/index.js +377 -1
  29. package/lib/container/index.js +390 -1
  30. package/lib/date-picker/base/month-table.d.ts +1 -1
  31. package/lib/date-picker/base/year-table.d.ts +1 -1
  32. package/lib/date-picker/date-picker.d.ts +4 -4
  33. package/lib/date-picker/index.d.ts +9 -9
  34. package/lib/date-picker/index.js +5537 -1
  35. package/lib/date-picker/panel/date.d.ts +1 -1
  36. package/lib/date-picker/panel/time-range.d.ts +4 -4
  37. package/lib/date-picker/panel/time.d.ts +5 -5
  38. package/lib/date-picker/props.d.ts +1 -1
  39. package/lib/date-picker/time-picker.d.ts +4 -4
  40. package/lib/dialog/dialog.d.ts +16 -16
  41. package/lib/dialog/index.d.ts +31 -31
  42. package/lib/dialog/index.js +1322 -2
  43. package/lib/dialog/props.d.ts +6 -6
  44. package/lib/directives/index.js +1357 -2
  45. package/lib/dist.index.js +179 -1
  46. package/lib/divider/divider.d.ts +6 -6
  47. package/lib/divider/index.d.ts +12 -12
  48. package/lib/divider/index.js +226 -1
  49. package/lib/divider/props.d.ts +2 -2
  50. package/lib/dropdown/dropdown.d.ts +5 -5
  51. package/lib/dropdown/index.d.ts +9 -9
  52. package/lib/dropdown/index.js +392 -1
  53. package/lib/exception/index.js +423 -1
  54. package/lib/fixed-navbar/index.js +210 -1
  55. package/lib/form/index.js +995 -1
  56. package/lib/hooks.js +133 -1
  57. package/lib/icon/angle-double-down-line.js +541 -1
  58. package/lib/icon/angle-double-left-line.js +541 -1
  59. package/lib/icon/angle-double-left.js +541 -1
  60. package/lib/icon/angle-double-right-line.js +541 -1
  61. package/lib/icon/angle-double-right.js +541 -1
  62. package/lib/icon/angle-double-up-line.js +541 -1
  63. package/lib/icon/angle-down-fill.js +541 -1
  64. package/lib/icon/angle-down-line.js +541 -1
  65. package/lib/icon/angle-down.js +541 -1
  66. package/lib/icon/angle-left.js +541 -1
  67. package/lib/icon/angle-right.js +541 -1
  68. package/lib/icon/angle-up-fill.js +541 -1
  69. package/lib/icon/angle-up.js +541 -1
  70. package/lib/icon/archive-fill.js +541 -1
  71. package/lib/icon/arrows-left.js +541 -1
  72. package/lib/icon/arrows-right.js +541 -1
  73. package/lib/icon/audio-fill.js +541 -1
  74. package/lib/icon/bk.js +541 -1
  75. package/lib/icon/circle.js +541 -1
  76. package/lib/icon/close-line.js +541 -1
  77. package/lib/icon/close.js +541 -1
  78. package/lib/icon/code.js +541 -1
  79. package/lib/icon/cog-shape.js +541 -1
  80. package/lib/icon/collapse-left.js +541 -1
  81. package/lib/icon/copy-shape.js +541 -1
  82. package/lib/icon/copy.js +541 -1
  83. package/lib/icon/data-shape.js +541 -1
  84. package/lib/icon/del.js +541 -1
  85. package/lib/icon/doc-fill.js +541 -1
  86. package/lib/icon/done.js +541 -1
  87. package/lib/icon/down-shape.js +541 -1
  88. package/lib/icon/down-small.js +541 -1
  89. package/lib/icon/edit-line.js +541 -1
  90. package/lib/icon/ellipsis.js +541 -1
  91. package/lib/icon/enlarge-line.js +541 -1
  92. package/lib/icon/error.js +541 -1
  93. package/lib/icon/excel-fill.js +541 -1
  94. package/lib/icon/exclamation-circle-shape.js +541 -1
  95. package/lib/icon/eye.js +541 -1
  96. package/lib/icon/filliscreen-line.js +541 -1
  97. package/lib/icon/fix-line.js +541 -1
  98. package/lib/icon/fix-shape.js +541 -1
  99. package/lib/icon/folder-open.js +541 -1
  100. package/lib/icon/folder-shape-open.js +541 -1
  101. package/lib/icon/folder-shape.js +541 -1
  102. package/lib/icon/folder.js +541 -1
  103. package/lib/icon/funnel.js +541 -1
  104. package/lib/icon/help-document-fill.js +541 -1
  105. package/lib/icon/help-fill.js +541 -1
  106. package/lib/icon/help.js +541 -1
  107. package/lib/icon/image-fill.js +563 -1
  108. package/lib/icon/img-error.js +563 -1
  109. package/lib/icon/img-placehoulder.js +563 -1
  110. package/lib/icon/index.js +2337 -1
  111. package/lib/icon/info-line.js +563 -1
  112. package/lib/icon/info.js +563 -1
  113. package/lib/icon/left-shape.js +563 -1
  114. package/lib/icon/left-turn-line.js +563 -1
  115. package/lib/icon/narrow-line.js +563 -1
  116. package/lib/icon/original.js +563 -1
  117. package/lib/icon/pdf-fill.js +563 -1
  118. package/lib/icon/play-shape.js +563 -1
  119. package/lib/icon/plus.js +563 -1
  120. package/lib/icon/ppt-fill.js +563 -1
  121. package/lib/icon/qq.js +563 -1
  122. package/lib/icon/right-shape.js +563 -1
  123. package/lib/icon/right-turn-line.js +563 -1
  124. package/lib/icon/search.js +563 -1
  125. package/lib/icon/share.js +563 -1
  126. package/lib/icon/spinner.js +563 -1
  127. package/lib/icon/success.js +563 -1
  128. package/lib/icon/switcher-loading.js +563 -1
  129. package/lib/icon/text-file.js +563 -1
  130. package/lib/icon/text-fill.js +563 -1
  131. package/lib/icon/transfer.js +563 -1
  132. package/lib/icon/tree-application-shape.js +563 -1
  133. package/lib/icon/unfull-screen.js +563 -1
  134. package/lib/icon/unvisible.js +563 -1
  135. package/lib/icon/up-shape.js +563 -1
  136. package/lib/icon/upload.js +563 -1
  137. package/lib/icon/video-fill.js +563 -1
  138. package/lib/icon/warn.js +563 -1
  139. package/lib/icon/weixin-pro.js +563 -1
  140. package/lib/icon/weixin.js +563 -1
  141. package/lib/image/image-viewer.d.ts +1 -1
  142. package/lib/image/image.d.ts +1 -1
  143. package/lib/image/index.d.ts +3 -3
  144. package/lib/image/index.js +944 -1
  145. package/lib/index.js +195 -1
  146. package/lib/info-box/index.js +1508 -2
  147. package/lib/input/index.d.ts +9 -9
  148. package/lib/input/index.js +963 -1
  149. package/lib/input/input.d.ts +7 -7
  150. package/lib/link/index.js +219 -1
  151. package/lib/loading/index.d.ts +4 -4
  152. package/lib/loading/index.js +434 -1
  153. package/lib/loading/loading.d.ts +3 -3
  154. package/lib/locale/index.js +489 -1
  155. package/lib/menu/index.js +776 -1
  156. package/lib/message/index.js +1744 -2
  157. package/lib/message/messageConstructor.d.ts +1 -1
  158. package/lib/modal/index.d.ts +15 -15
  159. package/lib/modal/index.js +397 -1
  160. package/lib/modal/modal.d.ts +6 -6
  161. package/lib/modal/props.mixin.d.ts +2 -2
  162. package/lib/navigation/index.d.ts +3 -3
  163. package/lib/navigation/index.js +423 -1
  164. package/lib/navigation/navigation.d.ts +1 -1
  165. package/lib/notify/index.js +437 -1
  166. package/lib/notify/notifyConstructor.d.ts +2 -2
  167. package/lib/overflow-title/components/overflow-title.d.ts +5 -5
  168. package/lib/overflow-title/index.d.ts +9 -9
  169. package/lib/overflow-title/index.js +547 -1
  170. package/lib/overflow-title/props.d.ts +4 -4
  171. package/lib/pagination/index.js +987 -1
  172. package/lib/plugin-popover/index.js +4022 -1
  173. package/lib/plugins/index.js +130 -1
  174. package/lib/pop-confirm/index.js +365 -1
  175. package/lib/popover/index.d.ts +9 -9
  176. package/lib/popover/index.js +4028 -1
  177. package/lib/popover/popover.d.ts +5 -5
  178. package/lib/popover/props.d.ts +2 -2
  179. package/lib/popover2/index.js +171 -1
  180. package/lib/preset.js +164 -1
  181. package/lib/process/index.js +1143 -2
  182. package/lib/progress/index.d.ts +3 -3
  183. package/lib/progress/index.js +476 -1
  184. package/lib/progress/progress.d.ts +1 -1
  185. package/lib/radio/index.js +611 -1
  186. package/lib/rate/index.js +348 -1
  187. package/lib/rate/star.d.ts +1 -1
  188. package/lib/resize-layout/index.d.ts +15 -15
  189. package/lib/resize-layout/index.js +482 -1
  190. package/lib/resize-layout/resize-layout.d.ts +7 -7
  191. package/lib/search-select/index.d.ts +15 -15
  192. package/lib/search-select/index.js +2999 -2
  193. package/lib/search-select/input.d.ts +1 -1
  194. package/lib/search-select/search-select.d.ts +5 -5
  195. package/lib/search-select/selected.d.ts +1 -1
  196. package/lib/select/index.d.ts +61 -61
  197. package/lib/select/index.js +2531 -2
  198. package/lib/select/select.d.ts +26 -26
  199. package/lib/select/selectTagInput.d.ts +5 -5
  200. package/lib/shared/index.js +2713 -1
  201. package/lib/shared/vue-types.d.ts +11 -11
  202. package/lib/sideslider/index.d.ts +13 -13
  203. package/lib/sideslider/index.js +1043 -2
  204. package/lib/sideslider/sideslider.d.ts +6 -6
  205. package/lib/slider/index.js +1667 -2
  206. package/lib/steps/index.d.ts +6 -6
  207. package/lib/steps/index.js +1212 -2
  208. package/lib/steps/steps.d.ts +2 -2
  209. package/lib/swiper/index.js +350 -1
  210. package/lib/switcher/index.js +323 -1
  211. package/lib/tab/index.d.ts +19 -19
  212. package/lib/tab/index.js +918 -1
  213. package/lib/tab/props.d.ts +8 -8
  214. package/lib/tab/tab-nav.d.ts +5 -5
  215. package/lib/tab/tab-panel.d.ts +6 -6
  216. package/lib/tab/tab.d.ts +6 -6
  217. package/lib/table/components/table-column.d.ts +7 -7
  218. package/lib/table/index.d.ts +36 -36
  219. package/lib/table/index.js +6388 -1
  220. package/lib/table/plugins/body-empty.d.ts +1 -1
  221. package/lib/table/props.d.ts +9 -9
  222. package/lib/table/table.d.ts +11 -11
  223. package/lib/table-column/index.d.ts +13 -13
  224. package/lib/table-column/index.js +801 -1
  225. package/lib/tag/index.d.ts +9 -9
  226. package/lib/tag/index.js +300 -1
  227. package/lib/tag/tag.d.ts +5 -5
  228. package/lib/tag-input/index.d.ts +9 -9
  229. package/lib/tag-input/index.js +1757 -1
  230. package/lib/tag-input/tag-input.d.ts +5 -5
  231. package/lib/tag-input/tag-props.d.ts +2 -2
  232. package/lib/time-picker/index.d.ts +9 -9
  233. package/lib/time-picker/index.js +142 -1
  234. package/lib/timeline/index.js +297 -1
  235. package/lib/transfer/index.d.ts +3 -3
  236. package/lib/transfer/index.js +764 -1
  237. package/lib/transfer/transfer.d.ts +1 -1
  238. package/lib/tree/index.d.ts +6 -6
  239. package/lib/tree/index.js +2608 -1
  240. package/lib/tree/tree.d.ts +2 -2
  241. package/lib/upload/index.d.ts +4 -4
  242. package/lib/upload/index.js +3257 -2
  243. package/lib/upload/upload.d.ts +1 -1
  244. package/lib/virtual-render/index.d.ts +3 -3
  245. package/lib/virtual-render/index.js +790 -1
  246. package/lib/virtual-render/virtual-render.d.ts +1 -1
  247. package/package.json +1 -1
  248. package/lib/cascader/index.js.LICENSE.txt +0 -1
  249. package/lib/dialog/index.js.LICENSE.txt +0 -1
  250. package/lib/directives/index.js.LICENSE.txt +0 -14
  251. package/lib/info-box/index.js.LICENSE.txt +0 -1
  252. package/lib/message/index.js.LICENSE.txt +0 -6
  253. package/lib/process/index.js.LICENSE.txt +0 -1
  254. package/lib/search-select/index.js.LICENSE.txt +0 -1
  255. package/lib/select/index.js.LICENSE.txt +0 -1
  256. package/lib/sideslider/index.js.LICENSE.txt +0 -1
  257. package/lib/slider/index.js.LICENSE.txt +0 -1
  258. package/lib/steps/index.js.LICENSE.txt +0 -1
  259. package/lib/upload/index.js.LICENSE.txt +0 -1
package/dist/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var N8 = Object.defineProperty;
2
2
  var S8 = (e, t, n) => t in e ? N8(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Oe = (e, t, n) => (S8(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { inject as At, reactive as tt, watch as Me, provide as Pt, computed as Q, defineComponent as ve, createVNode as f, mergeProps as we, h as Bt, ref as G, onMounted as rt, onBeforeUnmount as St, getCurrentInstance as Ft, nextTick as at, Transition as ra, createApp as jf, createTextVNode as Ht, withDirectives as Je, vShow as Xe, isVNode as Wn, Fragment as xt, renderSlot as D8, toRefs as Mt, Teleport as Of, resolveDirective as Bn, shallowRef as fu, customRef as j8, onBeforeMount as Af, toRef as Ef, vModelText as vg, unref as Sa, watchEffect as hu, markRaw as O8, onUpdated as A8, render as I3, onUnmounted as zf, toRaw as L3, withModifiers as E8, TransitionGroup as k3 } from "vue";
4
+ import { inject as At, reactive as tt, watch as Me, provide as Pt, computed as Q, defineComponent as ve, createVNode as f, mergeProps as we, h as Bt, ref as G, onMounted as rt, onBeforeUnmount as St, getCurrentInstance as Ft, nextTick as at, Transition as ra, createApp as jf, createTextVNode as Ht, withDirectives as Je, vShow as Xe, isVNode as Wn, Fragment as xt, renderSlot as D8, toRefs as Mt, Teleport as Of, resolveDirective as Bn, customRef as j8, onBeforeMount as Af, toRef as Ef, shallowRef as fu, vModelText as vg, unref as Sa, watchEffect as hu, markRaw as O8, onUpdated as A8, render as I3, onUnmounted as zf, toRaw as L3, withModifiers as E8, TransitionGroup as k3 } from "vue";
5
5
  function z8(e, t = 0, n, i = 500, s) {
6
6
  const r = Math.abs(t - n), o = Math.ceil(r / i * 50);
7
7
  function u(c, d, g) {
@@ -11479,31 +11479,250 @@ const N1 = () => {
11479
11479
  class: "bk-swiper-nav-icon"
11480
11480
  }, null)])]);
11481
11481
  }
11482
- }), mL = qe(gL);
11483
- function pL() {
11482
+ }), mL = qe(gL), $u = Symbol("BkSelect"), S1 = Symbol("BkOptionGroup");
11483
+ function D1() {
11484
+ const e = G(!1);
11485
+ return {
11486
+ isHover: e,
11487
+ setHover: () => {
11488
+ e.value = !0;
11489
+ },
11490
+ cancelHover: () => {
11491
+ e.value = !1;
11492
+ }
11493
+ };
11494
+ }
11495
+ function ef(e) {
11496
+ return {
11497
+ register: (i, s) => {
11498
+ if (s) {
11499
+ if (e.value.has(i)) {
11500
+ console.warn(`repeat ${i}`, s);
11501
+ return;
11502
+ }
11503
+ return e.value.set(i, s);
11504
+ }
11505
+ },
11506
+ unregister: (i) => {
11507
+ e.value.delete(i);
11508
+ }
11509
+ };
11510
+ }
11511
+ function pL(e, t = 200) {
11512
+ let n, i = e;
11513
+ return j8((s, r) => ({
11514
+ get() {
11515
+ return s(), i;
11516
+ },
11517
+ set(o) {
11518
+ clearTimeout(n), o === void 0 || o === "" ? (i = o, r()) : n = setTimeout(() => {
11519
+ i = o, r();
11520
+ }, t);
11521
+ }
11522
+ }));
11523
+ }
11524
+ function vL(e, t) {
11525
+ const { popoverMinWidth: n } = e;
11526
+ let i = null;
11527
+ const s = G("auto"), r = G(!1), o = () => {
11528
+ r.value = !r.value;
11529
+ }, u = () => {
11530
+ r.value = !1;
11531
+ }, c = () => {
11532
+ r.value = !0;
11533
+ }, d = () => {
11534
+ var g;
11535
+ s.value = Math.max((g = t.value) == null ? void 0 : g.offsetWidth, n);
11536
+ };
11537
+ return rt(() => {
11538
+ t.value && (i = W8(t.value, d, 60, !0), i.start());
11539
+ }), St(() => {
11540
+ i == null || i.stop(), i = null;
11541
+ }), {
11542
+ isPopoverShow: r,
11543
+ popperWidth: s,
11544
+ togglePopover: o,
11545
+ hidePopover: u,
11546
+ showPopover: c
11547
+ };
11548
+ }
11549
+ function yL(e, t) {
11550
+ const n = pL(""), i = G(!1);
11551
+ return Me(n, async () => {
11552
+ try {
11553
+ i.value = !0, await e(n.value), i.value = !1;
11554
+ } catch (s) {
11555
+ console.error(s);
11556
+ } finally {
11557
+ t == null || t();
11558
+ }
11559
+ }), {
11560
+ searchKey: n,
11561
+ searchLoading: i
11562
+ };
11563
+ }
11564
+ function js(e = "") {
11565
+ return e && String(e).trim().toLowerCase();
11566
+ }
11567
+ const Ko = /* @__PURE__ */ ve({
11568
+ name: "Option",
11569
+ props: {
11570
+ value: {
11571
+ type: [String, Number, Object],
11572
+ require: !0
11573
+ },
11574
+ label: m.oneOfType([m.number, m.string]).def(""),
11575
+ disabled: m.bool.def(!1)
11576
+ },
11577
+ setup(e) {
11578
+ const {
11579
+ proxy: t
11580
+ } = Ft(), n = tt({
11581
+ visible: !0
11582
+ }), {
11583
+ disabled: i,
11584
+ value: s
11585
+ } = Mt(e), r = At($u, null), o = At(S1, null), u = Q(() => {
11586
+ var b;
11587
+ return (b = r == null ? void 0 : r.selected) == null ? void 0 : b.some((I) => gt.isEqual(I.value, s.value));
11588
+ }), c = Q(() => r == null ? void 0 : r.multiple), d = Q(() => (r == null ? void 0 : r.activeOptionValue) === s.value), g = Q(() => (r == null ? void 0 : r.showSelectedIcon) && c.value), p = Q(() => r == null ? void 0 : r.selectedStyle), v = () => {
11589
+ i.value || r == null || r.handleOptionSelected(t);
11590
+ }, y = () => {
11591
+ r.activeOptionValue = s.value;
11592
+ };
11593
+ return Af(() => {
11594
+ r == null || r.register(s.value, t), o == null || o.register(s.value, t);
11595
+ }), St(() => {
11596
+ r == null || r.unregister(s.value), o == null || o.unregister(s.value);
11597
+ }), {
11598
+ ...Mt(n),
11599
+ selected: u,
11600
+ multiple: c,
11601
+ isHover: d,
11602
+ showSelectedIcon: g,
11603
+ selectedStyle: p,
11604
+ handleOptionClick: v,
11605
+ handleMouseEnter: y
11606
+ };
11607
+ },
11608
+ render() {
11609
+ var t, n;
11610
+ const e = Qe({
11611
+ "is-selected": this.selected,
11612
+ "is-disabled": this.disabled,
11613
+ "is-multiple": this.multiple,
11614
+ "is-hover": this.isHover,
11615
+ "is-checkbox": this.selectedStyle === Oo.CHECKBOX,
11616
+ [$("select-option")]: !0
11617
+ });
11618
+ return Je(f("li", {
11619
+ class: e,
11620
+ onClick: this.handleOptionClick,
11621
+ onMouseenter: this.handleMouseEnter
11622
+ }, [this.showSelectedIcon && this.selectedStyle === Oo.CHECKBOX && f(Pi, {
11623
+ class: $("select-checkbox"),
11624
+ modelValue: this.selected
11625
+ }, null), ((n = (t = this.$slots).default) == null ? void 0 : n.call(t)) ?? f("span", {
11626
+ class: $("select-option-item"),
11627
+ title: String(this.label)
11628
+ }, [this.label]), this.showSelectedIcon && this.selected && this.selectedStyle === Oo.CHECK && f(Aa, {
11629
+ class: $("select-selected-icon"),
11630
+ width: 22,
11631
+ height: 22
11632
+ }, null)]), [[Xe, this.visible]]);
11633
+ }
11634
+ }), bL = /* @__PURE__ */ ve({
11635
+ name: "OptionGroup",
11636
+ props: {
11637
+ label: m.string.def(""),
11638
+ disabled: m.bool.def(!1),
11639
+ collapsible: m.bool.def(!1),
11640
+ // 是否开启折叠
11641
+ collapse: m.bool.def(!1)
11642
+ // 是否折叠初始状态
11643
+ },
11644
+ setup(e, {
11645
+ emit: t
11646
+ }) {
11647
+ const n = Ft(), {
11648
+ proxy: i
11649
+ } = n, s = At($u, null), r = tt({
11650
+ groupCollapse: e.collapse,
11651
+ visible: !0
11652
+ }), o = G(/* @__PURE__ */ new Map()), {
11653
+ register: u,
11654
+ unregister: c
11655
+ } = ef(o), d = Q(() => `${e.label} (${[...o.value.values()].filter((p) => p.visible).length})`), g = () => {
11656
+ !e.collapsible || e.disabled || (r.groupCollapse = !r.groupCollapse, t("update:collapse", r.groupCollapse));
11657
+ };
11658
+ return Pt(S1, tt({
11659
+ ...Mt(e),
11660
+ register: u,
11661
+ unregister: c,
11662
+ groupCollapse: Ef(r, "groupCollapse")
11663
+ })), Af(() => {
11664
+ s == null || s.registerGroup(n.uid, i);
11665
+ }), St(() => {
11666
+ s == null || s.unregisterGroup(n.uid);
11667
+ }), {
11668
+ ...Mt(r),
11669
+ groupLabel: d,
11670
+ handleToggleCollapse: g
11671
+ };
11672
+ },
11673
+ render() {
11674
+ var i, s;
11675
+ const e = Qe({
11676
+ [$("option-group")]: !0,
11677
+ collapsible: this.collapsible,
11678
+ disabled: this.disabled
11679
+ }), t = Qe({
11680
+ [$("option-group-label")]: !0,
11681
+ collapsible: this.collapsible
11682
+ }), n = Qe({
11683
+ "default-group-label-icon": !0,
11684
+ collapse: this.groupCollapse
11685
+ });
11686
+ return Je(f("ul", {
11687
+ class: e
11688
+ }, [f("li", {
11689
+ class: t,
11690
+ onClick: this.handleToggleCollapse
11691
+ }, [this.$slots.label ? this.$slots.label() : f("span", {
11692
+ class: "default-group-label"
11693
+ }, [this.collapsible && f(gl, {
11694
+ class: n
11695
+ }, null), f("span", {
11696
+ class: "default-group-label-title"
11697
+ }, [this.groupLabel])])]), Je(f("ul", {
11698
+ class: $("option-group-content")
11699
+ }, [(s = (i = this.$slots).default) == null ? void 0 : s.call(i)]), [[Xe, !this.groupCollapse]])]), [[Xe, this.visible]]);
11700
+ }
11701
+ });
11702
+ function CL() {
11484
11703
  return kn().def(
11485
11704
  "bottom"
11486
11705
  /* BOTTOM */
11487
11706
  );
11488
11707
  }
11489
- const vL = {
11708
+ const wL = {
11490
11709
  content: m.string,
11491
11710
  type: m.oneOf(["tips", "title"]).def("title"),
11492
11711
  calType: m.oneOf(["dom", "canvas"]).def("dom"),
11493
11712
  boundary: m.oneOfType([m.string.def("parent"), m.instanceOf(HTMLElement)]).def(document.body),
11494
- placement: pL().def(
11713
+ placement: CL().def(
11495
11714
  "top-start"
11496
11715
  /* TOP_START */
11497
11716
  ),
11498
11717
  resizeable: m.bool
11499
11718
  };
11500
- function S1(e, t) {
11719
+ function j1(e, t) {
11501
11720
  const { fontSize: n = 14, fontFamily: i = "Microsoft YaHei" } = t, r = document.createElement("canvas").getContext("2d");
11502
11721
  r.font = `${n}px ${i}`;
11503
11722
  const o = r.measureText(e), u = Math.abs(o.actualBoundingBoxLeft) + Math.abs(o.actualBoundingBoxRight);
11504
11723
  return Math.max(o.width, u);
11505
11724
  }
11506
- function D1(e, t, n = document.body) {
11725
+ function O1(e, t, n = document.body) {
11507
11726
  if (!n)
11508
11727
  return 0;
11509
11728
  const { fontSize: i, fontFamily: s } = t || {}, r = document.createElement("div");
@@ -11514,9 +11733,9 @@ function D1(e, t, n = document.body) {
11514
11733
  const { clientWidth: o } = r;
11515
11734
  return n.removeChild(r), o;
11516
11735
  }
11517
- const yL = /* @__PURE__ */ ve({
11736
+ const ML = /* @__PURE__ */ ve({
11518
11737
  name: "OverflowTitle",
11519
- props: vL,
11738
+ props: wL,
11520
11739
  setup(e, {
11521
11740
  slots: t
11522
11741
  }) {
@@ -11532,13 +11751,13 @@ const yL = /* @__PURE__ */ ve({
11532
11751
  s.value = !1, r.value = {};
11533
11752
  let d = 0;
11534
11753
  if (e.calType === "dom")
11535
- d = D1((g = i.value) == null ? void 0 : g.textContent, null, n.value);
11754
+ d = O1((g = i.value) == null ? void 0 : g.textContent, null, n.value);
11536
11755
  else {
11537
11756
  const {
11538
11757
  fontSize: v,
11539
11758
  fontFamily: y
11540
11759
  } = getComputedStyle(n.value);
11541
- d = S1(o.value, {
11760
+ d = j1(o.value, {
11542
11761
  fontSize: v,
11543
11762
  fontFamily: y
11544
11763
  });
@@ -11585,37 +11804,37 @@ const yL = /* @__PURE__ */ ve({
11585
11804
  const { content: i, calType: s = "dom" } = t, r = i || e.innerText;
11586
11805
  let o = 0;
11587
11806
  if (s === "dom")
11588
- o = D1(e.textContent, null, e.parentElement);
11807
+ o = O1(e.textContent, null, e.parentElement);
11589
11808
  else {
11590
11809
  const { fontSize: u, fontFamily: c } = getComputedStyle(e);
11591
- o = S1(r, { fontSize: u, fontFamily: c });
11810
+ o = j1(r, { fontSize: u, fontFamily: c });
11592
11811
  }
11593
11812
  o > n && e.setAttribute("title", r);
11594
11813
  }
11595
- }, bL = qe(yL);
11596
- var i6 = !1, Ua, ef, tf, Eo, zo, j1, Po, nf, af, sf, O1, rf, lf, A1, E1;
11814
+ }, IL = qe(ML);
11815
+ var i6 = !1, Ua, tf, nf, Eo, zo, A1, Po, af, sf, rf, E1, lf, of, z1, P1;
11597
11816
  function Cn() {
11598
11817
  if (!i6) {
11599
11818
  i6 = !0;
11600
11819
  var e = navigator.userAgent, t = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e), n = /(Mac OS X)|(Windows)|(Linux)/.exec(e);
11601
- if (rf = /\b(iPhone|iP[ao]d)/.exec(e), lf = /\b(iP[ao]d)/.exec(e), sf = /Android/i.exec(e), A1 = /FBAN\/\w+;/i.exec(e), E1 = /Mobile/i.exec(e), O1 = !!/Win64/.exec(e), t) {
11820
+ if (lf = /\b(iPhone|iP[ao]d)/.exec(e), of = /\b(iP[ao]d)/.exec(e), rf = /Android/i.exec(e), z1 = /FBAN\/\w+;/i.exec(e), P1 = /Mobile/i.exec(e), E1 = !!/Win64/.exec(e), t) {
11602
11821
  Ua = t[1] ? parseFloat(t[1]) : t[5] ? parseFloat(t[5]) : NaN, Ua && document && document.documentMode && (Ua = document.documentMode);
11603
11822
  var i = /(?:Trident\/(\d+.\d+))/.exec(e);
11604
- j1 = i ? parseFloat(i[1]) + 4 : Ua, ef = t[2] ? parseFloat(t[2]) : NaN, tf = t[3] ? parseFloat(t[3]) : NaN, Eo = t[4] ? parseFloat(t[4]) : NaN, Eo ? (t = /(?:Chrome\/(\d+\.\d+))/.exec(e), zo = t && t[1] ? parseFloat(t[1]) : NaN) : zo = NaN;
11823
+ A1 = i ? parseFloat(i[1]) + 4 : Ua, tf = t[2] ? parseFloat(t[2]) : NaN, nf = t[3] ? parseFloat(t[3]) : NaN, Eo = t[4] ? parseFloat(t[4]) : NaN, Eo ? (t = /(?:Chrome\/(\d+\.\d+))/.exec(e), zo = t && t[1] ? parseFloat(t[1]) : NaN) : zo = NaN;
11605
11824
  } else
11606
- Ua = ef = tf = zo = Eo = NaN;
11825
+ Ua = tf = nf = zo = Eo = NaN;
11607
11826
  if (n) {
11608
11827
  if (n[1]) {
11609
11828
  var s = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);
11610
11829
  Po = s ? parseFloat(s[1].replace("_", ".")) : !0;
11611
11830
  } else
11612
11831
  Po = !1;
11613
- nf = !!n[2], af = !!n[3];
11832
+ af = !!n[2], sf = !!n[3];
11614
11833
  } else
11615
- Po = nf = af = !1;
11834
+ Po = af = sf = !1;
11616
11835
  }
11617
11836
  }
11618
- var of = {
11837
+ var uf = {
11619
11838
  /**
11620
11839
  * Check if the UA is Internet Explorer.
11621
11840
  *
@@ -11632,7 +11851,7 @@ var of = {
11632
11851
  * not compatibility mode or not ie
11633
11852
  */
11634
11853
  ieCompatibilityMode: function() {
11635
- return Cn() || j1 > Ua;
11854
+ return Cn() || A1 > Ua;
11636
11855
  },
11637
11856
  /**
11638
11857
  * Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
@@ -11640,7 +11859,7 @@ var of = {
11640
11859
  * this when we don't need it -- tracked by #601957.
11641
11860
  */
11642
11861
  ie64: function() {
11643
- return of.ie() && O1;
11862
+ return uf.ie() && E1;
11644
11863
  },
11645
11864
  /**
11646
11865
  * Check if the UA is Firefox.
@@ -11649,7 +11868,7 @@ var of = {
11649
11868
  * @return float|NaN Version number (if match) or NaN.
11650
11869
  */
11651
11870
  firefox: function() {
11652
- return Cn() || ef;
11871
+ return Cn() || tf;
11653
11872
  },
11654
11873
  /**
11655
11874
  * Check if the UA is Opera.
@@ -11658,7 +11877,7 @@ var of = {
11658
11877
  * @return float|NaN Version number (if match) or NaN.
11659
11878
  */
11660
11879
  opera: function() {
11661
- return Cn() || tf;
11880
+ return Cn() || nf;
11662
11881
  },
11663
11882
  /**
11664
11883
  * Check if the UA is WebKit.
@@ -11674,7 +11893,7 @@ var of = {
11674
11893
  * WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
11675
11894
  */
11676
11895
  safari: function() {
11677
- return of.webkit();
11896
+ return uf.webkit();
11678
11897
  },
11679
11898
  /**
11680
11899
  * Check if the UA is a Chrome browser.
@@ -11691,7 +11910,7 @@ var of = {
11691
11910
  * @return bool `true' if the user's OS is Windows.
11692
11911
  */
11693
11912
  windows: function() {
11694
- return Cn() || nf;
11913
+ return Cn() || af;
11695
11914
  },
11696
11915
  /**
11697
11916
  * Check if the user is running Mac OS X.
@@ -11708,7 +11927,7 @@ var of = {
11708
11927
  * @return bool `true' if the user's OS is some flavor of Linux.
11709
11928
  */
11710
11929
  linux: function() {
11711
- return Cn() || af;
11930
+ return Cn() || sf;
11712
11931
  },
11713
11932
  /**
11714
11933
  * Check if the user is running on an iPhone or iPod platform.
@@ -11717,29 +11936,29 @@ var of = {
11717
11936
  * iPhone OS.
11718
11937
  */
11719
11938
  iphone: function() {
11720
- return Cn() || rf;
11939
+ return Cn() || lf;
11721
11940
  },
11722
11941
  mobile: function() {
11723
- return Cn() || rf || lf || sf || E1;
11942
+ return Cn() || lf || of || rf || P1;
11724
11943
  },
11725
11944
  nativeApp: function() {
11726
- return Cn() || A1;
11945
+ return Cn() || z1;
11727
11946
  },
11728
11947
  android: function() {
11729
- return Cn() || sf;
11948
+ return Cn() || rf;
11730
11949
  },
11731
11950
  ipad: function() {
11732
- return Cn() || lf;
11951
+ return Cn() || of;
11733
11952
  }
11734
- }, CL = of, To = !!(typeof window < "u" && window.document && window.document.createElement), wL = {
11953
+ }, LL = uf, To = !!(typeof window < "u" && window.document && window.document.createElement), kL = {
11735
11954
  canUseDOM: To,
11736
11955
  canUseWorkers: typeof Worker < "u",
11737
11956
  canUseEventListeners: To && !!(window.addEventListener || window.attachEvent),
11738
11957
  canUseViewport: To && !!window.screen,
11739
11958
  isInWorker: !To
11740
11959
  // For now, this is true - might change in the future.
11741
- }, ML = wL, z1 = ML, P1;
11742
- z1.canUseDOM && (P1 = document.implementation && document.implementation.hasFeature && // always returns true in newer browsers as per the standard.
11960
+ }, TL = kL, J1 = TL, R1;
11961
+ J1.canUseDOM && (R1 = document.implementation && document.implementation.hasFeature && // always returns true in newer browsers as per the standard.
11743
11962
  // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
11744
11963
  document.implementation.hasFeature("", "") !== !0);
11745
11964
  /**
@@ -11756,18 +11975,18 @@ document.implementation.hasFeature("", "") !== !0);
11756
11975
  * @internal
11757
11976
  * @license Modernizr 3.0.0pre (Custom Build) | MIT
11758
11977
  */
11759
- function IL(e, t) {
11760
- if (!z1.canUseDOM || t && !("addEventListener" in document))
11978
+ function xL(e, t) {
11979
+ if (!J1.canUseDOM || t && !("addEventListener" in document))
11761
11980
  return !1;
11762
11981
  var n = "on" + e, i = n in document;
11763
11982
  if (!i) {
11764
11983
  var s = document.createElement("div");
11765
11984
  s.setAttribute(n, "return;"), i = typeof s[n] == "function";
11766
11985
  }
11767
- return !i && P1 && e === "wheel" && (i = document.implementation.hasFeature("Events.wheel", "3.0")), i;
11986
+ return !i && R1 && e === "wheel" && (i = document.implementation.hasFeature("Events.wheel", "3.0")), i;
11768
11987
  }
11769
- var LL = IL, kL = CL, TL = LL, a6 = 10, s6 = 40, r6 = 800;
11770
- function J1(e) {
11988
+ var NL = xL, SL = LL, DL = NL, a6 = 10, s6 = 40, r6 = 800;
11989
+ function Q1(e) {
11771
11990
  var t = 0, n = 0, i = 0, s = 0;
11772
11991
  return "detail" in e && (n = e.detail), "wheelDelta" in e && (n = -e.wheelDelta / 120), "wheelDeltaY" in e && (n = -e.wheelDeltaY / 120), "wheelDeltaX" in e && (t = -e.wheelDeltaX / 120), "axis" in e && e.axis === e.HORIZONTAL_AXIS && (t = n, n = 0), i = t * a6, s = n * a6, "deltaY" in e && (s = e.deltaY), "deltaX" in e && (i = e.deltaX), (i || s) && e.deltaMode && (e.deltaMode == 1 ? (i *= s6, s *= s6) : (i *= r6, s *= r6)), i && !t && (t = i < 1 ? -1 : 1), s && !n && (n = s < 1 ? -1 : 1), {
11773
11992
  spinX: t,
@@ -11776,28 +11995,28 @@ function J1(e) {
11776
11995
  pixelY: s
11777
11996
  };
11778
11997
  }
11779
- J1.getEventType = function() {
11780
- return kL.firefox() ? "DOMMouseScroll" : TL("wheel") ? "wheel" : "mousewheel";
11998
+ Q1.getEventType = function() {
11999
+ return SL.firefox() ? "DOMMouseScroll" : DL("wheel") ? "wheel" : "mousewheel";
11781
12000
  };
11782
- var xL = J1, NL = xL;
11783
- const SL = /* @__PURE__ */ ul(NL), DL = typeof navigator < "u" && navigator.userAgent.toLowerCase().indexOf("firefox") > -1, jL = function(e, t) {
11784
- e != null && e.addEventListener && e.addEventListener(DL ? "DOMMouseScroll" : "mousewheel", function(n) {
11785
- const i = SL(n);
12001
+ var jL = Q1, OL = jL;
12002
+ const AL = /* @__PURE__ */ ul(OL), EL = typeof navigator < "u" && navigator.userAgent.toLowerCase().indexOf("firefox") > -1, zL = function(e, t) {
12003
+ e != null && e.addEventListener && e.addEventListener(EL ? "DOMMouseScroll" : "mousewheel", function(n) {
12004
+ const i = AL(n);
11786
12005
  t == null || t.apply(this, [n, i]);
11787
12006
  });
11788
12007
  }, dO = {
11789
12008
  beforeMount(e, t) {
11790
- console.error(e, t), jL(e, t.value);
12009
+ console.error(e, t), zL(e, t.value);
11791
12010
  }
11792
12011
  }, Na = /* @__PURE__ */ new Map(), Ll = {
11793
12012
  beforeMount(e, t) {
11794
- const n = l6(t), { trigger: i } = n, s = AL(n);
12013
+ const n = l6(t), { trigger: i } = n, s = JL(n);
11795
12014
  let r = null;
11796
12015
  if (i === "hover") {
11797
12016
  let o = null;
11798
12017
  e.addEventListener("mouseenter", () => {
11799
12018
  r = setTimeout(() => {
11800
- uf(e), clearTimeout(o), clearTimeout(r);
12019
+ cf(e), clearTimeout(o), clearTimeout(r);
11801
12020
  }, n.delay);
11802
12021
  }), s.addEventListener("mouseenter", () => {
11803
12022
  clearTimeout(o);
@@ -11815,7 +12034,7 @@ const SL = /* @__PURE__ */ ul(NL), DL = typeof navigator < "u" && navigator.user
11815
12034
  } else
11816
12035
  i === "click" && document.body.addEventListener("click", (o) => {
11817
12036
  e.contains(o.target) && !s.hasAttribute("data-show") ? r = setTimeout(() => {
11818
- uf(e), clearTimeout(r);
12037
+ cf(e), clearTimeout(r);
11819
12038
  }, n.delay) : s.hasAttribute("data-show") && Or(e);
11820
12039
  });
11821
12040
  Na.set(e, {
@@ -11831,7 +12050,7 @@ const SL = /* @__PURE__ */ ul(NL), DL = typeof navigator < "u" && navigator.user
11831
12050
  Or(e), Na.delete(e);
11832
12051
  }
11833
12052
  };
11834
- function OL() {
12053
+ function PL() {
11835
12054
  return {
11836
12055
  arrow: !0,
11837
12056
  disabled: !1,
@@ -11850,22 +12069,22 @@ function OL() {
11850
12069
  };
11851
12070
  }
11852
12071
  function l6(e) {
11853
- const t = OL();
12072
+ const t = PL();
11854
12073
  return typeof e.value == "object" ? Object.assign(t, e.value) : t.content = e.value, t;
11855
12074
  }
11856
- function AL(e) {
12075
+ function JL(e) {
11857
12076
  const { content: t, arrow: n, theme: i, extCls: s } = e, r = i === "light", o = Ai.getPopperIndex(), u = document.createElement("div");
11858
12077
  if (u.className = `${$("popper")} ${r ? "light" : "dark"} ${s}`, u.innerText = t, u.style.zIndex = String(o), n) {
11859
- const c = R1();
12078
+ const c = _1();
11860
12079
  u.appendChild(c);
11861
12080
  }
11862
12081
  return u;
11863
12082
  }
11864
- function R1() {
12083
+ function _1() {
11865
12084
  const e = document.createElement("div");
11866
12085
  return e.className = $("popper-arrow"), e.setAttribute("data-popper-arrow", ""), e;
11867
12086
  }
11868
- function EL(e, t) {
12087
+ function RL(e, t) {
11869
12088
  const { opts: n } = Na.get(e), { placement: i, distance: s, showOnInit: r } = n, o = Rg(e, t, {
11870
12089
  placement: i,
11871
12090
  modifiers: [
@@ -11877,18 +12096,18 @@ function EL(e, t) {
11877
12096
  }
11878
12097
  ]
11879
12098
  });
11880
- return r && uf(e), o;
12099
+ return r && cf(e), o;
11881
12100
  }
11882
- function uf(e) {
12101
+ function cf(e) {
11883
12102
  const { popper: t, opts: n } = Na.get(e), { disabled: i, content: s, arrow: r, onShow: o } = n;
11884
12103
  if (i)
11885
12104
  return;
11886
12105
  if (t.innerText = s, r) {
11887
- const c = R1();
12106
+ const c = _1();
11888
12107
  t.appendChild(c);
11889
12108
  }
11890
12109
  document.body.appendChild(t);
11891
- const u = EL(e, t);
12110
+ const u = RL(e, t);
11892
12111
  o(), t.setAttribute("data-show", ""), u.setOptions((c) => ({
11893
12112
  ...c,
11894
12113
  modifiers: [
@@ -11909,7 +12128,7 @@ const o6 = (e, t) => {
11909
12128
  target: e
11910
12129
  };
11911
12130
  return typeof t == "object" ? Object.assign(n, t) : n.content = t, n;
11912
- }, Q1 = (e, t) => {
12131
+ }, W1 = (e, t) => {
11913
12132
  let n = null, i = null, s = null;
11914
12133
  const r = o6(e, t), { disabled: o } = r;
11915
12134
  if (o || n)
@@ -11940,7 +12159,7 @@ const o6 = (e, t) => {
11940
12159
  };
11941
12160
  }, fO = {
11942
12161
  mounted(e, t) {
11943
- Q1(e, t);
12162
+ W1(e, t);
11944
12163
  }
11945
12164
  // beforeUnmount(el: HTMLElement, binding: any) {
11946
12165
  // if (binding.cache) {
@@ -11950,226 +12169,7 @@ const o6 = (e, t) => {
11950
12169
  // binding.__cached = null;
11951
12170
  // }
11952
12171
  // },
11953
- }, $u = Symbol("BkSelect"), _1 = Symbol("BkOptionGroup");
11954
- function W1() {
11955
- const e = G(!1);
11956
- return {
11957
- isHover: e,
11958
- setHover: () => {
11959
- e.value = !0;
11960
- },
11961
- cancelHover: () => {
11962
- e.value = !1;
11963
- }
11964
- };
11965
- }
11966
- function cf(e) {
11967
- return {
11968
- register: (i, s) => {
11969
- if (s) {
11970
- if (e.value.has(i)) {
11971
- console.warn(`repeat ${i}`, s);
11972
- return;
11973
- }
11974
- return e.value.set(i, s);
11975
- }
11976
- },
11977
- unregister: (i) => {
11978
- e.value.delete(i);
11979
- }
11980
- };
11981
- }
11982
- function zL(e, t = 200) {
11983
- let n, i = e;
11984
- return j8((s, r) => ({
11985
- get() {
11986
- return s(), i;
11987
- },
11988
- set(o) {
11989
- clearTimeout(n), o === void 0 || o === "" ? (i = o, r()) : n = setTimeout(() => {
11990
- i = o, r();
11991
- }, t);
11992
- }
11993
- }));
11994
- }
11995
- function PL(e, t) {
11996
- const { popoverMinWidth: n } = e;
11997
- let i = null;
11998
- const s = G("auto"), r = G(!1), o = () => {
11999
- r.value = !r.value;
12000
- }, u = () => {
12001
- r.value = !1;
12002
- }, c = () => {
12003
- r.value = !0;
12004
- }, d = () => {
12005
- var g;
12006
- s.value = Math.max((g = t.value) == null ? void 0 : g.offsetWidth, n);
12007
- };
12008
- return rt(() => {
12009
- t.value && (i = W8(t.value, d, 60, !0), i.start());
12010
- }), St(() => {
12011
- i == null || i.stop(), i = null;
12012
- }), {
12013
- isPopoverShow: r,
12014
- popperWidth: s,
12015
- togglePopover: o,
12016
- hidePopover: u,
12017
- showPopover: c
12018
- };
12019
- }
12020
- function JL(e, t) {
12021
- const n = zL(""), i = G(!1);
12022
- return Me(n, async () => {
12023
- try {
12024
- i.value = !0, await e(n.value), i.value = !1;
12025
- } catch (s) {
12026
- console.error(s);
12027
- } finally {
12028
- t == null || t();
12029
- }
12030
- }), {
12031
- searchKey: n,
12032
- searchLoading: i
12033
- };
12034
- }
12035
- function js(e = "") {
12036
- return e && String(e).trim().toLowerCase();
12037
- }
12038
- const Ko = /* @__PURE__ */ ve({
12039
- name: "Option",
12040
- props: {
12041
- value: {
12042
- type: [String, Number, Object],
12043
- require: !0
12044
- },
12045
- label: m.oneOfType([m.number, m.string]).def(""),
12046
- disabled: m.bool.def(!1)
12047
- },
12048
- setup(e) {
12049
- const {
12050
- proxy: t
12051
- } = Ft(), n = tt({
12052
- visible: !0
12053
- }), {
12054
- disabled: i,
12055
- value: s
12056
- } = Mt(e), r = At($u, null), o = At(_1, null), u = Q(() => {
12057
- var b;
12058
- return (b = r == null ? void 0 : r.selected) == null ? void 0 : b.some((I) => gt.isEqual(I.value, s.value));
12059
- }), c = Q(() => r == null ? void 0 : r.multiple), d = Q(() => (r == null ? void 0 : r.activeOptionValue) === s.value), g = Q(() => (r == null ? void 0 : r.showSelectedIcon) && c.value), p = Q(() => r == null ? void 0 : r.selectedStyle), v = () => {
12060
- i.value || r == null || r.handleOptionSelected(t);
12061
- }, y = () => {
12062
- r.activeOptionValue = s.value;
12063
- };
12064
- return Af(() => {
12065
- r == null || r.register(s.value, t), o == null || o.register(s.value, t);
12066
- }), St(() => {
12067
- r == null || r.unregister(s.value), o == null || o.unregister(s.value);
12068
- }), {
12069
- ...Mt(n),
12070
- selected: u,
12071
- multiple: c,
12072
- isHover: d,
12073
- showSelectedIcon: g,
12074
- selectedStyle: p,
12075
- handleOptionClick: v,
12076
- handleMouseEnter: y
12077
- };
12078
- },
12079
- render() {
12080
- var t, n;
12081
- const e = Qe({
12082
- "is-selected": this.selected,
12083
- "is-disabled": this.disabled,
12084
- "is-multiple": this.multiple,
12085
- "is-hover": this.isHover,
12086
- "is-checkbox": this.selectedStyle === Oo.CHECKBOX,
12087
- [$("select-option")]: !0
12088
- });
12089
- return Je(f("li", {
12090
- class: e,
12091
- onClick: this.handleOptionClick,
12092
- onMouseenter: this.handleMouseEnter
12093
- }, [this.showSelectedIcon && this.selectedStyle === Oo.CHECKBOX && f(Pi, {
12094
- class: $("select-checkbox"),
12095
- modelValue: this.selected
12096
- }, null), ((n = (t = this.$slots).default) == null ? void 0 : n.call(t)) ?? f("span", {
12097
- class: $("select-option-item"),
12098
- title: String(this.label)
12099
- }, [this.label]), this.showSelectedIcon && this.selected && this.selectedStyle === Oo.CHECK && f(Aa, {
12100
- class: $("select-selected-icon"),
12101
- width: 22,
12102
- height: 22
12103
- }, null)]), [[Xe, this.visible]]);
12104
- }
12105
- }), RL = /* @__PURE__ */ ve({
12106
- name: "OptionGroup",
12107
- props: {
12108
- label: m.string.def(""),
12109
- disabled: m.bool.def(!1),
12110
- collapsible: m.bool.def(!1),
12111
- // 是否开启折叠
12112
- collapse: m.bool.def(!1)
12113
- // 是否折叠初始状态
12114
- },
12115
- setup(e, {
12116
- emit: t
12117
- }) {
12118
- const n = Ft(), {
12119
- proxy: i
12120
- } = n, s = At($u, null), r = tt({
12121
- groupCollapse: e.collapse,
12122
- visible: !0
12123
- }), o = G(/* @__PURE__ */ new Map()), {
12124
- register: u,
12125
- unregister: c
12126
- } = cf(o), d = Q(() => `${e.label} (${[...o.value.values()].filter((p) => p.visible).length})`), g = () => {
12127
- !e.collapsible || e.disabled || (r.groupCollapse = !r.groupCollapse, t("update:collapse", r.groupCollapse));
12128
- };
12129
- return Pt(_1, tt({
12130
- ...Mt(e),
12131
- register: u,
12132
- unregister: c,
12133
- groupCollapse: Ef(r, "groupCollapse")
12134
- })), Af(() => {
12135
- s == null || s.registerGroup(n.uid, i);
12136
- }), St(() => {
12137
- s == null || s.unregisterGroup(n.uid);
12138
- }), {
12139
- ...Mt(r),
12140
- groupLabel: d,
12141
- handleToggleCollapse: g
12142
- };
12143
- },
12144
- render() {
12145
- var i, s;
12146
- const e = Qe({
12147
- [$("option-group")]: !0,
12148
- collapsible: this.collapsible,
12149
- disabled: this.disabled
12150
- }), t = Qe({
12151
- [$("option-group-label")]: !0,
12152
- collapsible: this.collapsible
12153
- }), n = Qe({
12154
- "default-group-label-icon": !0,
12155
- collapse: this.groupCollapse
12156
- });
12157
- return Je(f("ul", {
12158
- class: e
12159
- }, [f("li", {
12160
- class: t,
12161
- onClick: this.handleToggleCollapse
12162
- }, [this.$slots.label ? this.$slots.label() : f("span", {
12163
- class: "default-group-label"
12164
- }, [this.collapsible && f(gl, {
12165
- class: n
12166
- }, null), f("span", {
12167
- class: "default-group-label-title"
12168
- }, [this.groupLabel])])]), Je(f("ul", {
12169
- class: $("option-group-content")
12170
- }, [(s = (i = this.$slots).default) == null ? void 0 : s.call(i)]), [[Xe, !this.groupCollapse]])]), [[Xe, this.visible]]);
12171
- }
12172
- }), QL = {
12172
+ }, QL = {
12173
12173
  onContentScroll: Function
12174
12174
  }, _L = {
12175
12175
  /** 传入原始数据源 */
@@ -12787,14 +12787,14 @@ const ZL = /* @__PURE__ */ ve({
12787
12787
  }, S.value)), {
12788
12788
  register: He,
12789
12789
  unregister: Re
12790
- } = cf(me), {
12790
+ } = ef(me), {
12791
12791
  register: Ue,
12792
12792
  unregister: pt
12793
- } = cf(q), {
12793
+ } = ef(q), {
12794
12794
  isHover: ut,
12795
12795
  setHover: kt,
12796
12796
  cancelHover: nt
12797
- } = W1(), sn = G(!1), ua = () => {
12797
+ } = D1(), sn = G(!1), ua = () => {
12798
12798
  sn.value || (sn.value = !0, t("focus"));
12799
12799
  }, hs = () => {
12800
12800
  sn.value && (sn.value = !1, t("blur"));
@@ -12804,7 +12804,7 @@ const ZL = /* @__PURE__ */ ve({
12804
12804
  hidePopover: Pa,
12805
12805
  showPopover: fr,
12806
12806
  togglePopover: xl
12807
- } = PL({
12807
+ } = vL({
12808
12808
  popoverMinWidth: d.value
12809
12809
  }, K);
12810
12810
  Me(yi, () => {
@@ -12828,7 +12828,7 @@ const ZL = /* @__PURE__ */ ve({
12828
12828
  }, {
12829
12829
  searchKey: Ri,
12830
12830
  searchLoading: gs
12831
- } = JL(ue.value ? u.value : lc, Nl), bi = (xe) => {
12831
+ } = yL(ue.value ? u.value : lc, Nl), bi = (xe) => {
12832
12832
  xe !== i.value && (t("update:modelValue", xe, i.value), t("change", xe, i.value));
12833
12833
  }, oc = () => {
12834
12834
  le.value || (ua(), xl());
@@ -13187,7 +13187,7 @@ const ZL = /* @__PURE__ */ ve({
13187
13187
  content: () => s()
13188
13188
  })]);
13189
13189
  }
13190
- }), G1 = Dn(YL, { Option: Ko, Group: RL });
13190
+ }), G1 = Dn(YL, { Option: Ko, Group: bL });
13191
13191
  function UL(e) {
13192
13192
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Wn(e);
13193
13193
  }
@@ -14820,7 +14820,7 @@ const nn = (e, t, n) => {
14820
14820
  } = c();
14821
14821
  if (i.value = !p, g === "auto" && (i.value = R8(n.value)), g === "static" && (i.value = !0), i.value) {
14822
14822
  const v = G(c());
14823
- u === null && (u = Q1(n.value, {
14823
+ u === null && (u = W1(n.value, {
14824
14824
  disabled: v.value.disabled,
14825
14825
  content: v.value.content,
14826
14826
  mode: v.value.mode
@@ -25966,7 +25966,7 @@ const ES = /* @__PURE__ */ ve({
25966
25966
  isHover: o,
25967
25967
  setHover: u,
25968
25968
  cancelHover: c
25969
- } = W1(), d = G(new F6(e)), g = G(""), p = G([]), {
25969
+ } = D1(), d = G(new F6(e)), g = G(""), p = G([]), {
25970
25970
  modelValue: v
25971
25971
  } = Mt(e), y = G(), b = G(""), I = G([]), T = G(!1), k = G(!1), N = G(!1), w = Q({
25972
25972
  get: () => v.value,
@@ -32053,7 +32053,7 @@ const iO = {
32053
32053
  Modal: ar,
32054
32054
  Navigation: UT,
32055
32055
  Notify: zT,
32056
- OverflowTitle: bL,
32056
+ OverflowTitle: IL,
32057
32057
  Pagination: n4,
32058
32058
  PopConfirm: sO,
32059
32059
  Popover: Sn,
@@ -32126,7 +32126,7 @@ export {
32126
32126
  ar as Modal,
32127
32127
  UT as Navigation,
32128
32128
  zT as Notify,
32129
- bL as OverflowTitle,
32129
+ IL as OverflowTitle,
32130
32130
  n4 as Pagination,
32131
32131
  sO as PopConfirm,
32132
32132
  Sn as Popover,
@@ -32155,7 +32155,7 @@ export {
32155
32155
  eD as Upload,
32156
32156
  kl as VirtualRender,
32157
32157
  fO as bkEllipsis,
32158
- Q1 as bkEllipsisInstance,
32158
+ W1 as bkEllipsisInstance,
32159
32159
  Ll as bkTooltips,
32160
32160
  ia as clickoutside,
32161
32161
  H6 as containerProps,