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.cjs.js +4 -4
- package/dist/index.esm.js +89 -80
- package/dist/index.umd.js +21 -21
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/checkbox/checkbox-group.d.ts +6 -3
- package/lib/checkbox/checkbox.d.ts +4 -4
- package/lib/checkbox/index.d.ts +19 -16
- package/lib/checkbox/index.js +1 -1
- package/lib/color-picker/color-picker.d.ts +16 -0
- package/lib/color-picker/components/recommend-colors.d.ts +16 -0
- package/lib/color-picker/index.d.ts +18 -0
- package/lib/color-picker/index.js +1 -1
- package/lib/overflow-title/index.js +1 -1
- package/lib/radio/index.d.ts +21 -21
- package/lib/radio/radio-button.d.ts +4 -4
- package/lib/radio/radio-group.d.ts +4 -4
- package/lib/radio/radio.d.ts +4 -4
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/select/index.js +1 -1
- package/lib/select/select.css +0 -1
- package/lib/select/select.less +0 -1
- package/lib/select/select.variable.css +0 -1
- package/lib/table/events.d.ts +26 -26
- package/lib/table/index.d.ts +96 -96
- package/lib/table/table.d.ts +28 -28
- package/package.json +1 -1
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:
|
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
|
-
|
13469
|
-
|
13470
|
-
|
13471
|
-
|
13472
|
-
|
13473
|
-
|
13474
|
-
|
13475
|
-
|
13476
|
-
|
13477
|
-
|
13478
|
-
|
13479
|
-
|
13480
|
-
|
13481
|
-
|
13482
|
-
|
13483
|
-
|
13484
|
-
|
13485
|
-
|
13486
|
-
|
13487
|
-
|
13488
|
-
|
13489
|
-
|
13490
|
-
|
13491
|
-
|
13492
|
-
|
13493
|
-
|
13494
|
-
|
13495
|
-
|
13496
|
-
|
13497
|
-
|
13498
|
-
|
13499
|
-
|
13500
|
-
|
13501
|
-
|
13502
|
-
|
13503
|
-
|
13504
|
-
|
13505
|
-
|
13506
|
-
|
13507
|
-
|
13508
|
-
|
13509
|
-
|
13510
|
-
|
13511
|
-
|
13512
|
-
}
|
13513
|
-
|
13514
|
-
|
13515
|
-
},
|
13516
|
-
var
|
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
|
-
}, [((
|
13530
|
+
}, [((u = (o = this.$slots).trigger) == null ? void 0 : u.call(o, {
|
13527
13531
|
selected: this.selected
|
13528
|
-
})) ||
|
13529
|
-
},
|
13530
|
-
var
|
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": (
|
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:
|
13575
|
-
}) =>
|
13576
|
-
|
13577
|
-
|
13578
|
-
|
13579
|
-
|
13580
|
-
|
13581
|
-
|
13582
|
-
|
13583
|
-
item:
|
13584
|
-
})
|
13585
|
-
}
|
13586
|
-
})
|
13587
|
-
}) : this.list.map((
|
13588
|
-
id:
|
13589
|
-
name:
|
13590
|
-
}, null)), (
|
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: () =>
|
13610
|
-
content: () =>
|
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
|
-
|
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])])]
|