@unizhen/ui 0.1.125 → 0.1.127
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/lib/components/bom/index.vue.d.ts +3 -3
- package/lib/ui.js +8 -3
- package/package.json +1 -1
|
@@ -23,7 +23,7 @@ declare const _default: typeof __VLS_export;
|
|
|
23
23
|
export default _default;
|
|
24
24
|
declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
25
25
|
value: {
|
|
26
|
-
type: PropType<BomRow[]>;
|
|
26
|
+
type: PropType<BomRow[] | null>;
|
|
27
27
|
default: () => never[];
|
|
28
28
|
};
|
|
29
29
|
height: {
|
|
@@ -80,7 +80,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
80
80
|
handleExpandedRowKeysChange: (keys: DataTableRowKey[]) => void;
|
|
81
81
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:value"[], "update:value", PublicProps, Readonly< ExtractPropTypes<{
|
|
82
82
|
value: {
|
|
83
|
-
type: PropType<BomRow[]>;
|
|
83
|
+
type: PropType<BomRow[] | null>;
|
|
84
84
|
default: () => never[];
|
|
85
85
|
};
|
|
86
86
|
height: {
|
|
@@ -90,7 +90,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
90
90
|
}>> & Readonly<{
|
|
91
91
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
92
92
|
}>, {
|
|
93
|
-
value: BomRow[];
|
|
93
|
+
value: BomRow[] | null;
|
|
94
94
|
height: string | number | undefined;
|
|
95
95
|
}, {}, {
|
|
96
96
|
NDataTable: DefineComponent<ExtractPropTypes<{
|
package/lib/ui.js
CHANGED
|
@@ -1658,7 +1658,12 @@ var wr = /*#__PURE__*/ Z(xr, [["render", Cr]]), Tr = d({
|
|
|
1658
1658
|
}
|
|
1659
1659
|
} else s.value[e.key] = e.form.defaultValue;
|
|
1660
1660
|
}
|
|
1661
|
-
if ((e.input === "cascader" || e.input === "select") && e.params.multiple && u.value.push(e.key), e.input === "date" && e.params.type.indexOf("range") > -1 && u.value.push(e.key), e.input === "bom" &&
|
|
1661
|
+
if ((e.input === "cascader" || e.input === "select") && e.params.multiple && u.value.push(e.key), e.input === "date" && e.params.type.indexOf("range") > -1 && u.value.push(e.key), e.input === "bom" && u.value.push(e.key), e.input === "bom" && s.value[e.key] && typeof s.value[e.key] == "string") try {
|
|
1662
|
+
s.value[e.key] = JSON.parse(s.value[e.key]);
|
|
1663
|
+
} catch {
|
|
1664
|
+
s.value[e.key] = [];
|
|
1665
|
+
}
|
|
1666
|
+
if (e.input === "select" && e.params.multiple && s.value[e.key] && typeof s.value[e.key] == "string") try {
|
|
1662
1667
|
s.value[e.key] = JSON.parse(s.value[e.key]);
|
|
1663
1668
|
} catch {
|
|
1664
1669
|
s.value[e.key] = [];
|
|
@@ -3038,7 +3043,7 @@ var Yr = (e, t) => e.map((e, n) => {
|
|
|
3038
3043
|
},
|
|
3039
3044
|
emits: ["update:value"],
|
|
3040
3045
|
setup(e, { emit: t }) {
|
|
3041
|
-
let n = w([]), r = w(0), i = (e, t, n) => n ? `${n}-${t + 1}` : String(e.product_no || e.code || t + 1), a = (e, t = 1, n) => e.map((e, t) => ({
|
|
3046
|
+
let n = w([]), r = w(0), i = (e, t, n) => n ? `${n}-${t + 1}` : String(e.product_no || e.code || t + 1), a = (e, t = 1, n) => (e ?? []).map((e, t) => ({
|
|
3042
3047
|
row: e,
|
|
3043
3048
|
index: t
|
|
3044
3049
|
})).sort((e, t) => (Number.isFinite(e.row.sort) ? e.row.sort : e.index) - (Number.isFinite(t.row.sort) ? t.row.sort : t.index)).map(({ row: e }, r) => {
|
|
@@ -7960,7 +7965,7 @@ function Xs(e, t, n) {
|
|
|
7960
7965
|
}
|
|
7961
7966
|
//#endregion
|
|
7962
7967
|
//#region package.json
|
|
7963
|
-
var Zs = "0.1.
|
|
7968
|
+
var Zs = "0.1.127", Qs;
|
|
7964
7969
|
async function $s() {
|
|
7965
7970
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7966
7971
|
method: "HEAD",
|