bkui-vue 0.0.2-beta.35 → 0.0.2-beta.36
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 +25 -25
- package/dist/index.esm.js +30 -14
- package/dist/index.umd.js +44 -44
- package/lib/message/messageConstructor.d.ts +1 -1
- package/lib/plugin-popover/index.js +1 -1
- package/lib/popover/content.d.ts +8 -0
- package/lib/popover/index.d.ts +12 -0
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.d.ts +7 -0
- package/lib/popover/props.d.ts +3 -0
- package/lib/select/index.d.ts +25 -3
- package/lib/select/index.js +1 -1
- package/lib/select/select.d.ts +11 -1
- package/lib/table/index.js +1 -1
- package/lib/tag-input/index.d.ts +9 -0
- package/lib/tag-input/tag-input.d.ts +20 -0
- package/lib/tag-input/tag-props.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -7993,6 +7993,7 @@ const q3 = (e) => !0, e6 = (e) => e, q7 = (e) => !0, eI = {
|
|
7993
7993
|
width: p.oneOfType([p.string, p.number]).def("auto"),
|
7994
7994
|
height: p.oneOfType([p.string, p.number]).def("auto"),
|
7995
7995
|
maxHeight: p.oneOfType([p.string, p.number]).def("auto"),
|
7996
|
+
maxWidth: p.oneOfType([p.string, p.number]).def("auto"),
|
7996
7997
|
extCls: p.string.def(""),
|
7997
7998
|
visible: p.bool.def(!1),
|
7998
7999
|
eventDelay: p.number.def(0)
|
@@ -8001,7 +8002,8 @@ const q3 = (e) => !0, e6 = (e) => e, q7 = (e) => !0, eI = {
|
|
8001
8002
|
const t = (d) => /^\d+\.?\d*$/.test(`${d}`) ? `${d}px` : d, n = R(() => ({
|
8002
8003
|
width: t(e.width),
|
8003
8004
|
height: t(e.height),
|
8004
|
-
maxHeight: t(e.maxHeight)
|
8005
|
+
maxHeight: t(e.maxHeight),
|
8006
|
+
maxWidth: t(e.maxWidth)
|
8005
8007
|
})), i = $(null), a = $(null), r = () => {
|
8006
8008
|
e.eventDelay !== 0 && (a.value && clearTimeout(a.value), a.value = setTimeout(() => {
|
8007
8009
|
o("unset");
|
@@ -8041,9 +8043,8 @@ const q3 = (e) => !0, e6 = (e) => e, q7 = (e) => !0, eI = {
|
|
8041
8043
|
disabled: p.bool.def(!1),
|
8042
8044
|
width: p.oneOfType([p.string, p.number]).def("auto"),
|
8043
8045
|
height: p.oneOfType([p.string, p.number]).def("auto"),
|
8044
|
-
|
8045
|
-
|
8046
|
-
),
|
8046
|
+
maxWidth: p.oneOfType([p.string, p.number]).def("auto"),
|
8047
|
+
maxHeight: p.oneOfType([p.string, p.number]).def("auto"),
|
8047
8048
|
content: Ee("IContent", {}).def(""),
|
8048
8049
|
target: p.oneOfType([
|
8049
8050
|
p.string,
|
@@ -9777,6 +9778,7 @@ const z1 = /* @__PURE__ */ ye({
|
|
9777
9778
|
extCls: this.extCls,
|
9778
9779
|
width: this.width,
|
9779
9780
|
height: this.height,
|
9781
|
+
maxWidth: this.maxWidth,
|
9780
9782
|
maxHeight: this.maxHeight,
|
9781
9783
|
eventDelay: this.componentEventDelay
|
9782
9784
|
}, {
|
@@ -13034,7 +13036,7 @@ const pN = /* @__PURE__ */ ye({
|
|
13034
13036
|
prefix: p.string,
|
13035
13037
|
selectedStyle: $w()
|
13036
13038
|
},
|
13037
|
-
emits: ["update:modelValue", "change", "toggle", "clear", "scroll-end", "focus", "blur"],
|
13039
|
+
emits: ["update:modelValue", "change", "toggle", "clear", "scroll-end", "focus", "blur", "tag-remove"],
|
13038
13040
|
setup(e, {
|
13039
13041
|
emit: t
|
13040
13042
|
}) {
|
@@ -13204,7 +13206,7 @@ const pN = /* @__PURE__ */ ye({
|
|
13204
13206
|
if (ue.value)
|
13205
13207
|
return;
|
13206
13208
|
const Oe = O.value.findIndex((Ze) => Ze.value === De);
|
13207
|
-
Oe > -1 && (O.value.splice(Oe, 1), Mi(O.value.map((Ze) => Ze.value)));
|
13209
|
+
Oe > -1 && (O.value.splice(Oe, 1), Mi(O.value.map((Ze) => Ze.value)), t("tag-remove", De));
|
13208
13210
|
}, vr = (De) => {
|
13209
13211
|
var Ze, Jn;
|
13210
13212
|
let Oe = De;
|
@@ -15164,23 +15166,34 @@ const Ut = (e, t, n) => {
|
|
15164
15166
|
}) {
|
15165
15167
|
const n = $(), i = $(!1), a = R(() => ({
|
15166
15168
|
textAlign: e.column.textAlign
|
15167
|
-
})), r = () =>
|
15168
|
-
showOverflowTooltip
|
15169
|
+
})), r = () => {
|
15170
|
+
if (/boolean|object/.test(typeof e.column.showOverflowTooltip) && e.column.showOverflowTooltip !== null) {
|
15171
|
+
const v = {
|
15172
|
+
showOverflowTooltip: {}
|
15173
|
+
};
|
15174
|
+
return e.parentSetting !== null && typeof e.parentSetting == "object" && (v.showOverflowTooltip = e.parentSetting, Object.assign(v.showOverflowTooltip, {
|
15175
|
+
disabled: !e.column.showOverflowTooltip
|
15176
|
+
}), typeof e.column.showOverflowTooltip == "object" && Object.assign(v.showOverflowTooltip, e.column.showOverflowTooltip)), v;
|
15177
|
+
}
|
15178
|
+
return {
|
15179
|
+
showOverflowTooltip: e.parentSetting
|
15180
|
+
};
|
15169
15181
|
}, {
|
15170
15182
|
showOverflowTooltip: o = !1
|
15171
15183
|
} = r();
|
15172
15184
|
let u = null;
|
15173
15185
|
const d = () => {
|
15174
|
-
var
|
15186
|
+
var S;
|
15175
15187
|
let v = !0, {
|
15176
15188
|
resizerWay: y
|
15177
|
-
} = e, C = n.value.innerText, b = "auto",
|
15178
|
-
return typeof o == "boolean" && (v = !o), typeof o == "object" && (v = o.disabled, y = o.resizerWay || "debounce", C = o.content || n.value.innerText, typeof o.content == "function" && (C = o.content(e.column, e.row)),
|
15189
|
+
} = e, C = n.value.innerText, b = {}, x = "auto", M = !0;
|
15190
|
+
return typeof o == "boolean" && (v = !o), typeof o == "object" && (v = o.disabled, b = o.popoverOption, y = o.resizerWay || "debounce", C = o.content || n.value.innerText, typeof o.content == "function" && (C = o.content(e.column, e.row)), M = o.watchCellResize, x = o.mode || "auto"), typeof v == "function" && (v = Reflect.apply(v, this, [e.column, e.row])), e.isHead && (v = !1, x = "auto", C = (S = c()) == null ? void 0 : S.innerHTML, e.headExplain && (x = "static", C = e.headExplain)), e.column.explain && (v = !1, x = "static", typeof e.column.explain == "object" && (C = Ut(e.column.explain, "content", [e.column, e.row]))), {
|
15179
15191
|
disabled: v,
|
15180
15192
|
content: C,
|
15181
|
-
mode:
|
15193
|
+
mode: x,
|
15182
15194
|
resizerWay: y,
|
15183
|
-
watchCellResize:
|
15195
|
+
watchCellResize: M,
|
15196
|
+
popoverOption: b
|
15184
15197
|
};
|
15185
15198
|
}, c = () => {
|
15186
15199
|
var v, y;
|
@@ -15198,7 +15211,8 @@ const Ut = (e, t, n) => {
|
|
15198
15211
|
u === null && (u = Z1(v, {
|
15199
15212
|
disabled: b.value.disabled,
|
15200
15213
|
content: b.value.content,
|
15201
|
-
mode: b.value.mode
|
15214
|
+
mode: b.value.mode,
|
15215
|
+
popoverOption: b.value.popoverOption
|
15202
15216
|
}));
|
15203
15217
|
} else
|
15204
15218
|
u == null || u.destroyInstance(v), u = null;
|
@@ -15910,6 +15924,8 @@ class RT {
|
|
15910
15924
|
observerResize: this.props.observerResize,
|
15911
15925
|
resizerWay: this.props.resizerWay,
|
15912
15926
|
isHead: !0,
|
15927
|
+
column: c,
|
15928
|
+
parentSetting: this.props.showOverflowTooltip,
|
15913
15929
|
headExplain: Ut(c.explain, "head", [c])
|
15914
15930
|
}, k6(m) ? m : {
|
15915
15931
|
default: () => [m]
|