@unizhen/ui 0.1.136 → 0.1.137

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.
@@ -44,6 +44,10 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
44
44
  type: PropType<number>;
45
45
  default: number;
46
46
  };
47
+ expand: {
48
+ type: PropType<boolean>;
49
+ default: boolean;
50
+ };
47
51
  }>, {
48
52
  t: ComposerTranslation<{
49
53
  [x: string]: LocaleMessage<VueMessageType>;
@@ -126,10 +130,15 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
126
130
  type: PropType<number>;
127
131
  default: number;
128
132
  };
133
+ expand: {
134
+ type: PropType<boolean>;
135
+ default: boolean;
136
+ };
129
137
  }>> & Readonly<{
130
138
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
131
139
  }>, {
132
140
  item: IUzFormItemSubTable;
141
+ expand: boolean;
133
142
  status: number;
134
143
  value: BomRow[] | null;
135
144
  height: string | number | undefined;
@@ -1536,6 +1536,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
1536
1536
  placeholder: string;
1537
1537
  clearable: boolean;
1538
1538
  expandable: boolean;
1539
+ merge?: string | ((pageData: any) => any) | undefined;
1539
1540
  };
1540
1541
  label: string | (() => string);
1541
1542
  key: string;
@@ -3136,6 +3137,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
3136
3137
  placeholder: string;
3137
3138
  clearable: boolean;
3138
3139
  expandable: boolean;
3140
+ merge?: string | ((pageData: any) => any) | undefined;
3139
3141
  };
3140
3142
  label: string | (() => string);
3141
3143
  key: string;
@@ -4660,6 +4662,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
4660
4662
  placeholder: string;
4661
4663
  clearable: boolean;
4662
4664
  expandable: boolean;
4665
+ merge?: string | ((pageData: any) => any) | undefined;
4663
4666
  };
4664
4667
  label: string | (() => string);
4665
4668
  key: string;
@@ -6260,6 +6263,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
6260
6263
  placeholder: string;
6261
6264
  clearable: boolean;
6262
6265
  expandable: boolean;
6266
+ merge?: string | ((pageData: any) => any) | undefined;
6263
6267
  };
6264
6268
  label: string | (() => string);
6265
6269
  key: string;
@@ -1538,6 +1538,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
1538
1538
  placeholder: string;
1539
1539
  clearable: boolean;
1540
1540
  expandable: boolean;
1541
+ merge?: string | ((pageData: any) => any) | undefined;
1541
1542
  };
1542
1543
  label: string | (() => string);
1543
1544
  key: string;
@@ -3138,6 +3139,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
3138
3139
  placeholder: string;
3139
3140
  clearable: boolean;
3140
3141
  expandable: boolean;
3142
+ merge?: string | ((pageData: any) => any) | undefined;
3141
3143
  };
3142
3144
  label: string | (() => string);
3143
3145
  key: string;
@@ -4662,6 +4664,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
4662
4664
  placeholder: string;
4663
4665
  clearable: boolean;
4664
4666
  expandable: boolean;
4667
+ merge?: string | ((pageData: any) => any) | undefined;
4665
4668
  };
4666
4669
  label: string | (() => string);
4667
4670
  key: string;
@@ -6262,6 +6265,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
6262
6265
  placeholder: string;
6263
6266
  clearable: boolean;
6264
6267
  expandable: boolean;
6268
+ merge?: string | ((pageData: any) => any) | undefined;
6265
6269
  };
6266
6270
  label: string | (() => string);
6267
6271
  key: string;
@@ -312,6 +312,7 @@ export interface IUzFormItemBom extends IUzFormItemBase {
312
312
  placeholder: string;
313
313
  clearable: boolean;
314
314
  expandable: boolean;
315
+ merge?: string | ((pageData: any) => any);
315
316
  };
316
317
  }
317
318
  export interface IUzFormItemSubTable extends IUzFormItemBase {
@@ -42,6 +42,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
42
42
  columns: Ref<any[], any[]>;
43
43
  columnsData: Ref<never[], never[]>;
44
44
  tableScrollX: Ref<number, number>;
45
+ tableType: Ref<number, number>;
45
46
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
46
47
  data: {
47
48
  required: true;
@@ -274,6 +274,7 @@ export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean,
274
274
  _asyncFn?: () => Promise<any[]>;
275
275
  clearable: boolean;
276
276
  expandable: boolean;
277
+ merge?: string | ((pageData: any) => any);
277
278
  };
278
279
  form: {
279
280
  show: boolean;
@@ -2998,6 +2998,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
2998
2998
  columns: Ref<any[], any[]>;
2999
2999
  columnsData: Ref<never[], never[]>;
3000
3000
  tableScrollX: Ref<number, number>;
3001
+ tableType: Ref<number, number>;
3001
3002
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
3002
3003
  data: {
3003
3004
  required: true;
package/lib/ui.js CHANGED
@@ -2899,7 +2899,7 @@ async function _i(e) {
2899
2899
  }
2900
2900
  var vi = (e) => e.map((e) => {
2901
2901
  let t = {};
2902
- return t.z = e.params.placeholder, e.input === "group" ? t.n = e.params.children : t.c = +!!e.params.clearable, e.input === "input" && (e.params.type && (t.t = e.params.type), e.params.minlength && (t.i = e.params.minlength), e.params.maxlength && (t.a = e.params.maxlength), e.params.rows && (t.r = e.params.rows), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "auto" && (t.o = e.params.options, e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "number" && (t.b = +!!e.params.showButton, e.params.min && (t.i = e.params.min), e.params.max && (t.a = e.params.max), e.params.minKey && (t.x = e.params.minKey), e.params.maxKey && (t.y = e.params.maxKey), e.params.step && (t.t = e.params.step), e.params.precision && (t.p = e.params.precision), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "date" && (t.y = e.params.type, e.params.format && (t.f = e.params.format), e.params.isDateDisabled && (t.d = e.params.isDateDisabled), e.params.timePickerProps && (t.t = e.params.timePickerProps)), e.input === "select" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple, t.t = +!!e.params.tag, t.l = (e.params.labelKeys || "").replace(/\s*/g, ""), t.v = (e.params.valueKey || "").replace(/\s*/g, ""), t.r = e.params.renderLabel, t.g = e.params.renderTag), e.input === "cascader" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple), e.input === "checkbox" && (t.o = e.params.options), e.input === "time" && (t.f = e.params.format), e.input === "upload" && (t.s = +!!e.params.small, t.a = e.params.accept, t.m = e.params.max), e.input === "switch" && (t.h = e.params.checked, t.u = e.params.unchecked), e.input === "divider" && (t.p = e.params.placement), e.input === "filling" && (t.k = e.params.parentKey), e.input === "bom" && (t.x = +!!e.params.expandable), e.input === "subTable" && (t.i = +!!e.params.init, t.q = +!!e.params.quest, t.k = e.params.searchKey, t.l = e.params.link, t.c = e.params.columns, t.a = e.params.actions, t.b = +!!e.params.addButton, t.g = +!!e.params.draggable, t.h = +!!e.params.childActions, t.x = +!!e.params.expandable, t.n = +!!e.params.showActions, t.d = +!!e.params.showDelete, e.params.optionsType && (t.t = e.params.optionsType), e.params.optionsSource && (t.u = e.params.optionsSource), e.params.options && (t.o = e.params.options), e.params.summary && (t.s = e.params.summary), e.params.merge && (t.m = e.params.merge), e.params.deleteFn && (t.f = e.params.deleteFn)), {
2902
+ return t.z = e.params.placeholder, e.input === "group" ? t.n = e.params.children : t.c = +!!e.params.clearable, e.input === "input" && (e.params.type && (t.t = e.params.type), e.params.minlength && (t.i = e.params.minlength), e.params.maxlength && (t.a = e.params.maxlength), e.params.rows && (t.r = e.params.rows), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "auto" && (t.o = e.params.options, e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "number" && (t.b = +!!e.params.showButton, e.params.min && (t.i = e.params.min), e.params.max && (t.a = e.params.max), e.params.minKey && (t.x = e.params.minKey), e.params.maxKey && (t.y = e.params.maxKey), e.params.step && (t.t = e.params.step), e.params.precision && (t.p = e.params.precision), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "date" && (t.y = e.params.type, e.params.format && (t.f = e.params.format), e.params.isDateDisabled && (t.d = e.params.isDateDisabled), e.params.timePickerProps && (t.t = e.params.timePickerProps)), e.input === "select" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple, t.t = +!!e.params.tag, t.l = (e.params.labelKeys || "").replace(/\s*/g, ""), t.v = (e.params.valueKey || "").replace(/\s*/g, ""), t.r = e.params.renderLabel, t.g = e.params.renderTag), e.input === "cascader" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple), e.input === "checkbox" && (t.o = e.params.options), e.input === "time" && (t.f = e.params.format), e.input === "upload" && (t.s = +!!e.params.small, t.a = e.params.accept, t.m = e.params.max), e.input === "switch" && (t.h = e.params.checked, t.u = e.params.unchecked), e.input === "divider" && (t.p = e.params.placement), e.input === "filling" && (t.k = e.params.parentKey), e.input === "bom" && (t.x = +!!e.params.expandable, e.params.merge && (t.m = e.params.merge)), e.input === "subTable" && (t.i = +!!e.params.init, t.q = +!!e.params.quest, t.k = e.params.searchKey, t.l = e.params.link, t.c = e.params.columns, t.a = e.params.actions, t.b = +!!e.params.addButton, t.g = +!!e.params.draggable, t.h = +!!e.params.childActions, t.x = +!!e.params.expandable, t.n = +!!e.params.showActions, t.d = +!!e.params.showDelete, e.params.optionsType && (t.t = e.params.optionsType), e.params.optionsSource && (t.u = e.params.optionsSource), e.params.options && (t.o = e.params.options), e.params.summary && (t.s = e.params.summary), e.params.merge && (t.m = e.params.merge), e.params.deleteFn && (t.f = e.params.deleteFn)), {
2903
2903
  i: e.input,
2904
2904
  l: e.label ? encodeURIComponent(e.label) : "",
2905
2905
  k: e.key.replace(/\s*/g, ""),
@@ -2974,7 +2974,7 @@ var vi = (e) => e.map((e) => {
2974
2974
  };
2975
2975
  }), yi = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
2976
2976
  let t = {};
2977
- return t.placeholder = e.p.z, e.i === "group" ? t.children = e.p.n : t.clearable = !!e.p.c, e.i === "input" && (e.p.t && (t.type = e.p.t), e.p.i && (t.minlength = e.p.i), e.p.a && (t.maxlength = e.p.a), e.p.r && (t.rows = e.p.r), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "auto" && (t.options = e.p.o, e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "number" && (t.showButton = !!e.p.b, e.p.i && (t.min = e.p.i), e.p.a && (t.max = e.p.a), e.p.x && (t.minKey = e.p.x), e.p.y && (t.maxKey = e.p.y), e.p.t && (t.step = e.p.t), e.p.p && (t.precision = e.p.p), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "date" && (t.type = e.p.y, e.p.f && (t.format = e.p.f), e.p.d && (t.isDateDisabled = e.p.d), e.p.t && (t.timePickerProps = e.p.t)), e.i === "select" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m, t.tag = !!e.p.t, t.labelKeys = e.p.l, t.valueKey = e.p.v, t.renderLabel = e.p.r, t.renderTag = e.p.g), e.i === "cascader" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m), e.i === "checkbox" && (t.options = e.p.o), e.i === "time" && (t.format = e.p.f), e.i === "upload" && (t.small = !!e.p.s, t.accept = e.p.a, t.max = e.p.m), e.i === "switch" && (t.checked = e.p.h, t.unchecked = e.p.u), e.i === "divider" && (t.placement = e.p.p), e.i === "filling" && (t.parentKey = e.p.k), e.i === "bom" && (t.expandable = !!e.p.x), e.i === "subTable" && (t.init = !!e.p.i, t.quest = !!e.p.q, t.searchKey = e.p.k, t.link = e.p.l, t.columns = e.p.c, t.actions = e.p.a, t.addButton = !!e.p.b, t.draggable = !!e.p.g, t.childActions = !!e.p.h, t.showActions = !!e.p.n, t.showDelete = !!(e.p.d ?? !0), t.expandable = !!e.p.x, e.p.t && (t.optionsType = e.p.t), e.p.u && (t.optionsSource = e.p.u), e.p.o && (t.options = e.p.o), e.p.s && (t.summary = e.p.s), e.p.m && (t.merge = e.p.m), e.p.f && (t.deleteFn = e.p.f)), {
2977
+ return t.placeholder = e.p.z, e.i === "group" ? t.children = e.p.n : t.clearable = !!e.p.c, e.i === "input" && (e.p.t && (t.type = e.p.t), e.p.i && (t.minlength = e.p.i), e.p.a && (t.maxlength = e.p.a), e.p.r && (t.rows = e.p.r), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "auto" && (t.options = e.p.o, e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "number" && (t.showButton = !!e.p.b, e.p.i && (t.min = e.p.i), e.p.a && (t.max = e.p.a), e.p.x && (t.minKey = e.p.x), e.p.y && (t.maxKey = e.p.y), e.p.t && (t.step = e.p.t), e.p.p && (t.precision = e.p.p), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "date" && (t.type = e.p.y, e.p.f && (t.format = e.p.f), e.p.d && (t.isDateDisabled = e.p.d), e.p.t && (t.timePickerProps = e.p.t)), e.i === "select" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m, t.tag = !!e.p.t, t.labelKeys = e.p.l, t.valueKey = e.p.v, t.renderLabel = e.p.r, t.renderTag = e.p.g), e.i === "cascader" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m), e.i === "checkbox" && (t.options = e.p.o), e.i === "time" && (t.format = e.p.f), e.i === "upload" && (t.small = !!e.p.s, t.accept = e.p.a, t.max = e.p.m), e.i === "switch" && (t.checked = e.p.h, t.unchecked = e.p.u), e.i === "divider" && (t.placement = e.p.p), e.i === "filling" && (t.parentKey = e.p.k), e.i === "bom" && (t.expandable = !!e.p.x, e.p.m && (t.merge = e.p.m)), e.i === "subTable" && (t.init = !!e.p.i, t.quest = !!e.p.q, t.searchKey = e.p.k, t.link = e.p.l, t.columns = e.p.c, t.actions = e.p.a, t.addButton = !!e.p.b, t.draggable = !!e.p.g, t.childActions = !!e.p.h, t.showActions = !!e.p.n, t.showDelete = !!(e.p.d ?? !0), t.expandable = !!e.p.x, e.p.t && (t.optionsType = e.p.t), e.p.u && (t.optionsSource = e.p.u), e.p.o && (t.options = e.p.o), e.p.s && (t.summary = e.p.s), e.p.m && (t.merge = e.p.m), e.p.f && (t.deleteFn = e.p.f)), {
2978
2978
  input: e.i,
2979
2979
  label: e.l ? decodeURIComponent(e.l) : "",
2980
2980
  key: e.k,
@@ -3379,8 +3379,8 @@ async function Ti(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
3379
3379
  }
3380
3380
  s.input === "bom" && s.params.expandable && (u = {
3381
3381
  key: s.key,
3382
- link: "",
3383
- merge: ""
3382
+ link: "bom",
3383
+ merge: s.params.merge
3384
3384
  }), s.input === "subTable" && s.params.link && !s.params.quest && (l.push(s.params.link), s.params.expandable && (u = {
3385
3385
  key: s.key,
3386
3386
  link: s.params.link,
@@ -3445,6 +3445,10 @@ var Ei = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
3445
3445
  status: {
3446
3446
  type: Number,
3447
3447
  default: 1
3448
+ },
3449
+ expand: {
3450
+ type: Boolean,
3451
+ default: !1
3448
3452
  }
3449
3453
  },
3450
3454
  emits: ["update:value"],
@@ -3720,50 +3724,46 @@ var Ei = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
3720
3724
  key: 0,
3721
3725
  class: "uz-table-asterisk"
3722
3726
  };
3723
- function Ni(e, t, n, s, u, d) {
3724
- let f = D("NDataTable"), p = D("NForm");
3725
- return x(), a("div", ki, [o("div", Ai, [
3726
- o("div", ji, [c(A(e.item.label) + " ", 1), e.item.form?.rule.required ? (x(), a("span", Mi, " \xA0* ")) : i("", !0)]),
3727
- t[0] ||= o("div", { class: "uz-br" }, null, -1),
3728
- l(p, {
3729
- ref: "formRef",
3730
- model: { child: e.innerData }
3727
+ function Ni(t, n, s, u, d, f) {
3728
+ let p = D("NDataTable"), m = D("NForm");
3729
+ return x(), a("div", ki, [o("div", Ai, [t.expand ? i("", !0) : (x(), a(e, { key: 0 }, [o("div", ji, [c(A(t.item.label) + " ", 1), t.item.form?.rule.required ? (x(), a("span", Mi, " \xA0* ")) : i("", !0)]), n[0] ||= o("div", { class: "uz-br" }, null, -1)], 64)), l(m, {
3730
+ ref: "formRef",
3731
+ model: { child: t.innerData }
3732
+ }, {
3733
+ default: P(() => [(x(), r(p, {
3734
+ key: t.tableVersion,
3735
+ ref: "tableRef",
3736
+ columns: t.displayedTableCols,
3737
+ data: t.innerData,
3738
+ "row-props": t.getRowProps,
3739
+ "row-key": t.getRowKey,
3740
+ "children-key": "children",
3741
+ indent: 0,
3742
+ "expanded-row-keys": t.innerExpandedRowKeys,
3743
+ "min-height": t.height,
3744
+ "max-height": t.height,
3745
+ "scroll-x": t.displayedScrollX,
3746
+ pagination: !1,
3747
+ size: "small",
3748
+ "onUpdate:expandedRowKeys": t.handleExpandedRowKeysChange,
3749
+ "scrollbar-props": { trigger: "none" },
3750
+ remote: ""
3731
3751
  }, {
3732
- default: P(() => [(x(), r(f, {
3733
- key: e.tableVersion,
3734
- ref: "tableRef",
3735
- columns: e.displayedTableCols,
3736
- data: e.innerData,
3737
- "row-props": e.getRowProps,
3738
- "row-key": e.getRowKey,
3739
- "children-key": "children",
3740
- indent: 0,
3741
- "expanded-row-keys": e.innerExpandedRowKeys,
3742
- "min-height": e.height,
3743
- "max-height": e.height,
3744
- "scroll-x": e.displayedScrollX,
3745
- pagination: !1,
3746
- size: "small",
3747
- "onUpdate:expandedRowKeys": e.handleExpandedRowKeysChange,
3748
- "scrollbar-props": { trigger: "none" },
3749
- remote: ""
3750
- }, {
3751
- empty: P(() => [E(e.$slots, "empty", {}, () => [c(A(e.t("BOM.empty")), 1)])]),
3752
- _: 3
3753
- }, 8, [
3754
- "columns",
3755
- "data",
3756
- "row-props",
3757
- "row-key",
3758
- "expanded-row-keys",
3759
- "min-height",
3760
- "max-height",
3761
- "scroll-x",
3762
- "onUpdate:expandedRowKeys"
3763
- ]))]),
3752
+ empty: P(() => [E(t.$slots, "empty", {}, () => [c(A(t.t("BOM.empty")), 1)])]),
3764
3753
  _: 3
3765
- }, 8, ["model"])
3766
- ])]);
3754
+ }, 8, [
3755
+ "columns",
3756
+ "data",
3757
+ "row-props",
3758
+ "row-key",
3759
+ "expanded-row-keys",
3760
+ "min-height",
3761
+ "max-height",
3762
+ "scroll-x",
3763
+ "onUpdate:expandedRowKeys"
3764
+ ]))]),
3765
+ _: 3
3766
+ }, 8, ["model"])])]);
3767
3767
  }
3768
3768
  var Pi = /*#__PURE__*/ Q(Oi, [["render", Ni]]), Fi = 46, Ii = 8, Li = 2 * Math.PI * Fi, Ri = Ii, zi = 19, Bi = 69, Vi = 52, Hi = 8, Ui = 135, Wi = 270, Gi = 2 * Math.PI * Vi, Ki = Wi / 360 * Gi, qi = 11, Ji = `rotate(${Ui} 60 ${Bi})`, Yi = (e, t, n, r) => {
3769
3769
  let i = r * Math.PI / 180;
@@ -4806,7 +4806,7 @@ var Wa = /*#__PURE__*/ Q(Ha, [["render", Ua]]), Ga = d({
4806
4806
  }
4807
4807
  },
4808
4808
  setup(e) {
4809
- let t = w(!0), n = w([]), r = w([]), i = w(0);
4809
+ let t = w(!0), n = w([]), r = w([]), i = w(0), a = w(0);
4810
4810
  return y(async () => {
4811
4811
  if (e.data.merge) try {
4812
4812
  let t = e.data.merge, n = Function("formValue", "mainFormValue", "POST", t);
@@ -4814,7 +4814,7 @@ var Wa = /*#__PURE__*/ Q(Ha, [["render", Ua]]), Ga = d({
4814
4814
  } catch (e) {
4815
4815
  q(e);
4816
4816
  }
4817
- _i(e.data.link).then(async (e) => {
4817
+ e.data.link === "bom" ? a.value = 1 : _i(e.data.link).then(async (e) => {
4818
4818
  let { tableColumns: r } = await Ti(yi(et.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
4819
4819
  ...e,
4820
4820
  sorter: !1,
@@ -4823,22 +4823,24 @@ var Wa = /*#__PURE__*/ Q(Ha, [["render", Ua]]), Ga = d({
4823
4823
  o.forEach((e) => {
4824
4824
  a += e.width;
4825
4825
  }), n.value = o, i.value = a, t.value = !1;
4826
- }).catch((e) => {
4826
+ }).catch(() => {
4827
4827
  t.value = !1;
4828
4828
  });
4829
4829
  }), {
4830
4830
  loading: t,
4831
4831
  columns: n,
4832
4832
  columnsData: r,
4833
- tableScrollX: i
4833
+ tableScrollX: i,
4834
+ tableType: a
4834
4835
  };
4835
4836
  }
4836
4837
  });
4837
4838
  //#endregion
4838
4839
  //#region components/table/components/expand.vue
4839
4840
  function Ka(e, t, n, i, a, o) {
4840
- let s = D("NDataTable");
4841
- return x(), r(s, {
4841
+ let s = D("NDataTable"), c = D("UzBom");
4842
+ return e.tableType === 0 ? (x(), r(s, {
4843
+ key: 0,
4842
4844
  columns: e.columns,
4843
4845
  data: e.columnsData,
4844
4846
  pagination: !1,
@@ -4853,7 +4855,12 @@ function Ka(e, t, n, i, a, o) {
4853
4855
  "data",
4854
4856
  "loading",
4855
4857
  "scroll-x"
4856
- ]);
4858
+ ])) : (x(), r(c, {
4859
+ key: 1,
4860
+ value: e.columnsData,
4861
+ status: 2,
4862
+ expand: !0
4863
+ }, null, 8, ["value"]));
4857
4864
  }
4858
4865
  var qa = /*#__PURE__*/ Q(Ga, [["render", Ka]]), Ja = d({
4859
4866
  components: { NSkeleton: ke },
@@ -7850,7 +7857,7 @@ function ac(e, t, n) {
7850
7857
  }
7851
7858
  //#endregion
7852
7859
  //#region package.json
7853
- var oc = "0.1.136", sc;
7860
+ var oc = "0.1.137", sc;
7854
7861
  async function cc() {
7855
7862
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
7856
7863
  method: "HEAD",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unizhen/ui",
3
- "version": "0.1.136",
3
+ "version": "0.1.137",
4
4
  "author": {
5
5
  "name": "Donovan"
6
6
  },