@das-fed/ui 6.4.0-dev.55.3 → 6.4.0-dev.55.5
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 -0
- package/packages/business-components/change-enterprises/index.js +44 -44
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/i18n/index.d.ts +18 -0
- package/packages/business-components/change-pwd/index.js +127 -122
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/i18n/index.d.ts +8 -4
- package/packages/business-components/currency-page/index.js +14 -6
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +239 -0
- package/packages/business-components/device-panel/index.js +9953 -9905
- 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 +11 -0
- package/packages/business-components/export-button/index.js +82 -77
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +26 -0
- package/packages/business-components/import-button/index.js +288 -279
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +6 -0
- package/packages/business-components/model-table-dialog/index.js +433 -433
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +31 -0
- package/packages/business-components/process-configuration/index.js +205 -202
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/i18n/index.d.ts +80 -0
- package/packages/business-components/process-form/index.js +906 -887
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/i18n/index.d.ts +10 -0
- package/packages/business-components/process-log/index.js +245 -245
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +10 -1
- package/packages/business-components/process-search-form/index.js +463 -463
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/i18n/index.d.ts +8 -0
- package/packages/business-components/process-table/index.js +128 -128
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/upload-file/i18n/index.d.ts +1 -0
- package/packages/business-components/upload-file/index.js +32 -31
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +90 -0
- package/packages/business-components/urgent-panel/index.js +1237 -1223
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +15 -0
- package/packages/business-components/user-org-dialog/index.js +223 -219
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +20 -0
- package/packages/business-components/video-dialog/index.js +233 -233
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/breadcrumb/index.d.ts +9 -3
- package/packages/components/breadcrumb/index.js +48 -45
- package/packages/components/breadcrumb/index.js.gz +0 -0
- package/packages/components/breadcrumb/src/BreadCrumb.vue.d.ts +3 -1
- package/packages/components/breadcrumb/src/type.d.ts +1 -0
- package/packages/components/breadcrumb/style.css +1 -1
- package/packages/components/breadcrumb/style.css.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +92 -46
- package/packages/components/calendar/index.js +277 -277
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/i18n/index.d.ts +2 -1
- package/packages/components/cascader/index.js +22 -24
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/color-picker/i18n/index.d.ts +2 -1
- package/packages/components/color-picker/index.js +39 -41
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/custom-search-item/i18n/index.d.ts +2 -1
- package/packages/components/custom-search-item/index.js +17 -19
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/i18n/index.d.ts +6 -3
- package/packages/components/date-picker/index.js +519 -518
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/src/DatePicker.vue.d.ts +2 -1
- package/packages/components/date-picker/src/RangePicker.vue.d.ts +1 -0
- package/packages/components/date-picker/src/TimePicker.vue.d.ts +1 -0
- package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +1 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dialog/i18n/index.d.ts +12 -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 +20 -10
- package/packages/components/dimple-layout/index.js +287 -283
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/i18n/index.d.ts +2 -1
- package/packages/components/dropdown/index.js +14 -16
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/empty/i18n/index.d.ts +1 -0
- package/packages/components/empty/index.js +11 -11
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/image-upload/i18n/index.d.ts +6 -0
- package/packages/components/image-upload/index.js +87 -78
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/input/i18n/index.d.ts +3 -0
- package/packages/components/input/index.js +28 -28
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/live-player/i18n/index.d.ts +2 -0
- package/packages/components/live-player/index.js +144 -143
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/i18n/index.d.ts +1 -0
- package/packages/components/loading/index.js +53 -53
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +4 -0
- package/packages/components/map/index.js +73 -68
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/i18n/index.d.ts +1 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/i18n/index.d.ts +1 -0
- package/packages/components/message/index.js +1 -1
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/i18n/index.d.ts +1 -0
- package/packages/components/notification/index.js +1 -1
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/i18n/index.d.ts +4 -0
- package/packages/components/pagination/index.js +140 -139
- 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 -0
- package/packages/components/popover/index.js +7 -7
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/preview/i18n/index.d.ts +1 -0
- package/packages/components/preview/index.js +6 -6
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/rich-editor/i18n/index.d.ts +8 -4
- package/packages/components/rich-editor/index.js +1110 -1094
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +6 -0
- package/packages/components/search-form/index.js +230 -230
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +10 -5
- package/packages/components/select/index.js +183 -183
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/i18n/index.d.ts +8 -4
- package/packages/components/select-list/index.js +73 -73
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/i18n/index.d.ts +8 -4
- package/packages/components/special-range-picker-month/index.js +72 -72
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/i18n/index.d.ts +6 -3
- package/packages/components/special-range-picker-year/index.js +99 -99
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/i18n/index.d.ts +1 -0
- package/packages/components/spin/index.js +27 -27
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +49 -0
- package/packages/components/table/index.js +3657 -3585
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/type.d.ts +5 -1
- 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 -0
- package/packages/components/tabs/index.js +63 -63
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tooltip/i18n/index.d.ts +1 -0
- package/packages/components/tooltip/index.js +16 -16
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +7 -0
- package/packages/components/tree/index.js +219 -218
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/upload/i18n/index.d.ts +5 -0
- package/packages/components/upload/index.js +68 -68
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +1 -0
- package/packages/components/virtual-tree/index.js +15 -15
- package/packages/components/virtual-tree/index.js.gz +0 -0
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/pagination/style.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { withInstall as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { defineComponent as B, openBlock as u, createElementBlock as C, createElementVNode as S, ref as T, computed as d, createBlock as D, withCtx as z, createVNode as m, Fragment as U, renderList as G, normalizeClass as h, createTextVNode as H, toDisplayString as P, unref as o, reactive as J, watch as K, onMounted as Q, nextTick as W, createCommentVNode as x, mergeProps as X, isRef as M, renderSlot as Y } from "vue";
|
|
3
|
+
import { withInstall as Z } from "@das-fed/utils/with-install/index";
|
|
4
|
+
import { t as b, currentLang as ee, setI18nRule as ae } from "@das-fed/web/packages/i18n/index";
|
|
5
|
+
import { DasAutoRegisterIcon as te, DasIcon as N } from "@das-fed/ui/packages/components/icon/index";
|
|
6
|
+
import { ElConfigProvider as oe, ElPagination as le } from "element-plus";
|
|
6
7
|
import "element-plus/es/components/pagination/style/css";
|
|
7
|
-
import { useModelValue as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import { useModelValue as L } from "@das-fed/utils/vue";
|
|
9
|
+
import ne from "element-plus/dist/locale/zh-cn.mjs";
|
|
10
|
+
import se from "element-plus/dist/locale/en.mjs";
|
|
11
|
+
import { ElIcon as ie, ElDropdownItem as re, ElDropdownMenu as pe, ElDropdown as ue } from "element-plus/es";
|
|
10
12
|
import "element-plus/es/components/base/style/css";
|
|
11
13
|
import "element-plus/es/components/dropdown/style/css";
|
|
12
14
|
import "element-plus/es/components/dropdown-menu/style/css";
|
|
13
15
|
import "element-plus/es/components/dropdown-item/style/css";
|
|
14
16
|
import "element-plus/es/components/icon/style/css";
|
|
15
|
-
import {
|
|
16
|
-
import { setThemeRule as re } from "@das-fed/web/packages/theme/index";
|
|
17
|
+
import { setThemeRule as ce } from "@das-fed/web/packages/theme/index";
|
|
17
18
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
18
|
-
var
|
|
19
|
+
var de = /* @__PURE__ */ B({
|
|
19
20
|
name: "ArrowDown",
|
|
20
21
|
__name: "arrow-down",
|
|
21
22
|
setup(v) {
|
|
22
|
-
return (f,
|
|
23
|
+
return (f, n) => (u(), C("svg", {
|
|
23
24
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24
25
|
viewBox: "0 0 1024 1024"
|
|
25
26
|
}, [
|
|
@@ -29,49 +30,49 @@ var pe = /* @__PURE__ */ E({
|
|
|
29
30
|
})
|
|
30
31
|
]));
|
|
31
32
|
}
|
|
32
|
-
}),
|
|
33
|
-
const
|
|
33
|
+
}), ge = de;
|
|
34
|
+
const me = { class: "sizes-dropdown-link" }, ve = { class: "current-page-size" }, fe = {
|
|
34
35
|
name: "DasPaginationSizes"
|
|
35
|
-
},
|
|
36
|
-
...
|
|
36
|
+
}, _e = /* @__PURE__ */ B({
|
|
37
|
+
...fe,
|
|
37
38
|
props: {
|
|
38
39
|
pageSizes: { default: () => [20, 50, 100] },
|
|
39
40
|
pageSize: { default: 20 }
|
|
40
41
|
},
|
|
41
42
|
emits: ["update:pageSize", "size-change"],
|
|
42
43
|
setup(v, { emit: f }) {
|
|
43
|
-
const
|
|
44
|
-
get: () =>
|
|
45
|
-
set: (
|
|
46
|
-
|
|
44
|
+
const n = v, l = f, k = T(!1), g = d({
|
|
45
|
+
get: () => n.pageSize,
|
|
46
|
+
set: (p) => {
|
|
47
|
+
l("update:pageSize", p);
|
|
47
48
|
}
|
|
48
|
-
}),
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
|
|
49
|
+
}), s = (p) => {
|
|
50
|
+
k.value = p;
|
|
51
|
+
}, E = (p) => {
|
|
52
|
+
g.value = p, l("size-change", p);
|
|
52
53
|
};
|
|
53
|
-
return (
|
|
54
|
-
const
|
|
55
|
-
return
|
|
54
|
+
return (p, I) => {
|
|
55
|
+
const _ = ie, w = re, e = pe, c = ue;
|
|
56
|
+
return u(), D(c, {
|
|
56
57
|
"popper-class": "pagination-sizes-popper",
|
|
57
58
|
trigger: "click",
|
|
58
|
-
onVisibleChange:
|
|
59
|
-
onCommand:
|
|
59
|
+
onVisibleChange: s,
|
|
60
|
+
onCommand: E
|
|
60
61
|
}, {
|
|
61
62
|
dropdown: z(() => [
|
|
62
|
-
m(
|
|
63
|
+
m(e, null, {
|
|
63
64
|
default: z(() => [
|
|
64
|
-
(
|
|
65
|
-
|
|
65
|
+
(u(!0), C(
|
|
66
|
+
U,
|
|
66
67
|
null,
|
|
67
|
-
|
|
68
|
-
class: h(["sizes-item",
|
|
69
|
-
key:
|
|
70
|
-
command:
|
|
68
|
+
G(p.pageSizes, (i) => (u(), D(w, {
|
|
69
|
+
class: h(["sizes-item", i === p.pageSize ? "selected" : ""]),
|
|
70
|
+
key: i,
|
|
71
|
+
command: i
|
|
71
72
|
}, {
|
|
72
73
|
default: z(() => [
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
H(
|
|
75
|
+
P(o(b)("pagination-items_per_page", i)),
|
|
75
76
|
1
|
|
76
77
|
/* TEXT */
|
|
77
78
|
)
|
|
@@ -88,19 +89,19 @@ const ce = { class: "sizes-dropdown-link" }, de = { class: "current-page-size" }
|
|
|
88
89
|
})
|
|
89
90
|
]),
|
|
90
91
|
default: z(() => [
|
|
91
|
-
S("span",
|
|
92
|
+
S("span", me, [
|
|
92
93
|
S(
|
|
93
94
|
"span",
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
ve,
|
|
96
|
+
P(o(b)("pagination-items_per_page", g.value)),
|
|
96
97
|
1
|
|
97
98
|
/* TEXT */
|
|
98
99
|
),
|
|
99
|
-
m(
|
|
100
|
-
class: h(["arrow-icon",
|
|
100
|
+
m(_, {
|
|
101
|
+
class: h(["arrow-icon", k.value ? "rotate180" : ""])
|
|
101
102
|
}, {
|
|
102
103
|
default: z(() => [
|
|
103
|
-
m(
|
|
104
|
+
m(o(ge))
|
|
104
105
|
]),
|
|
105
106
|
_: 1
|
|
106
107
|
/* STABLE */
|
|
@@ -112,35 +113,35 @@ const ce = { class: "sizes-dropdown-link" }, de = { class: "current-page-size" }
|
|
|
112
113
|
});
|
|
113
114
|
};
|
|
114
115
|
}
|
|
115
|
-
}),
|
|
116
|
-
const
|
|
117
|
-
for (const [
|
|
118
|
-
|
|
119
|
-
return
|
|
120
|
-
},
|
|
116
|
+
}), R = (v, f) => {
|
|
117
|
+
const n = v.__vccOpts || v;
|
|
118
|
+
for (const [l, k] of f)
|
|
119
|
+
n[l] = k;
|
|
120
|
+
return n;
|
|
121
|
+
}, ze = /* @__PURE__ */ R(_e, [["__scopeId", "data-v-5b7b2982"]]), Ce = { class: "total-page" }, ke = {
|
|
121
122
|
name: "TotalPage"
|
|
122
|
-
},
|
|
123
|
-
...
|
|
123
|
+
}, he = /* @__PURE__ */ B({
|
|
124
|
+
...ke,
|
|
124
125
|
props: {
|
|
125
126
|
totalPage: {}
|
|
126
127
|
},
|
|
127
128
|
setup(v) {
|
|
128
|
-
return (f,
|
|
129
|
+
return (f, n) => (u(), C(
|
|
129
130
|
"div",
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
Ce,
|
|
132
|
+
P(o(b)("pagination-total_page", f.totalPage)),
|
|
132
133
|
1
|
|
133
134
|
/* TEXT */
|
|
134
135
|
));
|
|
135
136
|
}
|
|
136
|
-
}),
|
|
137
|
+
}), we = /* @__PURE__ */ R(he, [["__scopeId", "data-v-917c488b"]]), ye = { class: "das-ui-pagination" }, Se = {
|
|
137
138
|
key: 0,
|
|
138
139
|
style: { color: "#212121", "font-size": "12px" }
|
|
139
|
-
},
|
|
140
|
+
}, Pe = {
|
|
140
141
|
key: 1,
|
|
141
142
|
style: { "margin-left": "12px" },
|
|
142
143
|
class: "page-container flex-center__y"
|
|
143
|
-
},
|
|
144
|
+
}, be = { class: "flex-center__y" }, $e = { class: "flex-center__y" }, xe = /* @__PURE__ */ B({
|
|
144
145
|
__name: "Pagination",
|
|
145
146
|
props: {
|
|
146
147
|
modelValue: { default: 1 },
|
|
@@ -156,140 +157,140 @@ const ce = { class: "sizes-dropdown-link" }, de = { class: "current-page-size" }
|
|
|
156
157
|
},
|
|
157
158
|
emits: ["update:modelValue", "update:pageSize", "size-change", "current-change", "prev-click", "next-click", "first-click", "last-click"],
|
|
158
159
|
setup(v, { emit: f }) {
|
|
159
|
-
const
|
|
160
|
-
|
|
160
|
+
const n = v, l = f;
|
|
161
|
+
te({
|
|
161
162
|
"arrow-first": import("@das-fed/ui/packages/icons/arrow-first"),
|
|
162
163
|
left: import("@das-fed/ui/packages/icons/left"),
|
|
163
164
|
right: import("@das-fed/ui/packages/icons/right"),
|
|
164
165
|
"arrow-last": import("@das-fed/ui/packages/icons/arrow-last")
|
|
165
166
|
});
|
|
166
|
-
const
|
|
167
|
+
const k = d(() => ee.value === "zh-CN" ? ne : se), g = T(), s = J({
|
|
167
168
|
first: !1,
|
|
168
169
|
pre: !1,
|
|
169
170
|
next: !1,
|
|
170
171
|
last: !1
|
|
171
|
-
}),
|
|
172
|
-
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
},
|
|
176
|
-
|
|
172
|
+
}), E = d(() => n.layout), p = d(() => n.background), I = d(() => n.pageSizes), _ = d(() => n.total), w = d(() => n.simple), e = L(n, "modelValue"), c = L(n, "pageSize"), i = d(() => Math.ceil(_.value / c.value)), V = d(() => w.value ? "prev, slot, next" : E.value || "total,jumper,slot,sizes"), A = d(() => V.value.replace(/\s*/g, "").split(",").filter((a) => a !== "total" && a !== "sizes").join(",")), j = (t) => {
|
|
173
|
+
l("update:pageSize", t), l("size-change", t);
|
|
174
|
+
}, y = (t) => {
|
|
175
|
+
l("update:modelValue", t), l("current-change", t);
|
|
176
|
+
}, F = () => l("prev-click", e.value), O = () => l("next-click", e.value), q = () => {
|
|
177
|
+
s.first = i.value === 0 || e.value <= 1, s.pre = i.value === 0 || e.value <= 1, s.next = i.value === 0 || e.value === i.value, s.last = i.value === 0 || e.value === i.value;
|
|
177
178
|
};
|
|
178
|
-
|
|
179
|
-
() => [e.value,
|
|
179
|
+
K(
|
|
180
|
+
() => [e.value, i.value],
|
|
180
181
|
() => {
|
|
181
|
-
|
|
182
|
+
q();
|
|
182
183
|
},
|
|
183
184
|
{
|
|
184
185
|
immediate: !0
|
|
185
186
|
}
|
|
186
187
|
);
|
|
187
|
-
const
|
|
188
|
-
const
|
|
188
|
+
const $ = (t, a) => {
|
|
189
|
+
const r = /* @__PURE__ */ new Map([
|
|
189
190
|
[
|
|
190
191
|
"first",
|
|
191
192
|
() => {
|
|
192
|
-
e.value <= 1 || (e.value = 1,
|
|
193
|
+
e.value <= 1 || (e.value = 1, y(e.value), l("first-click", e.value));
|
|
193
194
|
}
|
|
194
195
|
],
|
|
195
196
|
[
|
|
196
197
|
"pre",
|
|
197
198
|
() => {
|
|
198
|
-
e.value <= 1 || (e.value--,
|
|
199
|
+
e.value <= 1 || (e.value--, y(e.value), l("prev-click", e.value));
|
|
199
200
|
}
|
|
200
201
|
],
|
|
201
202
|
[
|
|
202
203
|
"next",
|
|
203
204
|
() => {
|
|
204
|
-
e.value !==
|
|
205
|
+
e.value !== _.value && (e.value++, y(e.value), l("next-click", e.value));
|
|
205
206
|
}
|
|
206
207
|
],
|
|
207
208
|
[
|
|
208
209
|
"last",
|
|
209
210
|
() => {
|
|
210
|
-
e.value !==
|
|
211
|
+
e.value !== _.value && (e.value = i.value, y(e.value), l("last-click", e.value));
|
|
211
212
|
}
|
|
212
213
|
]
|
|
213
214
|
]);
|
|
214
215
|
if (a) return;
|
|
215
|
-
|
|
216
|
+
r.get(t)();
|
|
216
217
|
};
|
|
217
|
-
return
|
|
218
|
-
|
|
219
|
-
var t, a,
|
|
220
|
-
(t =
|
|
218
|
+
return Q(() => {
|
|
219
|
+
W(() => {
|
|
220
|
+
var t, a, r;
|
|
221
|
+
(t = g.value) != null && t.$el && ((a = g.value.$el) != null && a.getElementsByClassName("el-pagination__goto")[0] && (g.value.$el.getElementsByClassName("el-pagination__goto")[0].innerText = b("第")), (r = g.value.$el) != null && r.getElementsByClassName("el-pagination__classifier")[0] && (g.value.$el.getElementsByClassName("el-pagination__classifier")[0].innerText = b("页")));
|
|
221
222
|
});
|
|
222
|
-
}), (t, a) => (
|
|
223
|
-
|
|
223
|
+
}), (t, a) => (u(), C("div", ye, [
|
|
224
|
+
V.value.includes("total") ? (u(), D(o(we), {
|
|
224
225
|
key: 0,
|
|
225
|
-
"total-page":
|
|
226
|
+
"total-page": i.value,
|
|
226
227
|
style: { "margin-right": "12px" }
|
|
227
|
-
}, null, 8, ["total-page"])) :
|
|
228
|
-
m(
|
|
228
|
+
}, null, 8, ["total-page"])) : x("v-if", !0),
|
|
229
|
+
m(o(oe), { locale: k.value }, {
|
|
229
230
|
default: z(() => [
|
|
230
|
-
m(
|
|
231
|
+
m(o(le), X({
|
|
231
232
|
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:
|
|
233
|
+
ref: g,
|
|
234
|
+
class: { background: p.value, simple: w.value },
|
|
235
|
+
currentPage: o(e),
|
|
236
|
+
"onUpdate:currentPage": a[4] || (a[4] = (r) => M(e) ? e.value = r : null),
|
|
237
|
+
"page-size": o(c),
|
|
238
|
+
"onUpdate:pageSize": a[5] || (a[5] = (r) => M(c) ? c.value = r : null),
|
|
239
|
+
"page-sizes": I.value,
|
|
240
|
+
layout: A.value,
|
|
241
|
+
total: _.value,
|
|
241
242
|
small: t.small,
|
|
242
|
-
background:
|
|
243
|
+
background: p.value,
|
|
243
244
|
disabled: t.disabled,
|
|
244
245
|
"popper-class": t.popperClass ? `das-pagination-popper ${t.popperClass}` : "das-pagination-popper",
|
|
245
246
|
teleported: !1,
|
|
246
|
-
onCurrentChange:
|
|
247
|
-
onPrevClick:
|
|
248
|
-
onNextClick:
|
|
247
|
+
onCurrentChange: y,
|
|
248
|
+
onPrevClick: F,
|
|
249
|
+
onNextClick: O
|
|
249
250
|
}, t.$attrs), {
|
|
250
251
|
default: z(() => [
|
|
251
|
-
|
|
252
|
-
t.$slots.default ?
|
|
253
|
-
|
|
252
|
+
A.value.includes("slot") ? Y(t.$slots, "default", { key: 0 }, () => [
|
|
253
|
+
t.$slots.default ? x("v-if", !0) : (u(), C(
|
|
254
|
+
U,
|
|
254
255
|
{ key: 0 },
|
|
255
256
|
[
|
|
256
|
-
|
|
257
|
+
w.value ? (u(), C(
|
|
257
258
|
"div",
|
|
258
|
-
|
|
259
|
-
|
|
259
|
+
Se,
|
|
260
|
+
P(o(e)) + "/" + P(Math.ceil(_.value / o(c))),
|
|
260
261
|
1
|
|
261
262
|
/* TEXT */
|
|
262
|
-
)) : (
|
|
263
|
-
S("div",
|
|
264
|
-
m(
|
|
265
|
-
class: h(["page-icon",
|
|
263
|
+
)) : (u(), C("div", Pe, [
|
|
264
|
+
S("div", be, [
|
|
265
|
+
m(o(N), {
|
|
266
|
+
class: h(["page-icon", s.first ? "disabled" : ""]),
|
|
266
267
|
icon: "arrow-first",
|
|
267
268
|
iconColor: "#666666",
|
|
268
269
|
size: "medium",
|
|
269
|
-
onClick: a[0] || (a[0] = (
|
|
270
|
+
onClick: a[0] || (a[0] = (r) => $("first", s.first))
|
|
270
271
|
}, null, 8, ["class"]),
|
|
271
|
-
m(
|
|
272
|
-
class: h(["page-icon",
|
|
272
|
+
m(o(N), {
|
|
273
|
+
class: h(["page-icon", s.pre ? "disabled" : ""]),
|
|
273
274
|
icon: "left",
|
|
274
275
|
iconColor: "#666666",
|
|
275
276
|
size: "medium",
|
|
276
|
-
onClick: a[1] || (a[1] = (
|
|
277
|
+
onClick: a[1] || (a[1] = (r) => $("pre", s.pre))
|
|
277
278
|
}, null, 8, ["class"])
|
|
278
279
|
]),
|
|
279
|
-
S("div",
|
|
280
|
-
m(
|
|
281
|
-
class: h(["page-icon",
|
|
280
|
+
S("div", $e, [
|
|
281
|
+
m(o(N), {
|
|
282
|
+
class: h(["page-icon", s.next ? "disabled" : ""]),
|
|
282
283
|
icon: "right",
|
|
283
284
|
iconColor: "#666666",
|
|
284
285
|
size: "medium",
|
|
285
|
-
onClick: a[2] || (a[2] = (
|
|
286
|
+
onClick: a[2] || (a[2] = (r) => $("next", s.next))
|
|
286
287
|
}, null, 8, ["class"]),
|
|
287
|
-
m(
|
|
288
|
-
class: h(["page-icon",
|
|
288
|
+
m(o(N), {
|
|
289
|
+
class: h(["page-icon", s.last ? "disabled" : ""]),
|
|
289
290
|
icon: "arrow-last",
|
|
290
291
|
iconColor: "#666666",
|
|
291
292
|
size: "medium",
|
|
292
|
-
onClick: a[3] || (a[3] = (
|
|
293
|
+
onClick: a[3] || (a[3] = (r) => $("last", s.last))
|
|
293
294
|
}, null, 8, ["class"])
|
|
294
295
|
])
|
|
295
296
|
]))
|
|
@@ -297,7 +298,7 @@ const ce = { class: "sizes-dropdown-link" }, de = { class: "current-page-size" }
|
|
|
297
298
|
64
|
|
298
299
|
/* STABLE_FRAGMENT */
|
|
299
300
|
))
|
|
300
|
-
], !0) :
|
|
301
|
+
], !0) : x("v-if", !0)
|
|
301
302
|
]),
|
|
302
303
|
_: 3
|
|
303
304
|
/* FORWARDED */
|
|
@@ -306,33 +307,33 @@ const ce = { class: "sizes-dropdown-link" }, de = { class: "current-page-size" }
|
|
|
306
307
|
_: 3
|
|
307
308
|
/* FORWARDED */
|
|
308
309
|
}, 8, ["locale"]),
|
|
309
|
-
|
|
310
|
+
V.value.includes("sizes") ? (u(), D(o(ze), {
|
|
310
311
|
key: 1,
|
|
311
|
-
"page-sizes":
|
|
312
|
-
pageSize:
|
|
313
|
-
"onUpdate:pageSize": a[6] || (a[6] = (
|
|
314
|
-
onSizeChange:
|
|
315
|
-
}, null, 8, ["page-sizes", "pageSize"])) :
|
|
312
|
+
"page-sizes": I.value,
|
|
313
|
+
pageSize: o(c),
|
|
314
|
+
"onUpdate:pageSize": a[6] || (a[6] = (r) => M(c) ? c.value = r : null),
|
|
315
|
+
onSizeChange: j
|
|
316
|
+
}, null, 8, ["page-sizes", "pageSize"])) : x("v-if", !0)
|
|
316
317
|
]));
|
|
317
318
|
}
|
|
318
|
-
}),
|
|
319
|
+
}), Ne = /* @__PURE__ */ R(xe, [["__scopeId", "data-v-d1fdaf0e"]]), De = {
|
|
319
320
|
"--das-ui-pagination-simple-border-color": "#D9D9D9",
|
|
320
321
|
"--das-ui-pagination-size-color": "#212121",
|
|
321
322
|
"--das-ui-pagination-size--icon-hover-color": "#3761CA",
|
|
322
323
|
"--das-ui-pagination-size--poppver-item-hover-bg-color": "#f5f5f5",
|
|
323
324
|
"--das-ui-pagination-size--poppver-item-click-color": "#5582f3",
|
|
324
325
|
"--das-ui-pagination-totalpage-color": "#666666"
|
|
325
|
-
},
|
|
326
|
-
第: { "zh-CN": "第", en: "No" },
|
|
327
|
-
页: { "zh-CN": "页", en: "
|
|
328
|
-
"pagination-total_page": { "zh-CN": "共$0页", en: "Total $0
|
|
329
|
-
"pagination-items_per_page": { "zh-CN": "$0条/页", en: "$0
|
|
326
|
+
}, Be = {
|
|
327
|
+
第: { "zh-CN": "第", en: "No.", _appCode: "framework" },
|
|
328
|
+
页: { "zh-CN": "页", en: "Page", _appCode: "framework" },
|
|
329
|
+
"pagination-total_page": { "zh-CN": "共$0页", en: "Total $0 Pages", _appCode: "framework" },
|
|
330
|
+
"pagination-items_per_page": { "zh-CN": "$0条/页", en: "$0 Items/Page", _appCode: "framework" }
|
|
330
331
|
};
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
const
|
|
332
|
+
ae(Be);
|
|
333
|
+
ce(De);
|
|
334
|
+
const Qe = () => T(null), We = Z(Ne);
|
|
334
335
|
export {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
We as DasPagination,
|
|
337
|
+
Qe as DasPaginationRef,
|
|
338
|
+
We as default
|
|
338
339
|
};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-d1fdaf0e]{display:flex;align-items:center;--el-color-primary: var(--das-ui-button-primary);padding:0}.das-ui-pagination .flex-center__y[data-v-d1fdaf0e]{display:flex;align-items:center}.das-ui-pagination[data-v-d1fdaf0e] .el-pagination__classifier,.das-ui-pagination[data-v-d1fdaf0e] .el-pagination__editor{margin-left:4px}.das-ui-pagination[data-v-d1fdaf0e] .el-pagination__jump{margin-left:12px}.das-ui-pagination[data-v-d1fdaf0e] .el-pagination__jump .el-input__wrapper.is-focus,.das-ui-pagination[data-v-d1fdaf0e] .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-d1fdaf0e] .el-select .el-input__wrapper{box-shadow:none!important}.das-ui-pagination[data-v-d1fdaf0e] .el-select .el-input{width:85px}.das-ui-pagination[data-v-d1fdaf0e] .el-select .el-input .el-select__caret{color:#666;margin-left:0}.das-ui-pagination[data-v-d1fdaf0e] .el-pagination__sizes{display:flex;flex-direction:column;justify-content:center;margin-left:0;margin-right:0}.das-ui-pagination.simple[data-v-d1fdaf0e]{border:1px solid var(--das-ui-pagination-simple-border-color);background:#fff}.das-ui-pagination.simple[data-v-d1fdaf0e]:hover{border-color:var(--das-ui-button-primary)}.das-ui-pagination .page-container .page-icon[data-v-d1fdaf0e]{cursor:pointer;margin-right:8px}.das-ui-pagination .page-container .page-icon[data-v-d1fdaf0e]:hover,.das-ui-pagination .page-container .page-icon[data-v-d1fdaf0e]:active{fill:var(--das-ui-pagination-size--poppver-item-click-color)}.das-ui-pagination .page-container .page-icon.disabled[data-v-d1fdaf0e]{cursor:not-allowed;fill:#b2b2b2}
|
|
Binary file
|
|
@@ -23,20 +23,20 @@ const S = { class: "das-ui-popover-container" }, T = {
|
|
|
23
23
|
placement: { default: "bottom-start" }
|
|
24
24
|
},
|
|
25
25
|
emits: ["cancel", "confirm", "clickOutside"],
|
|
26
|
-
setup(C, { expose:
|
|
27
|
-
const l = C, i =
|
|
26
|
+
setup(C, { expose: k, emit: h }) {
|
|
27
|
+
const l = C, i = h, w = g(), c = D(null), $ = O(() => {
|
|
28
28
|
let e = "das-ui-popover-over-container";
|
|
29
29
|
return l.popperClass && (e = `${e} ${l.popperClass}`), e;
|
|
30
30
|
}), y = () => {
|
|
31
|
-
|
|
31
|
+
w.visible !== void 0 && i("clickOutside");
|
|
32
32
|
};
|
|
33
|
-
return
|
|
33
|
+
return k({ $popoverRef: c }), (e, o) => (s(), V(t(R), E({
|
|
34
34
|
ref_key: "$popoverRef",
|
|
35
35
|
ref: c,
|
|
36
36
|
class: "das-ui-popover",
|
|
37
37
|
placement: e.placement,
|
|
38
38
|
width: e.width,
|
|
39
|
-
"popper-class":
|
|
39
|
+
"popper-class": $.value
|
|
40
40
|
}, e.$attrs), {
|
|
41
41
|
reference: r(() => [
|
|
42
42
|
m(e.$slots, "reference")
|
|
@@ -98,8 +98,8 @@ const S = { class: "das-ui-popover-container" }, T = {
|
|
|
98
98
|
}, 16, ["placement", "width", "popper-class"]));
|
|
99
99
|
}
|
|
100
100
|
}), F = {
|
|
101
|
-
"das-ui-popover-confirm": { "zh-CN": "确定", en: "Confirm" },
|
|
102
|
-
"das-ui-popover-cancel": { "zh-CN": "取消", en: "Cancel" }
|
|
101
|
+
"das-ui-popover-confirm": { "zh-CN": "确定", en: "Confirm", _appCode: "framework" },
|
|
102
|
+
"das-ui-popover-cancel": { "zh-CN": "取消", en: "Cancel", _appCode: "framework" }
|
|
103
103
|
}, U = B(q);
|
|
104
104
|
_(F);
|
|
105
105
|
export {
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/preview/style.css';
|
|
2
2
|
import { withInstall as f } from "@das-fed/utils/with-install/index";
|
|
3
3
|
import { getLang as m, t as u, setI18nRule as d } from "@das-fed/web/packages/i18n/index";
|
|
4
|
-
import { defineComponent as
|
|
4
|
+
import { defineComponent as w, openBlock as v, createElementBlock as g, unref as i, renderSlot as _, createVNode as h, withCtx as k, createTextVNode as x, toDisplayString as $ } from "vue";
|
|
5
5
|
import { DasButton as I } from "@das-fed/ui/packages/components/button/index";
|
|
6
6
|
import { getPersonalInfo as P, getToken as C } from "@das-fed/utils/common-info";
|
|
7
7
|
import { pureImageSrc as U } from "@das-fed/utils/pure-image-src";
|
|
@@ -14,7 +14,7 @@ const y = (e) => {
|
|
|
14
14
|
const p = `${o}${s}?access_token=${c}&lang=${l}&fileUrl=${n}`;
|
|
15
15
|
window.open(p);
|
|
16
16
|
} };
|
|
17
|
-
}, N = /* @__PURE__ */
|
|
17
|
+
}, N = /* @__PURE__ */ w({
|
|
18
18
|
__name: "Index",
|
|
19
19
|
props: {
|
|
20
20
|
host: {},
|
|
@@ -26,7 +26,7 @@ const y = (e) => {
|
|
|
26
26
|
},
|
|
27
27
|
setup(e, { expose: r }) {
|
|
28
28
|
const t = e, { preview: o } = y(t);
|
|
29
|
-
return r({ preview: o }), (s, a) => (
|
|
29
|
+
return r({ preview: o }), (s, a) => (v(), g("div", {
|
|
30
30
|
class: "das-preview-container",
|
|
31
31
|
onClick: a[0] || (a[0] = //@ts-ignore
|
|
32
32
|
(...n) => i(o) && i(o)(...n))
|
|
@@ -37,8 +37,8 @@ const y = (e) => {
|
|
|
37
37
|
size: "large",
|
|
38
38
|
block: ""
|
|
39
39
|
}, {
|
|
40
|
-
default:
|
|
41
|
-
|
|
40
|
+
default: k(() => [
|
|
41
|
+
x(
|
|
42
42
|
$(i(u)("das-preview-text")),
|
|
43
43
|
1
|
|
44
44
|
/* TEXT */
|
|
@@ -55,7 +55,7 @@ const y = (e) => {
|
|
|
55
55
|
for (const [o, s] of r)
|
|
56
56
|
t[o] = s;
|
|
57
57
|
return t;
|
|
58
|
-
}, z = /* @__PURE__ */ b(N, [["__scopeId", "data-v-9643931e"]]), B = { "das-preview-text": { "zh-CN": "预览", en: "Preview" } }, L = f(z);
|
|
58
|
+
}, z = /* @__PURE__ */ b(N, [["__scopeId", "data-v-9643931e"]]), B = { "das-preview-text": { "zh-CN": "预览", en: "Preview", _appCode: "framework" } }, L = f(z);
|
|
59
59
|
d(B);
|
|
60
60
|
export {
|
|
61
61
|
L as DasPreview,
|
|
Binary file
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
请输入正确的链接地址: {
|
|
3
|
-
|
|
3
|
+
'zh-CN': string;
|
|
4
4
|
en: string;
|
|
5
|
+
_appCode: string;
|
|
5
6
|
};
|
|
6
7
|
'dasui-richeditor-key1': {
|
|
7
|
-
|
|
8
|
+
'zh-CN': string;
|
|
8
9
|
en: string;
|
|
10
|
+
_appCode: string;
|
|
9
11
|
};
|
|
10
12
|
'dasui-richeditor-key2': {
|
|
11
|
-
|
|
13
|
+
'zh-CN': string;
|
|
12
14
|
en: string;
|
|
15
|
+
_appCode: string;
|
|
13
16
|
};
|
|
14
17
|
'dasui-richeditor-key3': {
|
|
15
|
-
|
|
18
|
+
'zh-CN': string;
|
|
16
19
|
en: string;
|
|
20
|
+
_appCode: string;
|
|
17
21
|
};
|
|
18
22
|
};
|
|
19
23
|
export default _default;
|