@das-fed/ui 6.4.0-dev.54.7 → 6.4.0-dev.54.9
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/package.json +5 -5
- package/packages/business-components/change-enterprises/i18n/index.d.ts +3 -3
- package/packages/business-components/change-pwd/i18n/index.d.ts +26 -34
- package/packages/business-components/change-pwd/index.js +66 -65
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +172 -0
- package/packages/business-components/device-panel/index.js +331 -261
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/export-button/i18n/index.d.ts +16 -20
- package/packages/business-components/export-button/index.js +88 -86
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +34 -30
- package/packages/business-components/import-button/index.js +148 -144
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +6 -6
- package/packages/business-components/model-table-dialog/index.js +82 -83
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +17 -49
- 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 +37 -29
- package/packages/business-components/process-configuration/index.js +103 -92
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/i18n/index.d.ts +109 -69
- package/packages/business-components/process-form/index.js +691 -672
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/i18n/index.d.ts +4 -0
- package/packages/business-components/process-log/index.js +29 -28
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +9 -9
- package/packages/business-components/process-search-form/index.js +2 -2
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/i18n/index.d.ts +8 -8
- package/packages/business-components/process-table/index.js +36 -36
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/upload-file/i18n/index.d.ts +2 -2
- package/packages/business-components/upload-file/index.js +45 -42
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +28 -0
- package/packages/business-components/urgent-panel/index.js +595 -576
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +7 -3
- package/packages/business-components/user-org-dialog/index.js +92 -91
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +29 -17
- package/packages/business-components/video-dialog/index.js +116 -113
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/button/index.js +54 -56
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/image-upload/i18n/index.d.ts +9 -21
- package/packages/components/image-upload/index.js +92 -92
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/i18n/index.d.ts +1 -30
- package/packages/components/image-viewer/index.js +213 -219
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/i18n/index.d.ts +3 -3
- package/packages/components/input/index.js +1 -1
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-dialog-select/i18n/index.d.ts +1 -6
- package/packages/components/input-dialog-select/index.js +49 -51
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/live-player/i18n/index.d.ts +3 -7
- package/packages/components/live-player/index.js +7 -5
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/live-player/style.css +1 -1
- package/packages/components/loading/i18n/index.d.ts +1 -1
- package/packages/components/loading/index.js +1 -3
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +7 -11
- package/packages/components/map/index.js +168 -167
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/i18n/index.d.ts +1 -1
- package/packages/components/menu-aside/index.js +1 -3
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/i18n/index.d.ts +1 -1
- package/packages/components/message/index.js +1 -3
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/i18n/index.d.ts +1 -1
- package/packages/components/notification/index.js +1 -3
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/i18n/index.d.ts +8 -8
- package/packages/components/pagination/index.js +124 -124
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.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 -3
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/search/index.js +26 -36
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search/style.css +1 -1
- package/packages/components/search/style.css.gz +0 -0
- package/packages/components/{search → search-form}/i18n/index.d.ts +6 -10
- package/packages/components/search-form/index.js +426 -418
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/spin/i18n/index.d.ts +1 -1
- package/packages/components/spin/index.js +1 -3
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +19 -19
- package/packages/components/table/index.js +7 -7
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tabs/i18n/index.d.ts +3 -3
- package/packages/components/time-line/index.js +36 -40
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tooltip/i18n/index.d.ts +1 -1
- package/packages/components/tooltip/index.js +1 -3
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +8 -12
- package/packages/components/tree/index.js +137 -135
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/App.vue.d.ts +9 -27
- package/packages/components/upload/i18n/index.d.ts +5 -5
- package/packages/components/upload/index.js +1 -1
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +1 -1
- package/packages/components/virtual-tree/index.js +1 -3
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/i18n-collection/en.js +0 -537
- package/i18n-collection/zh-CN.js +0 -537
- package/packages/components/button/i18n/index.d.ts +0 -2
- package/packages/components/time-line/i18n/index.d.ts +0 -7
|
Binary file
|
|
@@ -1574,9 +1574,7 @@ const er = ["src"], He = /* @__PURE__ */ de({
|
|
|
1574
1574
|
"--das-ui-layout-aside-collapse-icon-hover-bg-color": "#5582F3",
|
|
1575
1575
|
"--das-ui-layout-aside-divise-border-color": "rgba(255, 255, 255, 0.3)",
|
|
1576
1576
|
"--das-ui-layout-aside-menu-expired-color": "#BBBBBB"
|
|
1577
|
-
}, Ir = {
|
|
1578
|
-
已到期: { "zh-CN": "已到期", en: "Expired" }
|
|
1579
|
-
};
|
|
1577
|
+
}, Ir = { 已到期: { "zh-CN": "已到期", en: "Expired" } };
|
|
1580
1578
|
Ge(Ir);
|
|
1581
1579
|
an(Er);
|
|
1582
1580
|
const Jr = Le(Dr), Yr = { title: "Menu-Aside 垂直导航栏" };
|
|
Binary file
|
|
@@ -96,9 +96,7 @@ const S = {
|
|
|
96
96
|
"--das-ui-message-error-bg-color": "#FFDBE0",
|
|
97
97
|
"--das-ui-message-error-color": "#FB2323",
|
|
98
98
|
"--das-ui-message-error-bd-color": "##FFADB6"
|
|
99
|
-
}, B = {
|
|
100
|
-
消息提示: { "zh-CN": "消息提示", en: "Message prompt" }
|
|
101
|
-
};
|
|
99
|
+
}, B = { 消息提示: { "zh-CN": "消息提示", en: "Message prompt" } };
|
|
102
100
|
w(B);
|
|
103
101
|
F(S);
|
|
104
102
|
const E = r;
|
|
Binary file
|
|
@@ -56,9 +56,7 @@ const m = {
|
|
|
56
56
|
"--das-ui-notification-primary-bg-color": "#5582f3",
|
|
57
57
|
"--das-ui-notification-close-hover-color": "#85b8ff",
|
|
58
58
|
"--das-ui-notification-close-color": "#666666;"
|
|
59
|
-
}, r = {
|
|
60
|
-
通知: { "zh-CN": "通知", en: "Notification" }
|
|
61
|
-
};
|
|
59
|
+
}, r = { 通知: { "zh-CN": "通知", en: "Notification" } };
|
|
62
60
|
c(r);
|
|
63
61
|
o(e);
|
|
64
62
|
const g = { name: `Notification ${s("通知")}` };
|
|
Binary file
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
第: {
|
|
3
|
+
'zh-CN': string;
|
|
4
4
|
en: string;
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
页: {
|
|
7
|
+
'zh-CN': string;
|
|
8
8
|
en: string;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
'pagination-total_page': {
|
|
11
|
+
'zh-CN': string;
|
|
12
12
|
en: string;
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
'pagination-items_per_page': {
|
|
15
|
+
'zh-CN': string;
|
|
16
16
|
en: string;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/pagination/style.css';
|
|
2
|
-
import { defineComponent as
|
|
2
|
+
import { defineComponent as E, openBlock as c, createElementBlock as C, createElementVNode as S, ref as M, computed as g, createBlock as B, withCtx as z, createVNode as m, Fragment as L, renderList as q, normalizeClass as h, createTextVNode as G, toDisplayString as b, unref as l, reactive as H, watch as J, onMounted as K, nextTick as Q, createCommentVNode as N, mergeProps as W, isRef as V, renderSlot as X } from "vue";
|
|
3
3
|
import { withInstall as Y } from "@das-fed/utils/with-install/index";
|
|
4
|
-
import { DasAutoRegisterIcon as Z, DasIcon as
|
|
4
|
+
import { DasAutoRegisterIcon as Z, DasIcon as D } from "@das-fed/ui/packages/components/icon/index";
|
|
5
5
|
import { ElConfigProvider as ee, ElPagination as ae } from "element-plus";
|
|
6
6
|
import "element-plus/es/components/pagination/style/css";
|
|
7
7
|
import { useModelValue as A } from "@das-fed/utils/vue";
|
|
8
8
|
import te from "element-plus/dist/locale/zh-cn.mjs";
|
|
9
|
-
import { ElIcon as
|
|
9
|
+
import { ElIcon as le, ElDropdownItem as oe, ElDropdownMenu as ne, ElDropdown as se } from "element-plus/es";
|
|
10
10
|
import "element-plus/es/components/base/style/css";
|
|
11
11
|
import "element-plus/es/components/dropdown/style/css";
|
|
12
12
|
import "element-plus/es/components/dropdown-menu/style/css";
|
|
13
13
|
import "element-plus/es/components/dropdown-item/style/css";
|
|
14
14
|
import "element-plus/es/components/icon/style/css";
|
|
15
|
-
import { t as
|
|
15
|
+
import { t as $, setI18nRule as ie } from "@das-fed/web/packages/i18n/index";
|
|
16
16
|
import { setThemeRule as re } from "@das-fed/web/packages/theme/index";
|
|
17
17
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
18
|
-
var
|
|
18
|
+
var pe = /* @__PURE__ */ E({
|
|
19
19
|
name: "ArrowDown",
|
|
20
20
|
__name: "arrow-down",
|
|
21
|
-
setup(
|
|
22
|
-
return (
|
|
21
|
+
setup(v) {
|
|
22
|
+
return (f, s) => (c(), C("svg", {
|
|
23
23
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24
24
|
viewBox: "0 0 1024 1024"
|
|
25
25
|
}, [
|
|
26
|
-
|
|
26
|
+
S("path", {
|
|
27
27
|
fill: "currentColor",
|
|
28
28
|
d: "M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"
|
|
29
29
|
})
|
|
30
30
|
]));
|
|
31
31
|
}
|
|
32
|
-
}),
|
|
32
|
+
}), ue = pe;
|
|
33
33
|
const ce = { class: "sizes-dropdown-link" }, de = { class: "current-page-size" }, ge = {
|
|
34
34
|
name: "DasPaginationSizes"
|
|
35
|
-
},
|
|
35
|
+
}, me = /* @__PURE__ */ E({
|
|
36
36
|
...ge,
|
|
37
37
|
props: {
|
|
38
38
|
pageSizes: { default: () => [20, 50, 100] },
|
|
39
39
|
pageSize: { default: 20 }
|
|
40
40
|
},
|
|
41
41
|
emits: ["update:pageSize", "size-change"],
|
|
42
|
-
setup(
|
|
43
|
-
const s =
|
|
42
|
+
setup(v, { emit: f }) {
|
|
43
|
+
const s = v, o = f, p = M(!1), n = g({
|
|
44
44
|
get: () => s.pageSize,
|
|
45
|
-
set: (
|
|
46
|
-
|
|
45
|
+
set: (r) => {
|
|
46
|
+
o("update:pageSize", r);
|
|
47
47
|
}
|
|
48
|
-
}),
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
n.value =
|
|
48
|
+
}), I = (r) => {
|
|
49
|
+
p.value = r;
|
|
50
|
+
}, P = (r) => {
|
|
51
|
+
n.value = r, o("size-change", r);
|
|
52
52
|
};
|
|
53
|
-
return (
|
|
54
|
-
const
|
|
55
|
-
return
|
|
53
|
+
return (r, k) => {
|
|
54
|
+
const y = le, e = oe, d = ne, u = se;
|
|
55
|
+
return c(), B(u, {
|
|
56
56
|
"popper-class": "pagination-sizes-popper",
|
|
57
57
|
trigger: "click",
|
|
58
|
-
onVisibleChange:
|
|
59
|
-
onCommand:
|
|
58
|
+
onVisibleChange: I,
|
|
59
|
+
onCommand: P
|
|
60
60
|
}, {
|
|
61
|
-
dropdown:
|
|
62
|
-
|
|
63
|
-
default:
|
|
64
|
-
(
|
|
61
|
+
dropdown: z(() => [
|
|
62
|
+
m(d, null, {
|
|
63
|
+
default: z(() => [
|
|
64
|
+
(c(!0), C(
|
|
65
65
|
L,
|
|
66
66
|
null,
|
|
67
|
-
q(
|
|
68
|
-
class:
|
|
69
|
-
key:
|
|
70
|
-
command:
|
|
67
|
+
q(r.pageSizes, (_) => (c(), B(e, {
|
|
68
|
+
class: h(["sizes-item", _ === r.pageSize ? "selected" : ""]),
|
|
69
|
+
key: _,
|
|
70
|
+
command: _
|
|
71
71
|
}, {
|
|
72
|
-
default:
|
|
72
|
+
default: z(() => [
|
|
73
73
|
G(
|
|
74
|
-
|
|
74
|
+
b(l($)("pagination-items_per_page", _)),
|
|
75
75
|
1
|
|
76
76
|
/* TEXT */
|
|
77
77
|
)
|
|
@@ -87,20 +87,20 @@ const ce = { class: "sizes-dropdown-link" }, de = { class: "current-page-size" }
|
|
|
87
87
|
/* STABLE */
|
|
88
88
|
})
|
|
89
89
|
]),
|
|
90
|
-
default:
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
default: z(() => [
|
|
91
|
+
S("span", ce, [
|
|
92
|
+
S(
|
|
93
93
|
"span",
|
|
94
94
|
de,
|
|
95
|
-
|
|
95
|
+
b(l($)("pagination-items_per_page", n.value)),
|
|
96
96
|
1
|
|
97
97
|
/* TEXT */
|
|
98
98
|
),
|
|
99
|
-
|
|
100
|
-
class:
|
|
99
|
+
m(y, {
|
|
100
|
+
class: h(["arrow-icon", p.value ? "rotate180" : ""])
|
|
101
101
|
}, {
|
|
102
|
-
default:
|
|
103
|
-
|
|
102
|
+
default: z(() => [
|
|
103
|
+
m(l(ue))
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
106
|
/* STABLE */
|
|
@@ -112,35 +112,35 @@ const ce = { class: "sizes-dropdown-link" }, de = { class: "current-page-size" }
|
|
|
112
112
|
});
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
}),
|
|
116
|
-
const s =
|
|
117
|
-
for (const [
|
|
118
|
-
s[
|
|
115
|
+
}), T = (v, f) => {
|
|
116
|
+
const s = v.__vccOpts || v;
|
|
117
|
+
for (const [o, p] of f)
|
|
118
|
+
s[o] = p;
|
|
119
119
|
return s;
|
|
120
|
-
},
|
|
120
|
+
}, ve = /* @__PURE__ */ T(me, [["__scopeId", "data-v-5b7b2982"]]), fe = { class: "total-page" }, _e = {
|
|
121
121
|
name: "TotalPage"
|
|
122
|
-
}, ze = /* @__PURE__ */
|
|
122
|
+
}, ze = /* @__PURE__ */ E({
|
|
123
123
|
..._e,
|
|
124
124
|
props: {
|
|
125
125
|
totalPage: {}
|
|
126
126
|
},
|
|
127
|
-
setup(
|
|
128
|
-
return (
|
|
127
|
+
setup(v) {
|
|
128
|
+
return (f, s) => (c(), C(
|
|
129
129
|
"div",
|
|
130
130
|
fe,
|
|
131
|
-
|
|
131
|
+
b(l($)("pagination-total_page", f.totalPage)),
|
|
132
132
|
1
|
|
133
133
|
/* TEXT */
|
|
134
134
|
));
|
|
135
135
|
}
|
|
136
|
-
}),
|
|
136
|
+
}), Ce = /* @__PURE__ */ T(ze, [["__scopeId", "data-v-917c488b"]]), ke = { class: "das-ui-pagination" }, he = {
|
|
137
137
|
key: 0,
|
|
138
138
|
style: { color: "#212121", "font-size": "12px" }
|
|
139
139
|
}, ye = {
|
|
140
140
|
key: 1,
|
|
141
141
|
style: { "margin-left": "12px" },
|
|
142
142
|
class: "page-container flex-center__y"
|
|
143
|
-
}, we = { class: "flex-center__y" }, Se = { class: "flex-center__y" },
|
|
143
|
+
}, we = { class: "flex-center__y" }, Se = { class: "flex-center__y" }, be = /* @__PURE__ */ E({
|
|
144
144
|
__name: "Pagination",
|
|
145
145
|
props: {
|
|
146
146
|
modelValue: { default: 1 },
|
|
@@ -155,28 +155,28 @@ const ce = { class: "sizes-dropdown-link" }, de = { class: "current-page-size" }
|
|
|
155
155
|
popperClass: {}
|
|
156
156
|
},
|
|
157
157
|
emits: ["update:modelValue", "update:pageSize", "size-change", "current-change", "prev-click", "next-click", "first-click", "last-click"],
|
|
158
|
-
setup(
|
|
159
|
-
const s =
|
|
158
|
+
setup(v, { emit: f }) {
|
|
159
|
+
const s = v, o = f;
|
|
160
160
|
Z({
|
|
161
161
|
"arrow-first": import("@das-fed/ui/packages/icons/arrow-first"),
|
|
162
162
|
left: import("@das-fed/ui/packages/icons/left"),
|
|
163
163
|
right: import("@das-fed/ui/packages/icons/right"),
|
|
164
164
|
"arrow-last": import("@das-fed/ui/packages/icons/arrow-last")
|
|
165
165
|
});
|
|
166
|
-
const
|
|
166
|
+
const p = M(), n = H({
|
|
167
167
|
first: !1,
|
|
168
168
|
pre: !1,
|
|
169
169
|
next: !1,
|
|
170
170
|
last: !1
|
|
171
|
-
}),
|
|
172
|
-
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
}, j = () =>
|
|
176
|
-
n.first =
|
|
171
|
+
}), I = g(() => s.layout), P = g(() => s.background), r = g(() => s.pageSizes), k = g(() => s.total), y = g(() => s.simple), e = A(s, "modelValue"), d = A(s, "pageSize"), u = g(() => Math.ceil(k.value / d.value)), _ = g(() => y.value ? "prev, slot, next" : I.value || "total,jumper,slot,sizes"), R = g(() => _.value.replace(/\s*/g, "").split(",").filter((a) => a !== "total" && a !== "sizes").join(",")), U = (t) => {
|
|
172
|
+
o("update:pageSize", t), o("size-change", t);
|
|
173
|
+
}, w = (t) => {
|
|
174
|
+
o("update:modelValue", t), o("current-change", t);
|
|
175
|
+
}, j = () => o("prev-click", e.value), F = () => o("next-click", e.value), O = () => {
|
|
176
|
+
n.first = u.value === 0 || e.value <= 1, n.pre = u.value === 0 || e.value <= 1, n.next = u.value === 0 || e.value === u.value, n.last = u.value === 0 || e.value === u.value;
|
|
177
177
|
};
|
|
178
178
|
J(
|
|
179
|
-
() => [e.value,
|
|
179
|
+
() => [e.value, u.value],
|
|
180
180
|
() => {
|
|
181
181
|
O();
|
|
182
182
|
},
|
|
@@ -184,112 +184,112 @@ const ce = { class: "sizes-dropdown-link" }, de = { class: "current-page-size" }
|
|
|
184
184
|
immediate: !0
|
|
185
185
|
}
|
|
186
186
|
);
|
|
187
|
-
const
|
|
188
|
-
const
|
|
187
|
+
const x = (t, a) => {
|
|
188
|
+
const i = /* @__PURE__ */ new Map([
|
|
189
189
|
[
|
|
190
190
|
"first",
|
|
191
191
|
() => {
|
|
192
|
-
e.value <= 1 || (e.value = 1,
|
|
192
|
+
e.value <= 1 || (e.value = 1, w(e.value), o("first-click", e.value));
|
|
193
193
|
}
|
|
194
194
|
],
|
|
195
195
|
[
|
|
196
196
|
"pre",
|
|
197
197
|
() => {
|
|
198
|
-
e.value <= 1 || (e.value--,
|
|
198
|
+
e.value <= 1 || (e.value--, w(e.value), o("prev-click", e.value));
|
|
199
199
|
}
|
|
200
200
|
],
|
|
201
201
|
[
|
|
202
202
|
"next",
|
|
203
203
|
() => {
|
|
204
|
-
e.value !==
|
|
204
|
+
e.value !== k.value && (e.value++, w(e.value), o("next-click", e.value));
|
|
205
205
|
}
|
|
206
206
|
],
|
|
207
207
|
[
|
|
208
208
|
"last",
|
|
209
209
|
() => {
|
|
210
|
-
e.value !==
|
|
210
|
+
e.value !== k.value && (e.value = u.value, w(e.value), o("last-click", e.value));
|
|
211
211
|
}
|
|
212
212
|
]
|
|
213
213
|
]);
|
|
214
214
|
if (a) return;
|
|
215
|
-
|
|
215
|
+
i.get(t)();
|
|
216
216
|
};
|
|
217
217
|
return K(() => {
|
|
218
218
|
Q(() => {
|
|
219
|
-
var t, a;
|
|
220
|
-
(t =
|
|
219
|
+
var t, a, i;
|
|
220
|
+
(t = p.value) != null && t.$el && ((a = p.value.$el) != null && a.getElementsByClassName("el-pagination__goto")[0] && (p.value.$el.getElementsByClassName("el-pagination__goto")[0].innerText = $("第")), (i = p.value.$el) != null && i.getElementsByClassName("el-pagination__classifier")[0] && (p.value.$el.getElementsByClassName("el-pagination__classifier")[0].innerText = $("页")));
|
|
221
221
|
});
|
|
222
|
-
}), (t, a) => (
|
|
223
|
-
|
|
222
|
+
}), (t, a) => (c(), C("div", ke, [
|
|
223
|
+
_.value.includes("total") ? (c(), B(l(Ce), {
|
|
224
224
|
key: 0,
|
|
225
|
-
"total-page":
|
|
225
|
+
"total-page": u.value,
|
|
226
226
|
style: { "margin-right": "12px" }
|
|
227
|
-
}, null, 8, ["total-page"])) :
|
|
228
|
-
|
|
229
|
-
default:
|
|
230
|
-
|
|
227
|
+
}, null, 8, ["total-page"])) : N("v-if", !0),
|
|
228
|
+
m(l(ee), { locale: l(te) }, {
|
|
229
|
+
default: z(() => [
|
|
230
|
+
m(l(ae), W({
|
|
231
231
|
ref_key: "dasPagination",
|
|
232
|
-
ref:
|
|
233
|
-
class: { background:
|
|
234
|
-
currentPage:
|
|
235
|
-
"onUpdate:currentPage": a[4] || (a[4] = (
|
|
236
|
-
"page-size":
|
|
237
|
-
"onUpdate:pageSize": a[5] || (a[5] = (
|
|
238
|
-
"page-sizes":
|
|
239
|
-
layout:
|
|
240
|
-
total:
|
|
232
|
+
ref: p,
|
|
233
|
+
class: { background: P.value, simple: y.value },
|
|
234
|
+
currentPage: l(e),
|
|
235
|
+
"onUpdate:currentPage": a[4] || (a[4] = (i) => V(e) ? e.value = i : null),
|
|
236
|
+
"page-size": l(d),
|
|
237
|
+
"onUpdate:pageSize": a[5] || (a[5] = (i) => V(d) ? d.value = i : null),
|
|
238
|
+
"page-sizes": r.value,
|
|
239
|
+
layout: R.value,
|
|
240
|
+
total: k.value,
|
|
241
241
|
small: t.small,
|
|
242
|
-
background:
|
|
242
|
+
background: P.value,
|
|
243
243
|
disabled: t.disabled,
|
|
244
244
|
"popper-class": t.popperClass ? `das-pagination-popper ${t.popperClass}` : "das-pagination-popper",
|
|
245
245
|
teleported: !1,
|
|
246
|
-
onCurrentChange:
|
|
246
|
+
onCurrentChange: w,
|
|
247
247
|
onPrevClick: j,
|
|
248
248
|
onNextClick: F
|
|
249
249
|
}, t.$attrs), {
|
|
250
|
-
default:
|
|
251
|
-
|
|
252
|
-
t.$slots.default ?
|
|
250
|
+
default: z(() => [
|
|
251
|
+
R.value.includes("slot") ? X(t.$slots, "default", { key: 0 }, () => [
|
|
252
|
+
t.$slots.default ? N("v-if", !0) : (c(), C(
|
|
253
253
|
L,
|
|
254
254
|
{ key: 0 },
|
|
255
255
|
[
|
|
256
|
-
|
|
256
|
+
y.value ? (c(), C(
|
|
257
257
|
"div",
|
|
258
258
|
he,
|
|
259
|
-
|
|
259
|
+
b(l(e)) + "/" + b(Math.ceil(k.value / l(d))),
|
|
260
260
|
1
|
|
261
261
|
/* TEXT */
|
|
262
|
-
)) : (
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
class:
|
|
262
|
+
)) : (c(), C("div", ye, [
|
|
263
|
+
S("div", we, [
|
|
264
|
+
m(l(D), {
|
|
265
|
+
class: h(["page-icon", n.first ? "disabled" : ""]),
|
|
266
266
|
icon: "arrow-first",
|
|
267
267
|
iconColor: "#666666",
|
|
268
268
|
size: "medium",
|
|
269
|
-
onClick: a[0] || (a[0] = (
|
|
269
|
+
onClick: a[0] || (a[0] = (i) => x("first", n.first))
|
|
270
270
|
}, null, 8, ["class"]),
|
|
271
|
-
|
|
272
|
-
class:
|
|
271
|
+
m(l(D), {
|
|
272
|
+
class: h(["page-icon", n.pre ? "disabled" : ""]),
|
|
273
273
|
icon: "left",
|
|
274
274
|
iconColor: "#666666",
|
|
275
275
|
size: "medium",
|
|
276
|
-
onClick: a[1] || (a[1] = (
|
|
276
|
+
onClick: a[1] || (a[1] = (i) => x("pre", n.pre))
|
|
277
277
|
}, null, 8, ["class"])
|
|
278
278
|
]),
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
class:
|
|
279
|
+
S("div", Se, [
|
|
280
|
+
m(l(D), {
|
|
281
|
+
class: h(["page-icon", n.next ? "disabled" : ""]),
|
|
282
282
|
icon: "right",
|
|
283
283
|
iconColor: "#666666",
|
|
284
284
|
size: "medium",
|
|
285
|
-
onClick: a[2] || (a[2] = (
|
|
285
|
+
onClick: a[2] || (a[2] = (i) => x("next", n.next))
|
|
286
286
|
}, null, 8, ["class"]),
|
|
287
|
-
|
|
288
|
-
class:
|
|
287
|
+
m(l(D), {
|
|
288
|
+
class: h(["page-icon", n.last ? "disabled" : ""]),
|
|
289
289
|
icon: "arrow-last",
|
|
290
290
|
iconColor: "#666666",
|
|
291
291
|
size: "medium",
|
|
292
|
-
onClick: a[3] || (a[3] = (
|
|
292
|
+
onClick: a[3] || (a[3] = (i) => x("last", n.last))
|
|
293
293
|
}, null, 8, ["class"])
|
|
294
294
|
])
|
|
295
295
|
]))
|
|
@@ -297,7 +297,7 @@ const ce = { class: "sizes-dropdown-link" }, de = { class: "current-page-size" }
|
|
|
297
297
|
64
|
|
298
298
|
/* STABLE_FRAGMENT */
|
|
299
299
|
))
|
|
300
|
-
], !0) :
|
|
300
|
+
], !0) : N("v-if", !0)
|
|
301
301
|
]),
|
|
302
302
|
_: 3
|
|
303
303
|
/* FORWARDED */
|
|
@@ -306,31 +306,31 @@ const ce = { class: "sizes-dropdown-link" }, de = { class: "current-page-size" }
|
|
|
306
306
|
_: 3
|
|
307
307
|
/* FORWARDED */
|
|
308
308
|
}, 8, ["locale"]),
|
|
309
|
-
|
|
309
|
+
_.value.includes("sizes") ? (c(), B(l(ve), {
|
|
310
310
|
key: 1,
|
|
311
|
-
"page-sizes":
|
|
312
|
-
pageSize:
|
|
313
|
-
"onUpdate:pageSize": a[6] || (a[6] = (
|
|
311
|
+
"page-sizes": r.value,
|
|
312
|
+
pageSize: l(d),
|
|
313
|
+
"onUpdate:pageSize": a[6] || (a[6] = (i) => V(d) ? d.value = i : null),
|
|
314
314
|
onSizeChange: U
|
|
315
|
-
}, null, 8, ["page-sizes", "pageSize"])) :
|
|
315
|
+
}, null, 8, ["page-sizes", "pageSize"])) : N("v-if", !0)
|
|
316
316
|
]));
|
|
317
317
|
}
|
|
318
|
-
}),
|
|
318
|
+
}), $e = /* @__PURE__ */ T(be, [["__scopeId", "data-v-d1cdf91a"]]), Pe = {
|
|
319
319
|
"--das-ui-pagination-simple-border-color": "#D9D9D9",
|
|
320
320
|
"--das-ui-pagination-size-color": "#212121",
|
|
321
321
|
"--das-ui-pagination-size--icon-hover-color": "#3761CA",
|
|
322
322
|
"--das-ui-pagination-size--poppver-item-hover-bg-color": "#f5f5f5",
|
|
323
323
|
"--das-ui-pagination-size--poppver-item-click-color": "#5582f3",
|
|
324
324
|
"--das-ui-pagination-totalpage-color": "#666666"
|
|
325
|
-
},
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
325
|
+
}, xe = {
|
|
326
|
+
第: { "zh-CN": "第", en: "No" },
|
|
327
|
+
页: { "zh-CN": "页", en: "page" },
|
|
328
|
+
"pagination-total_page": { "zh-CN": "共$0页", en: "Total $0 pages" },
|
|
329
|
+
"pagination-items_per_page": { "zh-CN": "$0条/页", en: "$0 items/page" }
|
|
330
330
|
};
|
|
331
|
-
ie(
|
|
332
|
-
re(
|
|
333
|
-
const Ge = () => M(null), He = Y(
|
|
331
|
+
ie(xe);
|
|
332
|
+
re(Pe);
|
|
333
|
+
const Ge = () => M(null), He = Y($e);
|
|
334
334
|
export {
|
|
335
335
|
He as DasPagination,
|
|
336
336
|
Ge as DasPaginationRef,
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.sizes-dropdown-link[data-v-
|
|
1
|
+
.sizes-dropdown-link[data-v-5b7b2982]{display:flex;align-items:center;margin-left:16px}.sizes-dropdown-link .arrow-icon[data-v-5b7b2982]{font-size:14px;transition:transform .3s}.sizes-dropdown-link .rotate180[data-v-5b7b2982]{transform:rotate(180deg)}.sizes-dropdown-link .current-page-size[data-v-5b7b2982]{font-size:12px;color:var(--das-ui-pagination-size-color);margin-right:9px}.sizes-dropdown-link:hover .arrow-icon[data-v-5b7b2982]{color:var(--das-ui-pagination-size--icon-hover-color)}.pagination-sizes-popper{width:108px}.pagination-sizes-popper .el-popper__arrow{display:none}.pagination-sizes-popper .sizes-item.el-dropdown-menu__item{display:flex;justify-content:flex-end;padding-right:24px;font-size:12px;color:var(--das-ui-pagination-size-color)}.pagination-sizes-popper .sizes-item.el-dropdown-menu__item:hover{color:var(--das-ui-pagination-size-color);background-color:var(--das-ui-pagination-size--poppver-item-hover-bg-color)}.pagination-sizes-popper .sizes-item.el-dropdown-menu__item.selected{color:var(--das-ui-pagination-size--poppver-item-click-color);font-weight:400}.pagination-sizes-popper .sizes-item.el-dropdown-menu__item.selected :hover{color:var(--das-ui-pagination-size--poppver-item-click-color)}.total-page[data-v-917c488b]{font-size:12px;color:var(--das-ui-pagination-totalpage-color)}.das-ui-pagination[data-v-d1cdf91a]{display:flex;align-items:center;--el-color-primary: var(--das-ui-button-primary);padding:0}.das-ui-pagination .flex-center__y[data-v-d1cdf91a]{display:flex;align-items:center}.das-ui-pagination[data-v-d1cdf91a] .el-pagination__classifier,.das-ui-pagination[data-v-d1cdf91a] .el-pagination__editor{margin-left:4px}.das-ui-pagination[data-v-d1cdf91a] .el-pagination__jump{margin-left:12px}.das-ui-pagination[data-v-d1cdf91a] .el-pagination__jump .el-input__wrapper.is-focus,.das-ui-pagination[data-v-d1cdf91a] .el-pagination__jump .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--das-ui-pagination-size--poppver-item-click-color) inset}.das-ui-pagination[data-v-d1cdf91a] .el-select .el-input__wrapper{box-shadow:none!important}.das-ui-pagination[data-v-d1cdf91a] .el-select .el-input{width:85px}.das-ui-pagination[data-v-d1cdf91a] .el-select .el-input .el-select__caret{color:#666;margin-left:0}.das-ui-pagination[data-v-d1cdf91a] .el-pagination__sizes{display:flex;flex-direction:column;justify-content:center;margin-left:0;margin-right:0}.das-ui-pagination.simple[data-v-d1cdf91a]{border:1px solid var(--das-ui-pagination-simple-border-color);background:#fff}.das-ui-pagination.simple[data-v-d1cdf91a]:hover{border-color:var(--das-ui-button-primary)}.das-ui-pagination .page-container .page-icon[data-v-d1cdf91a]{cursor:pointer;margin-right:8px}.das-ui-pagination .page-container .page-icon[data-v-d1cdf91a]:hover,.das-ui-pagination .page-container .page-icon[data-v-d1cdf91a]:active{fill:var(--das-ui-pagination-size--poppver-item-click-color)}.das-ui-pagination .page-container .page-icon.disabled[data-v-d1cdf91a]{cursor:not-allowed;fill:#b2b2b2}
|
|
Binary file
|
|
@@ -54,9 +54,7 @@ const y = (e) => {
|
|
|
54
54
|
for (const [o, s] of r)
|
|
55
55
|
t[o] = s;
|
|
56
56
|
return t;
|
|
57
|
-
}, z = /* @__PURE__ */ b(N, [["__scopeId", "data-v-3b501019"]]), B = {
|
|
58
|
-
"das-preview-text": { "zh-CN": "预览", en: "Preview" }
|
|
59
|
-
}, L = f(z);
|
|
57
|
+
}, z = /* @__PURE__ */ b(N, [["__scopeId", "data-v-3b501019"]]), B = { "das-preview-text": { "zh-CN": "预览", en: "Preview" } }, L = f(z);
|
|
60
58
|
d(B);
|
|
61
59
|
export {
|
|
62
60
|
L as DasPreview,
|
|
Binary file
|