@fox-js/foxui 4.0.1-59 → 4.0.1-60
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 +2 -2
- package/dist/index.esm.js +21 -21
- package/dist/index.umd.js +2 -2
- package/dist/locale/index.esm.js +1 -1
- package/dist/locale/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/package.json +42 -42
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import Pt from "@fox-js/validator";
|
|
|
3
3
|
import { Left as Zn, RectUp as Ca, CircleClose as gt, Close as Dt, ArrowRight as Cn, MoreH as ei, Loading as Vt, Checklist as Aa, Date as $a, CheckNormal as ol, CheckChecked as ti, Checked as ll, CheckDisabled as ni, Loading1 as oi, StarFillN as li, Search2 as ai, Minus as si, Plus as ii, Uploader as ri, Right as al, Image as ui, ImageError as ci, ArrowUp2 as Ta, ArrowDown2 as Na, Check as xa, JoySmile as di, Tips as Da, Photograph as fi, Failure as Va, Del as Ia, Link as hi, Top as mi, Success as pi, Service as gi, Notice as yi, DownArrow as qa, TriangleUp as vi, TriangleDown as bi, Location as Si, Location2 as wi, Edit as ki, Fabulous as Ci, Comment as Ai, MoreX as $i } from "@fox-js/icons-vue";
|
|
4
4
|
import { useFoxI18n as Te } from "@fox-js/i18n";
|
|
5
5
|
/*!
|
|
6
|
-
* @fox-js/foxui-base v4.0.0
|
|
6
|
+
* @fox-js/foxui-base v4.0.0 Thu Jun 20 2024 23:50:10 GMT+0800 (中国标准时间)
|
|
7
7
|
*/
|
|
8
8
|
const Nn = window, Ti = typeof window < "u";
|
|
9
9
|
function Ni() {
|
|
@@ -7052,32 +7052,32 @@ const { create: td, scope: nd } = ae("cascader-pane"), od = td({
|
|
|
7052
7052
|
loading: !0,
|
|
7053
7053
|
text: "",
|
|
7054
7054
|
value: ""
|
|
7055
|
-
}), r.value = [{ nodes: i.value.nodes, selectedNode: null }], g();
|
|
7056
|
-
}, g = async () => {
|
|
7057
|
-
const
|
|
7058
|
-
if (
|
|
7055
|
+
}), r.value = [{ nodes: i.value.nodes, selectedNode: null }], g(!f.value);
|
|
7056
|
+
}, g = async (c = !0) => {
|
|
7057
|
+
const p = s.value;
|
|
7058
|
+
if (p === void 0 || !i.value.nodes.length)
|
|
7059
7059
|
return;
|
|
7060
|
-
if (
|
|
7060
|
+
if (p.length === 0) {
|
|
7061
7061
|
o.value = 0, r.value = [{ nodes: i.value.nodes, selectedNode: null }];
|
|
7062
7062
|
return;
|
|
7063
7063
|
}
|
|
7064
|
-
let
|
|
7065
|
-
if (f.value && Array.isArray(
|
|
7066
|
-
|
|
7067
|
-
let
|
|
7068
|
-
if (
|
|
7069
|
-
|
|
7070
|
-
const
|
|
7071
|
-
const
|
|
7072
|
-
await v(
|
|
7073
|
-
const
|
|
7074
|
-
return
|
|
7075
|
-
}, Promise.resolve(
|
|
7076
|
-
await v(
|
|
7064
|
+
let A = p;
|
|
7065
|
+
if (f.value && Array.isArray(p) && p.length) {
|
|
7066
|
+
A = [];
|
|
7067
|
+
let N = i.value.nodes.find((C) => C.value === p[0]);
|
|
7068
|
+
if (N) {
|
|
7069
|
+
A = [N.value], a.value = !0;
|
|
7070
|
+
const C = await p.slice(1).reduce(async (T, x) => {
|
|
7071
|
+
const D = await T;
|
|
7072
|
+
await v(D);
|
|
7073
|
+
const V = D?.children?.find(($) => $.value === x);
|
|
7074
|
+
return V && A.push(x), Promise.resolve(V);
|
|
7075
|
+
}, Promise.resolve(N));
|
|
7076
|
+
await v(C), a.value = !1;
|
|
7077
7077
|
}
|
|
7078
7078
|
}
|
|
7079
|
-
|
|
7080
|
-
o.value =
|
|
7079
|
+
A.length && p === e.modelValue && i.value.getPathNodesByValue(A).map((C, T) => {
|
|
7080
|
+
o.value = T, d.handleNode(C, c);
|
|
7081
7081
|
});
|
|
7082
7082
|
}, v = async (c) => {
|
|
7083
7083
|
if (!c)
|