ant-design-x-vue 1.0.5 → 1.0.6
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.mjs +108 -119
- package/dist/index.umd.js +2 -2
- package/dist/resolver/index.d.ts +25 -0
- package/dist/resolver/index.js +49 -0
- package/package.json +7 -3
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var U0 = Object.defineProperty;
|
|
2
2
|
var G0 = (e, t, n) => t in e ? U0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Yn = (e, t, n) => G0(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { computed as $, inject as ve, provide as be, shallowRef as K, defineComponent as W, watch as Q, unref as ie, triggerRef as zt, Fragment as Ie, isVNode as Rt, Comment as q0, Text as om, reactive as ut, getCurrentInstance as Pt, onMounted as $e, onUpdated as Ao, onUnmounted as Mr, ref as G, watchEffect as ye, onBeforeUnmount as Be, createVNode as p, h as ho, Transition as un, withDirectives as Vn, resolveDirective as Y0, cloneVNode as rm, nextTick as Ve, toRef as we, withModifiers as $u, vShow as Mo, onBeforeMount as Z0, Teleport as Ui, createTextVNode as ur, isRef as Q0, toRefs as Is, toRaw as yo, render as dr, onBeforeUpdate as im, TransitionGroup as Ts, createApp as J0, useSlots as It, mergeProps as We, onWatcherCleanup as Ro, toValue as Ae, mergeDefaults as
|
|
4
|
+
import { computed as $, inject as ve, provide as be, shallowRef as K, defineComponent as W, watch as Q, unref as ie, triggerRef as zt, Fragment as Ie, isVNode as Rt, Comment as q0, Text as om, reactive as ut, getCurrentInstance as Pt, onMounted as $e, onUpdated as Ao, onUnmounted as Mr, ref as G, watchEffect as ye, onBeforeUnmount as Be, createVNode as p, h as ho, Transition as un, withDirectives as Vn, resolveDirective as Y0, cloneVNode as rm, nextTick as Ve, toRef as we, withModifiers as $u, vShow as Mo, onBeforeMount as Z0, Teleport as Ui, createTextVNode as ur, isRef as Q0, toRefs as Is, toRaw as yo, render as dr, onBeforeUpdate as im, TransitionGroup as Ts, createApp as J0, useSlots as It, mergeProps as We, onWatcherCleanup as Ro, toValue as Ae, mergeDefaults as Je, useAttrs as am, useTemplateRef as bo, openBlock as lm, createElementBlock as sm, createElementVNode as co, useId as ey } from "vue";
|
|
5
5
|
const fr = function() {
|
|
6
6
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
7
7
|
t[n] = arguments[n];
|
|
@@ -39,7 +39,7 @@ function pe(e) {
|
|
|
39
39
|
default: e
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Ze(e, t) {
|
|
43
43
|
const n = {
|
|
44
44
|
validator: () => !0,
|
|
45
45
|
default: e
|
|
@@ -62,7 +62,7 @@ function St(e, t) {
|
|
|
62
62
|
return e ? {
|
|
63
63
|
type: e,
|
|
64
64
|
default: t
|
|
65
|
-
} :
|
|
65
|
+
} : Ze(t);
|
|
66
66
|
}
|
|
67
67
|
const Es = "anticon", ny = Symbol("GlobalFormContextKey"), oy = (e) => {
|
|
68
68
|
be(ny, e);
|
|
@@ -3545,8 +3545,8 @@ var B1 = function(e, t) {
|
|
|
3545
3545
|
const L1 = () => ({
|
|
3546
3546
|
prefixCls: String,
|
|
3547
3547
|
imageStyle: he(),
|
|
3548
|
-
image:
|
|
3549
|
-
description:
|
|
3548
|
+
image: Ze(),
|
|
3549
|
+
description: Ze()
|
|
3550
3550
|
}), Vs = W({
|
|
3551
3551
|
name: "AEmpty",
|
|
3552
3552
|
compatConfig: {
|
|
@@ -3748,10 +3748,10 @@ var Ln = function(e) {
|
|
|
3748
3748
|
return Gu(e) !== !1 && typeof (t = e.constructor) == "function" && Gu(n = t.prototype) !== !1 && n.hasOwnProperty("isPrototypeOf") !== !1;
|
|
3749
3749
|
}, gg = function(e) {
|
|
3750
3750
|
return e;
|
|
3751
|
-
},
|
|
3751
|
+
}, Qe = gg;
|
|
3752
3752
|
if (process.env.NODE_ENV !== "production") {
|
|
3753
3753
|
var V1 = typeof console < "u";
|
|
3754
|
-
|
|
3754
|
+
Qe = V1 ? function(e) {
|
|
3755
3755
|
console.warn("[VueTypes warn]: " + e);
|
|
3756
3756
|
} : gg;
|
|
3757
3757
|
}
|
|
@@ -3793,16 +3793,16 @@ function Kn(e, t, n) {
|
|
|
3793
3793
|
}
|
|
3794
3794
|
if (!r) {
|
|
3795
3795
|
var l = a + 'value "' + t + '" should be of type "' + i + '"';
|
|
3796
|
-
return n === !1 ? (
|
|
3796
|
+
return n === !1 ? (Qe(l), !1) : l;
|
|
3797
3797
|
}
|
|
3798
3798
|
if ($r(o, "validator") && Oo(o.validator)) {
|
|
3799
|
-
var s =
|
|
3800
|
-
if (
|
|
3799
|
+
var s = Qe, c = [];
|
|
3800
|
+
if (Qe = function(d) {
|
|
3801
3801
|
c.push(d);
|
|
3802
|
-
}, r = o.validator(t),
|
|
3802
|
+
}, r = o.validator(t), Qe = s, !r) {
|
|
3803
3803
|
var u = (c.length > 1 ? "* " : "") + c.join(`
|
|
3804
3804
|
* `);
|
|
3805
|
-
return c.length = 0, n === !1 ? (
|
|
3805
|
+
return c.length = 0, n === !1 ? (Qe(u), r) : u;
|
|
3806
3806
|
}
|
|
3807
3807
|
}
|
|
3808
3808
|
return r;
|
|
@@ -3815,14 +3815,14 @@ function ft(e, t) {
|
|
|
3815
3815
|
return [].concat(r);
|
|
3816
3816
|
} : Ln(r) ? function() {
|
|
3817
3817
|
return Object.assign({}, r);
|
|
3818
|
-
} : r, this) : (
|
|
3818
|
+
} : r, this) : (Qe(this._vueTypes_name + ' - invalid default value: "' + r + '"'), this) : this;
|
|
3819
3819
|
} } }), o = n.validator;
|
|
3820
3820
|
return Oo(o) && (n.validator = Ws(o, n)), n;
|
|
3821
3821
|
}
|
|
3822
3822
|
function Nt(e, t) {
|
|
3823
3823
|
var n = ft(e, t);
|
|
3824
3824
|
return Object.defineProperty(n, "validate", { value: function(o) {
|
|
3825
|
-
return Oo(this.validator) &&
|
|
3825
|
+
return Oo(this.validator) && Qe(this._vueTypes_name + ` - calling .validate() will overwrite the current custom validator function. Validator info:
|
|
3826
3826
|
` + JSON.stringify(this)), this.validator = Ws(o, this), this;
|
|
3827
3827
|
} });
|
|
3828
3828
|
}
|
|
@@ -3870,7 +3870,7 @@ function J1(e, t) {
|
|
|
3870
3870
|
if (t === void 0 && (t = "custom validation failed"), typeof e != "function") throw new TypeError("[VueTypes error]: You must provide a function as argument");
|
|
3871
3871
|
return ft(e.name || "<<anonymous function>>", { validator: function(n) {
|
|
3872
3872
|
var o = e(n);
|
|
3873
|
-
return o ||
|
|
3873
|
+
return o || Qe(this._vueTypes_name + " - " + t), o;
|
|
3874
3874
|
} });
|
|
3875
3875
|
}
|
|
3876
3876
|
function eS(e) {
|
|
@@ -3884,7 +3884,7 @@ function eS(e) {
|
|
|
3884
3884
|
}, []);
|
|
3885
3885
|
return ft("oneOf", { type: n.length > 0 ? n : void 0, validator: function(o) {
|
|
3886
3886
|
var r = e.indexOf(o) !== -1;
|
|
3887
|
-
return r ||
|
|
3887
|
+
return r || Qe(t), r;
|
|
3888
3888
|
} });
|
|
3889
3889
|
}
|
|
3890
3890
|
function tS(e) {
|
|
@@ -3910,7 +3910,7 @@ function tS(e) {
|
|
|
3910
3910
|
var c = Kn(Mi(s) && s._vueTypes_name === "oneOf" ? s.type || null : s, i, !0);
|
|
3911
3911
|
return typeof c == "string" && a.push(c), c === !0;
|
|
3912
3912
|
});
|
|
3913
|
-
return l ||
|
|
3913
|
+
return l || Qe("oneOfType - provided value does not match any of the " + a.length + ` passed-in validators:
|
|
3914
3914
|
` + na(a.join(`
|
|
3915
3915
|
`))), l;
|
|
3916
3916
|
} } : { type: n });
|
|
@@ -3920,7 +3920,7 @@ function nS(e) {
|
|
|
3920
3920
|
var n, o = t.every(function(r) {
|
|
3921
3921
|
return (n = Kn(e, r, !0)) === !0;
|
|
3922
3922
|
});
|
|
3923
|
-
return o ||
|
|
3923
|
+
return o || Qe(`arrayOf - value validation error:
|
|
3924
3924
|
` + na(n)), o;
|
|
3925
3925
|
} });
|
|
3926
3926
|
}
|
|
@@ -3932,7 +3932,7 @@ function rS(e) {
|
|
|
3932
3932
|
var n, o = Object.keys(t).every(function(r) {
|
|
3933
3933
|
return (n = Kn(e, t[r], !0)) === !0;
|
|
3934
3934
|
});
|
|
3935
|
-
return o ||
|
|
3935
|
+
return o || Qe(`objectOf - value validation error:
|
|
3936
3936
|
` + na(n)), o;
|
|
3937
3937
|
} });
|
|
3938
3938
|
}
|
|
@@ -3950,12 +3950,12 @@ function iS(e) {
|
|
|
3950
3950
|
var l = n.filter(function(s) {
|
|
3951
3951
|
return a.indexOf(s) === -1;
|
|
3952
3952
|
});
|
|
3953
|
-
return
|
|
3953
|
+
return Qe(l.length === 1 ? 'shape - required property "' + l[0] + '" is not defined.' : 'shape - required properties "' + l.join('", "') + '" are not defined.'), !1;
|
|
3954
3954
|
}
|
|
3955
3955
|
return a.every(function(s) {
|
|
3956
|
-
if (t.indexOf(s) === -1) return i._vueTypes_isLoose === !0 || (
|
|
3956
|
+
if (t.indexOf(s) === -1) return i._vueTypes_isLoose === !0 || (Qe('shape - shape definition does not include a "' + s + '" property. Allowed keys: "' + t.join('", "') + '".'), !1);
|
|
3957
3957
|
var c = Kn(e[s], r[s], !0);
|
|
3958
|
-
return typeof c == "string" &&
|
|
3958
|
+
return typeof c == "string" && Qe('shape - "' + s + `" property validation error:
|
|
3959
3959
|
` + na(c)), c === !0;
|
|
3960
3960
|
});
|
|
3961
3961
|
} });
|
|
@@ -8862,7 +8862,7 @@ const Cw = W({
|
|
|
8862
8862
|
// Icons
|
|
8863
8863
|
allowClear: ce,
|
|
8864
8864
|
clearIcon: Se,
|
|
8865
|
-
showArrow:
|
|
8865
|
+
showArrow: qe,
|
|
8866
8866
|
inputIcon: pt,
|
|
8867
8867
|
// Others
|
|
8868
8868
|
disabled: qn,
|
|
@@ -8910,7 +8910,7 @@ const Cw = W({
|
|
|
8910
8910
|
}), Ea == null || Ea.forEach((vn) => {
|
|
8911
8911
|
delete Aa[vn];
|
|
8912
8912
|
});
|
|
8913
|
-
const hu =
|
|
8913
|
+
const hu = qe !== void 0 ? qe : Zt || !i.value && ge !== "combobox";
|
|
8914
8914
|
let yu;
|
|
8915
8915
|
hu && (yu = p(Po, {
|
|
8916
8916
|
class: ne(`${X}-arrow`, {
|
|
@@ -12921,8 +12921,8 @@ const GP = (e) => {
|
|
|
12921
12921
|
width: 177
|
|
12922
12922
|
};
|
|
12923
12923
|
}), r4 = () => v(v({}, bv()), {
|
|
12924
|
-
content:
|
|
12925
|
-
title:
|
|
12924
|
+
content: Ze(),
|
|
12925
|
+
title: Ze()
|
|
12926
12926
|
}), i4 = W({
|
|
12927
12927
|
compatConfig: {
|
|
12928
12928
|
MODE: 3
|
|
@@ -15433,18 +15433,18 @@ const l6 = () => ({
|
|
|
15433
15433
|
}, [ce.charAt(0)]) : p("span", {
|
|
15434
15434
|
class: `${C.value}-title-content`
|
|
15435
15435
|
}, [ce]);
|
|
15436
|
-
const
|
|
15436
|
+
const qe = Wt(ce) && ce.type === "span";
|
|
15437
15437
|
return p(Ie, null, [Me(typeof Se == "function" ? Se(e.originItemValue) : Se, {
|
|
15438
15438
|
class: `${C.value}-item-icon`
|
|
15439
|
-
}, !1),
|
|
15439
|
+
}, !1), qe ? ce : p("span", {
|
|
15440
15440
|
class: `${C.value}-title-content`
|
|
15441
15441
|
}, [ce])]);
|
|
15442
15442
|
}, ge = $(() => I.value !== "inline" && g.value.length > 1 ? "vertical" : I.value), Pe = $(() => I.value === "horizontal" ? "vertical" : I.value), Te = $(() => ge.value === "horizontal" ? "vertical" : ge.value), je = () => {
|
|
15443
15443
|
var ce, Se;
|
|
15444
|
-
const
|
|
15444
|
+
const qe = B.value, pt = (ce = e.icon) !== null && ce !== void 0 ? ce : (Se = n.icon) === null || Se === void 0 ? void 0 : Se.call(n, e), qn = e.expandIcon || n.expandIcon || H.value, Zt = se(Dr(n, e, "title"), pt);
|
|
15445
15445
|
return p("div", {
|
|
15446
15446
|
style: le.value,
|
|
15447
|
-
class: `${
|
|
15447
|
+
class: `${qe}-title`,
|
|
15448
15448
|
tabindex: N.value ? null : -1,
|
|
15449
15449
|
ref: _,
|
|
15450
15450
|
title: typeof Zt == "string" ? Zt : null,
|
|
@@ -15458,7 +15458,7 @@ const l6 = () => ({
|
|
|
15458
15458
|
}, [Zt, I.value !== "horizontal" && qn ? qn(v(v({}, e), {
|
|
15459
15459
|
isOpen: J.value
|
|
15460
15460
|
})) : p("i", {
|
|
15461
|
-
class: `${
|
|
15461
|
+
class: `${qe}-arrow`
|
|
15462
15462
|
}, null)]);
|
|
15463
15463
|
};
|
|
15464
15464
|
return () => {
|
|
@@ -15466,10 +15466,10 @@ const l6 = () => ({
|
|
|
15466
15466
|
if (l)
|
|
15467
15467
|
return T ? (ce = n.default) === null || ce === void 0 ? void 0 : ce.call(n) : null;
|
|
15468
15468
|
const Se = B.value;
|
|
15469
|
-
let
|
|
15469
|
+
let qe = () => null;
|
|
15470
15470
|
if (!R.value && I.value !== "inline") {
|
|
15471
15471
|
const pt = I.value === "horizontal" ? [0, 8] : [10, 0];
|
|
15472
|
-
|
|
15472
|
+
qe = () => p(Pf, {
|
|
15473
15473
|
mode: ge.value,
|
|
15474
15474
|
prefixCls: Se,
|
|
15475
15475
|
visible: !e.internalPopupClose && J.value,
|
|
@@ -15491,7 +15491,7 @@ const l6 = () => ({
|
|
|
15491
15491
|
})
|
|
15492
15492
|
});
|
|
15493
15493
|
} else
|
|
15494
|
-
|
|
15494
|
+
qe = () => p(Pf, null, {
|
|
15495
15495
|
default: je
|
|
15496
15496
|
});
|
|
15497
15497
|
return p(ji, {
|
|
@@ -15511,7 +15511,7 @@ const l6 = () => ({
|
|
|
15511
15511
|
onMouseleave: te,
|
|
15512
15512
|
"data-submenu-id": u
|
|
15513
15513
|
}), {
|
|
15514
|
-
default: () => p(Ie, null, [
|
|
15514
|
+
default: () => p(Ie, null, [qe(), !R.value && p(a6, {
|
|
15515
15515
|
id: ee,
|
|
15516
15516
|
open: J.value,
|
|
15517
15517
|
keyPath: g.value
|
|
@@ -18548,7 +18548,7 @@ const tI = W({
|
|
|
18548
18548
|
if (ge && !se)
|
|
18549
18549
|
Te = I.value.filter((je) => ln(je) !== X);
|
|
18550
18550
|
else {
|
|
18551
|
-
const je = se ? ee.filter((
|
|
18551
|
+
const je = se ? ee.filter((qe) => qe !== X) : [...ee, X];
|
|
18552
18552
|
let ce;
|
|
18553
18553
|
se ? {
|
|
18554
18554
|
checkedKeys: ce
|
|
@@ -19559,7 +19559,7 @@ Wi.newInstance = function(t, n) {
|
|
|
19559
19559
|
let {
|
|
19560
19560
|
attrs: C
|
|
19561
19561
|
} = S;
|
|
19562
|
-
const x = K(), w = $(() =>
|
|
19562
|
+
const x = K(), w = $(() => Ye.getPrefixCls(r, l)), [, O] = d(w);
|
|
19563
19563
|
return $e(() => {
|
|
19564
19564
|
n({
|
|
19565
19565
|
notice(I) {
|
|
@@ -19576,7 +19576,7 @@ Wi.newInstance = function(t, n) {
|
|
|
19576
19576
|
component: x
|
|
19577
19577
|
});
|
|
19578
19578
|
}), () => {
|
|
19579
|
-
const I =
|
|
19579
|
+
const I = Ye, b = I.getRootPrefixCls(s, w.value), E = u ? c : `${w.value}-${c}`;
|
|
19580
19580
|
return p(vo, F(F({}, I), {}, {
|
|
19581
19581
|
prefixCls: b
|
|
19582
19582
|
}), {
|
|
@@ -20953,24 +20953,24 @@ var aT = function(e, t) {
|
|
|
20953
20953
|
};
|
|
20954
20954
|
const lT = "ant";
|
|
20955
20955
|
function go() {
|
|
20956
|
-
return
|
|
20956
|
+
return Ye.prefixCls || lT;
|
|
20957
20957
|
}
|
|
20958
20958
|
function xh() {
|
|
20959
|
-
return
|
|
20959
|
+
return Ye.iconPrefixCls || Es;
|
|
20960
20960
|
}
|
|
20961
|
-
const Hc = ut({}),
|
|
20961
|
+
const Hc = ut({}), Ye = ut({});
|
|
20962
20962
|
ye(() => {
|
|
20963
|
-
v(
|
|
20963
|
+
v(Ye, Hc), Ye.prefixCls = go(), Ye.iconPrefixCls = xh(), Ye.getPrefixCls = (e, t) => t || (e ? `${Ye.prefixCls}-${e}` : Ye.prefixCls), Ye.getRootPrefixCls = () => Ye.prefixCls ? Ye.prefixCls : go();
|
|
20964
20964
|
});
|
|
20965
20965
|
let il;
|
|
20966
20966
|
const sT = (e) => {
|
|
20967
20967
|
il && il(), il = ye(() => {
|
|
20968
|
-
v(Hc, ut(e)), v(
|
|
20968
|
+
v(Hc, ut(e)), v(Ye, ut(e));
|
|
20969
20969
|
}), e.theme && oT(go(), e.theme);
|
|
20970
20970
|
}, cT = () => ({
|
|
20971
20971
|
getPrefixCls: (e, t) => t || (e ? `${go()}-${e}` : go()),
|
|
20972
20972
|
getIconPrefixCls: xh,
|
|
20973
|
-
getRootPrefixCls: () =>
|
|
20973
|
+
getRootPrefixCls: () => Ye.prefixCls ? Ye.prefixCls : go()
|
|
20974
20974
|
}), vo = W({
|
|
20975
20975
|
compatConfig: {
|
|
20976
20976
|
MODE: 3
|
|
@@ -21900,13 +21900,13 @@ const bT = ["text", "input"], ST = W({
|
|
|
21900
21900
|
props: {
|
|
21901
21901
|
prefixCls: String,
|
|
21902
21902
|
inputType: V.oneOf(fr("text", "input")),
|
|
21903
|
-
value:
|
|
21904
|
-
defaultValue:
|
|
21903
|
+
value: Ze(),
|
|
21904
|
+
defaultValue: Ze(),
|
|
21905
21905
|
allowClear: {
|
|
21906
21906
|
type: Boolean,
|
|
21907
21907
|
default: void 0
|
|
21908
21908
|
},
|
|
21909
|
-
element:
|
|
21909
|
+
element: Ze(),
|
|
21910
21910
|
handleReset: Function,
|
|
21911
21911
|
disabled: {
|
|
21912
21912
|
type: Boolean,
|
|
@@ -21918,10 +21918,10 @@ const bT = ["text", "input"], ST = W({
|
|
|
21918
21918
|
size: {
|
|
21919
21919
|
type: String
|
|
21920
21920
|
},
|
|
21921
|
-
suffix:
|
|
21922
|
-
prefix:
|
|
21923
|
-
addonBefore:
|
|
21924
|
-
addonAfter:
|
|
21921
|
+
suffix: Ze(),
|
|
21922
|
+
prefix: Ze(),
|
|
21923
|
+
addonBefore: Ze(),
|
|
21924
|
+
addonAfter: Ze(),
|
|
21925
21925
|
readonly: {
|
|
21926
21926
|
type: Boolean,
|
|
21927
21927
|
default: void 0
|
|
@@ -22563,7 +22563,7 @@ const zT = {
|
|
|
22563
22563
|
showInfo: Ce(),
|
|
22564
22564
|
strokeWidth: Number,
|
|
22565
22565
|
strokeLinecap: _e(),
|
|
22566
|
-
strokeColor:
|
|
22566
|
+
strokeColor: Ze(),
|
|
22567
22567
|
trailColor: String,
|
|
22568
22568
|
/** @deprecated Use `size` instead */
|
|
22569
22569
|
width: Number,
|
|
@@ -22632,7 +22632,7 @@ var HT = function(e, t) {
|
|
|
22632
22632
|
return n;
|
|
22633
22633
|
};
|
|
22634
22634
|
const jT = () => v(v({}, Ca()), {
|
|
22635
|
-
strokeColor:
|
|
22635
|
+
strokeColor: Ze(),
|
|
22636
22636
|
direction: _e()
|
|
22637
22637
|
}), _T = (e) => {
|
|
22638
22638
|
let t = [];
|
|
@@ -22900,7 +22900,7 @@ const GT = W({
|
|
|
22900
22900
|
};
|
|
22901
22901
|
}
|
|
22902
22902
|
}), qT = () => v(v({}, Ca()), {
|
|
22903
|
-
strokeColor:
|
|
22903
|
+
strokeColor: Ze()
|
|
22904
22904
|
}), YT = 3, ZT = (e) => YT / e * 100, QT = W({
|
|
22905
22905
|
compatConfig: {
|
|
22906
22906
|
MODE: 3
|
|
@@ -24364,10 +24364,10 @@ const FE = th("webkitLineClamp"), HE = th("textOverflow"), lp = "...", Hr = () =
|
|
|
24364
24364
|
let Te = z, je;
|
|
24365
24365
|
if (oe && l.isEllipsis && !l.expanded && !se) {
|
|
24366
24366
|
const {
|
|
24367
|
-
title:
|
|
24367
|
+
title: qe
|
|
24368
24368
|
} = re;
|
|
24369
|
-
let pt =
|
|
24370
|
-
!
|
|
24369
|
+
let pt = qe || "";
|
|
24370
|
+
!qe && (typeof z == "string" || typeof z == "number") && (pt = String(z)), pt = pt == null ? void 0 : pt.slice(String(l.ellipsisContent || "").length), Te = p(Ie, null, [yo(l.ellipsisContent), p("span", {
|
|
24371
24371
|
title: pt,
|
|
24372
24372
|
"aria-hidden": "true"
|
|
24373
24373
|
}, [lp]), U]);
|
|
@@ -26703,7 +26703,7 @@ const c8 = () => ({
|
|
|
26703
26703
|
align: _e(),
|
|
26704
26704
|
flex: St([Number, String]),
|
|
26705
26705
|
gap: St([Number, String]),
|
|
26706
|
-
component:
|
|
26706
|
+
component: Ze()
|
|
26707
26707
|
});
|
|
26708
26708
|
var u8 = function(e, t) {
|
|
26709
26709
|
var n = {};
|
|
@@ -28430,7 +28430,7 @@ const { genStyleHooks: gn, genComponentStyleHook: NM, genSubStyleComponent: zM }
|
|
|
28430
28430
|
}), f0 = /* @__PURE__ */ W({
|
|
28431
28431
|
name: "AXBubble",
|
|
28432
28432
|
__name: "Bubble",
|
|
28433
|
-
props:
|
|
28433
|
+
props: Je({
|
|
28434
28434
|
prefixCls: null,
|
|
28435
28435
|
rootClassName: null,
|
|
28436
28436
|
styles: null,
|
|
@@ -28526,7 +28526,7 @@ const { genStyleHooks: gn, genComponentStyleHook: NM, genSubStyleComponent: zM }
|
|
|
28526
28526
|
class: Ae(O)
|
|
28527
28527
|
}, n, {
|
|
28528
28528
|
ref: a
|
|
28529
|
-
}), [
|
|
28529
|
+
}), [Ae(I) && p("div", {
|
|
28530
28530
|
style: {
|
|
28531
28531
|
...u.value.styles.avatar,
|
|
28532
28532
|
...e.styles.avatar
|
|
@@ -28667,7 +28667,7 @@ const G5 = 1, q5 = /* @__PURE__ */ W({
|
|
|
28667
28667
|
name: "AXBubbleList",
|
|
28668
28668
|
inheritAttrs: !1,
|
|
28669
28669
|
__name: "BubbleList",
|
|
28670
|
-
props:
|
|
28670
|
+
props: Je({
|
|
28671
28671
|
prefixCls: null,
|
|
28672
28672
|
rootClassName: null,
|
|
28673
28673
|
items: null,
|
|
@@ -29010,6 +29010,8 @@ const bl = "__ungrouped", eA = (e, t = []) => {
|
|
|
29010
29010
|
// 会话名
|
|
29011
29011
|
[`& ${t}-label`]: {
|
|
29012
29012
|
flex: 1,
|
|
29013
|
+
overflow: "hidden",
|
|
29014
|
+
textOverflow: "ellipsis",
|
|
29013
29015
|
color: e.colorText
|
|
29014
29016
|
},
|
|
29015
29017
|
// 会话操作菜单
|
|
@@ -29037,7 +29039,7 @@ const bl = "__ungrouped", eA = (e, t = []) => {
|
|
|
29037
29039
|
), LM = /* @__PURE__ */ W({
|
|
29038
29040
|
name: "AXConversations",
|
|
29039
29041
|
__name: "Conversations",
|
|
29040
|
-
props:
|
|
29042
|
+
props: Je({
|
|
29041
29043
|
items: null,
|
|
29042
29044
|
activeKey: null,
|
|
29043
29045
|
defaultActiveKey: null,
|
|
@@ -29188,7 +29190,7 @@ function sA(e) {
|
|
|
29188
29190
|
const FM = /* @__PURE__ */ W({
|
|
29189
29191
|
name: "AXWelcome",
|
|
29190
29192
|
__name: "Welcome",
|
|
29191
|
-
props:
|
|
29193
|
+
props: Je({
|
|
29192
29194
|
prefixCls: null,
|
|
29193
29195
|
rootClassName: null,
|
|
29194
29196
|
className: null,
|
|
@@ -29395,7 +29397,7 @@ const FM = /* @__PURE__ */ W({
|
|
|
29395
29397
|
), pA = /* @__PURE__ */ W({
|
|
29396
29398
|
name: "AXPrompts",
|
|
29397
29399
|
__name: "Prompts",
|
|
29398
|
-
props:
|
|
29400
|
+
props: Je({
|
|
29399
29401
|
items: null,
|
|
29400
29402
|
title: null,
|
|
29401
29403
|
onItemClick: {
|
|
@@ -29580,7 +29582,7 @@ function hA(e, t, n, o, r) {
|
|
|
29580
29582
|
const HM = /* @__PURE__ */ W({
|
|
29581
29583
|
name: "AXSuggestion",
|
|
29582
29584
|
__name: "Suggestion",
|
|
29583
|
-
props:
|
|
29585
|
+
props: Je({
|
|
29584
29586
|
prefixCls: null,
|
|
29585
29587
|
className: null,
|
|
29586
29588
|
rootClassName: null,
|
|
@@ -29702,7 +29704,7 @@ const HM = /* @__PURE__ */ W({
|
|
|
29702
29704
|
}), Pa = /* @__PURE__ */ W({
|
|
29703
29705
|
name: "AXSenderActionButton",
|
|
29704
29706
|
__name: "index",
|
|
29705
|
-
props:
|
|
29707
|
+
props: Je({
|
|
29706
29708
|
prefixCls: null,
|
|
29707
29709
|
type: null,
|
|
29708
29710
|
htmlType: null,
|
|
@@ -29751,7 +29753,7 @@ const HM = /* @__PURE__ */ W({
|
|
|
29751
29753
|
}), xA = /* @__PURE__ */ W({
|
|
29752
29754
|
name: "AXSenderClearButton",
|
|
29753
29755
|
__name: "ClearButton",
|
|
29754
|
-
props:
|
|
29756
|
+
props: Je({
|
|
29755
29757
|
prefixCls: null,
|
|
29756
29758
|
type: null,
|
|
29757
29759
|
htmlType: null,
|
|
@@ -29831,7 +29833,7 @@ const HM = /* @__PURE__ */ W({
|
|
|
29831
29833
|
}), Up = /* @__PURE__ */ W({
|
|
29832
29834
|
name: "AXSenderLoadingButton",
|
|
29833
29835
|
__name: "LoadingButton",
|
|
29834
|
-
props:
|
|
29836
|
+
props: Je({
|
|
29835
29837
|
prefixCls: null,
|
|
29836
29838
|
type: null,
|
|
29837
29839
|
htmlType: null,
|
|
@@ -29878,7 +29880,7 @@ const HM = /* @__PURE__ */ W({
|
|
|
29878
29880
|
}), Gp = /* @__PURE__ */ W({
|
|
29879
29881
|
name: "AXSenderLoadingButton",
|
|
29880
29882
|
__name: "SendButton",
|
|
29881
|
-
props:
|
|
29883
|
+
props: Je({
|
|
29882
29884
|
prefixCls: null,
|
|
29883
29885
|
type: null,
|
|
29884
29886
|
htmlType: null,
|
|
@@ -29959,7 +29961,7 @@ const HM = /* @__PURE__ */ W({
|
|
|
29959
29961
|
}), Yp = /* @__PURE__ */ W({
|
|
29960
29962
|
name: "AXSenderSpeechButton",
|
|
29961
29963
|
__name: "index",
|
|
29962
|
-
props:
|
|
29964
|
+
props: Je({
|
|
29963
29965
|
prefixCls: null,
|
|
29964
29966
|
type: null,
|
|
29965
29967
|
htmlType: null,
|
|
@@ -30293,60 +30295,47 @@ function MA(e, t) {
|
|
|
30293
30295
|
const RA = /* @__PURE__ */ W({
|
|
30294
30296
|
name: "AXSender",
|
|
30295
30297
|
__name: "Sender",
|
|
30296
|
-
props:
|
|
30297
|
-
onKeyPress: {
|
|
30298
|
-
|
|
30299
|
-
},
|
|
30300
|
-
|
|
30301
|
-
defaultValue: null,
|
|
30302
|
-
value: null,
|
|
30298
|
+
props: {
|
|
30299
|
+
onKeyPress: {},
|
|
30300
|
+
prefixCls: {},
|
|
30301
|
+
defaultValue: {},
|
|
30302
|
+
value: {},
|
|
30303
30303
|
loading: {
|
|
30304
30304
|
type: Boolean
|
|
30305
30305
|
},
|
|
30306
|
-
placeholder:
|
|
30306
|
+
placeholder: {},
|
|
30307
30307
|
readOnly: {
|
|
30308
30308
|
type: Boolean
|
|
30309
30309
|
},
|
|
30310
30310
|
submitType: {
|
|
30311
|
-
type: [String, Boolean]
|
|
30311
|
+
type: [String, Boolean],
|
|
30312
|
+
default: "enter"
|
|
30312
30313
|
},
|
|
30313
30314
|
disabled: {
|
|
30314
|
-
type: Boolean
|
|
30315
|
-
|
|
30316
|
-
onSubmit: {
|
|
30317
|
-
type: Function
|
|
30318
|
-
},
|
|
30319
|
-
onChange: {
|
|
30320
|
-
type: Function
|
|
30321
|
-
},
|
|
30322
|
-
onCancel: null,
|
|
30323
|
-
onKeyDown: {
|
|
30324
|
-
type: Function
|
|
30325
|
-
},
|
|
30326
|
-
onPaste: {
|
|
30327
|
-
type: Function
|
|
30328
|
-
},
|
|
30329
|
-
onPasteFile: {
|
|
30330
|
-
type: Function
|
|
30331
|
-
},
|
|
30332
|
-
components: null,
|
|
30333
|
-
styles: null,
|
|
30334
|
-
rootClassName: null,
|
|
30335
|
-
classNames: null,
|
|
30336
|
-
style: null,
|
|
30337
|
-
className: null,
|
|
30338
|
-
actions: {
|
|
30339
|
-
type: Function
|
|
30315
|
+
type: Boolean,
|
|
30316
|
+
default: void 0
|
|
30340
30317
|
},
|
|
30341
|
-
|
|
30342
|
-
|
|
30343
|
-
|
|
30344
|
-
|
|
30345
|
-
|
|
30346
|
-
|
|
30347
|
-
|
|
30348
|
-
|
|
30349
|
-
|
|
30318
|
+
onSubmit: {},
|
|
30319
|
+
onChange: {},
|
|
30320
|
+
onCancel: {},
|
|
30321
|
+
onKeyDown: {},
|
|
30322
|
+
onPaste: {},
|
|
30323
|
+
onPasteFile: {},
|
|
30324
|
+
components: {},
|
|
30325
|
+
styles: {
|
|
30326
|
+
default: () => ({})
|
|
30327
|
+
},
|
|
30328
|
+
rootClassName: {},
|
|
30329
|
+
classNames: {
|
|
30330
|
+
default: () => ({})
|
|
30331
|
+
},
|
|
30332
|
+
style: {},
|
|
30333
|
+
className: {},
|
|
30334
|
+
actions: {},
|
|
30335
|
+
allowSpeech: {},
|
|
30336
|
+
prefix: {},
|
|
30337
|
+
header: {}
|
|
30338
|
+
},
|
|
30350
30339
|
emits: ["update:value"],
|
|
30351
30340
|
setup(e, {
|
|
30352
30341
|
expose: t,
|
|
@@ -30513,7 +30502,7 @@ const RA = /* @__PURE__ */ W({
|
|
|
30513
30502
|
name: "AXSenderHeader",
|
|
30514
30503
|
inheritAttrs: !1,
|
|
30515
30504
|
__name: "SenderHeader",
|
|
30516
|
-
props:
|
|
30505
|
+
props: Je({
|
|
30517
30506
|
forceRender: {
|
|
30518
30507
|
type: Boolean
|
|
30519
30508
|
},
|
|
@@ -30607,7 +30596,7 @@ const RA = /* @__PURE__ */ W({
|
|
|
30607
30596
|
}), BA = /* @__PURE__ */ W({
|
|
30608
30597
|
name: "AXAttachmentsPlaceholderUploader",
|
|
30609
30598
|
__name: "PlaceholderUploader",
|
|
30610
|
-
props:
|
|
30599
|
+
props: Je({
|
|
30611
30600
|
prefixCls: null,
|
|
30612
30601
|
placeholder: null,
|
|
30613
30602
|
upload: null,
|
|
@@ -31753,7 +31742,7 @@ const UA = (e) => {
|
|
|
31753
31742
|
}), QA = /* @__PURE__ */ W({
|
|
31754
31743
|
name: "AXAttachments",
|
|
31755
31744
|
__name: "Attachments",
|
|
31756
|
-
props:
|
|
31745
|
+
props: Je({
|
|
31757
31746
|
capture: null,
|
|
31758
31747
|
type: null,
|
|
31759
31748
|
name: null,
|
|
@@ -32189,7 +32178,7 @@ const eM = (e) => {
|
|
|
32189
32178
|
}), sM = /* @__PURE__ */ W({
|
|
32190
32179
|
name: "AXThoughtChainNode",
|
|
32191
32180
|
__name: "item",
|
|
32192
|
-
props:
|
|
32181
|
+
props: Je({
|
|
32193
32182
|
info: null,
|
|
32194
32183
|
nextStatus: null,
|
|
32195
32184
|
onClick: {
|
|
@@ -32273,7 +32262,7 @@ const eM = (e) => {
|
|
|
32273
32262
|
}), VM = /* @__PURE__ */ W({
|
|
32274
32263
|
name: "AXThoughtChain",
|
|
32275
32264
|
__name: "ThoughtChain",
|
|
32276
|
-
props:
|
|
32265
|
+
props: Je({
|
|
32277
32266
|
items: null,
|
|
32278
32267
|
collapsible: {
|
|
32279
32268
|
type: Boolean
|