@das-fed/ui 6.4.0-dev.52 → 6.4.0-dev.54
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/esm-map.json +3 -1
- package/i18n-collection/en.js +407 -406
- package/i18n-collection/zh-CN.js +437 -437
- package/package.json +5 -5
- package/packages/business-components/app-container/index.d.ts +1 -0
- package/packages/business-components/app-container/index.js +152 -120
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/app-container/src/index.vue.d.ts +1 -0
- package/packages/business-components/app-container/src/style-theme.d.ts +18 -0
- package/packages/business-components/app-container/src/type.d.ts +1 -0
- package/packages/business-components/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/app-container/theme/index.d.ts +1 -0
- package/packages/business-components/change-enterprises/i18n/index.d.ts +15 -0
- package/packages/business-components/change-enterprises/index.js +51 -45
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/i18n/index.d.ts +77 -1
- package/packages/business-components/change-pwd/index.js +118 -99
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/i18n/index.d.ts +19 -0
- package/packages/business-components/currency-page/index.js +27 -20
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +767 -0
- package/packages/business-components/device-panel/index.js +4961 -4767
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/export-button/i18n/index.d.ts +51 -0
- package/packages/business-components/export-button/index.js +117 -102
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +103 -0
- package/packages/business-components/import-button/index.js +220 -192
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +27 -0
- package/packages/business-components/model-table-dialog/index.js +663 -660
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +48 -16
- package/packages/business-components/model-table-dialog/style.css +1 -1
- package/packages/business-components/model-table-dialog/style.css.gz +0 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +114 -1
- package/packages/business-components/process-configuration/index.js +158 -130
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/api-service/formPreView.d.ts +7 -0
- package/packages/business-components/process-form/apis.d.ts +1 -0
- package/packages/business-components/process-form/i18n/index.d.ts +279 -0
- package/packages/business-components/process-form/index.js +1170 -1071
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/src/widgets/store.d.ts +1 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-log/i18n/index.d.ts +33 -1
- package/packages/business-components/process-log/index.js +151 -146
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +39 -0
- package/packages/business-components/process-search-form/index.d.ts +2 -2
- package/packages/business-components/process-search-form/index.js +420 -389
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/src/App.vue.d.ts +2 -2
- package/packages/business-components/process-search-form/src/type.d.ts +1 -1
- package/packages/business-components/process-table/i18n/index.d.ts +35 -0
- package/packages/business-components/process-table/index.js +265 -254
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/upload-file/i18n/index.d.ts +7 -0
- package/packages/business-components/upload-file/index.js +26 -22
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +331 -0
- package/packages/business-components/urgent-panel/index.js +900 -814
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +53 -1
- package/packages/business-components/user-org-dialog/index.js +196 -186
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +71 -0
- package/packages/business-components/video-dialog/index.js +199 -179
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/button/i18n/index.d.ts +1 -6
- package/packages/components/button/index.js +16 -21
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +52 -44
- package/packages/components/calendar/index.js +77 -75
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/i18n/index.d.ts +7 -0
- package/packages/components/cascader/index.js +38 -35
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/color-picker/i18n/index.d.ts +7 -0
- package/packages/components/color-picker/index.js +37 -34
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/custom-search-item/i18n/index.d.ts +7 -0
- package/packages/components/custom-search-item/index.js +27 -24
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/i18n/index.d.ts +15 -0
- package/packages/components/date-picker/index.js +81 -76
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/i18n/index.d.ts +6 -6
- package/packages/components/dialog/index.js +58 -58
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/i18n/index.d.ts +43 -0
- package/packages/components/dimple-layout/index.js +1077 -1064
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/i18n/index.d.ts +7 -0
- package/packages/components/dropdown/index.js +32 -29
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/empty/index.js +14 -16
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/image-upload/i18n/index.d.ts +27 -3
- package/packages/components/image-upload/index.js +84 -78
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/i18n/index.d.ts +31 -0
- package/packages/components/image-viewer/index.js +246 -237
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/i18n/index.d.ts +15 -0
- package/packages/components/input/index.js +50 -45
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-dialog-select/i18n/index.d.ts +1 -1
- package/packages/components/input-dialog-select/index.js +20 -23
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/live-player/i18n/index.d.ts +15 -0
- package/packages/components/live-player/index.js +15 -9
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/i18n/index.d.ts +7 -0
- package/packages/components/loading/index.js +93 -90
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +23 -0
- package/packages/components/map/index.js +355 -347
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/i18n/index.d.ts +7 -0
- package/packages/components/menu-aside/index.js +221 -212
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-aside/src/style-theme.d.ts +5 -0
- package/packages/components/menu-aside/style.css +1 -1
- package/packages/components/menu-aside/style.css.gz +0 -0
- package/packages/components/menu-aside/theme/base.d.ts +1 -0
- package/packages/components/menu-header/index.js +32 -26
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/menu-header/src/style-theme.d.ts +5 -0
- package/packages/components/menu-header/theme/base.d.ts +1 -0
- package/packages/components/message/i18n/index.d.ts +7 -0
- package/packages/components/message/index.js +17 -14
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/i18n/index.d.ts +7 -0
- package/packages/components/notification/index.js +10 -7
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/i18n/index.d.ts +19 -0
- package/packages/components/pagination/index.js +81 -75
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/i18n/index.d.ts +2 -2
- package/packages/components/preview/i18n/index.d.ts +1 -1
- package/packages/components/preview/index.js +1 -1
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/rich-editor/i18n/index.d.ts +10 -3
- package/packages/components/rich-editor/index.js +4 -3
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/search/i18n/index.d.ts +25 -1
- package/packages/components/search/index.js +31 -28
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +23 -0
- package/packages/components/select/index.js +204 -197
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/i18n/index.d.ts +4 -4
- package/packages/components/select-list/index.js +4 -4
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -4
- package/packages/components/special-range-picker-month/index.js +15 -15
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -3
- package/packages/components/special-range-picker-year/index.js +81 -81
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/i18n/index.d.ts +7 -0
- package/packages/components/spin/index.js +35 -32
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +72 -2
- package/packages/components/table/index.js +1245 -1225
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/tabs/i18n/index.d.ts +15 -0
- package/packages/components/tabs/index.js +70 -65
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/time-line/i18n/index.d.ts +1 -1
- package/packages/components/time-line/index.js +6 -9
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tooltip/i18n/index.d.ts +7 -0
- package/packages/components/tooltip/index.js +38 -35
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +35 -0
- package/packages/components/tree/index.js +692 -682
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/upload/i18n/index.d.ts +5 -5
- package/packages/components/upload/index.js +50 -50
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +7 -0
- package/packages/components/virtual-tree/index.js +35 -31
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/icons/edit-3/index.d.ts +1 -0
- package/packages/icons/edit-3/index.js +17 -0
- package/packages/icons/edit-3/index.js.gz +0 -0
- package/packages/icons/edit-3/index.vue.d.ts +16 -0
- package/packages/icons/index.d.ts +2 -0
- package/packages/icons/index.js +2 -0
- package/packages/icons/right-3/index.d.ts +1 -0
- package/packages/icons/right-3/index.js +17 -0
- package/packages/icons/right-3/index.js.gz +0 -0
- package/packages/icons/right-3/index.vue.d.ts +16 -0
|
Binary file
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/tabs/style.css';
|
|
2
2
|
import { withInstall as J } from "@das-fed/utils/with-install/index";
|
|
3
3
|
import { setThemeRule as Q } from "@das-fed/web/packages/theme/index";
|
|
4
|
-
import { ref as w, computed as u, onMounted as X, defineComponent as Y, openBlock as i, createBlock as
|
|
4
|
+
import { ref as w, computed as u, onMounted as X, defineComponent as Y, openBlock as i, createBlock as z, unref as r, mergeProps as U, createSlots as j, withCtx as b, renderSlot as y, createCommentVNode as c, createElementBlock as f, Fragment as g, renderList as V, normalizeStyle as Z, withDirectives as B, createTextVNode as L, toDisplayString as $, createVNode as ee, createElementVNode as te, normalizeClass as ae } from "vue";
|
|
5
5
|
import { DasIcon as oe } from "@das-fed/ui/packages/components/icon/index";
|
|
6
6
|
import { vDasTooltip as I } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
7
7
|
import { Tabs as se, TabPane as le } from "ant-design-vue";
|
|
8
8
|
import "ant-design-vue/es/tabs/style/css";
|
|
9
9
|
import { ElPopover as re } from "element-plus";
|
|
10
10
|
import "element-plus/es/components/popover/style/css";
|
|
11
|
-
import { t as R } from "@das-fed/web/packages/i18n/index";
|
|
12
|
-
const
|
|
11
|
+
import { t as R, setI18nRule as ne } from "@das-fed/web/packages/i18n/index";
|
|
12
|
+
const ie = (a) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(a), D = (a) => {
|
|
13
13
|
if (a)
|
|
14
|
-
return typeof a == "string" &&
|
|
15
|
-
},
|
|
16
|
-
const e = w({}),
|
|
14
|
+
return typeof a == "string" && ie(a) ? a : a + "px";
|
|
15
|
+
}, de = (a, h) => {
|
|
16
|
+
const e = w({}), m = w([
|
|
17
17
|
{
|
|
18
18
|
key: "all",
|
|
19
19
|
name: R("关闭全部页签"),
|
|
@@ -35,25 +35,25 @@ const ne = (a) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)
|
|
|
35
35
|
return k[(E = a.defualtProps) == null ? void 0 : E.key] === l[(x = a.defualtProps) == null ? void 0 : x.key];
|
|
36
36
|
}) === o.length - 1
|
|
37
37
|
}
|
|
38
|
-
]),
|
|
38
|
+
]), C = u(() => a.constomMenuList && a.constomMenuList.length ? a.constomMenuList : m.value), F = u(() => {
|
|
39
39
|
let o;
|
|
40
|
-
return a.width && (o =
|
|
40
|
+
return a.width && (o = D(a.width)), o;
|
|
41
41
|
}), T = u(() => {
|
|
42
42
|
let o = a.type === "lattice" ? "65px" : void 0;
|
|
43
|
-
return a.tabWidth && (o =
|
|
43
|
+
return a.tabWidth && (o = D(a.tabWidth)), o;
|
|
44
44
|
}), S = u(() => {
|
|
45
45
|
let o;
|
|
46
|
-
return a.tabMaxWidth && (o =
|
|
46
|
+
return a.tabMaxWidth && (o = D(a.tabMaxWidth)), o;
|
|
47
47
|
}), A = w(!1), v = w(), M = (o) => {
|
|
48
48
|
Object.keys(e.value).forEach((l) => {
|
|
49
49
|
(A.value || l != o) && (e.value[l] = !1);
|
|
50
50
|
});
|
|
51
|
-
},
|
|
51
|
+
}, p = (o) => {
|
|
52
52
|
const l = o.target.parentElement;
|
|
53
53
|
A.value = !l.classList.contains("ant-tabs-tab-btn");
|
|
54
54
|
}, O = (o, l) => {
|
|
55
55
|
var P;
|
|
56
|
-
|
|
56
|
+
h("menuClick", o, l), (P = v.value) != null && P.length && v.value.forEach((k) => {
|
|
57
57
|
k.hide();
|
|
58
58
|
});
|
|
59
59
|
};
|
|
@@ -63,17 +63,17 @@ const ne = (a) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)
|
|
|
63
63
|
(l = a.defualtProps) != null && l.key && (e.value[o[a.defualtProps.key]] = !1);
|
|
64
64
|
});
|
|
65
65
|
}), {
|
|
66
|
-
realWidth:
|
|
67
|
-
realMenuList:
|
|
66
|
+
realWidth: F,
|
|
67
|
+
realMenuList: C,
|
|
68
68
|
realTabWidth: T,
|
|
69
69
|
realTabMaxWidth: S,
|
|
70
70
|
tabsMenuPoppver: v,
|
|
71
71
|
poppverVisible: e,
|
|
72
72
|
menuClick: O,
|
|
73
73
|
beforeEnter: M,
|
|
74
|
-
onContextmenu:
|
|
74
|
+
onContextmenu: p
|
|
75
75
|
};
|
|
76
|
-
},
|
|
76
|
+
}, K = {
|
|
77
77
|
"--das-ui-tabs-color": {
|
|
78
78
|
kjl: "#666666",
|
|
79
79
|
ssl: "#999999",
|
|
@@ -84,13 +84,13 @@ const ne = (a) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)
|
|
|
84
84
|
ssl: "#161834",
|
|
85
85
|
cjb: "#FAFAFA"
|
|
86
86
|
}
|
|
87
|
-
},
|
|
87
|
+
}, ue = {
|
|
88
88
|
key: 1,
|
|
89
89
|
class: "das-tab-label"
|
|
90
|
-
},
|
|
90
|
+
}, ce = { class: "das-tabs-contextmenu-list" }, fe = ["onClick"], be = {
|
|
91
91
|
key: 1,
|
|
92
92
|
style: { position: "relative", top: "-5px", "font-size": "18px" }
|
|
93
|
-
},
|
|
93
|
+
}, ve = "#666666", ye = "#D9D9D9", he = /* @__PURE__ */ Y({
|
|
94
94
|
inheritAttrs: !1,
|
|
95
95
|
__name: "Tabs",
|
|
96
96
|
props: {
|
|
@@ -120,14 +120,14 @@ const ne = (a) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)
|
|
|
120
120
|
hideOverflow: { type: Boolean }
|
|
121
121
|
},
|
|
122
122
|
emits: ["update:activeKey", "tabClick", "menuClick"],
|
|
123
|
-
setup(a, { emit:
|
|
124
|
-
const e = a,
|
|
123
|
+
setup(a, { emit: h }) {
|
|
124
|
+
const e = a, m = w(), C = (t) => {
|
|
125
125
|
var d;
|
|
126
|
-
v("tabClick", t), (d =
|
|
127
|
-
},
|
|
126
|
+
v("tabClick", t), (d = m.value) == null || d.$el.click();
|
|
127
|
+
}, F = u({
|
|
128
128
|
get: () => e.activeKey ?? "",
|
|
129
129
|
set: (t) => v("update:activeKey", t)
|
|
130
|
-
}), T = u(() => e.options.filter((d) => !d.hidden)), S = (t) => e.isStrict ? !!(t.contentSlot && t[e.defualtProps.key] ===
|
|
130
|
+
}), T = u(() => e.options.filter((d) => !d.hidden)), S = (t) => e.isStrict ? !!(t.contentSlot && t[e.defualtProps.key] === F.value) : !!t.contentSlot, A = u(() => e.moreIconType ? e.moreIconType : e.type === "lattice" ? "default" : "arrow"), v = h, M = u(() => e.type === "lattice" ? "line" : e.type), p = u(() => {
|
|
131
131
|
if (e.type === "card")
|
|
132
132
|
return e.size ? e.size : "large";
|
|
133
133
|
if (e.type === "line")
|
|
@@ -142,19 +142,19 @@ const ne = (a) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)
|
|
|
142
142
|
if (k.value || E.value) return "0";
|
|
143
143
|
if (e.type === "line") return "0 20px";
|
|
144
144
|
if (e.type === "card") {
|
|
145
|
-
if (
|
|
146
|
-
if (
|
|
145
|
+
if (p.value === "large") return "0 40px";
|
|
146
|
+
if (p.value === "medium" || p.value === "small") return "0 24px";
|
|
147
147
|
}
|
|
148
148
|
if (e.type === "lattice") return "0 20px";
|
|
149
149
|
}), P = u(() => {
|
|
150
150
|
const t = {};
|
|
151
|
-
return e.theme !== "default" && Object.keys(
|
|
152
|
-
t[d] =
|
|
151
|
+
return e.theme !== "default" && Object.keys(K).forEach((d) => {
|
|
152
|
+
t[d] = K[d][e.theme];
|
|
153
153
|
}), {
|
|
154
154
|
...e.tabsStyle,
|
|
155
|
-
"--das-ui-tabs-color":
|
|
155
|
+
"--das-ui-tabs-color": ve,
|
|
156
156
|
"--das-ui-tabs-bg-color": O,
|
|
157
|
-
"--das-ui-tabs-border-color":
|
|
157
|
+
"--das-ui-tabs-border-color": ye,
|
|
158
158
|
"---das-ui-tabs-tab-width": k.value,
|
|
159
159
|
"---das-ui-tabs-tab-max-width": E.value,
|
|
160
160
|
"---das-ui-tabs-tab-padding": l.value,
|
|
@@ -170,41 +170,41 @@ const ne = (a) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)
|
|
|
170
170
|
realMenuList: q,
|
|
171
171
|
poppverVisible: W,
|
|
172
172
|
beforeEnter: H,
|
|
173
|
-
onContextmenu:
|
|
174
|
-
} =
|
|
175
|
-
return (t, d) => T.value && T.value.length ? (i(),
|
|
173
|
+
onContextmenu: N
|
|
174
|
+
} = de(e, v);
|
|
175
|
+
return (t, d) => T.value && T.value.length ? (i(), z(r(se), U({
|
|
176
176
|
key: 0,
|
|
177
177
|
ref_key: "tabsContainerRef",
|
|
178
|
-
ref:
|
|
179
|
-
class: ["das-tabs", t.type,
|
|
178
|
+
ref: m,
|
|
179
|
+
class: ["das-tabs", t.type, p.value, t.hideOverflow ? "hide-overflow" : ""],
|
|
180
180
|
style: P.value,
|
|
181
181
|
type: M.value,
|
|
182
182
|
hideAdd: t.hideAdd,
|
|
183
|
-
activeKey:
|
|
184
|
-
"onUpdate:activeKey": d[1] || (d[1] = (s) =>
|
|
185
|
-
}, t.$attrs, { onTabClick:
|
|
183
|
+
activeKey: F.value,
|
|
184
|
+
"onUpdate:activeKey": d[1] || (d[1] = (s) => F.value = s)
|
|
185
|
+
}, t.$attrs, { onTabClick: C }), j({
|
|
186
186
|
moreIcon: b(() => [
|
|
187
187
|
y(t.$slots, "moreIcon", {}, () => [
|
|
188
|
-
A.value === "arrow" ? (i(),
|
|
188
|
+
A.value === "arrow" ? (i(), z(r(oe), {
|
|
189
189
|
key: 0,
|
|
190
190
|
icon: "fold",
|
|
191
191
|
size: "small",
|
|
192
192
|
"icon-color": "rgb(102, 102, 102)"
|
|
193
193
|
})) : c("v-if", !0),
|
|
194
|
-
A.value === "default" ? (i(), f("div",
|
|
194
|
+
A.value === "default" ? (i(), f("div", be, "...")) : c("v-if", !0)
|
|
195
195
|
], !0)
|
|
196
196
|
]),
|
|
197
197
|
default: b(() => [
|
|
198
198
|
(i(!0), f(
|
|
199
199
|
g,
|
|
200
200
|
null,
|
|
201
|
-
|
|
201
|
+
V(T.value, (s) => (i(), z(r(le), {
|
|
202
202
|
style: Z({ width: r(x) }),
|
|
203
203
|
key: s[t.defualtProps.key],
|
|
204
204
|
tab: void 0,
|
|
205
205
|
disabled: s.disabled,
|
|
206
206
|
forceRender: s.forceRender
|
|
207
|
-
},
|
|
207
|
+
}, j({
|
|
208
208
|
tab: b(() => [
|
|
209
209
|
c(" 无右键菜单 "),
|
|
210
210
|
t.contextmenu ? (i(), f(
|
|
@@ -212,7 +212,7 @@ const ne = (a) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)
|
|
|
212
212
|
{ key: 1 },
|
|
213
213
|
[
|
|
214
214
|
c(" 有右键菜单 "),
|
|
215
|
-
ee(r(re),
|
|
215
|
+
ee(r(re), U({
|
|
216
216
|
ref_for: !0,
|
|
217
217
|
ref_key: "tabsMenuPoppver",
|
|
218
218
|
ref: G,
|
|
@@ -228,17 +228,17 @@ const ne = (a) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)
|
|
|
228
228
|
}), {
|
|
229
229
|
reference: b(() => [
|
|
230
230
|
c(" @slot 自定义选项卡头显示文字"),
|
|
231
|
-
s.tabSlot ? y(t.$slots, s.tabSlot, { key: 0 }, void 0, !0) :
|
|
231
|
+
s.tabSlot ? y(t.$slots, s.tabSlot, { key: 0 }, void 0, !0) : B((i(), f(
|
|
232
232
|
"div",
|
|
233
233
|
{
|
|
234
234
|
key: 1,
|
|
235
235
|
class: "das-tab-label",
|
|
236
236
|
onContextmenu: d[0] || (d[0] = //@ts-ignore
|
|
237
|
-
(...n) => r(
|
|
237
|
+
(...n) => r(N) && r(N)(...n))
|
|
238
238
|
},
|
|
239
239
|
[
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
L(
|
|
241
|
+
$(s[t.defualtProps.tab]),
|
|
242
242
|
1
|
|
243
243
|
/* TEXT */
|
|
244
244
|
)
|
|
@@ -250,28 +250,28 @@ const ne = (a) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)
|
|
|
250
250
|
])
|
|
251
251
|
]),
|
|
252
252
|
default: b(() => [
|
|
253
|
-
te("ul",
|
|
253
|
+
te("ul", ce, [
|
|
254
254
|
(i(!0), f(
|
|
255
255
|
g,
|
|
256
256
|
null,
|
|
257
|
-
|
|
257
|
+
V(r(q), (n) => (i(), f(
|
|
258
258
|
g,
|
|
259
259
|
null,
|
|
260
260
|
[
|
|
261
|
-
(typeof n.hidden == "function" ? !n.hidden(t.options, s) : !n.hidden) ?
|
|
261
|
+
(typeof n.hidden == "function" ? !n.hidden(t.options, s) : !n.hidden) ? B((i(), f("li", {
|
|
262
262
|
key: n.key,
|
|
263
263
|
class: ae([
|
|
264
264
|
"das-tabs-contextmenu-item",
|
|
265
265
|
(typeof n.disabled == "function" ? n.disabled(t.options, s) : n.disabled) ? "is-disabled" : ""
|
|
266
266
|
]),
|
|
267
|
-
onClick: (
|
|
267
|
+
onClick: (Ce) => r(_)(n, s)
|
|
268
268
|
}, [
|
|
269
|
-
|
|
270
|
-
|
|
269
|
+
L(
|
|
270
|
+
$(n.name),
|
|
271
271
|
1
|
|
272
272
|
/* TEXT */
|
|
273
273
|
)
|
|
274
|
-
], 10,
|
|
274
|
+
], 10, fe)), [
|
|
275
275
|
[r(I)]
|
|
276
276
|
]) : c("v-if", !0)
|
|
277
277
|
],
|
|
@@ -294,9 +294,9 @@ const ne = (a) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)
|
|
|
294
294
|
{ key: 0 },
|
|
295
295
|
[
|
|
296
296
|
c(" @slot 自定义选项卡头显示文字"),
|
|
297
|
-
s.tabSlot ? y(t.$slots, s.tabSlot, { key: 0 }, void 0, !0) :
|
|
298
|
-
|
|
299
|
-
|
|
297
|
+
s.tabSlot ? y(t.$slots, s.tabSlot, { key: 0 }, void 0, !0) : B((i(), f("div", ue, [
|
|
298
|
+
L(
|
|
299
|
+
$(s[t.defualtProps.tab]),
|
|
300
300
|
1
|
|
301
301
|
/* TEXT */
|
|
302
302
|
)
|
|
@@ -355,12 +355,12 @@ const ne = (a) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)
|
|
|
355
355
|
} : void 0
|
|
356
356
|
]), 1040, ["class", "style", "type", "hideAdd", "activeKey"])) : c("v-if", !0);
|
|
357
357
|
}
|
|
358
|
-
}), me = (a,
|
|
358
|
+
}), me = (a, h) => {
|
|
359
359
|
const e = a.__vccOpts || a;
|
|
360
|
-
for (const [
|
|
361
|
-
e[
|
|
360
|
+
for (const [m, C] of h)
|
|
361
|
+
e[m] = C;
|
|
362
362
|
return e;
|
|
363
|
-
}, pe = /* @__PURE__ */ me(
|
|
363
|
+
}, pe = /* @__PURE__ */ me(he, [["__scopeId", "data-v-1b6336e0"]]), ke = {
|
|
364
364
|
"--das-ui-tabs-active-color": "#5582F3",
|
|
365
365
|
"--das-ui-tabs-menu-color": "#212121",
|
|
366
366
|
"--das-ui-tabs-menu-hover-bg-color": "#F5F5F5",
|
|
@@ -371,10 +371,15 @@ const ne = (a) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)
|
|
|
371
371
|
"--das-ui-edit-tabs-bg-color": "#FAFAFA",
|
|
372
372
|
"--das-ui-card-tabs-bg-color": "#F5F5F5",
|
|
373
373
|
"--das-ui-card-tabs-active-color": "#5582F3"
|
|
374
|
+
}, ge = {
|
|
375
|
+
关闭全部页签: { "zh-CN": "关闭全部页签", en: "Close all tabs" },
|
|
376
|
+
关闭其他页签: { "zh-CN": "关闭其他页签", en: "Close other tabs" },
|
|
377
|
+
关闭右侧页签: { "zh-CN": "关闭右侧页签", en: "Close right tabs" }
|
|
374
378
|
};
|
|
375
|
-
|
|
376
|
-
|
|
379
|
+
ne(ge);
|
|
380
|
+
Q(ke);
|
|
381
|
+
const ze = J(pe), Be = { name: "Tabs 页签" };
|
|
377
382
|
export {
|
|
378
|
-
|
|
379
|
-
|
|
383
|
+
ze as DasTabs,
|
|
384
|
+
Be as default
|
|
380
385
|
};
|
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/time-line/style.css';
|
|
2
2
|
import { withInstall as T } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { defineComponent as $, provide as A, reactive as E, openBlock as d, createElementBlock as I, createVNode as w, unref as k, mergeProps as B, withCtx as u, renderSlot as o, ref as F, inject as S, onMounted as W, createBlock as
|
|
3
|
+
import { defineComponent as $, provide as A, reactive as E, openBlock as d, createElementBlock as I, createVNode as w, unref as k, mergeProps as B, withCtx as u, renderSlot as o, ref as F, inject as S, onMounted as W, createBlock as z, createElementVNode as i, normalizeStyle as L } from "vue";
|
|
4
4
|
import "ant-design-vue/es/timeline/style/css";
|
|
5
|
-
import { Timeline as
|
|
5
|
+
import { Timeline as P, TimelineItem as R } from "ant-design-vue";
|
|
6
6
|
import { setI18nRule as V } from "@das-fed/web/packages/i18n/index";
|
|
7
7
|
import { setThemeRule as j } from "@das-fed/web/packages/theme/index";
|
|
8
8
|
const M = { class: "das-ui-time-line" }, O = /* @__PURE__ */ $({
|
|
@@ -14,7 +14,7 @@ const M = { class: "das-ui-time-line" }, O = /* @__PURE__ */ $({
|
|
|
14
14
|
},
|
|
15
15
|
setup(a) {
|
|
16
16
|
return A("DasForm", E({ props: a })), (l, n) => (d(), I("div", M, [
|
|
17
|
-
w(k(
|
|
17
|
+
w(k(P), B(l.$attrs, {
|
|
18
18
|
class: ["timeline-layout", "timeline-layout-" + l.layoutType, { "top-through": l.isThrough }]
|
|
19
19
|
}), {
|
|
20
20
|
default: u(() => [
|
|
@@ -77,7 +77,7 @@ const M = { class: "das-ui-time-line" }, O = /* @__PURE__ */ $({
|
|
|
77
77
|
`
|
|
78
78
|
));
|
|
79
79
|
}
|
|
80
|
-
}), (t, r) => (d(),
|
|
80
|
+
}), (t, r) => (d(), z(
|
|
81
81
|
k(R),
|
|
82
82
|
B({
|
|
83
83
|
ref_key: "$timelineitem",
|
|
@@ -91,7 +91,7 @@ const M = { class: "das-ui-time-line" }, O = /* @__PURE__ */ $({
|
|
|
91
91
|
{
|
|
92
92
|
key: 1,
|
|
93
93
|
class: "das-timeline-dot-custom",
|
|
94
|
-
style:
|
|
94
|
+
style: L({ "background-color": t.color })
|
|
95
95
|
},
|
|
96
96
|
null,
|
|
97
97
|
4
|
|
@@ -124,10 +124,7 @@ const M = { class: "das-ui-time-line" }, O = /* @__PURE__ */ $({
|
|
|
124
124
|
));
|
|
125
125
|
}
|
|
126
126
|
}), Q = /* @__PURE__ */ C(K, [["__scopeId", "data-v-3fe8b33b"]]), U = {
|
|
127
|
-
"demo-msg": {
|
|
128
|
-
"zh-CN": "这是第一个示例路由页面",
|
|
129
|
-
en: "This is Demo Page"
|
|
130
|
-
}
|
|
127
|
+
"demo-msg": { "zh-CN": "这是第一个示例路由页面", en: "This is the first sample route page" }
|
|
131
128
|
}, X = {
|
|
132
129
|
"--demo-alert-bg": {
|
|
133
130
|
light: "#fff",
|
|
Binary file
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/tooltip/style.css';
|
|
2
|
-
import { defineComponent as D, useCssVars as E, ref as c, computed as u, onMounted as L, onBeforeMount as
|
|
3
|
-
import { setThemeRule as
|
|
4
|
-
import { t as
|
|
5
|
-
import { withInstall as
|
|
6
|
-
import { vScrollbar as
|
|
7
|
-
import { ElTooltip as
|
|
2
|
+
import { defineComponent as D, useCssVars as E, ref as c, computed as u, onMounted as L, onBeforeMount as N, openBlock as s, createBlock as _, unref as C, mergeProps as z, withCtx as x, withDirectives as I, createElementBlock as n, normalizeClass as b, renderSlot as $, Fragment as P, createTextVNode as V, toDisplayString as k, createCommentVNode as M, normalizeStyle as W } from "vue";
|
|
3
|
+
import { setThemeRule as q } from "@das-fed/web/packages/theme/index";
|
|
4
|
+
import { setI18nRule as F, t as X } from "@das-fed/web/packages/i18n/index";
|
|
5
|
+
import { withInstall as Y } from "@das-fed/utils/with-install/index";
|
|
6
|
+
import { vScrollbar as O } from "@das-fed/ui/packages/components/scrollbar/index";
|
|
7
|
+
import { ElTooltip as j } from "element-plus";
|
|
8
8
|
import "element-plus/es/components/tooltip/style/css";
|
|
9
9
|
import "@das-fed/ui/packages/global/theme";
|
|
10
|
-
const
|
|
10
|
+
const A = ["innerHTML"], G = { key: 1 }, J = /* @__PURE__ */ D({
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: {
|
|
13
13
|
selfPopperClass: { default: "" },
|
|
@@ -22,15 +22,15 @@ const j = ["innerHTML"], A = { key: 1 }, G = /* @__PURE__ */ D({
|
|
|
22
22
|
isMaxheight: { type: Boolean, default: !0 }
|
|
23
23
|
},
|
|
24
24
|
emits: ["show", "hide"],
|
|
25
|
-
setup(
|
|
25
|
+
setup(i, { expose: d, emit: r }) {
|
|
26
26
|
E((e) => ({
|
|
27
|
-
"731a99c6":
|
|
27
|
+
"731a99c6": T.value
|
|
28
28
|
}));
|
|
29
|
-
const t =
|
|
29
|
+
const t = i, a = r, f = c(), m = c(!1), T = u(() => Number(t.row)), B = u(() => t.disabled ?? (t.text ? !m.value : !1)), h = u(() => t.content || t.text), H = (e) => {
|
|
30
30
|
m.value = e.target.scrollHeight > e.target.clientHeight;
|
|
31
|
-
}, S = (e) => {
|
|
32
|
-
a("show", e);
|
|
33
31
|
}, R = (e) => {
|
|
32
|
+
a("show", e);
|
|
33
|
+
}, S = (e) => {
|
|
34
34
|
a("hide", e), window.removeEventListener("wheel", v);
|
|
35
35
|
}, v = (e) => {
|
|
36
36
|
var y;
|
|
@@ -42,35 +42,35 @@ const j = ["innerHTML"], A = { key: 1 }, G = /* @__PURE__ */ D({
|
|
|
42
42
|
o && g >= p.left && g <= p.right && w >= p.top && w <= p.bottom || (y = f.value) == null || y.hide();
|
|
43
43
|
};
|
|
44
44
|
return L(() => {
|
|
45
|
-
}),
|
|
45
|
+
}), N(() => {
|
|
46
46
|
window.removeEventListener("wheel", v);
|
|
47
47
|
}), d({
|
|
48
48
|
$tooltipRef: f
|
|
49
|
-
}), (e, l) => (s(),
|
|
49
|
+
}), (e, l) => (s(), _(C(j), z({
|
|
50
50
|
ref_key: "$tooltipRef",
|
|
51
51
|
ref: f,
|
|
52
52
|
class: "das-ui-tooltip",
|
|
53
|
-
disabled:
|
|
53
|
+
disabled: B.value,
|
|
54
54
|
effect: e.effect,
|
|
55
55
|
"popper-class": `das-ui-tooltip-popper ${e.isMaxheight ? "max-height" : ""} ${e.selfPopperClass}`,
|
|
56
56
|
"hide-after": 100,
|
|
57
57
|
"show-after": 100,
|
|
58
|
-
onShow:
|
|
59
|
-
onHide:
|
|
58
|
+
onShow: R,
|
|
59
|
+
onHide: S
|
|
60
60
|
}, e.$attrs), {
|
|
61
61
|
content: x(() => [
|
|
62
|
-
|
|
62
|
+
I((s(), n(
|
|
63
63
|
"div",
|
|
64
64
|
{
|
|
65
65
|
class: b({ "max-height": e.isMaxheight, "das-popper-content": !0 })
|
|
66
66
|
},
|
|
67
67
|
[
|
|
68
68
|
$(e.$slots, "content", {}, void 0, !0),
|
|
69
|
-
h.value && !e.$slots.content ? (s(),
|
|
70
|
-
|
|
69
|
+
h.value && !e.$slots.content ? (s(), n(
|
|
70
|
+
P,
|
|
71
71
|
{ key: 0 },
|
|
72
72
|
[
|
|
73
|
-
|
|
73
|
+
V(
|
|
74
74
|
k(h.value),
|
|
75
75
|
1
|
|
76
76
|
/* TEXT */
|
|
@@ -83,26 +83,26 @@ const j = ["innerHTML"], A = { key: 1 }, G = /* @__PURE__ */ D({
|
|
|
83
83
|
2
|
|
84
84
|
/* CLASS */
|
|
85
85
|
)), [
|
|
86
|
-
[C(
|
|
86
|
+
[C(O)]
|
|
87
87
|
])
|
|
88
88
|
]),
|
|
89
89
|
default: x(() => [
|
|
90
90
|
$(e.$slots, "default", {}, () => [
|
|
91
|
-
e.text ? (s(),
|
|
91
|
+
e.text ? (s(), n(
|
|
92
92
|
"div",
|
|
93
93
|
{
|
|
94
94
|
key: 0,
|
|
95
95
|
onMouseenter: l[0] || (l[0] = (o) => H(o)),
|
|
96
96
|
class: b(`das-tooltip-text-wrap ${e.customClass}`),
|
|
97
|
-
style:
|
|
97
|
+
style: W({ width: t.textWidth })
|
|
98
98
|
},
|
|
99
99
|
[
|
|
100
|
-
e.textHtml ? (s(),
|
|
100
|
+
e.textHtml ? (s(), n("div", {
|
|
101
101
|
key: 0,
|
|
102
102
|
innerHTML: e.text
|
|
103
|
-
}, null, 8,
|
|
103
|
+
}, null, 8, A)) : (s(), n(
|
|
104
104
|
"div",
|
|
105
|
-
|
|
105
|
+
G,
|
|
106
106
|
k(e.text),
|
|
107
107
|
1
|
|
108
108
|
/* TEXT */
|
|
@@ -117,20 +117,23 @@ const j = ["innerHTML"], A = { key: 1 }, G = /* @__PURE__ */ D({
|
|
|
117
117
|
/* FORWARDED */
|
|
118
118
|
}, 16, ["disabled", "effect", "popper-class"]));
|
|
119
119
|
}
|
|
120
|
-
}),
|
|
121
|
-
const r =
|
|
120
|
+
}), K = (i, d) => {
|
|
121
|
+
const r = i.__vccOpts || i;
|
|
122
122
|
for (const [t, a] of d)
|
|
123
123
|
r[t] = a;
|
|
124
124
|
return r;
|
|
125
|
-
},
|
|
125
|
+
}, Q = /* @__PURE__ */ K(J, [["__scopeId", "data-v-b5a9d25e"]]), U = {
|
|
126
126
|
"--das-ui-tooltip-font-normal": "#212121",
|
|
127
127
|
"--das-ui-tooltip-font-light": "#fff",
|
|
128
128
|
"--das-ui-tooltip-bgff-color": "#fff"
|
|
129
|
+
}, Z = {
|
|
130
|
+
文字提示: { "zh-CN": "文字提示", en: "Text prompt" }
|
|
129
131
|
};
|
|
130
|
-
F(
|
|
131
|
-
|
|
132
|
+
F(Z);
|
|
133
|
+
q(U);
|
|
134
|
+
const ae = () => c(null), pe = Y(Q), de = { name: `Tooltip ${X("文字提示")}` };
|
|
132
135
|
export {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
+
pe as DasTooltip,
|
|
137
|
+
ae as DasTooltipRef,
|
|
138
|
+
de as default
|
|
136
139
|
};
|
|
Binary file
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
新增同级: {
|
|
3
|
+
"zh-CN": string;
|
|
4
|
+
en: string;
|
|
5
|
+
};
|
|
6
|
+
新增子级: {
|
|
7
|
+
"zh-CN": string;
|
|
8
|
+
en: string;
|
|
9
|
+
};
|
|
10
|
+
编辑: {
|
|
11
|
+
"zh-CN": string;
|
|
12
|
+
en: string;
|
|
13
|
+
};
|
|
14
|
+
删除: {
|
|
15
|
+
"zh-CN": string;
|
|
16
|
+
en: string;
|
|
17
|
+
};
|
|
18
|
+
请选择: {
|
|
19
|
+
"zh-CN": string;
|
|
20
|
+
en: string;
|
|
21
|
+
};
|
|
22
|
+
暂无数据: {
|
|
23
|
+
"zh-CN": string;
|
|
24
|
+
en: string;
|
|
25
|
+
};
|
|
26
|
+
未查询到相关数据: {
|
|
27
|
+
"zh-CN": string;
|
|
28
|
+
en: string;
|
|
29
|
+
};
|
|
30
|
+
换个关键词试试吧: {
|
|
31
|
+
"zh-CN": string;
|
|
32
|
+
en: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export default _default;
|