@unizhen/ui 0.1.80 → 0.1.82

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/ui.js CHANGED
@@ -2487,7 +2487,7 @@ var yd = 500, bd = 300, xd = [], Sd = /* @__PURE__ */ new WeakMap(), Cd = /* @__
2487
2487
  jd = !0;
2488
2488
  try {
2489
2489
  let a = Rd(i);
2490
- a && a.indexOf("ResizeObserver loop") === -1 && Hd(e, Ld({
2490
+ a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 && Hd(e, Ld({
2491
2491
  type: n,
2492
2492
  time: Date.now(),
2493
2493
  url: zd(r) || zd(location.href),
@@ -5951,7 +5951,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
5951
5951
  }
5952
5952
  });
5953
5953
  //#endregion
5954
- //#region components/table/expand.vue
5954
+ //#region components/table/components/expand.vue
5955
5955
  function Hm(e, t, r, i, a, o) {
5956
5956
  let s = D("NDataTable");
5957
5957
  return x(), n(s, {
@@ -5974,257 +5974,46 @@ function Hm(e, t, r, i, a, o) {
5974
5974
  "scroll-x"
5975
5975
  ]);
5976
5976
  }
5977
- var Um = /*#__PURE__*/ W(Vm, [["render", Hm]]), Wm = d({
5978
- name: "UzTableFilePort",
5979
- components: {
5980
- NDropdown: B,
5981
- NButton: L,
5982
- NModal: Ce,
5983
- NUpload: Re,
5984
- NSpace: je,
5985
- NIcon: V,
5986
- NDataTable: oe,
5987
- FileText: Ro
5988
- },
5989
- props: { query: {
5990
- required: !1,
5991
- type: Object,
5992
- default: () => {}
5993
- } },
5994
- emits: ["on-update:change"],
5995
- setup(e, { emit: t }) {
5996
- let { t: n } = Xe(), r = qe(), i = He(), a = w(!1), o = w(!1), s = w(), c = w(""), l = w([{
5997
- label: n("Common.import"),
5998
- key: "import",
5999
- icon: () => f(V, null, { default: () => f($i) })
6000
- }, {
6001
- label: n("Common.export"),
6002
- key: "export",
6003
- icon: () => f(V, null, { default: () => f(Yi) })
6004
- }]), u = w([
6005
- {
6006
- title: "文件名称",
6007
- key: "fileName"
6008
- },
6009
- {
6010
- title: "状态",
6011
- key: "status",
6012
- render(e) {
6013
- switch (e.status) {
6014
- case "1": return f("div", { style: "color: rgb(var(--green))" }, "成功");
6015
- case "2": return f("div", { style: "color: rgb(var(--red))" }, "失败");
6016
- default: return "处理中";
6017
- }
6018
- }
6019
- },
6020
- {
6021
- title: "信息(文件保留7日)",
6022
- key: "failMessage"
6023
- },
6024
- {
6025
- title: "操作",
6026
- key: "action",
6027
- align: "center",
6028
- render(e) {
6029
- return f(L, {
6030
- tertiary: !0,
6031
- onClick: () => {
6032
- window.open(e.cosUrl);
6033
- }
6034
- }, { default: () => "下载" });
6035
- }
6036
- }
6037
- ]), d = w([]), p = (e) => new Promise((t) => {
6038
- if (e.file.file) {
6039
- let t = new FormData();
6040
- t.append("file", e.file.file), c.value = e.file.name, t.append("tableKey", r.params.id), s.value = t;
6041
- }
6042
- }), m = () => {
6043
- s.value = null;
6044
- }, h = () => {
6045
- o.value || (o.value = !0, Tf(r.params.id).then((e) => {
6046
- let t = document.createElement("a");
6047
- t.download = "模板.xlsx", t.target = "_blank", t.style.display = "none", t.href = URL.createObjectURL(new Blob([e.data], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" })), document.body.appendChild(t), t.click(), URL.revokeObjectURL(t.href), document.body.removeChild(t);
6048
- }).catch(() => null).finally(() => {
6049
- o.value = !1;
6050
- }));
6051
- }, g = () => {
6052
- o.value || (o.value = !0, gf("excel/import", s.value).then((e) => {
6053
- i.success({
6054
- content: "导入执行中...",
6055
- duration: 3e3
6056
- }), s.value = null, c.value = "";
6057
- }).catch(() => {
6058
- i.error({
6059
- content: "上传失败",
6060
- duration: 3e3
6061
- });
6062
- }).finally(() => {
6063
- _(), o.value = !1;
6064
- }));
6065
- }, _ = () => {
6066
- o.value || (o.value = !0, Ef(r.params.id).then((e) => {
6067
- d.value = e;
6068
- }).catch(() => null).finally(() => {
6069
- o.value = !1;
6070
- }));
6071
- };
6072
- return {
6073
- show: a,
6074
- rawFile: s,
6075
- loading: o,
6076
- rawFileName: c,
6077
- dropOption: l,
6078
- dropSelect: (t) => {
6079
- if (t === "import") {
6080
- a.value = !0, _();
6081
- return;
6082
- }
6083
- if (t === "export") {
6084
- id.info({
6085
- title: "提示",
6086
- content: "确认导出数据?导出过程较慢,稍后请在文件中心查看",
6087
- positiveText: "确定",
6088
- negativeText: "取消",
6089
- draggable: !0,
6090
- onPositiveClick: () => {
6091
- let t = e.query ?? {};
6092
- Df({
6093
- tableKey: r.params.id,
6094
- ...t
6095
- }).then((e) => {
6096
- i.success({
6097
- content: "导出中...稍后请在文件中心查看",
6098
- duration: 3e3
6099
- });
6100
- }).catch(() => null);
6101
- }
6102
- });
6103
- return;
6104
- }
6105
- },
6106
- beforeUpload: p,
6107
- clearFile: m,
6108
- manualImport: g,
6109
- downloadTemplate: h,
6110
- columns: u,
6111
- coldata: d,
6112
- init: _,
6113
- modalLeave: () => {
6114
- t("on-update:change", !0);
6115
- }
6116
- };
6117
- }
6118
- }), Gm = { class: "uz-file-port-modal" }, Km = {
6119
- key: 1,
6120
- class: "uz-file-port-panel"
6121
- }, qm = { class: "uz-flex uz-justify-between" };
6122
- function Jm(t, r, o, s, u, d) {
6123
- let f = D("FileText"), p = D("NIcon"), m = D("NButton"), h = D("NDropdown"), g = D("NUpload"), _ = D("NSpace"), v = D("NDataTable"), y = D("NModal");
6124
- return x(), i(e, null, [l(h, {
6125
- trigger: "hover",
6126
- options: t.dropOption,
6127
- onSelect: t.dropSelect
6128
- }, {
6129
- default: N(() => [l(m, { secondary: "" }, {
6130
- icon: N(() => [l(p, null, {
6131
- default: N(() => [l(f)]),
6132
- _: 1
6133
- })]),
6134
- default: N(() => [c(" " + A(t.$t("Common.file")), 1)]),
6135
- _: 1
6136
- })]),
6137
- _: 1
6138
- }, 8, ["options", "onSelect"]), l(y, {
6139
- show: t.show,
6140
- "onUpdate:show": r[0] ||= (e) => t.show = e,
6141
- "mask-closable": !1,
6142
- "close-on-esc": !1,
6143
- title: "批量导入",
6144
- preset: "card",
6145
- style: { width: "70%" },
6146
- "auto-focus": !1,
6147
- "on-after-leave": t.modalLeave
6148
- }, {
6149
- "header-extra": N(() => [l(m, {
6150
- type: "success",
6151
- loading: t.loading,
6152
- onClick: t.downloadTemplate,
6153
- secondary: ""
6154
- }, {
6155
- default: N(() => [...r[1] ||= [c(" 下载模板 ", -1)]]),
6156
- _: 1
6157
- }, 8, ["loading", "onClick"])]),
6158
- default: N(() => [a("div", Gm, [
6159
- t.rawFile ? (x(), i("div", Km, [
6160
- r[5] ||= a("div", { class: "uz-file-port-icon" }, [a("svg", {
6161
- xmlns: "http://www.w3.org/2000/svg",
6162
- viewBox: "0 0 24 24",
6163
- width: "40",
6164
- height: "40",
6165
- fill: "currentColor"
6166
- }, [a("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])], -1),
6167
- a("div", null, A(t.rawFileName), 1),
6168
- r[6] ||= a("div", { class: "uz-file-port-subtitle" }, " 导入文件过程较慢,程序会静默处理,不需要留在本页面等待。 ", -1),
6169
- l(_, { justify: "space-between" }, {
6170
- default: N(() => [l(m, {
6171
- size: "small",
6172
- secondary: "",
6173
- type: "default",
6174
- onClick: t.clearFile
6175
- }, {
6176
- default: N(() => [...r[3] ||= [c(" 重新选择 ", -1)]]),
6177
- _: 1
6178
- }, 8, ["onClick"]), l(m, {
6179
- size: "small",
6180
- type: "primary",
6181
- loading: t.loading,
6182
- onClick: t.manualImport
6183
- }, {
6184
- default: N(() => [...r[4] ||= [c(" 开始导入 ", -1)]]),
6185
- _: 1
6186
- }, 8, ["loading", "onClick"])]),
6187
- _: 1
6188
- })
6189
- ])) : (x(), n(g, {
6190
- key: 0,
6191
- accept: ".xlsx",
6192
- "show-file-list": !1,
6193
- "on-before-upload": t.beforeUpload,
6194
- "directory-dnd": "",
6195
- class: "uz-w-full"
6196
- }, {
6197
- default: N(() => [...r[2] ||= [a("div", { class: "uz-file-port-card" }, [a("div", { class: "uz-file-port-icon" }, [a("svg", {
6198
- xmlns: "http://www.w3.org/2000/svg",
6199
- viewBox: "0 0 24 24",
6200
- width: "40",
6201
- height: "40",
6202
- fill: "currentColor"
6203
- }, [a("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])]), a("div", { class: "uz-file-port-subtitle" }, "拖拽或点击上传Excel文件")], -1)]]),
6204
- _: 1
6205
- }, 8, ["on-before-upload"])),
6206
- a("div", qm, [r[8] ||= a("div", { class: "uz-com-title" }, "导入历史", -1), l(m, {
6207
- onClick: t.init,
6208
- loading: t.loading,
6209
- secondary: ""
6210
- }, {
6211
- default: N(() => [...r[7] ||= [c("刷新", -1)]]),
6212
- _: 1
6213
- }, 8, ["onClick", "loading"])]),
6214
- l(v, {
6215
- columns: t.columns,
6216
- data: t.coldata,
6217
- loading: t.loading
6218
- }, null, 8, [
6219
- "columns",
6220
- "data",
6221
- "loading"
6222
- ])
6223
- ])]),
6224
- _: 1
6225
- }, 8, ["show", "on-after-leave"])], 64);
5977
+ var Um = /*#__PURE__*/ W(Vm, [["render", Hm]]), Wm = {}, Gm = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Km = { class: "uz-flex uz-justify-between" }, qm = { class: "uz-flex uz-gap-1" };
5978
+ function Jm(e, t) {
5979
+ let n = D("NSkeleton");
5980
+ return x(), i("div", Gm, [a("div", Km, [l(n, {
5981
+ width: 120,
5982
+ size: "medium"
5983
+ }), a("div", qm, [
5984
+ l(n, {
5985
+ width: 180,
5986
+ size: "medium"
5987
+ }),
5988
+ l(n, {
5989
+ width: 180,
5990
+ size: "medium"
5991
+ }),
5992
+ l(n, {
5993
+ width: 46,
5994
+ size: "medium"
5995
+ }),
5996
+ l(n, {
5997
+ width: 46,
5998
+ size: "medium"
5999
+ }),
6000
+ l(n, {
6001
+ width: 46,
6002
+ size: "medium"
6003
+ }),
6004
+ l(n, {
6005
+ width: 46,
6006
+ size: "medium"
6007
+ })
6008
+ ])]), l(n, {
6009
+ class: "uz-flex-1",
6010
+ width: "100%",
6011
+ size: "medium"
6012
+ })]);
6226
6013
  }
6227
- var Ym = /*#__PURE__*/ W(Wm, [["render", Jm], ["__scopeId", "data-v-21e16834"]]), Xm = d({
6014
+ //#endregion
6015
+ //#region components/table/index.vue?vue&type=script&lang.ts
6016
+ var Ym = d({
6228
6017
  name: "UzTable",
6229
6018
  components: {
6230
6019
  NDataTable: oe,
@@ -6239,7 +6028,9 @@ var Ym = /*#__PURE__*/ W(Wm, [["render", Jm], ["__scopeId", "data-v-21e16834"]])
6239
6028
  Plus: uc,
6240
6029
  VueDraggable: tt,
6241
6030
  UzSpin: Bm,
6242
- UzIcon: Iu
6031
+ UzIcon: Iu,
6032
+ TableExpand: Um,
6033
+ SkeletonLoading: /* @__PURE__ */ W(Wm, [["render", Jm]])
6243
6034
  },
6244
6035
  props: {
6245
6036
  id: {
@@ -6926,52 +6717,20 @@ var Ym = /*#__PURE__*/ W(Wm, [["render", Jm], ["__scopeId", "data-v-21e16834"]])
6926
6717
  }
6927
6718
  };
6928
6719
  }
6929
- }), Zm = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Qm = { class: "uz-flex uz-justify-between" }, $m = { class: "uz-flex uz-gap-1" }, eh = { class: "uz-com-title" }, th = {
6720
+ }), Xm = { class: "uz-com-title" }, Zm = {
6930
6721
  ref: "mRef",
6931
6722
  class: "uz-table-m-content"
6932
- }, nh = {
6723
+ }, Qm = {
6933
6724
  key: 1,
6934
6725
  class: "uz-transform-fade-in"
6935
- }, rh = { class: "uz-com-title" }, ih = ["data-index"];
6936
- function ah(t, s, u, d, f, p) {
6937
- let m = D("NSkeleton"), h = D("NButton"), v = D("Plus"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("Filter"), O = D("NCheckbox"), k = D("GridDots"), ee = D("VueDraggable"), j = D("NPopover"), M = D("UzTableFilePort"), F = D("UzSearchBar"), I = D("NDataTable"), L = D("NSpin"), R = D("UzTableDrawer");
6726
+ }, $m = { class: "uz-com-title" }, eh = ["data-index"];
6727
+ function th(t, s, u, d, f, p) {
6728
+ let m = D("SkeletonLoading"), h = D("NButton"), v = D("Plus"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("Filter"), O = D("NCheckbox"), k = D("GridDots"), ee = D("VueDraggable"), j = D("NPopover"), M = D("UzTableFile"), F = D("UzSearchBar"), I = D("NDataTable"), L = D("NSpin"), R = D("UzTableDrawer");
6938
6729
  return x(), i("div", {
6939
6730
  class: "uz-table",
6940
6731
  style: _({ width: t.isTypeofNumber(t.width) })
6941
6732
  }, [
6942
- P(a("div", Zm, [a("div", Qm, [l(m, {
6943
- width: 120,
6944
- size: "medium"
6945
- }), a("div", $m, [
6946
- l(m, {
6947
- width: 180,
6948
- size: "medium"
6949
- }),
6950
- l(m, {
6951
- width: 180,
6952
- size: "medium"
6953
- }),
6954
- l(m, {
6955
- width: 46,
6956
- size: "medium"
6957
- }),
6958
- l(m, {
6959
- width: 46,
6960
- size: "medium"
6961
- }),
6962
- l(m, {
6963
- width: 46,
6964
- size: "medium"
6965
- }),
6966
- l(m, {
6967
- width: 46,
6968
- size: "medium"
6969
- })
6970
- ])]), l(m, {
6971
- class: "uz-flex-1",
6972
- width: "100%",
6973
- size: "medium"
6974
- })], 512), [[te, !t.dynamicLoading]]),
6733
+ P(l(m, null, null, 512), [[te, !t.dynamicLoading]]),
6975
6734
  P(l(L, {
6976
6735
  show: t.spinError,
6977
6736
  class: "uz-table-n-spin"
@@ -7030,7 +6789,7 @@ function ah(t, s, u, d, f, p) {
7030
6789
  key: "0"
7031
6790
  } : {
7032
6791
  name: "header",
7033
- fn: N(() => [a("div", eh, A(t.title), 1)]),
6792
+ fn: N(() => [a("div", Xm, A(t.title), 1)]),
7034
6793
  key: "1"
7035
6794
  }]), 1032, [
7036
6795
  "data",
@@ -7038,7 +6797,7 @@ function ah(t, s, u, d, f, p) {
7038
6797
  "cache",
7039
6798
  "loading",
7040
6799
  "onOnUpdate:value"
7041
- ]), a("div", th, [l(C, {
6800
+ ]), a("div", Zm, [l(C, {
7042
6801
  tableColumns: t.tableCols,
7043
6802
  tableData: t.tableData,
7044
6803
  tableQueries: t.tableQueries,
@@ -7056,7 +6815,7 @@ function ah(t, s, u, d, f, p) {
7056
6815
  "minH",
7057
6816
  "maxH",
7058
6817
  "onUpdate:rowKeys"
7059
- ])], 512)], 2)) : (x(), i("div", nh, [l(F, {
6818
+ ])], 512)], 2)) : (x(), i("div", Qm, [l(F, {
7060
6819
  data: t.searchData,
7061
6820
  id: t.id || t.route.params.id,
7062
6821
  cache: t.tableOption.cache,
@@ -7111,7 +6870,7 @@ function ah(t, s, u, d, f, p) {
7111
6870
  _: 1
7112
6871
  })]),
7113
6872
  _: 1
7114
- })], 8, ih)), [[te, !e.hide]])), 128)), l(h, {
6873
+ })], 8, eh)), [[te, !e.hide]])), 128)), l(h, {
7115
6874
  block: "",
7116
6875
  tertiary: "",
7117
6876
  loading: t.loading,
@@ -7124,25 +6883,8 @@ function ah(t, s, u, d, f, p) {
7124
6883
  }, 8, ["modelValue", "onEnd"])]),
7125
6884
  _: 1
7126
6885
  })) : r("", !0),
7127
- t.addFetch && t.tableOption.addButton ? (x(), n(h, {
7128
- key: 1,
7129
- secondary: "",
7130
- disabled: t.checkRole("add"),
7131
- onClick: t.handleAdd
7132
- }, {
7133
- icon: N(() => [l(y, null, {
7134
- default: N(() => [l(v)]),
7135
- _: 1
7136
- })]),
7137
- default: N(() => [c(" " + A(t.$t("Common.add")), 1)]),
7138
- _: 1
7139
- }, 8, ["disabled", "onClick"])) : r("", !0),
7140
- l(M, {
7141
- query: t.tableQueries,
7142
- "onOnUpdate:change": t.doPortChange
7143
- }, null, 8, ["query", "onOnUpdate:change"]),
7144
6886
  t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
7145
- key: 2,
6887
+ key: 1,
7146
6888
  data: t.suffixes,
7147
6889
  hProps: {
7148
6890
  quaternary: !1,
@@ -7150,6 +6892,24 @@ function ah(t, s, u, d, f, p) {
7150
6892
  text: !1
7151
6893
  }
7152
6894
  }, null, 8, ["data"])) : r("", !0),
6895
+ t.tableOption.filePort ? (x(), n(M, {
6896
+ key: 2,
6897
+ query: t.tableQueries,
6898
+ "onOnUpdate:change": t.doPortChange
6899
+ }, null, 8, ["query", "onOnUpdate:change"])) : r("", !0),
6900
+ t.addFetch && t.tableOption.addButton ? (x(), n(h, {
6901
+ key: 3,
6902
+ secondary: "",
6903
+ disabled: t.checkRole("add"),
6904
+ onClick: t.handleAdd
6905
+ }, {
6906
+ icon: N(() => [l(y, null, {
6907
+ default: N(() => [l(v)]),
6908
+ _: 1
6909
+ })]),
6910
+ default: N(() => [c(" " + A(t.$t("Common.add")), 1)]),
6911
+ _: 1
6912
+ }, 8, ["disabled", "onClick"])) : r("", !0),
7153
6913
  E(t.$slots, "action")
7154
6914
  ]),
7155
6915
  _: 2
@@ -7159,7 +6919,7 @@ function ah(t, s, u, d, f, p) {
7159
6919
  key: "0"
7160
6920
  } : {
7161
6921
  name: "header",
7162
- fn: N(() => [a("div", rh, A(t.title), 1)]),
6922
+ fn: N(() => [a("div", $m, A(t.title), 1)]),
7163
6923
  key: "1"
7164
6924
  }]), 1032, [
7165
6925
  "data",
@@ -7223,7 +6983,7 @@ function ah(t, s, u, d, f, p) {
7223
6983
  l(R, { ref: "drawerRef" }, null, 512)
7224
6984
  ], 4);
7225
6985
  }
7226
- var oh = /*#__PURE__*/ W(Xm, [["render", ah]]), sh = d({
6986
+ var nh = /*#__PURE__*/ W(Ym, [["render", th]]), rh = d({
7227
6987
  name: "UzTableChild",
7228
6988
  components: {
7229
6989
  NSpin: Me,
@@ -7461,18 +7221,18 @@ var oh = /*#__PURE__*/ W(Xm, [["render", ah]]), sh = d({
7461
7221
  }
7462
7222
  };
7463
7223
  }
7464
- }), ch = { class: "uz-flex uz-justify-between" }, lh = { class: "uz-com-title" }, uh = {
7224
+ }), ih = { class: "uz-flex uz-justify-between" }, ah = { class: "uz-com-title" }, oh = {
7465
7225
  key: 0,
7466
7226
  class: "uz-table-asterisk"
7467
- }, dh = { class: "uz-flex uz-gap-2" }, fh = { class: "uz-flex uz-justify-end uz-gap-2" };
7468
- function ph(t, s, u, d, f, p) {
7227
+ }, sh = { class: "uz-flex uz-gap-2" }, ch = { class: "uz-flex uz-justify-end uz-gap-2" };
7228
+ function lh(t, s, u, d, f, p) {
7469
7229
  let m = D("UzIcon"), h = D("NIcon"), _ = D("NButton"), v = D("Plus"), y = D("NDataTable"), b = D("NForm"), S = D("NSpin");
7470
7230
  return x(), n(S, {
7471
7231
  show: t.spin,
7472
7232
  class: "uz-flex-1 uz-w-full"
7473
7233
  }, {
7474
7234
  default: N(() => [
7475
- a("div", ch, [a("div", lh, [c(A(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), i("span", uh, " \xA0* ")) : r("", !0)]), a("div", dh, [
7235
+ a("div", ih, [a("div", ah, [c(A(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), i("span", oh, " \xA0* ")) : r("", !0)]), a("div", sh, [
7476
7236
  t.status === 2 ? r("", !0) : (x(!0), i(e, { key: 0 }, T(t.suffixes, (e) => (x(), n(_, {
7477
7237
  key: e.key,
7478
7238
  type: e.color,
@@ -7548,7 +7308,7 @@ function ph(t, s, u, d, f, p) {
7548
7308
  "scroll-x",
7549
7309
  "class",
7550
7310
  "row-class-name"
7551
- ])) : r("", !0), a("div", fh, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
7311
+ ])) : r("", !0), a("div", ch, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
7552
7312
  key: 0,
7553
7313
  type: "success",
7554
7314
  secondary: "",
@@ -7579,7 +7339,7 @@ function ph(t, s, u, d, f, p) {
7579
7339
  _: 1
7580
7340
  }, 8, ["show"]);
7581
7341
  }
7582
- var mh = /*#__PURE__*/ W(sh, [["render", ph]]), hh = d({
7342
+ var uh = /*#__PURE__*/ W(rh, [["render", lh]]), dh = d({
7583
7343
  name: "UzTableQuestChild",
7584
7344
  components: { NDataTable: oe },
7585
7345
  props: {
@@ -7681,11 +7441,11 @@ var mh = /*#__PURE__*/ W(sh, [["render", ph]]), hh = d({
7681
7441
  tableScrollX: s
7682
7442
  };
7683
7443
  }
7684
- }), gh = { class: "uz-flex-1 uz-w-full" }, _h = { class: "uz-flex uz-justify-between" }, vh = { class: "uz-com-title" };
7685
- function yh(e, t, n, r, o, s) {
7444
+ }), fh = { class: "uz-flex-1 uz-w-full" }, ph = { class: "uz-flex uz-justify-between" }, mh = { class: "uz-com-title" };
7445
+ function hh(e, t, n, r, o, s) {
7686
7446
  let c = D("NDataTable"), u = D("UzTableDrawer");
7687
- return x(), i("div", gh, [
7688
- a("div", _h, [a("div", vh, A(e.item.label), 1)]),
7447
+ return x(), i("div", fh, [
7448
+ a("div", ph, [a("div", mh, A(e.item.label), 1)]),
7689
7449
  t[0] ||= a("div", { class: "uz-br" }, null, -1),
7690
7450
  l(c, {
7691
7451
  columns: e.columns,
@@ -7710,7 +7470,7 @@ function yh(e, t, n, r, o, s) {
7710
7470
  l(u, { ref: "drawerRef" }, null, 512)
7711
7471
  ]);
7712
7472
  }
7713
- var bh = /*#__PURE__*/ W(hh, [["render", yh]]), xh = d({
7473
+ var gh = /*#__PURE__*/ W(dh, [["render", hh]]), _h = d({
7714
7474
  name: "UzTableDrawer",
7715
7475
  components: {
7716
7476
  NButton: L,
@@ -7877,11 +7637,11 @@ var bh = /*#__PURE__*/ W(hh, [["render", yh]]), xh = d({
7877
7637
  }
7878
7638
  };
7879
7639
  }
7880
- }), Sh = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, Ch = {
7640
+ }), vh = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, yh = {
7881
7641
  key: 0,
7882
7642
  class: "uz-grid uz-grid-cols-2 uz-gap-2"
7883
- }, wh = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, Th = { class: "uz-flex uz-gap-2" };
7884
- function Eh(t, s, u, d, f, p) {
7643
+ }, bh = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, xh = { class: "uz-flex uz-gap-2" };
7644
+ function Sh(t, s, u, d, f, p) {
7885
7645
  let m = D("NSkeleton"), h = D("UzForm"), g = D("UzSpin"), _ = D("NSpin"), v = D("NButton"), y = D("NPopover"), b = D("NDrawerContent"), S = D("NDrawer"), C = D("UzOcr"), w = D("NModal");
7886
7646
  return x(), i(e, null, [l(S, {
7887
7647
  show: t.drawer,
@@ -7907,7 +7667,7 @@ function Eh(t, s, u, d, f, p) {
7907
7667
  message: t.spinMsg,
7908
7668
  status: t.spinStatus
7909
7669
  }, {
7910
- default: N(() => [a("div", Sh, [t.skeletonShow ? (x(), i("div", Ch, [
7670
+ default: N(() => [a("div", vh, [t.skeletonShow ? (x(), i("div", yh, [
7911
7671
  l(m, {
7912
7672
  size: "large",
7913
7673
  style: { height: "156px" }
@@ -7970,7 +7730,7 @@ function Eh(t, s, u, d, f, p) {
7970
7730
  _: 2
7971
7731
  }, [t.formStatus === 2 ? void 0 : {
7972
7732
  name: "footer",
7973
- fn: N(() => [a("div", wh, [t.isMobile ? r("", !0) : (x(), n(v, {
7733
+ fn: N(() => [a("div", bh, [t.isMobile ? r("", !0) : (x(), n(v, {
7974
7734
  key: 0,
7975
7735
  loading: t.spinShow,
7976
7736
  type: "success",
@@ -7979,7 +7739,7 @@ function Eh(t, s, u, d, f, p) {
7979
7739
  }, {
7980
7740
  default: N(() => [c(A(t.$t("OCR.ocr")), 1)]),
7981
7741
  _: 1
7982
- }, 8, ["loading"])), a("div", Th, [
7742
+ }, 8, ["loading"])), a("div", xh, [
7983
7743
  l(v, {
7984
7744
  loading: t.spinShow,
7985
7745
  class: "uz-drawer-button",
@@ -8047,7 +7807,7 @@ function Eh(t, s, u, d, f, p) {
8047
7807
  _: 1
8048
7808
  }, 8, ["show"])], 64);
8049
7809
  }
8050
- var Dh = /*#__PURE__*/ W(xh, [["render", Eh]]), Oh = d({
7810
+ var Ch = /*#__PURE__*/ W(_h, [["render", Sh]]), wh = d({
8051
7811
  name: "UzTableMobileList",
8052
7812
  props: {
8053
7813
  tableData: {
@@ -8065,12 +7825,12 @@ var Dh = /*#__PURE__*/ W(xh, [["render", Eh]]), Oh = d({
8065
7825
  },
8066
7826
  emits: ["update:row-keys"],
8067
7827
  setup() {}
8068
- }), kh = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Ah = {
7828
+ }), Th = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Eh = {
8069
7829
  key: 1,
8070
7830
  class: "uz-table-mobile-group-txt"
8071
7831
  };
8072
- function jh(t, o, s, c, l, u) {
8073
- return x(), i("div", kh, [(x(!0), i(e, null, T(t.tableColumns, (o) => (x(), i("div", {
7832
+ function Dh(t, o, s, c, l, u) {
7833
+ return x(), i("div", Th, [(x(!0), i(e, null, T(t.tableColumns, (o) => (x(), i("div", {
8074
7834
  key: o.key,
8075
7835
  class: g(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
8076
7836
  style: _(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
@@ -8081,11 +7841,11 @@ function jh(t, o, s, c, l, u) {
8081
7841
  class: "mobile"
8082
7842
  })) : r("", !0)], 64)) : (x(), i(e, { key: 1 }, [a("div", { class: g(["uz-table-mobile-group-title", o.lineBreak ? "line-break" : ""]) }, [a("div", null, A(typeof o.title == "string" ? o.title : o.title()), 1)], 2), a("div", { class: g(["uz-table-mobile-group-content", o.lineBreak ? "line-break" : ""]) }, [o.render ? (x(), n(k(() => {
8083
7843
  if (t.tableData) return o.render(t.tableData, t.tableIndex);
8084
- }), { key: 0 })) : (x(), i("div", Ah, A(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
7844
+ }), { key: 0 })) : (x(), i("div", Eh, A(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
8085
7845
  }
8086
7846
  //#endregion
8087
7847
  //#region components/table/mobile.vue?vue&type=script&lang.ts
8088
- var Mh = d({
7848
+ var Oh = d({
8089
7849
  name: "UzTableMobile",
8090
7850
  components: {
8091
7851
  NCheckbox: re,
@@ -8093,7 +7853,7 @@ var Mh = d({
8093
7853
  NPagination: we,
8094
7854
  NCheckboxGroup: ie,
8095
7855
  NRadioGroup: Oe,
8096
- UzTableMobileList: /* @__PURE__ */ W(Oh, [["render", jh], ["__scopeId", "data-v-84c394fe"]])
7856
+ UzTableMobileList: /* @__PURE__ */ W(wh, [["render", Dh], ["__scopeId", "data-v-84c394fe"]])
8097
7857
  },
8098
7858
  props: {
8099
7859
  tableData: {
@@ -8140,17 +7900,17 @@ var Mh = d({
8140
7900
  }
8141
7901
  };
8142
7902
  }
8143
- }), Nh = {
7903
+ }), kh = {
8144
7904
  key: 0,
8145
7905
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
8146
- }, Ph = {
7906
+ }, Ah = {
8147
7907
  key: 0,
8148
7908
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
8149
- }, Fh = {
7909
+ }, jh = {
8150
7910
  key: 0,
8151
7911
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
8152
7912
  };
8153
- function Ih(t, a, o, s, c, u) {
7913
+ function Mh(t, a, o, s, c, u) {
8154
7914
  let d = D("UzTableMobileList"), f = D("NCheckbox"), p = D("NPagination"), m = D("NCheckboxGroup"), h = D("NRadio"), g = D("NRadioGroup");
8155
7915
  return t.selection === 2 ? (x(), n(m, {
8156
7916
  key: 0,
@@ -8177,7 +7937,7 @@ function Ih(t, a, o, s, c, u) {
8177
7937
  "tableColumns"
8178
7938
  ])]),
8179
7939
  _: 2
8180
- }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Nh, [l(p, {
7940
+ }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", kh, [l(p, {
8181
7941
  page: t.tableQueries.query.page,
8182
7942
  "onUpdate:page": [a[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
8183
7943
  "item-count": t.tableQueries.query.itemCount,
@@ -8219,7 +7979,7 @@ function Ih(t, a, o, s, c, u) {
8219
7979
  "tableColumns"
8220
7980
  ])]),
8221
7981
  _: 2
8222
- }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Ph, [l(p, {
7982
+ }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Ah, [l(p, {
8223
7983
  page: t.tableQueries.query.page,
8224
7984
  "onUpdate:page": [a[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
8225
7985
  "item-count": t.tableQueries.query.itemCount,
@@ -8254,7 +8014,7 @@ function Ih(t, a, o, s, c, u) {
8254
8014
  "tableData",
8255
8015
  "tableIndex",
8256
8016
  "tableColumns"
8257
- ])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Fh, [l(p, {
8017
+ ])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", jh, [l(p, {
8258
8018
  page: t.tableQueries.query.page,
8259
8019
  "onUpdate:page": [a[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
8260
8020
  "item-count": t.tableQueries.query.itemCount,
@@ -8267,7 +8027,257 @@ function Ih(t, a, o, s, c, u) {
8267
8027
  "onUpdate:page"
8268
8028
  ])])) : r("", !0)], 4));
8269
8029
  }
8270
- var Lh = /*#__PURE__*/ W(Mh, [["render", Ih], ["__scopeId", "data-v-70b54e3b"]]), $ = C({
8030
+ var Nh = /*#__PURE__*/ W(Oh, [["render", Mh], ["__scopeId", "data-v-70b54e3b"]]), Ph = d({
8031
+ name: "UzTableFile",
8032
+ components: {
8033
+ NDropdown: B,
8034
+ NButton: L,
8035
+ NModal: Ce,
8036
+ NUpload: Re,
8037
+ NSpace: je,
8038
+ NIcon: V,
8039
+ NDataTable: oe,
8040
+ FileText: Ro
8041
+ },
8042
+ props: { query: {
8043
+ required: !1,
8044
+ type: Object,
8045
+ default: () => {}
8046
+ } },
8047
+ emits: ["on-update:change"],
8048
+ setup(e, { emit: t }) {
8049
+ let { t: n } = Xe(), r = qe(), i = He(), a = w(!1), o = w(!1), s = w(), c = w(""), l = w([{
8050
+ label: n("Common.import"),
8051
+ key: "import",
8052
+ icon: () => f(V, null, { default: () => f($i) })
8053
+ }, {
8054
+ label: n("Common.export"),
8055
+ key: "export",
8056
+ icon: () => f(V, null, { default: () => f(Yi) })
8057
+ }]), u = w([
8058
+ {
8059
+ title: "文件名称",
8060
+ key: "fileName"
8061
+ },
8062
+ {
8063
+ title: "状态",
8064
+ key: "status",
8065
+ render(e) {
8066
+ switch (e.status) {
8067
+ case "1": return f("div", { style: "color: rgb(var(--green))" }, "成功");
8068
+ case "2": return f("div", { style: "color: rgb(var(--red))" }, "失败");
8069
+ default: return "处理中";
8070
+ }
8071
+ }
8072
+ },
8073
+ {
8074
+ title: "信息(文件保留7日)",
8075
+ key: "failMessage"
8076
+ },
8077
+ {
8078
+ title: "操作",
8079
+ key: "action",
8080
+ align: "center",
8081
+ render(e) {
8082
+ return f(L, {
8083
+ tertiary: !0,
8084
+ onClick: () => {
8085
+ window.open(e.cosUrl);
8086
+ }
8087
+ }, { default: () => "下载" });
8088
+ }
8089
+ }
8090
+ ]), d = w([]), p = (e) => new Promise((t) => {
8091
+ if (e.file.file) {
8092
+ let t = new FormData();
8093
+ t.append("file", e.file.file), c.value = e.file.name, t.append("tableKey", r.params.id), s.value = t;
8094
+ }
8095
+ }), m = () => {
8096
+ s.value = null;
8097
+ }, h = () => {
8098
+ o.value || (o.value = !0, Tf(r.params.id).then((e) => {
8099
+ let t = document.createElement("a");
8100
+ t.download = "模板.xlsx", t.target = "_blank", t.style.display = "none", t.href = URL.createObjectURL(new Blob([e.data], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" })), document.body.appendChild(t), t.click(), URL.revokeObjectURL(t.href), document.body.removeChild(t);
8101
+ }).catch(() => null).finally(() => {
8102
+ o.value = !1;
8103
+ }));
8104
+ }, g = () => {
8105
+ o.value || (o.value = !0, gf("excel/import", s.value).then((e) => {
8106
+ i.success({
8107
+ content: "导入执行中...",
8108
+ duration: 3e3
8109
+ }), s.value = null, c.value = "";
8110
+ }).catch(() => {
8111
+ i.error({
8112
+ content: "上传失败",
8113
+ duration: 3e3
8114
+ });
8115
+ }).finally(() => {
8116
+ _(), o.value = !1;
8117
+ }));
8118
+ }, _ = () => {
8119
+ o.value || (o.value = !0, Ef(r.params.id).then((e) => {
8120
+ d.value = e;
8121
+ }).catch(() => null).finally(() => {
8122
+ o.value = !1;
8123
+ }));
8124
+ };
8125
+ return {
8126
+ show: a,
8127
+ rawFile: s,
8128
+ loading: o,
8129
+ rawFileName: c,
8130
+ dropOption: l,
8131
+ dropSelect: (t) => {
8132
+ if (t === "import") {
8133
+ a.value = !0, _();
8134
+ return;
8135
+ }
8136
+ if (t === "export") {
8137
+ id.info({
8138
+ title: "提示",
8139
+ content: "确认导出数据?导出过程较慢,稍后请在文件中心查看",
8140
+ positiveText: "确定",
8141
+ negativeText: "取消",
8142
+ draggable: !0,
8143
+ onPositiveClick: () => {
8144
+ let t = e.query ?? {};
8145
+ Df({
8146
+ tableKey: r.params.id,
8147
+ ...t
8148
+ }).then((e) => {
8149
+ i.success({
8150
+ content: "导出中...稍后请在文件中心查看",
8151
+ duration: 3e3
8152
+ });
8153
+ }).catch(() => null);
8154
+ }
8155
+ });
8156
+ return;
8157
+ }
8158
+ },
8159
+ beforeUpload: p,
8160
+ clearFile: m,
8161
+ manualImport: g,
8162
+ downloadTemplate: h,
8163
+ columns: u,
8164
+ coldata: d,
8165
+ init: _,
8166
+ modalLeave: () => {
8167
+ t("on-update:change", !0);
8168
+ }
8169
+ };
8170
+ }
8171
+ }), Fh = { class: "uz-file-port-modal" }, Ih = {
8172
+ key: 1,
8173
+ class: "uz-file-port-panel"
8174
+ }, Lh = { class: "uz-flex uz-justify-between" };
8175
+ function Rh(t, r, o, s, u, d) {
8176
+ let f = D("FileText"), p = D("NIcon"), m = D("NButton"), h = D("NDropdown"), g = D("NUpload"), _ = D("NSpace"), v = D("NDataTable"), y = D("NModal");
8177
+ return x(), i(e, null, [l(h, {
8178
+ trigger: "hover",
8179
+ options: t.dropOption,
8180
+ onSelect: t.dropSelect
8181
+ }, {
8182
+ default: N(() => [l(m, { secondary: "" }, {
8183
+ icon: N(() => [l(p, null, {
8184
+ default: N(() => [l(f)]),
8185
+ _: 1
8186
+ })]),
8187
+ default: N(() => [c(" " + A(t.$t("Common.file")), 1)]),
8188
+ _: 1
8189
+ })]),
8190
+ _: 1
8191
+ }, 8, ["options", "onSelect"]), l(y, {
8192
+ show: t.show,
8193
+ "onUpdate:show": r[0] ||= (e) => t.show = e,
8194
+ "mask-closable": !1,
8195
+ "close-on-esc": !1,
8196
+ title: "批量导入",
8197
+ preset: "card",
8198
+ style: { width: "70%" },
8199
+ "auto-focus": !1,
8200
+ "on-after-leave": t.modalLeave
8201
+ }, {
8202
+ "header-extra": N(() => [l(m, {
8203
+ type: "success",
8204
+ loading: t.loading,
8205
+ onClick: t.downloadTemplate,
8206
+ secondary: ""
8207
+ }, {
8208
+ default: N(() => [...r[1] ||= [c(" 下载模板 ", -1)]]),
8209
+ _: 1
8210
+ }, 8, ["loading", "onClick"])]),
8211
+ default: N(() => [a("div", Fh, [
8212
+ t.rawFile ? (x(), i("div", Ih, [
8213
+ r[5] ||= a("div", { class: "uz-file-port-icon" }, [a("svg", {
8214
+ xmlns: "http://www.w3.org/2000/svg",
8215
+ viewBox: "0 0 24 24",
8216
+ width: "40",
8217
+ height: "40",
8218
+ fill: "currentColor"
8219
+ }, [a("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])], -1),
8220
+ a("div", null, A(t.rawFileName), 1),
8221
+ r[6] ||= a("div", { class: "uz-file-port-subtitle" }, " 导入文件过程较慢,程序会静默处理,不需要留在本页面等待。 ", -1),
8222
+ l(_, { justify: "space-between" }, {
8223
+ default: N(() => [l(m, {
8224
+ size: "small",
8225
+ secondary: "",
8226
+ type: "default",
8227
+ onClick: t.clearFile
8228
+ }, {
8229
+ default: N(() => [...r[3] ||= [c(" 重新选择 ", -1)]]),
8230
+ _: 1
8231
+ }, 8, ["onClick"]), l(m, {
8232
+ size: "small",
8233
+ type: "primary",
8234
+ loading: t.loading,
8235
+ onClick: t.manualImport
8236
+ }, {
8237
+ default: N(() => [...r[4] ||= [c(" 开始导入 ", -1)]]),
8238
+ _: 1
8239
+ }, 8, ["loading", "onClick"])]),
8240
+ _: 1
8241
+ })
8242
+ ])) : (x(), n(g, {
8243
+ key: 0,
8244
+ accept: ".xlsx",
8245
+ "show-file-list": !1,
8246
+ "on-before-upload": t.beforeUpload,
8247
+ "directory-dnd": "",
8248
+ class: "uz-w-full"
8249
+ }, {
8250
+ default: N(() => [...r[2] ||= [a("div", { class: "uz-file-port-card" }, [a("div", { class: "uz-file-port-icon" }, [a("svg", {
8251
+ xmlns: "http://www.w3.org/2000/svg",
8252
+ viewBox: "0 0 24 24",
8253
+ width: "40",
8254
+ height: "40",
8255
+ fill: "currentColor"
8256
+ }, [a("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])]), a("div", { class: "uz-file-port-subtitle" }, "拖拽或点击上传Excel文件")], -1)]]),
8257
+ _: 1
8258
+ }, 8, ["on-before-upload"])),
8259
+ a("div", Lh, [r[8] ||= a("div", { class: "uz-com-title" }, "导入历史", -1), l(m, {
8260
+ onClick: t.init,
8261
+ loading: t.loading,
8262
+ secondary: ""
8263
+ }, {
8264
+ default: N(() => [...r[7] ||= [c("刷新", -1)]]),
8265
+ _: 1
8266
+ }, 8, ["onClick", "loading"])]),
8267
+ l(v, {
8268
+ columns: t.columns,
8269
+ data: t.coldata,
8270
+ loading: t.loading
8271
+ }, null, 8, [
8272
+ "columns",
8273
+ "data",
8274
+ "loading"
8275
+ ])
8276
+ ])]),
8277
+ _: 1
8278
+ }, 8, ["show", "on-after-leave"])], 64);
8279
+ }
8280
+ var zh = /*#__PURE__*/ W(Ph, [["render", Rh], ["__scopeId", "data-v-ca79bf5f"]]), $ = C({
8271
8281
  page: {
8272
8282
  label: "首页",
8273
8283
  key: "/",
@@ -8278,7 +8288,7 @@ var Lh = /*#__PURE__*/ W(Mh, [["render", Ih], ["__scopeId", "data-v-70b54e3b"]])
8278
8288
  active: "/",
8279
8289
  thumbnail: []
8280
8290
  });
8281
- function Rh(e) {
8291
+ function Bh(e) {
8282
8292
  $.cache = e.cache, $.page = {
8283
8293
  label: e.label,
8284
8294
  key: e.key,
@@ -8293,14 +8303,14 @@ function Rh(e) {
8293
8303
  closable: !1
8294
8304
  }];
8295
8305
  }
8296
- function zh(e) {
8306
+ function Vh(e) {
8297
8307
  $.active = e, G.push(e), Y($.cache, $, 0);
8298
8308
  }
8299
- function Bh(e, t) {
8309
+ function Hh(e, t) {
8300
8310
  let n = $.thumbnail.find((t) => t.key === e);
8301
8311
  n && (n.key = t, $.active = t, Y($.cache, $, 0));
8302
8312
  }
8303
- function Vh(e) {
8313
+ function Uh(e) {
8304
8314
  let t = $.thumbnail.find((t) => t.path === e.key);
8305
8315
  t ? ($.active = t.key, Y($.cache, $, 0), G.push(t.key)) : ($.active = e.key, $.thumbnail.push({
8306
8316
  ...e,
@@ -8308,7 +8318,7 @@ function Vh(e) {
8308
8318
  closable: !0
8309
8319
  }), G.push(e.key));
8310
8320
  }
8311
- function Hh(e) {
8321
+ function Wh(e) {
8312
8322
  let t = $.thumbnail.findIndex((t) => t.key === e);
8313
8323
  if ($.thumbnail.splice(t, 1), $.active === e) {
8314
8324
  let e = $.thumbnail[t - 1]?.key || "";
@@ -8316,12 +8326,12 @@ function Hh(e) {
8316
8326
  }
8317
8327
  Y($.cache, $, 0);
8318
8328
  }
8319
- function Uh() {
8329
+ function Gh() {
8320
8330
  $.active = $.page.path, $.thumbnail = [$.page], G.push($.page.path), Y($.cache, $, 0);
8321
8331
  }
8322
8332
  //#endregion
8323
8333
  //#region components/thumbnail/index.vue?vue&type=script&lang.ts
8324
- var Wh = d({
8334
+ var Kh = d({
8325
8335
  name: "UzThumbnail",
8326
8336
  components: {
8327
8337
  NTabs: Fe,
@@ -8343,29 +8353,29 @@ var Wh = d({
8343
8353
  setup(e, { slots: t }) {
8344
8354
  let n = w(!!t.prefix), r = qe();
8345
8355
  return y(() => {
8346
- Rh(e.option), $.active !== r.path && Bh(r.path, r.fullPath);
8356
+ Bh(e.option), $.active !== r.path && Hh(r.path, r.fullPath);
8347
8357
  }), j(() => r, (e) => {
8348
- $.active === r.path && Bh(e.path, e.fullPath);
8358
+ $.active === r.path && Hh(e.path, e.fullPath);
8349
8359
  }, { deep: !0 }), j(() => e.option, (e) => {
8350
- Rh(e);
8360
+ Bh(e);
8351
8361
  }, { deep: !0 }), {
8352
8362
  thumbnailStore: $,
8353
8363
  isSlotPrefix: n,
8354
8364
  handleClose: (e) => {
8355
- Hh(e);
8365
+ Wh(e);
8356
8366
  },
8357
8367
  handleChange: (e) => {
8358
- zh(e);
8368
+ Vh(e);
8359
8369
  },
8360
8370
  handleClear: () => {
8361
- Uh();
8371
+ Gh();
8362
8372
  }
8363
8373
  };
8364
8374
  }
8365
8375
  });
8366
8376
  //#endregion
8367
8377
  //#region components/thumbnail/index.vue
8368
- function Gh(t, r, a, s, u, d) {
8378
+ function qh(t, r, a, s, u, d) {
8369
8379
  let f = D("NTabPane"), p = D("Trash"), m = D("NIcon"), h = D("NButton"), g = D("NPopconfirm"), _ = D("NFlex"), v = D("NTabs");
8370
8380
  return x(), n(v, {
8371
8381
  value: t.thumbnailStore.active,
@@ -8411,33 +8421,33 @@ function Gh(t, r, a, s, u, d) {
8411
8421
  "on-update:value"
8412
8422
  ]);
8413
8423
  }
8414
- var Kh = /*#__PURE__*/ W(Wh, [["render", Gh]]), qh = "#007AFF", Jh = "#0A84FF", Yh = "#FF9500", Xh = "#FF9F0A", Zh = "#28CD41", Qh = "#32D74B", $h = "#FFCC00", eg = "#FFD60A", tg = "#FF3B30", ng = "#FF453A";
8415
- H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover = Jh, H.common.infoColor = "#FF9F0A", H.common.infoColorHover = Xh, H.common.successColor = "#32D74B", H.common.successColorHover = Qh, H.common.warningColor = "#FFD60A", H.common.successColorHover = eg, H.common.errorColor = "#FF453A", H.common.errorColorHover = ng, H.common.borderRadius = "var(--borderRadius)", H.common.inputColor = "rgba(var(--input))", H.common.borderColor = "rgba(var(--border), 0.7)", H.DataTable.tdColor = "#2d2d31";
8416
- var rg = {
8424
+ var Jh = /*#__PURE__*/ W(Kh, [["render", qh]]), Yh = "#007AFF", Xh = "#0A84FF", Zh = "#FF9500", Qh = "#FF9F0A", $h = "#28CD41", eg = "#32D74B", tg = "#FFCC00", ng = "#FFD60A", rg = "#FF3B30", ig = "#FF453A";
8425
+ H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover = Xh, H.common.infoColor = "#FF9F0A", H.common.infoColorHover = Qh, H.common.successColor = "#32D74B", H.common.successColorHover = eg, H.common.warningColor = "#FFD60A", H.common.successColorHover = ng, H.common.errorColor = "#FF453A", H.common.errorColorHover = ig, H.common.borderRadius = "var(--borderRadius)", H.common.inputColor = "rgba(var(--input))", H.common.borderColor = "rgba(var(--border), 0.7)", H.DataTable.tdColor = "#2d2d31";
8426
+ var ag = {
8417
8427
  common: {
8418
8428
  inputColor: "rgba(var(--input))",
8419
8429
  borderColor: "rgba(var(--border), 0.7)",
8420
8430
  borderRadius: "var(--borderRadius)",
8421
- primaryColor: qh,
8422
- primaryColorHover: Jh,
8423
- primaryColorPressed: qh,
8424
- primaryColorSuppl: qh,
8425
- infoColor: Yh,
8426
- infoColorHover: Xh,
8427
- infoColorPressed: Yh,
8428
- infoColorSuppl: Yh,
8429
- successColor: Zh,
8430
- successColorHover: Qh,
8431
- successColorPressed: Zh,
8432
- successColorSuppl: Zh,
8433
- warningColor: $h,
8434
- warningColorHover: eg,
8435
- warningColorPressed: $h,
8436
- warningColorSuppl: $h,
8437
- errorColor: tg,
8438
- errorColorHover: ng,
8439
- errorColorPressed: tg,
8440
- errorColorSuppl: tg,
8431
+ primaryColor: Yh,
8432
+ primaryColorHover: Xh,
8433
+ primaryColorPressed: Yh,
8434
+ primaryColorSuppl: Yh,
8435
+ infoColor: Zh,
8436
+ infoColorHover: Qh,
8437
+ infoColorPressed: Zh,
8438
+ infoColorSuppl: Zh,
8439
+ successColor: $h,
8440
+ successColorHover: eg,
8441
+ successColorPressed: $h,
8442
+ successColorSuppl: $h,
8443
+ warningColor: tg,
8444
+ warningColorHover: ng,
8445
+ warningColorPressed: tg,
8446
+ warningColorSuppl: tg,
8447
+ errorColor: rg,
8448
+ errorColorHover: ig,
8449
+ errorColorPressed: rg,
8450
+ errorColorSuppl: rg,
8441
8451
  cardColor: "#fff"
8442
8452
  },
8443
8453
  Button: { textColor: "rgb(var(--font))" },
@@ -8445,7 +8455,7 @@ var rg = {
8445
8455
  DatePicker: { itemBorderRadius: "var(--borderRadius)" },
8446
8456
  Notification: { borderRadius: "var(--borderRadius)" },
8447
8457
  Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
8448
- }, ig = H, ag = d({
8458
+ }, og = H, sg = d({
8449
8459
  name: "UzWrap",
8450
8460
  components: { NConfigProvider: ae },
8451
8461
  setup() {
@@ -8453,14 +8463,14 @@ var rg = {
8453
8463
  zhCN: Ue,
8454
8464
  dateZhCN: Ve,
8455
8465
  commonStore: q,
8456
- lightTheme: rg,
8457
- darkTheme: ig
8466
+ lightTheme: ag,
8467
+ darkTheme: og
8458
8468
  };
8459
8469
  }
8460
8470
  });
8461
8471
  //#endregion
8462
8472
  //#region components/wrap/index.vue
8463
- function og(e, t, r, i, a, o) {
8473
+ function cg(e, t, r, i, a, o) {
8464
8474
  let s = D("NConfigProvider");
8465
8475
  return x(), n(s, {
8466
8476
  theme: e.commonStore.theme ? { name: "darkTheme" } : null,
@@ -8479,10 +8489,10 @@ function og(e, t, r, i, a, o) {
8479
8489
  "date-locale"
8480
8490
  ]);
8481
8491
  }
8482
- var sg = /*#__PURE__*/ W(ag, [["render", og]]);
8492
+ var lg = /*#__PURE__*/ W(sg, [["render", cg]]);
8483
8493
  //#endregion
8484
8494
  //#region components/ocr/preprocess.ts
8485
- function cg(e) {
8495
+ function ug(e) {
8486
8496
  let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
8487
8497
  for (let r = 0; r < n; r++) t[e[r]]++;
8488
8498
  let r = 0;
@@ -8497,7 +8507,7 @@ function cg(e) {
8497
8507
  }
8498
8508
  return c;
8499
8509
  }
8500
- function lg(e, t) {
8510
+ function dg(e, t) {
8501
8511
  return new Promise((n, r) => {
8502
8512
  let i = new Image();
8503
8513
  i.crossOrigin = "anonymous", i.onload = () => {
@@ -8530,7 +8540,7 @@ function lg(e, t) {
8530
8540
  }
8531
8541
  let u = t.threshold;
8532
8542
  if (t.binarize) {
8533
- t.autoThreshold && (u = cg(l));
8543
+ t.autoThreshold && (u = ug(l));
8534
8544
  for (let e = 0, t = 0; e < s.length; e += 4, t++) {
8535
8545
  let n = l[t] < u ? 0 : 255;
8536
8546
  s[e] = n, s[e + 1] = n, s[e + 2] = n;
@@ -8553,7 +8563,7 @@ function lg(e, t) {
8553
8563
  }
8554
8564
  //#endregion
8555
8565
  //#region components/ocr/index.vue?vue&type=script&lang.ts
8556
- var ug = d({
8566
+ var fg = d({
8557
8567
  name: "UzOcr",
8558
8568
  components: {
8559
8569
  NButton: L,
@@ -8590,7 +8600,7 @@ var ug = d({
8590
8600
  tessedit_char_blacklist: "|"
8591
8601
  }), a.value), v = async () => {
8592
8602
  if (f.value) try {
8593
- let e = await lg(f.value, {
8603
+ let e = await dg(f.value, {
8594
8604
  enabled: o.value,
8595
8605
  scale: s.value,
8596
8606
  grayscale: !0,
@@ -8627,7 +8637,7 @@ var ug = d({
8627
8637
  n.value = !0, r.value = e("OCR.analysis");
8628
8638
  let a = t;
8629
8639
  if (o.value || s.value > 1) try {
8630
- let e = await lg(t, {
8640
+ let e = await dg(t, {
8631
8641
  enabled: o.value,
8632
8642
  scale: s.value,
8633
8643
  grayscale: !0,
@@ -8689,25 +8699,25 @@ var ug = d({
8689
8699
  t: e
8690
8700
  };
8691
8701
  }
8692
- }), dg = { class: "uz-ocr" }, fg = { class: "uz-ocr-left-col" }, pg = { class: "uz-ocr-upload-card" }, mg = { class: "uz-ocr-upload-title" }, hg = {
8702
+ }), pg = { class: "uz-ocr" }, mg = { class: "uz-ocr-left-col" }, hg = { class: "uz-ocr-upload-card" }, gg = { class: "uz-ocr-upload-title" }, _g = {
8693
8703
  key: 1,
8694
8704
  class: "uz-ocr-preview-panel"
8695
- }, gg = { class: "uz-ocr-preview-box" }, _g = ["src"], vg = {
8705
+ }, vg = { class: "uz-ocr-preview-box" }, yg = ["src"], bg = {
8696
8706
  key: 0,
8697
8707
  class: "uz-ocr-threshold-badge"
8698
- }, yg = { class: "uz-ocr-preview-box" }, bg = ["src"], xg = { class: "uz-ocr-settings-form" }, Sg = { class: "uz-settings-row" }, Cg = { class: "uz-settings-label" }, wg = {
8708
+ }, xg = { class: "uz-ocr-preview-box" }, Sg = ["src"], Cg = { class: "uz-ocr-settings-form" }, wg = { class: "uz-settings-row" }, Tg = { class: "uz-settings-label" }, Eg = {
8699
8709
  key: 0,
8700
8710
  class: "uz-ocr-nested-settings animate-fade-in"
8701
- }, Tg = { class: "uz-settings-row" }, Eg = { class: "uz-settings-label" }, Dg = { class: "uz-settings-row" }, Og = { class: "uz-settings-label" }, kg = { class: "uz-ocr-right-col" }, Ag = { class: "uz-ocr-result-header" }, jg = { class: "uz-result-title" }, Mg = {
8711
+ }, Dg = { class: "uz-settings-row" }, Og = { class: "uz-settings-label" }, kg = { class: "uz-settings-row" }, Ag = { class: "uz-settings-label" }, jg = { class: "uz-ocr-right-col" }, Mg = { class: "uz-ocr-result-header" }, Ng = { class: "uz-result-title" }, Pg = {
8702
8712
  key: 0,
8703
8713
  class: "uz-ocr-empty-state"
8704
- }, Ng = { class: "uz-empty-text" }, Pg = {
8714
+ }, Fg = { class: "uz-empty-text" }, Ig = {
8705
8715
  key: 1,
8706
8716
  class: "uz-ocr-result-tabs"
8707
8717
  };
8708
- function Fg(e, t, o, s, u, d) {
8718
+ function Lg(e, t, o, s, u, d) {
8709
8719
  let f = D("NUpload"), p = D("NTabPane"), m = D("NTabs"), h = D("NButton"), g = D("NSpace"), _ = D("NSwitch"), v = D("NSelect");
8710
- return x(), i("div", dg, [a("div", fg, [e.rawImage ? (x(), i("div", hg, [l(m, {
8720
+ return x(), i("div", pg, [a("div", mg, [e.rawImage ? (x(), i("div", _g, [l(m, {
8711
8721
  value: e.imagePreviewTab,
8712
8722
  "onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
8713
8723
  type: "segment",
@@ -8717,21 +8727,21 @@ function Fg(e, t, o, s, u, d) {
8717
8727
  name: "processed",
8718
8728
  tab: e.t("OCR.previewProcessed")
8719
8729
  }, {
8720
- default: N(() => [a("div", gg, [a("img", {
8730
+ default: N(() => [a("div", vg, [a("img", {
8721
8731
  src: e.processedImage,
8722
8732
  alt: "Processed Preview",
8723
8733
  class: "uz-ocr-preview-img"
8724
- }, null, 8, _g), e.preEnabled && e.preBinarize ? (x(), i("div", vg, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : r("", !0)])]),
8734
+ }, null, 8, yg), e.preEnabled && e.preBinarize ? (x(), i("div", bg, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : r("", !0)])]),
8725
8735
  _: 1
8726
8736
  }, 8, ["tab"]), l(p, {
8727
8737
  name: "raw",
8728
8738
  tab: e.t("OCR.previewRaw")
8729
8739
  }, {
8730
- default: N(() => [a("div", yg, [a("img", {
8740
+ default: N(() => [a("div", xg, [a("img", {
8731
8741
  src: e.rawImage,
8732
8742
  alt: "Raw Preview",
8733
8743
  class: "uz-ocr-preview-img"
8734
- }, null, 8, bg)])]),
8744
+ }, null, 8, Sg)])]),
8735
8745
  _: 1
8736
8746
  }, 8, ["tab"])]),
8737
8747
  _: 1
@@ -8765,7 +8775,7 @@ function Fg(e, t, o, s, u, d) {
8765
8775
  "directory-dnd": "",
8766
8776
  class: "uz-w-full"
8767
8777
  }, {
8768
- default: N(() => [a("div", pg, [
8778
+ default: N(() => [a("div", hg, [
8769
8779
  t[4] ||= a("div", { class: "uz-ocr-upload-icon" }, [a("svg", {
8770
8780
  xmlns: "http://www.w3.org/2000/svg",
8771
8781
  viewBox: "0 0 24 24",
@@ -8773,27 +8783,27 @@ function Fg(e, t, o, s, u, d) {
8773
8783
  height: "40",
8774
8784
  fill: "currentColor"
8775
8785
  }, [a("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])], -1),
8776
- a("div", mg, A(e.t("OCR.scan")), 1),
8786
+ a("div", gg, A(e.t("OCR.scan")), 1),
8777
8787
  t[5] ||= a("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
8778
8788
  ])]),
8779
8789
  _: 1
8780
- }, 8, ["on-before-upload"])), a("div", xg, [a("div", Sg, [a("span", Cg, A(e.t("OCR.preprocess")), 1), l(_, {
8790
+ }, 8, ["on-before-upload"])), a("div", Cg, [a("div", wg, [a("span", Tg, A(e.t("OCR.preprocess")), 1), l(_, {
8781
8791
  value: e.preEnabled,
8782
8792
  "onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
8783
8793
  size: "small"
8784
- }, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", wg, [a("div", Tg, [a("span", Eg, A(e.t("OCR.scale")), 1), l(v, {
8794
+ }, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", Eg, [a("div", Dg, [a("span", Og, A(e.t("OCR.scale")), 1), l(v, {
8785
8795
  value: e.preScale,
8786
8796
  "onUpdate:value": t[2] ||= (t) => e.preScale = t,
8787
8797
  options: e.scaleOptions,
8788
8798
  size: "small",
8789
8799
  class: "uz-settings-select"
8790
- }, null, 8, ["value", "options"])]), a("div", Dg, [a("span", Og, A(e.t("OCR.contrast")), 1), l(_, {
8800
+ }, null, 8, ["value", "options"])]), a("div", kg, [a("span", Ag, A(e.t("OCR.contrast")), 1), l(_, {
8791
8801
  value: e.preContrast,
8792
8802
  "onUpdate:value": t[3] ||= (t) => e.preContrast = t,
8793
8803
  size: "small"
8794
- }, null, 8, ["value"])])])) : r("", !0)])]), a("div", kg, [a("div", Ag, [a("span", jg, "识别结果 (" + A(e.text.length) + " 行)", 1)]), e.text.length ? (x(), i("div", Pg, A(e.fullText), 1)) : (x(), i("div", Mg, [t[7] ||= a("div", { class: "uz-empty-icon" }, "📝", -1), a("div", Ng, A(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
8804
+ }, null, 8, ["value"])])])) : r("", !0)])]), a("div", jg, [a("div", Mg, [a("span", Ng, "识别结果 (" + A(e.text.length) + " 行)", 1)]), e.text.length ? (x(), i("div", Ig, A(e.fullText), 1)) : (x(), i("div", Pg, [t[7] ||= a("div", { class: "uz-empty-icon" }, "📝", -1), a("div", Fg, A(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
8795
8805
  }
8796
- var Ig = /*#__PURE__*/ W(ug, [["render", Fg], ["__scopeId", "data-v-c7224ff5"]]), Lg = /* @__PURE__ */ lt({
8806
+ var Rg = /*#__PURE__*/ W(fg, [["render", Lg], ["__scopeId", "data-v-c7224ff5"]]), zg = /* @__PURE__ */ lt({
8797
8807
  AccessPoint: () => mt,
8798
8808
  Activity: () => vt,
8799
8809
  Adjustments: () => St,
@@ -8932,25 +8942,25 @@ var Ig = /*#__PURE__*/ W(ug, [["render", Fg], ["__scopeId", "data-v-c7224ff5"]])
8932
8942
  UzFormItemTimesPicker: () => Qp,
8933
8943
  UzFormItemUpload: () => Wp,
8934
8944
  UzIcon: () => Iu,
8935
- UzOcr: () => Ig,
8945
+ UzOcr: () => Rg,
8936
8946
  UzSearchBar: () => fm,
8937
8947
  UzSearchMobileBar: () => vm,
8938
8948
  UzSpin: () => Bm,
8939
- UzTable: () => oh,
8940
- UzTableChild: () => mh,
8941
- UzTableDrawer: () => Dh,
8942
- UzTableFilePort: () => Ym,
8943
- UzTableMobile: () => Lh,
8944
- UzTableQuestChild: () => bh,
8945
- UzThumbnail: () => Kh,
8946
- UzWrap: () => sg,
8949
+ UzTable: () => nh,
8950
+ UzTableChild: () => uh,
8951
+ UzTableDrawer: () => Ch,
8952
+ UzTableFile: () => zh,
8953
+ UzTableMobile: () => Nh,
8954
+ UzTableQuestChild: () => gh,
8955
+ UzThumbnail: () => Jh,
8956
+ UzWrap: () => lg,
8947
8957
  X: () => Bl,
8948
8958
  commonStore: () => q,
8949
8959
  fnActionReduction: () => Vf,
8950
8960
  fnActionSimplify: () => Bf,
8951
- fnAddThumbnail: () => Vh,
8952
- fnClearAllThumbnail: () => Uh,
8953
- fnDeleteThumbnail: () => Hh,
8961
+ fnAddThumbnail: () => Uh,
8962
+ fnClearAllThumbnail: () => Gh,
8963
+ fnDeleteThumbnail: () => Wh,
8954
8964
  fnGetTableData: () => km,
8955
8965
  fnOptionReduction: () => Fm,
8956
8966
  fnOptionSimplify: () => Pm,
@@ -8959,18 +8969,18 @@ var Ig = /*#__PURE__*/ W(ug, [["render", Fg], ["__scopeId", "data-v-c7224ff5"]])
8959
8969
  fnRenderAction: () => Nf,
8960
8970
  fnSetLang: () => Bu,
8961
8971
  fnSetTheme: () => Vu,
8962
- fnSetThumbnail: () => zh,
8972
+ fnSetThumbnail: () => Vh,
8963
8973
  fnTableReduction: () => jm,
8964
8974
  fnTableSimplify: () => Am,
8965
8975
  fnTriggersReduction: () => Nm,
8966
8976
  fnTriggersSimplify: () => Mm,
8967
8977
  i18n: () => K
8968
- }), Rg = 3840, zg = 2160, Bg = C({ scale: 1 });
8969
- function Vg(e, t) {
8970
- Rg = e, zg = t;
8978
+ }), Bg = 3840, Vg = 2160, Hg = C({ scale: 1 });
8979
+ function Ug(e, t) {
8980
+ Bg = e, Vg = t;
8971
8981
  }
8972
- function Hg() {
8973
- let e = 1, t = window.innerWidth, n = window.innerHeight, r = Rg, i = zg, a = parseFloat((r / i).toFixed(5));
8982
+ function Wg() {
8983
+ let e = 1, t = window.innerWidth, n = window.innerHeight, r = Bg, i = Vg, a = parseFloat((r / i).toFixed(5));
8974
8984
  if (parseFloat((t / n).toFixed(5)) > a) {
8975
8985
  let t = parseFloat((n * a / r).toFixed(5));
8976
8986
  e = t > 1 ? 1 : t;
@@ -8978,17 +8988,17 @@ function Hg() {
8978
8988
  let n = parseFloat((t / a / i).toFixed(5));
8979
8989
  e = n > 1 ? 1 : n;
8980
8990
  }
8981
- Bg.scale = e;
8991
+ Hg.scale = e;
8982
8992
  }
8983
- function Ug() {
8984
- let e = Qe(Hg, 200);
8993
+ function Gg() {
8994
+ let e = Qe(Wg, 200);
8985
8995
  return e(), window.addEventListener("resize", e), () => {
8986
- Rg = 3840, zg = 2160, window.removeEventListener("resize", e);
8996
+ Bg = 3840, Vg = 2160, window.removeEventListener("resize", e);
8987
8997
  };
8988
8998
  }
8989
8999
  //#endregion
8990
9000
  //#region components/hooks/useThrottleFn.ts
8991
- function Wg(e, n = 1e3) {
9001
+ function Kg(e, n = 1e3) {
8992
9002
  let r = w(e), i = t(() => $e((...e) => r.value([...e]), n));
8993
9003
  return b(() => {
8994
9004
  i.value.cancel();
@@ -9000,14 +9010,14 @@ function Wg(e, n = 1e3) {
9000
9010
  }
9001
9011
  //#endregion
9002
9012
  //#region components/hooks/useLocalStorage.ts
9003
- function Gg(e, t) {
9013
+ function qg(e, t) {
9004
9014
  return [w(X(e, t?.defaultValue)), (n) => {
9005
9015
  n === void 0 ? ad(e) : Y(e, n, t?.expired || "1 Day");
9006
9016
  }];
9007
9017
  }
9008
9018
  //#endregion
9009
9019
  //#region components/hooks/useQuery.ts
9010
- function Kg(e, t, n) {
9020
+ function Jg(e, t, n) {
9011
9021
  let r = `useQuery-${e}`, i = w(), a = w(), o = w(), s = w(!1), c = w("idle"), l = w(), u = w(0), d = w(0), f = () => {
9012
9022
  ff(), clearInterval(o.value), o.value = null;
9013
9023
  }, p = async () => {
@@ -9073,26 +9083,26 @@ function Kg(e, t, n) {
9073
9083
  }
9074
9084
  //#endregion
9075
9085
  //#region package.json
9076
- var qg = "0.1.80", Jg;
9077
- async function Yg() {
9086
+ var Yg = "0.1.82", Xg;
9087
+ async function Zg() {
9078
9088
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
9079
9089
  method: "HEAD",
9080
9090
  cache: "no-cache"
9081
9091
  });
9082
9092
  return e.headers.get("etag") || e.headers.get("last-modified");
9083
9093
  }
9084
- async function Xg() {
9085
- let e = await Yg();
9086
- Jg !== e && Hu(!0);
9094
+ async function Qg() {
9095
+ let e = await Zg();
9096
+ Xg !== e && Hu(!0);
9087
9097
  }
9088
- async function Zg() {
9089
- Jg = await Yg(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
9090
- Xg();
9098
+ async function $g() {
9099
+ Xg = await Zg(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
9100
+ Qg();
9091
9101
  }, 60 * 1e3);
9092
9102
  }
9093
9103
  //#endregion
9094
9104
  //#region components/create.ts
9095
- function Qg({ components: e = [] } = {}) {
9105
+ function e_({ components: e = [] } = {}) {
9096
9106
  let t = [];
9097
9107
  function n(e, t, n) {
9098
9108
  e.component(t) || e.component(t, n);
@@ -9105,16 +9115,16 @@ function Qg({ components: e = [] } = {}) {
9105
9115
  });
9106
9116
  }), i)) {
9107
9117
  let { title: e = "杭州宇臻智能", monitor: t = !1, monitorInfo: n, version: a = !0, language: o = !1, local: s = "zh-CN" } = i, c = X("theme", !1), l = X("lang", s);
9108
- Uu(e), zu(o), Bu(l), Vu(c), K.global.locale.value = l, a && Zg(), t && tf(r, t, n);
9118
+ Uu(e), zu(o), Bu(l), Vu(c), K.global.locale.value = l, a && $g(), t && tf(r, t, n);
9109
9119
  }
9110
9120
  }
9111
9121
  return {
9112
- version: qg,
9122
+ version: Yg,
9113
9123
  install: r
9114
9124
  };
9115
9125
  }
9116
9126
  //#endregion
9117
9127
  //#region components/preset.ts
9118
- var $g = Qg({ components: Object.keys(Lg).map((e) => Lg[e]) }), e_ = $g.install;
9128
+ var t_ = e_({ components: Object.keys(zg).map((e) => zg[e]) }), n_ = t_.install;
9119
9129
  //#endregion
9120
- export { mt as AccessPoint, vt as Activity, St as Adjustments, Et as AdjustmentsHorizontal, At as Affiliate, Pt as Alarm, Rt as AlertCircle, Ht as ApiApp, Xt as AppWindow, Kt as Apps, en as Archive, an as ArrowNarrowLeft, ln as AspectRatio, pn as Atom, _n as Atom2, xn as Award, mf as BLOB, Tn as Barcode, kn as Basket, Nn as Bell, Ln as Bluetooth, Vn as Book2, Su as Books, Gn as Box, Yn as BrandAsana, Pu as BrandStackoverflow, $n as Briefcase, rr as Building, sr as BuildingArch, ou as BuildingWarehouse, hf as CUSTOM, hr as Calculator, yr as Calendar, Cr as CalendarPlus, Dr as CalendarStats, jr as Camera, Fr as CaretDown, zr as CaretUp, Ur as ChartArea, qr as ChartBar, Zr as ChartBubble, ti as ChartDonut, ai as ChartLine, li as ChartPie, pi as ChartRadar, Ql as CheckMark, _i as Checkbox, xi as CheckupList, Jl as CircleMinus, Ti as Clipboard, ki as ClipboardCheck, Ni as ClipboardList, Li as ClipboardPlus, Vi as Clock, Gi as Cloud, Yi as CloudDownload, $i as CloudUpload, ra as Command, Eu as Confetti, mu as Container, sa as Copy, dr as Cpu, da as CreditCard, ha as Crosshair, ya as CurrencyYen, vu as Dashboard, Ca as Database, Da as DatabaseExport, ja as DatabaseImport, Fa as DeviceAnalytics, za as DeviceDesktop, Ua as DeviceDesktopAnalytics, qa as DeviceLaptop, Za as DeviceMobile, to as Diamond, ao as Dots, lo as DotsVertical, mo as Edit, vo as Eraser, So as Eye, gf as FILE, Eo as File, Ao as FileAlert, Po as FileAnalytics, Ro as FileText, Ho as Filter, pf as GET, Ko as GitCompare, Xo as GitPullRequest, es as GridDots, is as Home, Lu as IconList, cs as Id, fs as LayoutSidebarLeftCollapse, gs as LayoutSidebarLeftExpand, bs as Link, ws as List, Os as ListCheck, Ms as ListDetails, Is as Mail, Bs as Map, Ws as MapPin, uu as Menu2, nu as Message2, Au as MinusRound, Js as MoonStars, Q as POST, Qs as Paperclip, nc as Photo, oc as PhotoOff, uc as Plus, mc as Presentation, vc as PresentationAnalytics, Sc as Printer, Ec as Qrcode, Ac as Refresh, Pc as Report, Rc as ReportAnalytics, Hc as ReportMoney, Kc as ReportSearch, Xc as Search, el as Settings, il as SmartHome, cl as Sun, fl as TransferIn, gl as TransferOut, bl as Trash, wl as User, Wl as UserCircle, Ol as UserMinus, Ml as UserPlus, Il as Users, ut as UzActionButton, Wf as UzBack, am as UzCamera, Tp as UzCircle, Rp as UzDraggableForm, Np as UzForm, kp as UzFormItem, Jp as UzFormItemImage, Qp as UzFormItemTimesPicker, Wp as UzFormItemUpload, Iu as UzIcon, Ig as UzOcr, fm as UzSearchBar, vm as UzSearchMobileBar, Bm as UzSpin, oh as UzTable, mh as UzTableChild, Dh as UzTableDrawer, Ym as UzTableFilePort, Lh as UzTableMobile, bh as UzTableQuestChild, Kh as UzThumbnail, sg as UzWrap, Bl as X, q as commonStore, Qg as create, ig as darkTheme, $g as default, Vf as fnActionReduction, Bf as fnActionSimplify, Vh as fnAddThumbnail, ff as fnCancelFetch, Uh as fnClearAllThumbnail, Hg as fnComputedScale, Ru as fnCreateRouter, ad as fnDelStorage, sd as fnDelStorageAll, od as fnDelStorageByPrefix, Hh as fnDeleteThumbnail, id as fnDialog, J as fnErrorLog, _d as fnFilterByPinyinInitials, ud as fnFormatTime, md as fnFormatUnits, pd as fnFullScreen, X as fnGetStorage, km as fnGetTableData, Ug as fnListenerScale, rd as fnNotification, Fm as fnOptionReduction, Pm as fnOptionSimplify, ld as fnPageModel2Naive, Im as fnPrepareFormData, Lm as fnPrepareTableData, Nf as fnRenderAction, cd as fnScrollTop, Bu as fnSetLang, Vg as fnSetNormalWidthAndHeight, Y as fnSetStorage, Vu as fnSetTheme, zh as fnSetThumbnail, jm as fnTableReduction, Am as fnTableSimplify, fd as fnThrottle, dd as fnTitle, Nm as fnTriggersReduction, Mm as fnTriggersSimplify, K as i18n, e_ as install, rg as lightTheme, vd as mergeColumns, G as router, Bg as scaleStore, ym as useDebounceFn, Gg as useLocalStorage, Kg as useQuery, Wg as useThrottleFn };
9130
+ export { mt as AccessPoint, vt as Activity, St as Adjustments, Et as AdjustmentsHorizontal, At as Affiliate, Pt as Alarm, Rt as AlertCircle, Ht as ApiApp, Xt as AppWindow, Kt as Apps, en as Archive, an as ArrowNarrowLeft, ln as AspectRatio, pn as Atom, _n as Atom2, xn as Award, mf as BLOB, Tn as Barcode, kn as Basket, Nn as Bell, Ln as Bluetooth, Vn as Book2, Su as Books, Gn as Box, Yn as BrandAsana, Pu as BrandStackoverflow, $n as Briefcase, rr as Building, sr as BuildingArch, ou as BuildingWarehouse, hf as CUSTOM, hr as Calculator, yr as Calendar, Cr as CalendarPlus, Dr as CalendarStats, jr as Camera, Fr as CaretDown, zr as CaretUp, Ur as ChartArea, qr as ChartBar, Zr as ChartBubble, ti as ChartDonut, ai as ChartLine, li as ChartPie, pi as ChartRadar, Ql as CheckMark, _i as Checkbox, xi as CheckupList, Jl as CircleMinus, Ti as Clipboard, ki as ClipboardCheck, Ni as ClipboardList, Li as ClipboardPlus, Vi as Clock, Gi as Cloud, Yi as CloudDownload, $i as CloudUpload, ra as Command, Eu as Confetti, mu as Container, sa as Copy, dr as Cpu, da as CreditCard, ha as Crosshair, ya as CurrencyYen, vu as Dashboard, Ca as Database, Da as DatabaseExport, ja as DatabaseImport, Fa as DeviceAnalytics, za as DeviceDesktop, Ua as DeviceDesktopAnalytics, qa as DeviceLaptop, Za as DeviceMobile, to as Diamond, ao as Dots, lo as DotsVertical, mo as Edit, vo as Eraser, So as Eye, gf as FILE, Eo as File, Ao as FileAlert, Po as FileAnalytics, Ro as FileText, Ho as Filter, pf as GET, Ko as GitCompare, Xo as GitPullRequest, es as GridDots, is as Home, Lu as IconList, cs as Id, fs as LayoutSidebarLeftCollapse, gs as LayoutSidebarLeftExpand, bs as Link, ws as List, Os as ListCheck, Ms as ListDetails, Is as Mail, Bs as Map, Ws as MapPin, uu as Menu2, nu as Message2, Au as MinusRound, Js as MoonStars, Q as POST, Qs as Paperclip, nc as Photo, oc as PhotoOff, uc as Plus, mc as Presentation, vc as PresentationAnalytics, Sc as Printer, Ec as Qrcode, Ac as Refresh, Pc as Report, Rc as ReportAnalytics, Hc as ReportMoney, Kc as ReportSearch, Xc as Search, el as Settings, il as SmartHome, cl as Sun, fl as TransferIn, gl as TransferOut, bl as Trash, wl as User, Wl as UserCircle, Ol as UserMinus, Ml as UserPlus, Il as Users, ut as UzActionButton, Wf as UzBack, am as UzCamera, Tp as UzCircle, Rp as UzDraggableForm, Np as UzForm, kp as UzFormItem, Jp as UzFormItemImage, Qp as UzFormItemTimesPicker, Wp as UzFormItemUpload, Iu as UzIcon, Rg as UzOcr, fm as UzSearchBar, vm as UzSearchMobileBar, Bm as UzSpin, nh as UzTable, uh as UzTableChild, Ch as UzTableDrawer, zh as UzTableFile, Nh as UzTableMobile, gh as UzTableQuestChild, Jh as UzThumbnail, lg as UzWrap, Bl as X, q as commonStore, e_ as create, og as darkTheme, t_ as default, Vf as fnActionReduction, Bf as fnActionSimplify, Uh as fnAddThumbnail, ff as fnCancelFetch, Gh as fnClearAllThumbnail, Wg as fnComputedScale, Ru as fnCreateRouter, ad as fnDelStorage, sd as fnDelStorageAll, od as fnDelStorageByPrefix, Wh as fnDeleteThumbnail, id as fnDialog, J as fnErrorLog, _d as fnFilterByPinyinInitials, ud as fnFormatTime, md as fnFormatUnits, pd as fnFullScreen, X as fnGetStorage, km as fnGetTableData, Gg as fnListenerScale, rd as fnNotification, Fm as fnOptionReduction, Pm as fnOptionSimplify, ld as fnPageModel2Naive, Im as fnPrepareFormData, Lm as fnPrepareTableData, Nf as fnRenderAction, cd as fnScrollTop, Bu as fnSetLang, Ug as fnSetNormalWidthAndHeight, Y as fnSetStorage, Vu as fnSetTheme, Vh as fnSetThumbnail, jm as fnTableReduction, Am as fnTableSimplify, fd as fnThrottle, dd as fnTitle, Nm as fnTriggersReduction, Mm as fnTriggersSimplify, K as i18n, n_ as install, ag as lightTheme, vd as mergeColumns, G as router, Hg as scaleStore, ym as useDebounceFn, qg as useLocalStorage, Jg as useQuery, Kg as useThrottleFn };