bkui-vue 0.0.1-beta.440 → 0.0.1-beta.442
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 +26 -26
- package/dist/index.esm.js +43 -33
- package/dist/index.umd.js +26 -26
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/collapse/index.js +1 -1
- package/lib/overflow-title/components/overflow-title.d.ts +31 -21
- package/lib/overflow-title/index.d.ts +68 -46
- package/lib/overflow-title/index.js +1 -1
- package/lib/overflow-title/props.d.ts +13 -10
- package/lib/select/index.d.ts +16 -1
- package/lib/select/index.js +1 -1
- package/lib/select/select.css +16 -0
- package/lib/select/select.d.ts +7 -0
- package/lib/select/select.less +21 -1
- package/lib/select/select.variable.css +16 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -33,7 +33,7 @@ var __publicField = (obj, key2, value) => {
|
|
33
33
|
__defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value);
|
34
34
|
return value;
|
35
35
|
};
|
36
|
-
import { inject, reactive, defineComponent, computed, watch, provide, createVNode, mergeProps, h as h$1, ref, onMounted, onBeforeUnmount, getCurrentInstance, nextTick, Transition, createApp, createTextVNode, withDirectives, vShow,
|
36
|
+
import { inject, reactive, defineComponent, computed, watch, provide, createVNode, mergeProps, h as h$1, ref, onMounted, onBeforeUnmount, getCurrentInstance, nextTick, Transition, createApp, createTextVNode, withDirectives, vShow, isVNode, Fragment, renderSlot, toRefs, Teleport, resolveDirective, customRef, onBeforeMount, toRef, shallowRef, vModelText, unref, watchEffect, markRaw, onUpdated, render as render$1, onUnmounted, toRaw, withModifiers, TransitionGroup } from "vue";
|
37
37
|
var reset = "";
|
38
38
|
var alert = "";
|
39
39
|
var affix = "";
|
@@ -7997,7 +7997,7 @@ var PlacementEnum = /* @__PURE__ */ ((PlacementEnum2) => {
|
|
7997
7997
|
PlacementEnum2["LEFT_END"] = "left-end";
|
7998
7998
|
return PlacementEnum2;
|
7999
7999
|
})(PlacementEnum || {});
|
8000
|
-
function placementType() {
|
8000
|
+
function placementType$1() {
|
8001
8001
|
return E().def("bottom");
|
8002
8002
|
}
|
8003
8003
|
function triggerType$1() {
|
@@ -10866,7 +10866,7 @@ var CollapsePanel = defineComponent({
|
|
10866
10866
|
},
|
10867
10867
|
render() {
|
10868
10868
|
let _slot;
|
10869
|
-
return createVNode(
|
10869
|
+
return createVNode("div", {
|
10870
10870
|
"class": `bk-collapse-item ${this.disabled ? "is-disabled" : ""} ${this.isActive ? "bk-collapse-item-active" : ""}`
|
10871
10871
|
}, [createVNode("div", {
|
10872
10872
|
"onClick": () => this.clickItem()
|
@@ -10874,7 +10874,7 @@ var CollapsePanel = defineComponent({
|
|
10874
10874
|
"class": `bk-collapse-icon ${this.isActive && "rotate-icon" || ""}`
|
10875
10875
|
}, null))]), createVNode(CollapseTransition, null, _isSlot$8(_slot = this.renderPanel()) ? _slot : {
|
10876
10876
|
default: () => [_slot]
|
10877
|
-
})])
|
10877
|
+
})]);
|
10878
10878
|
}
|
10879
10879
|
});
|
10880
10880
|
var Collapse = defineComponent({
|
@@ -11742,7 +11742,7 @@ const PopoverProps = __spreadValues({
|
|
11742
11742
|
maxHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def("auto"),
|
11743
11743
|
content: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.any]).def(""),
|
11744
11744
|
allowHtml: PropTypes.bool.def(false),
|
11745
|
-
placement: placementType().def(PlacementEnum.TOP_START),
|
11745
|
+
placement: placementType$1().def(PlacementEnum.TOP_START),
|
11746
11746
|
theme: PropTypes.string.def("dark"),
|
11747
11747
|
trigger: triggerType$1(),
|
11748
11748
|
renderType: renderType(),
|
@@ -14995,21 +14995,16 @@ var OptionGroup = defineComponent({
|
|
14995
14995
|
}, [(_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)]), [[vShow, !this.groupCollapse]])]), [[vShow, this.visible]]);
|
14996
14996
|
}
|
14997
14997
|
});
|
14998
|
+
function placementType() {
|
14999
|
+
return E().def("bottom");
|
15000
|
+
}
|
14998
15001
|
var props = {
|
14999
|
-
content:
|
15000
|
-
type:
|
15001
|
-
|
15002
|
-
|
15003
|
-
|
15004
|
-
|
15005
|
-
type: String,
|
15006
|
-
default: "dom"
|
15007
|
-
},
|
15008
|
-
placement: {
|
15009
|
-
type: String,
|
15010
|
-
default: "top"
|
15011
|
-
},
|
15012
|
-
resizeable: Boolean
|
15002
|
+
content: PropTypes.string,
|
15003
|
+
type: PropTypes.oneOf(["tips", "title"]).def("title"),
|
15004
|
+
calType: PropTypes.oneOf(["dom", "canvas"]).def("dom"),
|
15005
|
+
boundary: PropTypes.oneOfType([PropTypes.string.def("parent"), PropTypes.instanceOf(HTMLElement)]).def(document.body),
|
15006
|
+
placement: placementType().def("top-start"),
|
15007
|
+
resizeable: PropTypes.bool
|
15013
15008
|
};
|
15014
15009
|
function getActualWidthByCanvas(text, options) {
|
15015
15010
|
const { fontSize = 14, fontFamily = "Microsoft YaHei" } = options;
|
@@ -15108,7 +15103,8 @@ var OverflowTitle = defineComponent({
|
|
15108
15103
|
"class": "position-relative"
|
15109
15104
|
}, [createVNode(BkPopover, {
|
15110
15105
|
"disabled": this.type === "title" || !this.isShowTips,
|
15111
|
-
"placement": this.placement
|
15106
|
+
"placement": this.placement,
|
15107
|
+
"boundary": this.boundary || document.body
|
15112
15108
|
}, {
|
15113
15109
|
default: () => createVNode("div", mergeProps({
|
15114
15110
|
"ref": "textRef",
|
@@ -16091,12 +16087,14 @@ var SelectTagInput = defineComponent({
|
|
16091
16087
|
};
|
16092
16088
|
},
|
16093
16089
|
render() {
|
16094
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
16090
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
16091
|
+
const prefix = (_b = (_a = this.$slots) == null ? void 0 : _a.prefix) == null ? void 0 : _b.call(_a);
|
16095
16092
|
const selectTagClass = classes({
|
16096
16093
|
[resolveClassName("select-tag")]: true,
|
16097
16094
|
[resolveClassName("select-tag--default")]: true,
|
16098
16095
|
"is-disabled": this.disabled,
|
16099
|
-
"collapse-tag": this.collapseTags
|
16096
|
+
"collapse-tag": this.collapseTags,
|
16097
|
+
"has-prefix": !!prefix
|
16100
16098
|
});
|
16101
16099
|
const tagWrapperClass = classes({
|
16102
16100
|
[resolveClassName("select-tag-wrapper")]: true
|
@@ -16106,9 +16104,9 @@ var SelectTagInput = defineComponent({
|
|
16106
16104
|
};
|
16107
16105
|
return createVNode("div", {
|
16108
16106
|
"class": selectTagClass
|
16109
|
-
}, [(
|
16107
|
+
}, [(_d = (_c = this.$slots) == null ? void 0 : _c.prefix) == null ? void 0 : _d.call(_c), createVNode("span", {
|
16110
16108
|
"class": tagWrapperClass
|
16111
|
-
}, [(
|
16109
|
+
}, [(_g = (_f = (_e = this.$slots).default) == null ? void 0 : _f.call(_e)) != null ? _g : this.selected.map((item, index2) => createVNode(BkTag, {
|
16112
16110
|
"closable": true,
|
16113
16111
|
"theme": this.tagTheme,
|
16114
16112
|
"style": {
|
@@ -16135,7 +16133,7 @@ var SelectTagInput = defineComponent({
|
|
16135
16133
|
"value": !this.filterable ? "" : this.value,
|
16136
16134
|
"onInput": this.handleInput,
|
16137
16135
|
"onKeydown": this.handleKeydown
|
16138
|
-
}, null)]), (
|
16136
|
+
}, null)]), (_i = (_h = this.$slots) == null ? void 0 : _h.suffix) == null ? void 0 : _i.call(_h)]);
|
16139
16137
|
}
|
16140
16138
|
});
|
16141
16139
|
var Component$k = defineComponent({
|
@@ -16180,7 +16178,8 @@ var Component$k = defineComponent({
|
|
16180
16178
|
enableVirtualRender: PropTypes.bool.def(false),
|
16181
16179
|
allowEmptyValues: PropTypes.array.def([]),
|
16182
16180
|
autoFocus: PropTypes.bool.def(false),
|
16183
|
-
keepSearchValue: PropTypes.bool.def(false)
|
16181
|
+
keepSearchValue: PropTypes.bool.def(false),
|
16182
|
+
prefix: PropTypes.string
|
16184
16183
|
},
|
16185
16184
|
emits: ["update:modelValue", "change", "toggle", "clear", "scroll-end", "focus", "blur"],
|
16186
16185
|
setup(props2, {
|
@@ -16730,7 +16729,15 @@ var Component$k = defineComponent({
|
|
16730
16729
|
}, {
|
16731
16730
|
prefix: () => {
|
16732
16731
|
var _a, _b;
|
16733
|
-
|
16732
|
+
if (typeof this.$slots.prefix === "function") {
|
16733
|
+
return (_b = (_a = this.$slots).prefix) == null ? void 0 : _b.call(_a);
|
16734
|
+
}
|
16735
|
+
if (this.prefix) {
|
16736
|
+
return createVNode("div", {
|
16737
|
+
"class": "bk-select--prefix-area"
|
16738
|
+
}, [createVNode("span", null, [this.prefix])]);
|
16739
|
+
}
|
16740
|
+
return "";
|
16734
16741
|
},
|
16735
16742
|
default: this.$slots.tag && (() => this.$slots.tag({
|
16736
16743
|
selected: this.selected
|
@@ -16738,7 +16745,7 @@ var Component$k = defineComponent({
|
|
16738
16745
|
suffix: () => suffixIcon()
|
16739
16746
|
});
|
16740
16747
|
}
|
16741
|
-
return createVNode(BkInput, {
|
16748
|
+
return createVNode(BkInput, mergeProps({
|
16742
16749
|
"ref": "inputRef",
|
16743
16750
|
"type": "text",
|
16744
16751
|
"modelValue": this.isInput ? this.searchKey : this.selectedLabel.join(","),
|
@@ -16752,13 +16759,16 @@ var Component$k = defineComponent({
|
|
16752
16759
|
"onInput": this.handleInputChange,
|
16753
16760
|
"onEnter": this.handleInputEnter,
|
16754
16761
|
"onKeydown": (_2, e) => this.handleKeydown(e)
|
16755
|
-
}, {
|
16762
|
+
}, this.prefix ? {
|
16763
|
+
prefix: this.prefix
|
16764
|
+
} : null), __spreadProps(__spreadValues({}, typeof this.$slots.prefix === "function" ? {
|
16756
16765
|
prefix: () => {
|
16757
16766
|
var _a, _b;
|
16758
16767
|
return (_b = (_a = this.$slots).prefix) == null ? void 0 : _b.call(_a);
|
16759
|
-
}
|
16768
|
+
}
|
16769
|
+
} : null), {
|
16760
16770
|
suffix: () => suffixIcon()
|
16761
|
-
});
|
16771
|
+
}));
|
16762
16772
|
};
|
16763
16773
|
const renderSelectTrigger = () => {
|
16764
16774
|
var _a, _b;
|
@@ -31690,7 +31700,7 @@ var Dropdown = defineComponent({
|
|
31690
31700
|
name: "Dropdown",
|
31691
31701
|
props: {
|
31692
31702
|
isShow: PropTypes.bool.def(false),
|
31693
|
-
placement: placementType(),
|
31703
|
+
placement: placementType$1(),
|
31694
31704
|
trigger: triggerType$1(),
|
31695
31705
|
disabled: PropTypes.bool.def(false),
|
31696
31706
|
popoverOptions: PropTypes.object.def({}),
|
@@ -41114,7 +41124,7 @@ const PopConfirmProps = {
|
|
41114
41124
|
content: PropTypes.string.def(""),
|
41115
41125
|
confirmText: PropTypes.string.def(""),
|
41116
41126
|
cancelText: PropTypes.string.def(""),
|
41117
|
-
placement: PropTypes.oneOfType([placementType().def(PlacementEnum.TOP), PropTypes.string]).def(PlacementEnum.TOP),
|
41127
|
+
placement: PropTypes.oneOfType([placementType$1().def(PlacementEnum.TOP), PropTypes.string]).def(PlacementEnum.TOP),
|
41118
41128
|
theme: PropTypes.string.def("light "),
|
41119
41129
|
icon: PropTypes.string.def(""),
|
41120
41130
|
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def("auto")
|