bkui-vue 0.0.2-beta.47 → 0.0.2-beta.48

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.
package/dist/index.esm.js CHANGED
@@ -9938,7 +9938,8 @@ const eL = /* @__PURE__ */ ye({
9938
9938
  class: "position-relative"
9939
9939
  }, [f(Pn, Me({
9940
9940
  placement: this.placement,
9941
- boundary: this.boundary || document.body
9941
+ boundary: this.boundary || document.body,
9942
+ popoverDelay: [200, 0]
9942
9943
  }, m6.popoverOptions, {
9943
9944
  disabled: this.type === "title" || !this.isShowTips
9944
9945
  }), {
@@ -10910,7 +10911,10 @@ const xL = () => {
10910
10911
  }, nc = /* @__PURE__ */ ye({
10911
10912
  name: "CheckboxGroup",
10912
10913
  props: DL,
10913
- emits: ["change", "update:modelValue"],
10914
+ emits: {
10915
+ "update:modelValue": (e) => e !== void 0,
10916
+ change: (e) => e !== void 0
10917
+ },
10914
10918
  setup(e, t) {
10915
10919
  const n = Li(), i = [];
10916
10920
  Jt(n4, {
@@ -13464,56 +13468,56 @@ const xN = /* @__PURE__ */ ye({
13464
13468
  onClick: this.handleClear
13465
13469
  }, null) : f(pa, {
13466
13470
  class: "angle-up"
13467
- }, null), n = () => {
13468
- var r, o;
13469
- return this.multipleMode === "tag" ? f(SN, {
13470
- ref: "selectTagInputRef",
13471
- modelValue: this.searchKey,
13472
- "onUpdate:modelValue": (u) => this.searchKey = u,
13473
- selected: this.selected,
13474
- tagTheme: this.tagTheme,
13475
- placeholder: this.localPlaceholder,
13476
- filterable: this.isInput,
13477
- disabled: this.isDisabled,
13478
- onRemove: this.handleDeleteTag,
13479
- collapseTags: this.isCollapseTags,
13480
- onEnter: this.handleInputEnter,
13481
- onKeydown: (u, d) => this.handleKeydown(d)
13482
- }, {
13483
- prefix: this.prefix ? f("div", {
13484
- class: `${this.resolveClassName("select--prefix-area")}`
13485
- }, [f("span", null, [this.prefix])]) : (o = (r = this.$slots).prefix) == null ? void 0 : o.call(r),
13486
- default: this.$slots.tag && (() => this.$slots.tag({
13487
- selected: this.selected
13488
- })),
13489
- suffix: () => t()
13490
- }) : f(lr, Me({
13491
- ref: "inputRef",
13492
- type: "text",
13493
- modelValue: this.isInput ? this.searchKey : this.selectedLabel.join(","),
13494
- placeholder: this.isInput ? this.selectedLabel.join(",") || this.localPlaceholder : this.localPlaceholder,
13495
- readonly: !this.isInput,
13496
- selectReadonly: !0,
13497
- disabled: this.isDisabled,
13498
- behavior: this.behavior,
13499
- size: this.size,
13500
- withValidate: !1,
13501
- onInput: this.handleInputChange,
13502
- onEnter: this.handleInputEnter,
13503
- onKeydown: (u, d) => this.handleKeydown(d)
13504
- }, this.prefix ? {
13505
- prefix: this.prefix
13506
- } : null), {
13507
- ...typeof this.$slots.prefix == "function" ? {
13508
- prefix: () => {
13509
- var u, d;
13510
- return (d = (u = this.$slots).prefix) == null ? void 0 : d.call(u);
13511
- }
13512
- } : null,
13513
- suffix: () => t()
13514
- });
13515
- }, i = () => {
13516
- var r, o;
13471
+ }, null), n = () => this.prefix ? () => f("div", {
13472
+ class: `${this.resolveClassName("select--prefix-area")}`
13473
+ }, [f("span", null, [this.prefix])]) : this.$slots.prefix ? () => {
13474
+ var o, u;
13475
+ return (u = (o = this.$slots).prefix) == null ? void 0 : u.call(o);
13476
+ } : void 0, i = () => this.multipleMode === "tag" ? f(SN, {
13477
+ ref: "selectTagInputRef",
13478
+ modelValue: this.searchKey,
13479
+ "onUpdate:modelValue": (o) => this.searchKey = o,
13480
+ selected: this.selected,
13481
+ tagTheme: this.tagTheme,
13482
+ placeholder: this.localPlaceholder,
13483
+ filterable: this.isInput,
13484
+ disabled: this.isDisabled,
13485
+ onRemove: this.handleDeleteTag,
13486
+ collapseTags: this.isCollapseTags,
13487
+ onEnter: this.handleInputEnter,
13488
+ onKeydown: (o, u) => this.handleKeydown(u)
13489
+ }, {
13490
+ prefix: n(),
13491
+ default: this.$slots.tag && (() => this.$slots.tag({
13492
+ selected: this.selected
13493
+ })),
13494
+ suffix: () => t()
13495
+ }) : f(lr, Me({
13496
+ ref: "inputRef",
13497
+ type: "text",
13498
+ modelValue: this.isInput ? this.searchKey : this.selectedLabel.join(","),
13499
+ placeholder: this.isInput ? this.selectedLabel.join(",") || this.localPlaceholder : this.localPlaceholder,
13500
+ readonly: !this.isInput,
13501
+ selectReadonly: !0,
13502
+ disabled: this.isDisabled,
13503
+ behavior: this.behavior,
13504
+ size: this.size,
13505
+ withValidate: !1,
13506
+ onInput: this.handleInputChange,
13507
+ onEnter: this.handleInputEnter,
13508
+ onKeydown: (o, u) => this.handleKeydown(u)
13509
+ }, this.prefix ? {
13510
+ prefix: this.prefix
13511
+ } : null), {
13512
+ ...typeof this.$slots.prefix == "function" ? {
13513
+ prefix: () => {
13514
+ var o, u;
13515
+ return (u = (o = this.$slots).prefix) == null ? void 0 : u.call(o);
13516
+ }
13517
+ } : null,
13518
+ suffix: () => t()
13519
+ }), s = () => {
13520
+ var o, u;
13517
13521
  return f("div", {
13518
13522
  class: this.resolveClassName("select-trigger"),
13519
13523
  style: {
@@ -13523,11 +13527,11 @@ const xN = /* @__PURE__ */ ye({
13523
13527
  onClick: this.handleTogglePopover,
13524
13528
  onMouseenter: this.setHover,
13525
13529
  onMouseleave: this.cancelHover
13526
- }, [((o = (r = this.$slots).trigger) == null ? void 0 : o.call(r, {
13530
+ }, [((u = (o = this.$slots).trigger) == null ? void 0 : u.call(o, {
13527
13531
  selected: this.selected
13528
- })) || n()]);
13529
- }, s = () => {
13530
- var r, o;
13532
+ })) || i()]);
13533
+ }, r = () => {
13534
+ var o, u;
13531
13535
  return f("div", {
13532
13536
  class: this.resolveClassName("select-content-wrapper"),
13533
13537
  ref: "contentRef"
@@ -13541,7 +13545,7 @@ const xN = /* @__PURE__ */ ye({
13541
13545
  ref: "searchRef",
13542
13546
  class: this.resolveClassName("select-search-input"),
13543
13547
  placeholder: this.localSearchPlaceholder,
13544
- "onUpdate:modelValue": (u) => this.searchKey = u
13548
+ "onUpdate:modelValue": (d) => this.searchKey = d
13545
13549
  }, null), [[Pg, this.searchKey]])]), !this.isShowSelectContent && f("div", {
13546
13550
  class: this.resolveClassName("select-empty")
13547
13551
  }, [this.searchLoading && f(ca, {
@@ -13571,23 +13575,23 @@ const xN = /* @__PURE__ */ ye({
13571
13575
  ref: "virtualRenderRef"
13572
13576
  }, {
13573
13577
  default: ({
13574
- data: u
13575
- }) => u.map((d) => {
13576
- var c, h;
13577
- return f(iu, {
13578
- key: d[this.idKey],
13579
- id: d[this.idKey],
13580
- name: d[this.displayKey]
13581
- }, {
13582
- default: (h = (c = this.$slots).virtualScrollRender) == null ? void 0 : h.call(c, {
13583
- item: d
13584
- })
13585
- });
13586
- })
13587
- }) : this.list.map((u) => f(iu, {
13588
- id: u[this.idKey],
13589
- name: u[this.displayKey]
13590
- }, null)), (o = (r = this.$slots).default) == null ? void 0 : o.call(r), this.scrollLoading && f("li", {
13578
+ data: d
13579
+ }) => d.map((c) => f(iu, {
13580
+ key: c[this.idKey],
13581
+ id: c[this.idKey],
13582
+ name: c[this.displayKey]
13583
+ }, {
13584
+ default: this.$slots.virtualScrollRender ? () => {
13585
+ var h, m;
13586
+ return (m = (h = this.$slots).virtualScrollRender) == null ? void 0 : m.call(h, {
13587
+ item: c
13588
+ });
13589
+ } : void 0
13590
+ }))
13591
+ }) : this.list.map((d) => f(iu, {
13592
+ id: d[this.idKey],
13593
+ name: d[this.displayKey]
13594
+ }, null)), (u = (o = this.$slots).default) == null ? void 0 : u.call(o), this.scrollLoading && f("li", {
13591
13595
  class: this.resolveClassName("select-options-loading")
13592
13596
  }, [f(ca, {
13593
13597
  class: "spinner mr5",
@@ -13606,8 +13610,8 @@ const xN = /* @__PURE__ */ ye({
13606
13610
  onAfterShow: this.handlePopoverShow,
13607
13611
  ref: "popoverRef"
13608
13612
  }), {
13609
- default: () => i(),
13610
- content: () => s()
13613
+ default: () => s(),
13614
+ content: () => r()
13611
13615
  })]);
13612
13616
  }
13613
13617
  }), g4 = pn(kN, { Option: iu, Group: bN });
@@ -31457,7 +31461,8 @@ const xO = {
31457
31461
  }
31458
31462
  }), OO = {
31459
31463
  colorObj: p.object.isRequired,
31460
- recommend: p.oneOfType([p.array.def(() => []), p.bool.def(!0)]).isRequired
31464
+ recommend: p.oneOfType([p.array.def(() => []), p.bool.def(!0)]).isRequired,
31465
+ recommendEmpty: p.bool.def(!0)
31461
31466
  }, EO = /* @__PURE__ */ ye({
31462
31467
  props: OO,
31463
31468
  emits: ["change", "tab"],
@@ -31505,8 +31510,10 @@ const xO = {
31505
31510
  i.value = m, s.value = v;
31506
31511
  });
31507
31512
  }, h = (m) => {
31508
- if (m === !0)
31509
- return ["", "#ff4500", "#ff8c00", "#ffd700", "#90ee90", "#ddffff", "#00ced1", "#3a84ff", "#a933f5", "#db7093", "#000000", "#494949", "#9B9B9B", "#ffffff"];
31513
+ if (m === !0) {
31514
+ const v = ["#ff4500", "#ff8c00", "#ffd700", "#90ee90", "#ddffff", "#00ced1", "#3a84ff", "#a933f5", "#db7093", "#000000", "#494949", "#9B9B9B", "#ffffff"];
31515
+ return e.recommendEmpty && v.unshift(""), v;
31516
+ }
31510
31517
  if (Array.isArray(m))
31511
31518
  return m.map((v) => Qe(v).isValid() ? v : "");
31512
31519
  };
@@ -31629,7 +31636,8 @@ const PO = {
31629
31636
  // 数组 自定义预设值
31630
31637
  recommend: p.oneOfType([p.array.def(() => []), p.bool.def(!0)]).def(!0),
31631
31638
  extCls: p.string.def(""),
31632
- withValidate: p.bool.def(!0)
31639
+ withValidate: p.bool.def(!0),
31640
+ recommendEmpty: p.bool.def(!0)
31633
31641
  }, Fr = Jf("#FFFFFF"), RO = /* @__PURE__ */ ye({
31634
31642
  name: "ColorPicker",
31635
31643
  directives: {
@@ -31751,6 +31759,7 @@ const PO = {
31751
31759
  }, [f(EO, {
31752
31760
  colorObj: o,
31753
31761
  recommend: e.recommend,
31762
+ recommendEmpty: e.recommendEmpty,
31754
31763
  onTab: w,
31755
31764
  onChange: T
31756
31765
  }, null)]) : void 0])])]