@das-fed/ui 6.4.0-dev.51 → 6.4.0-dev.52

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.
@@ -81,16 +81,18 @@ export default {
81
81
  选择登录企业: "",
82
82
  搜索企业名称: "",
83
83
  进入: "",
84
- 返回主页: "",
85
- 抱歉: "",
86
- 您无权访问此页面: "",
87
- 您访问的页面不存在: "",
88
84
  修改密码: "",
89
85
  旧密码: "",
90
86
  新密码: "",
91
87
  确认新密码: "",
92
88
  取消: "",
93
89
  确定: "",
90
+ 返回主页: "",
91
+ 抱歉: "",
92
+ 您无权访问此页面: "",
93
+ 您访问的页面不存在: "",
94
+ 导入进度: "",
95
+ 导入成功: "",
94
96
  导出进度: "",
95
97
  导出: "",
96
98
  导入: "",
@@ -98,14 +100,8 @@ export default {
98
100
  部分数据校验不通过: "",
99
101
  请下载附件并修改: "",
100
102
  重新导入: "",
101
- 部分: "",
102
- 导出表: "",
103
- 正在导出中: "",
104
- 导出失败: "",
105
- 导出成功: "",
106
- 导入进度: "",
107
- 导入成功: "",
108
103
  成功: "",
104
+ 部分: "",
109
105
  文件格式错误: "",
110
106
  请重新上传: "",
111
107
  文件大小不超过: "",
@@ -116,6 +112,10 @@ export default {
116
112
  重复数据以最后一条为准: "",
117
113
  正在导入中: "",
118
114
  导入失败: "",
115
+ 正在导出中: "",
116
+ 导出失败: "",
117
+ 导出成功: "",
118
+ 导出表: "",
119
119
  标题: "",
120
120
  提交成功: "",
121
121
  全部: "",
@@ -317,12 +317,6 @@ export default {
317
317
  检查项: "",
318
318
  任务详情: "",
319
319
  异常: "",
320
- 基础信息: "",
321
- 升: "",
322
- 停: "",
323
- 降: "",
324
- 可设置的最大值为: "",
325
- 可设置的最小值为: "",
326
320
  年: "",
327
321
  月: "",
328
322
  今日: "",
@@ -344,6 +338,12 @@ export default {
344
338
  周四: "",
345
339
  周五: "",
346
340
  周六: "",
341
+ 基础信息: "",
342
+ 升: "",
343
+ 停: "",
344
+ 降: "",
345
+ 可设置的最大值为: "",
346
+ 可设置的最小值为: "",
347
347
  报修位置: "",
348
348
  报修时间: "",
349
349
  实时预览: "",
@@ -481,8 +481,8 @@ export default {
481
481
  日历: "",
482
482
  下拉菜单: "",
483
483
  加载: "",
484
- 通知: "",
485
484
  消息提示: "",
485
+ 通知: "",
486
486
  文字提示: "",
487
487
  周: "",
488
488
  自定义: "",
@@ -82,16 +82,18 @@ export default {
82
82
  选择登录企业: "选择登录企业",
83
83
  搜索企业名称: "搜索企业名称",
84
84
  进入: "进入",
85
- 返回主页: "返回主页",
86
- 抱歉: "抱歉",
87
- 您无权访问此页面: "您无权访问此页面",
88
- 您访问的页面不存在: "您访问的页面不存在",
89
85
  修改密码: "修改密码",
90
86
  旧密码: "旧密码",
91
87
  新密码: "新密码",
92
88
  确认新密码: "确认新密码",
93
89
  取消: "取消",
94
90
  确定: "确定",
91
+ 返回主页: "返回主页",
92
+ 抱歉: "抱歉",
93
+ 您无权访问此页面: "您无权访问此页面",
94
+ 您访问的页面不存在: "您访问的页面不存在",
95
+ 导入进度: "导入进度",
96
+ 导入成功: "导入成功",
95
97
  导出进度: "导出进度",
96
98
  导出: "导出",
97
99
  导入: "导入",
@@ -99,14 +101,8 @@ export default {
99
101
  部分数据校验不通过: "部分数据校验不通过",
100
102
  请下载附件并修改: "请下载附件并修改",
101
103
  重新导入: "重新导入",
102
- 部分: "部分",
103
- 导出表: "导出表",
104
- 正在导出中: "正在导出中",
105
- 导出失败: "导出失败",
106
- 导出成功: "导出成功",
107
- 导入进度: "导入进度",
108
- 导入成功: "导入成功",
109
104
  成功: "成功",
105
+ 部分: "部分",
110
106
  文件格式错误: "文件格式错误",
111
107
  请重新上传: "请重新上传",
112
108
  文件大小不超过: "文件大小不超过",
@@ -117,6 +113,10 @@ export default {
117
113
  重复数据以最后一条为准: "重复数据以最后一条为准",
118
114
  正在导入中: "正在导入中",
119
115
  导入失败: "导入失败",
116
+ 正在导出中: "正在导出中",
117
+ 导出失败: "导出失败",
118
+ 导出成功: "导出成功",
119
+ 导出表: "导出表",
120
120
  标题: "标题",
121
121
  提交成功: "提交成功",
122
122
  全部: "全部",
@@ -318,12 +318,6 @@ export default {
318
318
  检查项: "检查项",
319
319
  任务详情: "任务详情",
320
320
  异常: "异常",
321
- 基础信息: "基础信息",
322
- 升: "升",
323
- 停: "停",
324
- 降: "降",
325
- 可设置的最大值为: "可设置的最大值为",
326
- 可设置的最小值为: "可设置的最小值为",
327
321
  年: "年",
328
322
  月: "月",
329
323
  今日: "今日",
@@ -345,6 +339,12 @@ export default {
345
339
  周四: "周四",
346
340
  周五: "周五",
347
341
  周六: "周六",
342
+ 基础信息: "基础信息",
343
+ 升: "升",
344
+ 停: "停",
345
+ 降: "降",
346
+ 可设置的最大值为: "可设置的最大值为",
347
+ 可设置的最小值为: "可设置的最小值为",
348
348
  报修位置: "报修位置",
349
349
  报修时间: "报修时间",
350
350
  实时预览: "实时预览",
@@ -482,8 +482,8 @@ export default {
482
482
  日历: "日历",
483
483
  下拉菜单: "下拉菜单",
484
484
  加载: "加载",
485
- 通知: "通知",
486
485
  消息提示: "消息提示",
486
+ 通知: "通知",
487
487
  文字提示: "文字提示",
488
488
  周: "周",
489
489
  自定义: "自定义",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/ui",
3
- "version": "6.4.0-dev.51",
3
+ "version": "6.4.0-dev.52",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -26,7 +26,7 @@
26
26
  "@antv/x6-plugin-snapline": "^2.1.7",
27
27
  "@antv/x6-plugin-transform": "^2.1.8",
28
28
  "@antv/x6-vue-shape": "^2.1.2",
29
- "@das-fed/cli": "6.4.0-dev.51",
29
+ "@das-fed/cli": "6.4.0-dev.52",
30
30
  "@element-plus/icons-vue": "^2.3.1",
31
31
  "@types/lodash": "^4.14.194",
32
32
  "@types/lodash-es": "^4.17.9",
@@ -56,9 +56,9 @@
56
56
  "vue-tsc": "^2.0.29"
57
57
  },
58
58
  "dependencies": {
59
- "@das-fed/ui": "6.4.0-dev.51",
60
- "@das-fed/utils": "6.4.0-dev.51",
61
- "@das-fed/web": "6.4.0-dev.51",
59
+ "@das-fed/ui": "6.4.0-dev.52",
60
+ "@das-fed/utils": "6.4.0-dev.52",
61
+ "@das-fed/web": "6.4.0-dev.52",
62
62
  "@wangeditor/editor": "^5.1.23",
63
63
  "@wangeditor/editor-for-vue": "^5.1.12",
64
64
  "@wangeditor/plugin-upload-attachment": "^1.1.0",
@@ -1,32 +1,32 @@
1
1
  import '@das-fed/ui/packages/business-components/upload-file/style.css';
2
- import { ref as V, computed as h, defineComponent as z, useCssVars as y, openBlock as f, createElementBlock as c, createVNode as g, unref as d, mergeProps as v, isRef as w, createCommentVNode as U, normalizeClass as k, createElementVNode as F } from "vue";
3
- import { withInstall as b } from "@das-fed/utils/with-install/index";
4
- import { DasInput as B } from "@das-fed/ui/packages/components/input/index";
2
+ import { ref as V, computed as h, defineComponent as y, useCssVars as z, openBlock as f, createElementBlock as c, createVNode as g, unref as d, mergeProps as v, isRef as w, createCommentVNode as U, normalizeClass as k, createElementVNode as B } from "vue";
3
+ import { withInstall as F } from "@das-fed/utils/with-install/index";
4
+ import { DasInput as b } from "@das-fed/ui/packages/components/input/index";
5
5
  import { DasUpload as S } from "@das-fed/ui/packages/components/upload/index";
6
- import { useCalculateSize as D, minioUpload as P, DasImageViewer as x } from "@das-fed/ui/packages/components/image-viewer/index";
7
- import { i18n as C } from "@das-fed/web/packages/i18n/index";
6
+ import { useCalculateSize as C, minioUpload as D, DasImageViewer as P } from "@das-fed/ui/packages/components/image-viewer/index";
7
+ import { i18n as x } from "@das-fed/web/packages/i18n/index";
8
8
  import { DasMessage as N } from "@das-fed/ui/packages/components/message/index";
9
9
  const I = (i, n) => {
10
- const a = V(!1), { size2B: r } = D(), { upload: u } = P(i), m = (s) => {
10
+ const a = V(!1), { size2B: r } = C(), { upload: u } = D(i), m = (t) => {
11
11
  if (i.maxSize) {
12
- const { finalSize: e, sizeText: t } = r(i.maxSize);
13
- if (s.size > e) {
14
- const o = C(`上传的文件大小不能超过${t}`).value;
15
- return N.warning(o), !1;
12
+ const { finalSize: e, sizeText: o } = r(i.maxSize);
13
+ if (t.size > e) {
14
+ const l = x(`上传的文件大小不能超过${o}`).value;
15
+ return N.warning(l), !1;
16
16
  }
17
17
  }
18
18
  return !0;
19
19
  }, p = h({
20
20
  get: () => i.modelValue,
21
- set: (s) => n("update:modelValue", s)
21
+ set: (t) => n("update:modelValue", t)
22
22
  });
23
23
  return {
24
24
  loading: a,
25
25
  imgUrl: p,
26
- uploadFile: async (s) => {
27
- if (a.value = !0, m(s)) {
28
- const e = await u(s);
29
- p.value = e, n("upload-success", s, e);
26
+ uploadFile: async (t) => {
27
+ if (a.value = !0, m(t)) {
28
+ const e = await u(t);
29
+ p.value = e, n("upload-success", t, e);
30
30
  }
31
31
  a.value = !1;
32
32
  }
@@ -34,7 +34,7 @@ const I = (i, n) => {
34
34
  }, A = { class: "das-business-file-upload" }, H = {
35
35
  key: 0,
36
36
  class: "input-box"
37
- }, W = { class: "upload-box" }, E = /* @__PURE__ */ z({
37
+ }, T = { class: "upload-box" }, W = /* @__PURE__ */ y({
38
38
  inheritAttrs: !1,
39
39
  __name: "App",
40
40
  props: {
@@ -50,22 +50,23 @@ const I = (i, n) => {
50
50
  pathPrefix: {},
51
51
  bucketName: {},
52
52
  minioTokenApi: { default: "token" },
53
+ autoContentType: { type: Boolean },
53
54
  inputProps: { default: () => ({}) },
54
55
  imageProps: { default: () => ({}) }
55
56
  },
56
57
  emits: ["update:modelValue", "upload-success"],
57
58
  setup(i, { emit: n }) {
58
- y((e) => ({
59
+ z((e) => ({
59
60
  "66b28a84": m.value,
60
61
  "52afe674": e.imageHeight
61
62
  }));
62
- const a = i, r = n, u = V([]), m = h(() => (a == null ? void 0 : a.width) ?? "100%"), { loading: p, imgUrl: l, uploadFile: s } = I(a, r);
63
- return (e, t) => (f(), c("div", A, [
63
+ const a = i, r = n, u = V([]), m = h(() => (a == null ? void 0 : a.width) ?? "100%"), { loading: p, imgUrl: s, uploadFile: t } = I(a, r);
64
+ return (e, o) => (f(), c("div", A, [
64
65
  e.type === "input" ? (f(), c("div", H, [
65
- g(d(B), v({
66
+ g(d(b), v({
66
67
  width: "100%",
67
- modelValue: d(l),
68
- "onUpdate:modelValue": t[0] || (t[0] = (o) => w(l) ? l.value = o : null),
68
+ modelValue: d(s),
69
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => w(s) ? s.value = l : null),
69
70
  "is-view": e.isView
70
71
  }, e.inputProps), null, 16, ["modelValue", "is-view"])
71
72
  ])) : U("v-if", !0),
@@ -76,10 +77,10 @@ const I = (i, n) => {
76
77
  class: k(["image-box", e.isView ? "is-view" : ""])
77
78
  },
78
79
  [
79
- g(d(x), v({
80
+ g(d(P), v({
80
81
  style: { width: e.imageWidth, height: e.imageHeight },
81
- modelValue: d(l),
82
- "onUpdate:modelValue": t[1] || (t[1] = (o) => w(l) ? l.value = o : null),
82
+ modelValue: d(s),
83
+ "onUpdate:modelValue": o[1] || (o[1] = (l) => w(s) ? s.value = l : null),
83
84
  status: "info",
84
85
  "is-view": !0
85
86
  }, e.imageProps), null, 16, ["style", "modelValue"])
@@ -87,23 +88,23 @@ const I = (i, n) => {
87
88
  2
88
89
  /* CLASS */
89
90
  )) : U("v-if", !0),
90
- F("div", W, [
91
+ B("div", T, [
91
92
  g(d(S), v({
92
93
  modelValue: u.value,
93
- "onUpdate:modelValue": t[2] || (t[2] = (o) => u.value = o),
94
+ "onUpdate:modelValue": o[2] || (o[2] = (l) => u.value = l),
94
95
  draggle: !1,
95
- onFileUpload: d(s),
96
+ onFileUpload: d(t),
96
97
  "is-view": e.isView
97
98
  }, e.$attrs), null, 16, ["modelValue", "onFileUpload", "is-view"])
98
99
  ])
99
100
  ]));
100
101
  }
101
- }), M = (i, n) => {
102
+ }), E = (i, n) => {
102
103
  const a = i.__vccOpts || i;
103
104
  for (const [r, u] of n)
104
105
  a[r] = u;
105
106
  return a;
106
- }, R = /* @__PURE__ */ M(E, [["__scopeId", "data-v-57c87228"]]), G = b(R), J = () => V(null), K = { name: "复合型文件上传 upload-file" };
107
+ }, M = /* @__PURE__ */ E(W, [["__scopeId", "data-v-57c87228"]]), G = F(M), J = () => V(null), K = { name: "复合型文件上传 upload-file" };
107
108
  export {
108
109
  G as DasBusinessUploadFile,
109
110
  J as DasBusinessUploadFileRef,
@@ -37,6 +37,9 @@ export interface Props {
37
37
  minioTokenApi?: string
38
38
 
39
39
 
40
+ autoContentType?: boolean
41
+
42
+
40
43
  inputProps?: Record<any, any>
41
44
 
42
45
 
@@ -1,5 +1,5 @@
1
1
  import '@das-fed/ui/packages/components/tree-table/style.css';
2
- import { defineComponent as fe, mergeModels as x, ref as U, useModel as he, computed as I, watch as ee, openBlock as w, createElementBlock as V, normalizeClass as ae, normalizeStyle as j, createElementVNode as $, toDisplayString as A, renderSlot as L, createCommentVNode as p, Fragment as G, renderList as J, createBlock as Q, unref as N, withCtx as F, createTextVNode as S, withDirectives as M, createVNode as W, vShow as H } from "vue";
2
+ import { defineComponent as fe, mergeModels as x, ref as U, useModel as he, computed as I, watch as ee, openBlock as w, createElementBlock as V, normalizeClass as te, normalizeStyle as j, createElementVNode as $, toDisplayString as A, renderSlot as L, createCommentVNode as p, Fragment as G, renderList as J, createBlock as Q, unref as N, withCtx as F, createTextVNode as S, withDirectives as M, createVNode as W, vShow as H } from "vue";
3
3
  import { withInstall as ce } from "@das-fed/utils/with-install/index";
4
4
  import { setThemeRule as ve } from "@das-fed/web/packages/theme/index";
5
5
  import { DasTree as ke } from "@das-fed/ui/packages/components/tree/index";
@@ -8,43 +8,43 @@ import { DasCheckbox as X } from "@das-fed/ui/packages/components/checkbox/index
8
8
  import { vOverlay as le } from "@das-fed/ui/packages/components/overlay/index";
9
9
  import { DasEmpty as ye } from "@das-fed/ui/packages/components/empty/index";
10
10
  import { DasSpin as ge } from "@das-fed/ui/packages/components/spin/index";
11
- import { treeFind as me, flatTree as te } from "@das-fed/utils/common-tools";
12
- const Ce = (n, B, r, a, y, E, k) => ({ linkCheck: (T, v, g, b, K) => {
11
+ import { treeFind as me, flatTree as ae } from "@das-fed/utils/common-tools";
12
+ const Ce = (n, B, r, t, y, E, k) => ({ linkCheck: (T, v, g, b, K) => {
13
13
  let d = null;
14
14
  if (g ? d = (i) => {
15
15
  var u, c, h;
16
16
  i[(u = r.value) == null ? void 0 : u.children] && i[(c = r.value) == null ? void 0 : c.children].length && i[(h = r.value) == null ? void 0 : h.children].forEach((o) => {
17
- d && d(o), o[v + "-targetId"] == T && n.nodeKey && !a(i, K) && !y(i) && (b[i[n.nodeKey]].data[v] = !0, b[i[n.nodeKey]].data[v + "-targetId"] = T);
17
+ d && d(o), o[v + "-targetId"] == T && n.nodeKey && !t(i, K) && !y(i) && (b[i[n.nodeKey]].data[v] = !0, b[i[n.nodeKey]].data[v + "-targetId"] = T);
18
18
  });
19
19
  } : d = (i) => {
20
20
  var u, c, h;
21
21
  i[(u = r.value) == null ? void 0 : u.children] && i[(c = r.value) == null ? void 0 : c.children].length && i[(h = r.value) == null ? void 0 : h.children].forEach((o) => {
22
- i[v + "-targetId"] == o[E.value] && n.nodeKey && !a(o, K) && !y(o) && (b[o[n.nodeKey]].data[v] = !1, b[o[n.nodeKey]].data[v + "-targetId"] = o[n.nodeKey]), d && d(o);
22
+ i[v + "-targetId"] == o[E.value] && n.nodeKey && !t(o, K) && !y(o) && (b[o[n.nodeKey]].data[v] = !1, b[o[n.nodeKey]].data[v + "-targetId"] = o[n.nodeKey]), d && d(o);
23
23
  });
24
24
  }, k.value && k.value.length)
25
25
  for (let i = 0; i < k.value.length; i++)
26
26
  d && d(k.value[i]);
27
- } }), pe = (n, B, r, a, y, E, k) => ({ linkCheck: (T, v, g, b, K) => {
27
+ } }), pe = (n, B, r, t, y, E, k) => ({ linkCheck: (T, v, g, b, K) => {
28
28
  let d = null;
29
29
  if (g ? d = (i) => {
30
30
  var u, c, h;
31
31
  i[(u = r.value) == null ? void 0 : u.children] && i[(c = r.value) == null ? void 0 : c.children].length && i[(h = r.value) == null ? void 0 : h.children].forEach((o) => {
32
- i[v + "-targetId"] == o[E.value] && n.nodeKey && (!a(o, K) && !y(o) && (b[o[n.nodeKey]].data[v] = !0), b[o[n.nodeKey]].data[v + "-targetId"] = o.id), d && d(o);
32
+ i[v + "-targetId"] == o[E.value] && n.nodeKey && (!t(o, K) && !y(o) && (b[o[n.nodeKey]].data[v] = !0), b[o[n.nodeKey]].data[v + "-targetId"] = o.id), d && d(o);
33
33
  });
34
34
  } : d = (i) => {
35
35
  var u, c, h;
36
36
  i[(u = r.value) == null ? void 0 : u.children] && i[(c = r.value) == null ? void 0 : c.children].length && i[(h = r.value) == null ? void 0 : h.children].forEach((o) => {
37
- d && d(o), o[v + "-targetId"] == T && n.nodeKey && (!a(i, K) && !y(i) && (b[i[n.nodeKey]].data[v] = !1), b[i[n.nodeKey]].data[v + "-targetId"] = T);
37
+ d && d(o), o[v + "-targetId"] == T && n.nodeKey && (!t(i, K) && !y(i) && (b[i[n.nodeKey]].data[v] = !1), b[i[n.nodeKey]].data[v + "-targetId"] = T);
38
38
  });
39
39
  }, k.value && k.value.length)
40
40
  for (let i = 0; i < k.value.length; i++)
41
41
  d && d(k.value[i]);
42
- } }), we = (n, B, r, a, y, E, k) => ({ linkCheck: (T, v, g, b, K) => {
42
+ } }), we = (n, B, r, t, y, E, k) => ({ linkCheck: (T, v, g, b, K) => {
43
43
  let d = null;
44
44
  if (g ? d = (i) => {
45
45
  var u, c, h;
46
46
  i[(u = r.value) == null ? void 0 : u.children] && i[(c = r.value) == null ? void 0 : c.children].length && i[(h = r.value) == null ? void 0 : h.children].forEach((o) => {
47
- i[v + "-targetId"] == o[E.value] && n.nodeKey && (!a(o, K) && !y(o) && (b[o[n.nodeKey]].data[v] = !0), b[o[n.nodeKey]].data[v + "-targetId"] = o.id), d && d(o);
47
+ i[v + "-targetId"] == o[E.value] && n.nodeKey && (!t(o, K) && !y(o) && (b[o[n.nodeKey]].data[v] = !0), b[o[n.nodeKey]].data[v + "-targetId"] = o.id), d && d(o);
48
48
  });
49
49
  } : d = (i) => {
50
50
  var u, c, h;
@@ -59,7 +59,7 @@ const Ce = (n, B, r, a, y, E, k) => ({ linkCheck: (T, v, g, b, K) => {
59
59
  key: 0,
60
60
  class: "table-label"
61
61
  }, Ie = {
62
- class: /* @__PURE__ */ ae(["table-body", "das-tree-box"])
62
+ class: /* @__PURE__ */ te(["table-body", "das-tree-box"])
63
63
  }, Ve = { class: "tree-node" }, $e = { class: "tree-node" }, Ne = { class: "first-column" }, Ee = { class: "title" }, De = { class: "tree-node" }, Ae = { class: "tree-node" }, Be = { class: "first-column" }, Re = { class: "title" }, Fe = {
64
64
  name: "DasTreeTable",
65
65
  inheritAttrs: !1
@@ -93,108 +93,109 @@ const Ce = (n, B, r, a, y, E, k) => ({ linkCheck: (T, v, g, b, K) => {
93
93
  }),
94
94
  emits: /* @__PURE__ */ x(["update:data", "update:keyword", "all-check", "item-check"], ["update:keyword"]),
95
95
  setup(n, { expose: B, emit: r }) {
96
- const a = n, y = r, E = U(), k = he(n, "keyword"), D = I(() => {
96
+ const t = n, y = r, E = U(), k = he(n, "keyword"), D = I(() => {
97
97
  var e;
98
- return a.checkNum ?? ((e = a.checkboxLabels) == null ? void 0 : e.length) ?? 0;
99
- }), T = I(() => a != null && a.height ? a.height + "px" : "100%"), v = I(() => {
100
- if (a != null && a.height) {
101
- if (typeof a.height == "string") {
102
- if (a.height.includes("%")) return;
103
- if (a.height.includes("px")) return Number(a.height.replace("px", ""));
98
+ return t.checkNum ?? ((e = t.checkboxLabels) == null ? void 0 : e.length) ?? 0;
99
+ }), T = I(() => t != null && t.height ? t.height + "px" : "100%"), v = I(() => {
100
+ if (t != null && t.height) {
101
+ if (typeof t.height == "string") {
102
+ if (t.height.includes("%")) return;
103
+ if (t.height.includes("px")) return Number(t.height.replace("px", ""));
104
104
  }
105
- return a.height;
105
+ return t.height;
106
106
  }
107
107
  }), g = I(() => {
108
- const e = { ...a.props };
108
+ const e = { ...t.props };
109
109
  return e != null && e.disabled && delete e.disabled, e != null && e.hidden && delete e.hidden, e != null && e.parentId && delete e.parentId, { label: "name", children: "children", disabled: "disabled", isLeaf: "leaf", ...e };
110
110
  }), b = I(() => {
111
111
  var e;
112
- return ((e = a.props) == null ? void 0 : e.parentId) ?? "parentId";
112
+ return ((e = t.props) == null ? void 0 : e.parentId) ?? "parentId";
113
113
  }), K = I(() => {
114
- var t, l, s, f, C, R;
114
+ var a, l, s, f, C, R;
115
115
  let e = [];
116
- return (t = a.props) != null && t.disabled && ((l = a.props) != null && l.disabled.length) ? ((s = a.props) != null && s.disabled[0] ? e[0] = (f = a.props) == null ? void 0 : f.disabled[0] : e[0] = "disabled1", (C = a.props) != null && C.disabled[1] ? e[1] = (R = a.props) == null ? void 0 : R.disabled[1] : e[1] = "disabled2") : e = ["disabled1", "disabled2"], e;
117
- }), d = (e, t) => typeof K.value[t] == "function" ? K.value[t](e, t) : e[K.value[t]], i = I(() => {
116
+ return (a = t.props) != null && a.disabled && ((l = t.props) != null && l.disabled.length) ? ((s = t.props) != null && s.disabled[0] ? e[0] = (f = t.props) == null ? void 0 : f.disabled[0] : e[0] = "disabled1", (C = t.props) != null && C.disabled[1] ? e[1] = (R = t.props) == null ? void 0 : R.disabled[1] : e[1] = "disabled2") : e = ["disabled1", "disabled2"], e;
117
+ }), d = (e, a) => typeof K.value[a] == "function" ? K.value[a](e, a) : e[K.value[a]], i = I(() => {
118
118
  var e;
119
- return ((e = a.props) == null ? void 0 : e.hidden) ?? "hidden";
119
+ return ((e = t.props) == null ? void 0 : e.hidden) ?? "hidden";
120
120
  }), u = (e) => typeof i.value == "function" ? i.value(e) : e[i.value], c = U(), h = U([!1, !1]), o = U([!1, !1]), m = I({
121
- get: () => a.data,
121
+ get: () => t.data,
122
122
  set: (e) => y("update:data", e)
123
123
  }), Y = (e) => {
124
- const t = {};
124
+ const a = {};
125
125
  return Array.isArray(e) && e.forEach((l) => {
126
126
  const s = { data: l };
127
- t[l.id] = s, Array.isArray(l[g.value.children]) && Object.assign(t, Y(l[g.value.children]));
128
- }), t;
129
- }, Z = () => Y(m.value), _ = (e, t, l) => {
130
- a.allCheckboxDisabled[l] || (e > 0 && t > 0 ? (h.value[l] = !1, o.value[l] = !0) : e == 0 && t >= 0 ? (h.value[l] = !1, o.value[l] = !1) : (h.value[l] = !0, o.value[l] = !1));
127
+ a[l.id] = s, Array.isArray(l[g.value.children]) && Object.assign(a, Y(l[g.value.children]));
128
+ }), a;
129
+ }, Z = () => Y(m.value), _ = (e, a, l) => {
130
+ t.allCheckboxDisabled[l] || (e > 0 && a > 0 ? (h.value[l] = !1, o.value[l] = !0) : e == 0 && a >= 0 ? (h.value[l] = !1, o.value[l] = !1) : (h.value[l] = !0, o.value[l] = !1));
131
131
  }, ie = (e) => {
132
- const t = g.value.children;
132
+ const a = g.value.children;
133
133
  let l = [];
134
- l = te(m.value, t);
134
+ l = ae(m.value, a);
135
135
  for (let s = 0; s < D.value; s++) {
136
136
  let f = 0, C = 0;
137
137
  l.forEach((R) => {
138
- d(R, s) || u(R) || (R[a.checkboxLabels[s]] ? f++ : C++);
138
+ d(R, s) || u(R) || (R[t.checkboxLabels[s]] ? f++ : C++);
139
139
  }), _(f, C, s);
140
140
  }
141
141
  }, { linkCheck: oe } = Ce(
142
- a,
142
+ t,
143
143
  y,
144
144
  g,
145
145
  d,
146
146
  u,
147
147
  b,
148
148
  m
149
- ), { linkCheck: se } = pe(a, y, g, d, u, b, m), { linkCheck: de } = we(
150
- a,
149
+ ), { linkCheck: se } = pe(t, y, g, d, u, b, m), { linkCheck: de } = we(
150
+ t,
151
151
  y,
152
152
  g,
153
153
  d,
154
154
  u,
155
155
  b,
156
156
  m
157
- ), ne = (e, t, l, s, f) => a.linkageType === "custom" ? void 0 : {
157
+ ), ne = (e, a, l, s, f) => t.linkageType === "custom" ? void 0 : {
158
158
  first: oe,
159
159
  two: se,
160
160
  three: de
161
- }[a.linkageType](e, t, l, s, f), z = (e, t) => {
162
- y("all-check", e, t), h.value[t] = e, o.value[t] = !1;
161
+ }[t.linkageType](e, a, l, s, f), z = (e, a) => {
162
+ y("all-check", e, a), h.value[a] = e, o.value[a] = !1;
163
163
  const l = Z();
164
164
  if (l)
165
165
  for (let s in l)
166
- !d(l[s].data, t) && !u(l[s].data) && (l[s].data[a.checkboxLabels[t]] = e, delete l[s].data[a.checkboxLabels[t] + "-targetId"]);
167
- if (a.twoLinkFirstCheck) {
166
+ !d(l[s].data, a) && !u(l[s].data) && (l[s].data[t.checkboxLabels[a]] = e, delete l[s].data[t.checkboxLabels[a] + "-targetId"]);
167
+ if (t.twoLinkFirstCheck) {
168
168
  if (e) {
169
- if (t === 1) {
170
- if (a.allCheckboxDisabled[t - 1]) return;
171
- z(e, t - 1);
169
+ if (a === 1) {
170
+ if (t.allCheckboxDisabled[a - 1]) return;
171
+ z(e, a - 1);
172
172
  }
173
- } else if (t === 0) {
174
- if (a.allCheckboxDisabled[t + 1]) return;
175
- z(e, t + 1);
173
+ } else if (a === 0) {
174
+ if (t.allCheckboxDisabled[a + 1]) return;
175
+ z(e, a + 1);
176
176
  }
177
177
  }
178
178
  }, ue = I(() => {
179
179
  let e = [];
180
180
  if (!m.value || !m.value.length) return e;
181
- const t = g.value.children;
182
- return e = te(m.value, t).filter(
181
+ const a = g.value.children;
182
+ return e = ae(m.value, a).filter(
183
183
  (s) => s[g.value.label].toLowerCase().includes(k.value.toLowerCase())
184
184
  ), e;
185
185
  }), q = I(() => {
186
+ var a;
186
187
  let e = !1;
187
- return m.value.length || (e = !0), k.value && !ue.value.length && (e = !0), e;
188
+ return (!m.value || !m.value.length) && (e = !0), k.value && !((a = ue.value) != null && a.length) && (e = !0), e;
188
189
  }), re = () => new Promise((e) => {
189
- const t = () => {
190
+ const a = () => {
190
191
  var l;
191
192
  if ((l = c.value) != null && l.treeRef) return e(!0);
192
- setTimeout(() => t(), 50);
193
+ setTimeout(() => a(), 50);
193
194
  };
194
- t();
195
+ a();
195
196
  }), P = async () => {
196
- var e, t;
197
- await re(), (t = (e = c.value) == null ? void 0 : e.treeRef) == null || t.filter(k.value);
197
+ var e, a;
198
+ await re(), (a = (e = c.value) == null ? void 0 : e.treeRef) == null || a.filter(k.value);
198
199
  };
199
200
  ee(
200
201
  () => m.value,
@@ -209,10 +210,10 @@ const Ce = (n, B, r, a, y, E, k) => ({ linkCheck: (T, v, g, b, K) => {
209
210
  },
210
211
  { immediate: !0 }
211
212
  );
212
- const O = (e, t, l) => {
213
- y("item-check", e, t, l);
214
- const s = Z(), f = a.checkboxLabels[l];
215
- s && (s[t[a.nodeKey]].data[f + "-targetId"] = t[a.nodeKey], s[t[a.nodeKey]].data[f] = e), ne(t[a.nodeKey], f, e, s, l), a.twoLinkFirstCheck && (e ? l === 1 && !d(t, l - 1) && !u(t) && O(e, t, l - 1) : l === 0 && !d(t, l + 1) && !u(t) && O(e, t, l + 1));
213
+ const O = (e, a, l) => {
214
+ y("item-check", e, a, l);
215
+ const s = Z(), f = t.checkboxLabels[l];
216
+ s && (s[a[t.nodeKey]].data[f + "-targetId"] = a[t.nodeKey], s[a[t.nodeKey]].data[f] = e), ne(a[t.nodeKey], f, e, s, l), t.twoLinkFirstCheck && (e ? l === 1 && !d(a, l - 1) && !u(a) && O(e, a, l - 1) : l === 0 && !d(a, l + 1) && !u(a) && O(e, a, l + 1));
216
217
  };
217
218
  return B({
218
219
  $treeTableBody: c,
@@ -224,12 +225,12 @@ const Ce = (n, B, r, a, y, E, k) => ({ linkCheck: (T, v, g, b, K) => {
224
225
  setCheck: O,
225
226
  /** 手动联动全选;参数trueNum,falseNum,index */
226
227
  linkAllCheck: _
227
- }), (e, t) => (w(), V(
228
+ }), (e, a) => (w(), V(
228
229
  "div",
229
230
  {
230
231
  ref_key: "dasTreeTableRef",
231
232
  ref: E,
232
- class: ae(["das-ui-tree-table", e.border ? "is-border" : ""]),
233
+ class: te(["das-ui-tree-table", e.border ? "is-border" : ""]),
233
234
  style: j({ height: T.value })
234
235
  },
235
236
  [
@@ -314,7 +315,7 @@ const Ce = (n, B, r, a, y, E, k) => ({ linkCheck: (T, v, g, b, K) => {
314
315
  node: s,
315
316
  data: l
316
317
  }, () => [
317
- t[0] || (t[0] = S("icon"))
318
+ a[0] || (a[0] = S("icon"))
318
319
  ], !0) : p("v-if", !0),
319
320
  L(e.$slots, "title", {
320
321
  node: s,
@@ -408,7 +409,7 @@ const Ce = (n, B, r, a, y, E, k) => ({ linkCheck: (T, v, g, b, K) => {
408
409
  node: s,
409
410
  data: l
410
411
  }, () => [
411
- t[1] || (t[1] = S("icon"))
412
+ a[1] || (a[1] = S("icon"))
412
413
  ], !0) : p("v-if", !0),
413
414
  L(e.$slots, "title", {
414
415
  node: s,
@@ -495,7 +496,7 @@ const Ce = (n, B, r, a, y, E, k) => ({ linkCheck: (T, v, g, b, K) => {
495
496
  size: "small",
496
497
  spinning: e.loading
497
498
  }, {
498
- default: F(() => t[2] || (t[2] = [
499
+ default: F(() => a[2] || (a[2] = [
499
500
  $(
500
501
  "div",
501
502
  { style: { width: "100%", height: "100%" } },
@@ -517,10 +518,10 @@ const Ce = (n, B, r, a, y, E, k) => ({ linkCheck: (T, v, g, b, K) => {
517
518
  }
518
519
  }), Oe = (n, B) => {
519
520
  const r = n.__vccOpts || n;
520
- for (const [a, y] of B)
521
- r[a] = y;
521
+ for (const [t, y] of B)
522
+ r[t] = y;
522
523
  return r;
523
- }, Se = /* @__PURE__ */ Oe(Me, [["__scopeId", "data-v-dcc8bd7a"]]), Ue = {
524
+ }, Se = /* @__PURE__ */ Oe(Me, [["__scopeId", "data-v-e42f2ada"]]), Ue = {
524
525
  "--das-ui-tree-table-highlight-color": "#5582f3",
525
526
  "--das-ui-tree-table-header-color": "#212121",
526
527
  "--das-ui-tree-table-header-bg-color": "#F2F2F2",
@@ -1 +1 @@
1
- .das-ui-tree-table[data-v-dcc8bd7a]{display:flex;flex-direction:column}.das-ui-tree-table.is-border[data-v-dcc8bd7a]{border:1px solid var(--das-ui-tree-table-border-color)}.das-ui-tree-table .table-header[data-v-dcc8bd7a]{height:32px;display:flex;align-items:center;background:var(--das-ui-tree-table-header-bg-color);border-bottom:1px solid var(--das-ui-tree-table-border-color);box-sizing:border-box}.das-ui-tree-table .table-header .title[data-v-dcc8bd7a]{flex:1;min-width:0}.das-ui-tree-table .table-header .table-label[data-v-dcc8bd7a]{font-size:12px;color:var(--das-ui-tree-table-header-color)}.das-ui-tree-table .table-body[data-v-dcc8bd7a]{flex:1;min-height:0}.das-ui-tree-table .table-body .tree-node[data-v-dcc8bd7a]{flex:1;min-width:0;display:flex;align-items:center}.das-ui-tree-table .table-body .tree-node .first-column[data-v-dcc8bd7a]{flex:1;min-width:0}.das-ui-tree-table .table-body .tree-node .first-column .title.is-highlight[data-v-dcc8bd7a]{color:var(--das-ui-tree-table-highlight-color)}.das-ui-tree-table .das-ui-tree[data-v-dcc8bd7a] .el-tree-node.is-current:not([aria-disabled=true])>.el-tree-node__content{color:var(--das-ui-tree-node-active-font-color);background-color:var(--das-ui-tree-node-active-bg-color)}.das-ui-tree-table .das-ui-tree[data-v-dcc8bd7a] .el-tree-node.is-current:not([aria-disabled=true])>.el-tree-node__content .el-tree-node__expand-icon:not(.is-leaf){color:var(--das-ui-tree-node-active-font-color)}.das-ui-tree-table .das-ui-tree[data-v-dcc8bd7a] .el-tree-node .el-tree-node__content,.das-ui-tree-table .das-ui-tree[data-v-dcc8bd7a] .el-tree-node .el-tree-node__content .el-tree-node__label{width:100%}
1
+ .das-ui-tree-table[data-v-e42f2ada]{display:flex;flex-direction:column}.das-ui-tree-table.is-border[data-v-e42f2ada]{border:1px solid var(--das-ui-tree-table-border-color)}.das-ui-tree-table .table-header[data-v-e42f2ada]{height:32px;display:flex;align-items:center;background:var(--das-ui-tree-table-header-bg-color);border-bottom:1px solid var(--das-ui-tree-table-border-color);box-sizing:border-box}.das-ui-tree-table .table-header .title[data-v-e42f2ada]{flex:1;min-width:0}.das-ui-tree-table .table-header .table-label[data-v-e42f2ada]{font-size:12px;color:var(--das-ui-tree-table-header-color)}.das-ui-tree-table .table-body[data-v-e42f2ada]{flex:1;min-height:0}.das-ui-tree-table .table-body .tree-node[data-v-e42f2ada]{flex:1;min-width:0;display:flex;align-items:center}.das-ui-tree-table .table-body .tree-node .first-column[data-v-e42f2ada]{flex:1;min-width:0}.das-ui-tree-table .table-body .tree-node .first-column .title.is-highlight[data-v-e42f2ada]{color:var(--das-ui-tree-table-highlight-color)}.das-ui-tree-table .das-ui-tree[data-v-e42f2ada] .el-tree-node.is-current:not([aria-disabled=true])>.el-tree-node__content{color:var(--das-ui-tree-node-active-font-color);background-color:var(--das-ui-tree-node-active-bg-color)}.das-ui-tree-table .das-ui-tree[data-v-e42f2ada] .el-tree-node.is-current:not([aria-disabled=true])>.el-tree-node__content .el-tree-node__expand-icon:not(.is-leaf){color:var(--das-ui-tree-node-active-font-color)}.das-ui-tree-table .das-ui-tree[data-v-e42f2ada] .el-tree-node .el-tree-node__content,.das-ui-tree-table .das-ui-tree[data-v-e42f2ada] .el-tree-node .el-tree-node__content .el-tree-node__label{width:100%}