vft 0.0.97 → 0.0.98
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/es/components/affix/affix.vue2.js +25 -26
- package/es/components/alert/alert.vue2.js +17 -18
- package/es/components/backtop/backtop.vue2.js +14 -15
- package/es/components/button/button-group.vue2.js +14 -15
- package/es/components/button/button.vue2.js +24 -25
- package/es/components/card/card.vue2.js +10 -11
- package/es/components/check-tag/check-tag.vue2.js +10 -11
- package/es/components/checkbox/checkbox-button.vue2.js +13 -14
- package/es/components/checkbox/checkbox-group.vue2.js +15 -16
- package/es/components/checkbox/checkbox.vue2.js +24 -25
- package/es/components/clamp/clamp.vue2.js +16 -17
- package/es/components/clamp-toggle/clamp-toggle.vue2.js +13 -14
- package/es/components/col/col.vue2.js +20 -21
- package/es/components/collapse-transition/src/collapse-transition.vue2.js +12 -13
- package/es/components/collection/collection-item.vue2.js +6 -7
- package/es/components/collection/collection.vue2.js +5 -7
- package/es/components/color-picker/color-picker.vue2.js +45 -46
- package/es/components/color-picker/components/alpha-slider.vue2.js +20 -21
- package/es/components/config-provider/config-provider.vue2.js +22 -23
- package/es/components/container/aside.vue2.js +12 -13
- package/es/components/container/container.vue2.js +10 -11
- package/es/components/container/footer.vue2.js +11 -12
- package/es/components/container/header.vue2.js +10 -11
- package/es/components/container/main.vue2.js +12 -13
- package/es/components/context-menu/context-menu.vue2.js +18 -19
- package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +87 -87
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +1 -1
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +1 -1
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +2 -2
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +39 -40
- package/es/components/date-time-select/date-time-select.vue2.js +20 -21
- package/es/components/descriptions/description-item.vue2.js +9 -10
- package/es/components/descriptions/description.vue2.js +20 -21
- package/es/components/descriptions/descriptions-row.vue2.js +15 -16
- package/es/components/dialog/dialog-content.vue2.js +12 -13
- package/es/components/dialog/dialog.vue2.js +40 -41
- package/es/components/divider/divider.vue2.js +10 -11
- package/es/components/dropdown/dropdown.vue2.js +38 -39
- package/es/components/empty/empty.vue2.js +11 -12
- package/es/components/footer-layout/footer-layout.vue2.js +7 -8
- package/es/components/form/form-item.vue2.js +43 -44
- package/es/components/form/form.vue2.js +28 -29
- package/es/components/full-screen/full-screen.vue2.js +15 -16
- package/es/components/header-layout/header-layout.vue2.js +21 -22
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +50 -51
- package/es/components/icon/icon.vue2.js +12 -13
- package/es/components/icon-text/icon-text.vue2.js +13 -14
- package/es/components/iframe-layout/iframe-layout.vue2.js +15 -16
- package/es/components/iframe-layout/iframe-page.vue2.js +12 -13
- package/es/components/image/image.vue2.js +25 -26
- package/es/components/image-viewer/image-viewer.vue2.js +54 -55
- package/es/components/index.js +90 -90
- package/es/components/link/link.vue2.js +11 -12
- package/es/components/list-cell/list-cell.vue2.js +21 -22
- package/es/components/logo/logo.vue2.js +12 -13
- package/es/components/md-comment/md-comment.vue2.js +12 -13
- package/es/components/md-container/md-container.vue2.js +33 -34
- package/es/components/md-vue-playground/md-vue-playground.vue2.js +18 -19
- package/es/components/menu/menu-item-group.vue2.js +13 -14
- package/es/components/menu/menu-item.vue2.js +12 -13
- package/es/components/menu/menu.vue2.js +44 -45
- package/es/components/menu/sub-menu.vue2.js +30 -31
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +35 -38
- package/es/components/overlay/overlay.vue2.js +23 -24
- package/es/components/page-wrapper/page-wrapper.vue2.js +17 -18
- package/es/components/pagination/pagination.vue2.js +17 -18
- package/es/components/popconfirm/popconfirm.vue2.js +17 -18
- package/es/components/popover/popover.vue2.js +31 -32
- package/es/components/popper/arrow.vue2.js +15 -16
- package/es/components/popper/content.vue2.js +38 -39
- package/es/components/popper/popper.vue2.js +13 -14
- package/es/components/popper/trigger.vue2.js +11 -12
- package/es/components/qrcode/qrcode.vue2.js +21 -22
- package/es/components/radio/radio-button.vue2.js +16 -17
- package/es/components/radio/radio-group.vue2.js +16 -17
- package/es/components/radio/radio.vue2.js +15 -16
- package/es/components/result/result.vue2.js +12 -13
- package/es/components/router-view-content/router-view-content.vue2.js +10 -11
- package/es/components/row/row.vue2.js +17 -18
- package/es/components/scrollbar/scrollbar.vue2.js +30 -31
- package/es/components/search/search.vue2.js +39 -40
- package/es/components/side-menu/side-menu.vue2.js +43 -45
- package/es/components/skeleton/skeleton-item.vue2.js +9 -10
- package/es/components/skeleton/skeleton.vue2.js +11 -12
- package/es/components/switch/switch.vue2.js +27 -28
- package/es/components/table/table.vue2.js +36 -37
- package/es/components/tabs/tab-nav.vue2.js +28 -29
- package/es/components/tabs/tab-pane.vue2.js +23 -24
- package/es/components/tabs/tabs.vue2.js +30 -31
- package/es/components/time-picker/common/picker.vue2.js +48 -49
- package/es/components/time-select/time-select.vue2.js +28 -29
- package/es/components/tooltip/content.vue2.js +36 -37
- package/es/components/tooltip/tooltip.vue2.js +15 -16
- package/es/components/tooltip/trigger.vue2.js +37 -38
- package/es/components/verify-code/verify-code.vue2.js +19 -20
- package/es/constants/date.js +7 -7
- package/es/index.js +90 -90
- package/es/package.json.js +1 -1
- package/lib/components/affix/affix.vue2.cjs +1 -1
- package/lib/components/alert/alert.vue2.cjs +1 -1
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/button/button-group.vue2.cjs +1 -1
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/card/card.vue2.cjs +1 -1
- package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox.vue2.cjs +1 -1
- package/lib/components/clamp/clamp.vue2.cjs +1 -1
- package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
- package/lib/components/col/col.vue2.cjs +1 -1
- package/lib/components/collapse-transition/src/collapse-transition.vue2.cjs +1 -1
- package/lib/components/collection/collection-item.vue2.cjs +1 -1
- package/lib/components/collection/collection.vue2.cjs +1 -1
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/color-picker/components/alpha-slider.vue2.cjs +1 -1
- package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
- package/lib/components/container/aside.vue2.cjs +1 -1
- package/lib/components/container/container.vue2.cjs +1 -1
- package/lib/components/container/footer.vue2.cjs +1 -1
- package/lib/components/container/header.vue2.cjs +1 -1
- package/lib/components/container/main.vue2.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/descriptions/description-item.vue2.cjs +1 -1
- package/lib/components/descriptions/description.vue2.cjs +1 -1
- package/lib/components/descriptions/descriptions-row.vue2.cjs +1 -1
- package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
- package/lib/components/dialog/dialog.vue2.cjs +1 -1
- package/lib/components/divider/divider.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/empty/empty.vue2.cjs +1 -1
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/form/form-item.vue2.cjs +1 -1
- package/lib/components/form/form.vue2.cjs +1 -1
- package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
- package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
- package/lib/components/iframe-layout/iframe-page.vue2.cjs +1 -1
- package/lib/components/image/image.vue2.cjs +1 -1
- package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/link/link.vue2.cjs +1 -1
- package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
- package/lib/components/logo/logo.vue2.cjs +1 -1
- package/lib/components/md-comment/md-comment.vue2.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
- package/lib/components/menu/menu-item-group.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/menu.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/overlay/overlay.vue2.cjs +1 -1
- package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
- package/lib/components/pagination/pagination.vue2.cjs +1 -1
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
- package/lib/components/popover/popover.vue2.cjs +1 -1
- package/lib/components/popper/arrow.vue2.cjs +1 -1
- package/lib/components/popper/content.vue2.cjs +1 -1
- package/lib/components/popper/popper.vue2.cjs +1 -1
- package/lib/components/popper/trigger.vue2.cjs +1 -1
- package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
- package/lib/components/radio/radio-button.vue2.cjs +1 -1
- package/lib/components/radio/radio-group.vue2.cjs +1 -1
- package/lib/components/radio/radio.vue2.cjs +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
- package/lib/components/row/row.vue2.cjs +1 -1
- package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
- package/lib/components/skeleton/skeleton.vue2.cjs +1 -1
- package/lib/components/switch/switch.vue2.cjs +1 -1
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
- package/lib/components/time-select/time-select.vue2.cjs +1 -1
- package/lib/components/tooltip/content.vue2.cjs +1 -1
- package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
- package/lib/components/tooltip/trigger.vue2.cjs +1 -1
- package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
- package/lib/constants/date.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +8 -8
- package/web-types.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as q, useAttrs as K, ref as i, computed as d, watch as R, onMounted as G, openBlock as s, createElementBlock as f, normalizeClass as h, unref as t, normalizeStyle as J, mergeProps as Q, createCommentVNode as u, renderSlot as C, createElementVNode as V, Fragment as U, createBlock as X, withCtx as Z, nextTick as W } from "vue";
|
|
2
2
|
import { isClient as v, useThrottleFn as _, useEventListener as b } from "@vueuse/core";
|
|
3
3
|
import { useNamespace as ee } from "../../hooks/use-namespace/index.js";
|
|
4
4
|
import "@popperjs/core";
|
|
@@ -11,11 +11,10 @@ import { VftImageViewer as oe } from "../image-viewer/index.js";
|
|
|
11
11
|
const ie = ["src", "loading"], se = { key: 0 }, n = (
|
|
12
12
|
/* hoist-static*/
|
|
13
13
|
ee("image")
|
|
14
|
-
),
|
|
14
|
+
), Le = /* @__PURE__ */ q({
|
|
15
15
|
inheritAttrs: !1,
|
|
16
|
-
name: n.b()
|
|
17
|
-
|
|
18
|
-
...ue,
|
|
16
|
+
name: n.b(),
|
|
17
|
+
__name: "image",
|
|
19
18
|
props: {
|
|
20
19
|
hideOnClickModal: { type: Boolean, default: !1 },
|
|
21
20
|
src: { default: "" },
|
|
@@ -33,18 +32,18 @@ const ie = ["src", "loading"], se = { key: 0 }, n = (
|
|
|
33
32
|
emits: ["load", "error", "switch", "close", "show"],
|
|
34
33
|
setup(l, { emit: c }) {
|
|
35
34
|
let z = "";
|
|
36
|
-
const
|
|
35
|
+
const T = K(), $ = re(), g = i(), r = i(!1), o = i(!0), p = i(!1), m = i(), a = i(), M = v && "loading" in HTMLImageElement.prototype;
|
|
37
36
|
let y, w;
|
|
38
|
-
const
|
|
37
|
+
const O = d(() => T.style), H = d(() => v && l.fit ? { objectFit: l.fit } : {}), L = d(() => Array.isArray(l.previewSrcList) && l.previewSrcList.length > 0), F = d(() => {
|
|
39
38
|
let e = l.initialIndex;
|
|
40
39
|
return l.initialIndex > l.previewSrcList.length - 1 && (e = 0), e;
|
|
41
|
-
}), S = d(() => l.loading === "eager" ? !1 : !
|
|
40
|
+
}), S = d(() => l.loading === "eager" ? !1 : !M && l.loading === "lazy" || l.lazy), k = () => {
|
|
42
41
|
v && (o.value = !0, r.value = !1, g.value = l.src);
|
|
43
42
|
};
|
|
44
|
-
function
|
|
43
|
+
function N(e) {
|
|
45
44
|
o.value = !1, r.value = !1, c("load", e);
|
|
46
45
|
}
|
|
47
|
-
function
|
|
46
|
+
function P(e) {
|
|
48
47
|
o.value = !1, r.value = !0, c("error", e);
|
|
49
48
|
}
|
|
50
49
|
function I() {
|
|
@@ -61,7 +60,7 @@ const ie = ["src", "loading"], se = { key: 0 }, n = (
|
|
|
61
60
|
function A() {
|
|
62
61
|
!v || !a.value || !E || (y == null || y(), a.value = void 0);
|
|
63
62
|
}
|
|
64
|
-
function
|
|
63
|
+
function x(e) {
|
|
65
64
|
if (e.ctrlKey) {
|
|
66
65
|
if (e.deltaY < 0)
|
|
67
66
|
return e.preventDefault(), !1;
|
|
@@ -69,15 +68,15 @@ const ie = ["src", "loading"], se = { key: 0 }, n = (
|
|
|
69
68
|
return e.preventDefault(), !1;
|
|
70
69
|
}
|
|
71
70
|
}
|
|
72
|
-
function
|
|
73
|
-
L.value && (w = b("wheel",
|
|
71
|
+
function D() {
|
|
72
|
+
L.value && (w = b("wheel", x, {
|
|
74
73
|
passive: !1
|
|
75
74
|
}), z = document.body.style.overflow, document.body.style.overflow = "hidden", p.value = !0, c("show"));
|
|
76
75
|
}
|
|
77
|
-
function
|
|
76
|
+
function Y() {
|
|
78
77
|
w == null || w(), document.body.style.overflow = z, p.value = !1, c("close");
|
|
79
78
|
}
|
|
80
|
-
function
|
|
79
|
+
function j(e) {
|
|
81
80
|
c("switch", e);
|
|
82
81
|
}
|
|
83
82
|
return R(
|
|
@@ -87,24 +86,24 @@ const ie = ["src", "loading"], se = { key: 0 }, n = (
|
|
|
87
86
|
}
|
|
88
87
|
), G(() => {
|
|
89
88
|
S.value ? B() : k();
|
|
90
|
-
}), (e,
|
|
89
|
+
}), (e, ue) => (s(), f("div", {
|
|
91
90
|
ref_key: "container",
|
|
92
91
|
ref: m,
|
|
93
92
|
class: h([t(n).b(), e.$attrs.class]),
|
|
94
|
-
style: J(
|
|
93
|
+
style: J(O.value)
|
|
95
94
|
}, [
|
|
96
|
-
g.value !== void 0 && !r.value ? (s(), f("img", Q({ key: 0 }, t(
|
|
95
|
+
g.value !== void 0 && !r.value ? (s(), f("img", Q({ key: 0 }, t($), {
|
|
97
96
|
src: g.value,
|
|
98
97
|
loading: e.loading,
|
|
99
|
-
style:
|
|
98
|
+
style: H.value,
|
|
100
99
|
class: [
|
|
101
100
|
t(n).e("inner"),
|
|
102
101
|
L.value && t(n).e("preview"),
|
|
103
102
|
o.value && t(n).is("loading")
|
|
104
103
|
],
|
|
105
|
-
onClick:
|
|
106
|
-
onLoad:
|
|
107
|
-
onError:
|
|
104
|
+
onClick: D,
|
|
105
|
+
onLoad: N,
|
|
106
|
+
onError: P,
|
|
108
107
|
alt: ""
|
|
109
108
|
}), null, 16, ie)) : u("", !0),
|
|
110
109
|
o.value || r.value ? (s(), f("div", {
|
|
@@ -125,15 +124,15 @@ const ie = ["src", "loading"], se = { key: 0 }, n = (
|
|
|
125
124
|
p.value ? (s(), X(t(oe), {
|
|
126
125
|
key: 0,
|
|
127
126
|
"z-index": e.zIndex,
|
|
128
|
-
"initial-index":
|
|
127
|
+
"initial-index": F.value,
|
|
129
128
|
infinite: e.infinite,
|
|
130
129
|
"zoom-rate": e.zoomRate,
|
|
131
130
|
"url-list": e.previewSrcList,
|
|
132
131
|
"hide-on-click-modal": e.hideOnClickModal,
|
|
133
132
|
teleported: e.previewTeleported,
|
|
134
133
|
"close-on-press-escape": e.closeOnPressEscape,
|
|
135
|
-
onClose:
|
|
136
|
-
onSwitch:
|
|
134
|
+
onClose: Y,
|
|
135
|
+
onSwitch: j
|
|
137
136
|
}, {
|
|
138
137
|
default: Z(() => [
|
|
139
138
|
e.$slots.viewer ? (s(), f("div", se, [
|
|
@@ -147,5 +146,5 @@ const ie = ["src", "loading"], se = { key: 0 }, n = (
|
|
|
147
146
|
}
|
|
148
147
|
});
|
|
149
148
|
export {
|
|
150
|
-
|
|
149
|
+
Le as default
|
|
151
150
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as _, ref as z, effectScope as ee, computed as b, watch as R, nextTick as te, onMounted as ne, openBlock as x, createBlock as oe, Teleport as ae, createVNode as d, Transition as se, withCtx as ie, createElementVNode as c, normalizeClass as l, unref as n, normalizeStyle as S, withModifiers as le, createElementBlock as E, Fragment as V, createCommentVNode as re, renderList as ce, withDirectives as ue, vShow as fe, renderSlot as de } from "vue";
|
|
2
2
|
import { useEventListener as I } from "@vueuse/core";
|
|
3
3
|
import { isNumber as H } from "@vft/utils";
|
|
4
4
|
import { throttle as T } from "lodash";
|
|
@@ -11,10 +11,9 @@ import { VftIcon as v } from "../icon/index.js";
|
|
|
11
11
|
const pe = ["src"], a = (
|
|
12
12
|
/* hoist-static*/
|
|
13
13
|
me("image-viewer")
|
|
14
|
-
),
|
|
15
|
-
name: a.b()
|
|
16
|
-
|
|
17
|
-
...ke,
|
|
14
|
+
), Le = /* @__PURE__ */ _({
|
|
15
|
+
name: a.b(),
|
|
16
|
+
__name: "image-viewer",
|
|
18
17
|
props: {
|
|
19
18
|
urlList: { default: [] },
|
|
20
19
|
zIndex: {},
|
|
@@ -29,15 +28,15 @@ const pe = ["src"], a = (
|
|
|
29
28
|
close: () => !0,
|
|
30
29
|
switch: (s) => H(s)
|
|
31
30
|
},
|
|
32
|
-
setup(s, { expose:
|
|
33
|
-
const { nextZIndex:
|
|
31
|
+
setup(s, { expose: Z, emit: X }) {
|
|
32
|
+
const { nextZIndex: A } = ve(), C = z(), Y = z([]), O = ee(), k = z(!0), m = z(s.initialIndex), i = z({
|
|
34
33
|
scale: 1,
|
|
35
34
|
deg: 0,
|
|
36
35
|
offsetX: 0,
|
|
37
36
|
offsetY: 0,
|
|
38
37
|
enableTransition: !1
|
|
39
|
-
}),
|
|
40
|
-
const { scale: e, deg: t, offsetX: o, offsetY: r, enableTransition: h } =
|
|
38
|
+
}), P = b(() => s.urlList.length <= 1), $ = b(() => m.value === 0), M = b(() => m.value === s.urlList.length - 1), W = b(() => s.urlList[m.value]), j = b(() => {
|
|
39
|
+
const { scale: e, deg: t, offsetX: o, offsetY: r, enableTransition: h } = i.value;
|
|
41
40
|
let u = o / e, f = r / e;
|
|
42
41
|
switch (t % 360) {
|
|
43
42
|
case 90:
|
|
@@ -53,16 +52,16 @@ const pe = ["src"], a = (
|
|
|
53
52
|
[u, f] = [-f, u];
|
|
54
53
|
break;
|
|
55
54
|
}
|
|
56
|
-
const
|
|
55
|
+
const g = {
|
|
57
56
|
transform: `scale(${e}) rotate(${t}deg) translate(${u}px, ${f}px)`,
|
|
58
57
|
transition: h ? "transform .3s" : ""
|
|
59
58
|
};
|
|
60
|
-
return
|
|
61
|
-
}),
|
|
59
|
+
return g.maxWidth = g.maxHeight = "100%", g;
|
|
60
|
+
}), q = b(() => H(s.zIndex) ? s.zIndex : A());
|
|
62
61
|
function y() {
|
|
63
|
-
|
|
62
|
+
J(), X("close");
|
|
64
63
|
}
|
|
65
|
-
function
|
|
64
|
+
function G() {
|
|
66
65
|
const e = T((o) => {
|
|
67
66
|
switch (o.code) {
|
|
68
67
|
case w.esc:
|
|
@@ -95,24 +94,24 @@ const pe = ["src"], a = (
|
|
|
95
94
|
I(document, "keydown", e), I(document, "wheel", t);
|
|
96
95
|
});
|
|
97
96
|
}
|
|
98
|
-
function
|
|
97
|
+
function J() {
|
|
99
98
|
O.stop();
|
|
100
99
|
}
|
|
101
|
-
function
|
|
100
|
+
function K() {
|
|
102
101
|
k.value = !1;
|
|
103
102
|
}
|
|
104
|
-
function
|
|
103
|
+
function Q(e) {
|
|
105
104
|
k.value = !1, e.target.alt = "加载失败";
|
|
106
105
|
}
|
|
107
|
-
function
|
|
106
|
+
function U(e) {
|
|
108
107
|
if (k.value || e.button !== 0 || !C.value)
|
|
109
108
|
return;
|
|
110
|
-
|
|
111
|
-
const { offsetX: t, offsetY: o } =
|
|
112
|
-
|
|
113
|
-
...
|
|
114
|
-
offsetX: t +
|
|
115
|
-
offsetY: o +
|
|
109
|
+
i.value.enableTransition = !1;
|
|
110
|
+
const { offsetX: t, offsetY: o } = i.value, r = e.pageX, h = e.pageY, u = T((g) => {
|
|
111
|
+
i.value = {
|
|
112
|
+
...i.value,
|
|
113
|
+
offsetX: t + g.pageX - r,
|
|
114
|
+
offsetY: o + g.pageY - h
|
|
116
115
|
};
|
|
117
116
|
}), f = I(document, "mousemove", u);
|
|
118
117
|
I(document, "mouseup", () => {
|
|
@@ -120,7 +119,7 @@ const pe = ["src"], a = (
|
|
|
120
119
|
}), e.preventDefault();
|
|
121
120
|
}
|
|
122
121
|
function N() {
|
|
123
|
-
|
|
122
|
+
i.value = {
|
|
124
123
|
scale: 1,
|
|
125
124
|
deg: 0,
|
|
126
125
|
offsetX: 0,
|
|
@@ -151,25 +150,25 @@ const pe = ["src"], a = (
|
|
|
151
150
|
};
|
|
152
151
|
switch (e) {
|
|
153
152
|
case "zoomOut":
|
|
154
|
-
|
|
155
|
-
(
|
|
153
|
+
i.value.scale > 0.2 && (i.value.scale = Number.parseFloat(
|
|
154
|
+
(i.value.scale / s.zoomRate).toFixed(3)
|
|
156
155
|
));
|
|
157
156
|
break;
|
|
158
157
|
case "zoomIn":
|
|
159
|
-
|
|
160
|
-
(
|
|
158
|
+
i.value.scale < 7 && (i.value.scale = Number.parseFloat(
|
|
159
|
+
(i.value.scale * s.zoomRate).toFixed(3)
|
|
161
160
|
));
|
|
162
161
|
break;
|
|
163
162
|
case "clockwise":
|
|
164
|
-
|
|
163
|
+
i.value.deg += o;
|
|
165
164
|
break;
|
|
166
165
|
case "anticlockwise":
|
|
167
|
-
|
|
166
|
+
i.value.deg -= o;
|
|
168
167
|
break;
|
|
169
168
|
}
|
|
170
|
-
|
|
169
|
+
i.value.enableTransition = r;
|
|
171
170
|
}
|
|
172
|
-
return R(
|
|
171
|
+
return R(W, () => {
|
|
173
172
|
te(() => {
|
|
174
173
|
const e = Y.value[0];
|
|
175
174
|
e != null && e.complete || (k.value = !0);
|
|
@@ -178,8 +177,8 @@ const pe = ["src"], a = (
|
|
|
178
177
|
N(), X("switch", e);
|
|
179
178
|
}), ne(() => {
|
|
180
179
|
var e, t;
|
|
181
|
-
|
|
182
|
-
}),
|
|
180
|
+
G(), (t = (e = C.value) == null ? void 0 : e.focus) == null || t.call(e);
|
|
181
|
+
}), Z({
|
|
183
182
|
/** @description manually switch image */
|
|
184
183
|
setActiveItem: L
|
|
185
184
|
}), (e, t) => (x(), oe(ae, {
|
|
@@ -190,27 +189,27 @@ const pe = ["src"], a = (
|
|
|
190
189
|
name: "viewer-fade",
|
|
191
190
|
appear: ""
|
|
192
191
|
}, {
|
|
193
|
-
default:
|
|
192
|
+
default: ie(() => [
|
|
194
193
|
c("div", {
|
|
195
194
|
ref_key: "wrapper",
|
|
196
195
|
ref: C,
|
|
197
196
|
tabindex: -1,
|
|
198
|
-
class:
|
|
199
|
-
style: S({ zIndex:
|
|
197
|
+
class: l(n(a).e("wrapper")),
|
|
198
|
+
style: S({ zIndex: q.value })
|
|
200
199
|
}, [
|
|
201
200
|
c("div", {
|
|
202
|
-
class:
|
|
203
|
-
onClick: t[0] || (t[0] =
|
|
201
|
+
class: l(n(a).e("mask")),
|
|
202
|
+
onClick: t[0] || (t[0] = le((o) => e.hideOnClickModal && y(), ["self"]))
|
|
204
203
|
}, null, 2),
|
|
205
204
|
c("span", {
|
|
206
|
-
class:
|
|
205
|
+
class: l([n(a).e("btn"), n(a).e("close")]),
|
|
207
206
|
onClick: y
|
|
208
207
|
}, [
|
|
209
208
|
d(n(v), { icon: "ico-ep:close" })
|
|
210
209
|
], 2),
|
|
211
|
-
|
|
210
|
+
P.value ? re("", !0) : (x(), E(V, { key: 0 }, [
|
|
212
211
|
c("span", {
|
|
213
|
-
class:
|
|
212
|
+
class: l([
|
|
214
213
|
n(a).e("btn"),
|
|
215
214
|
n(a).e("prev"),
|
|
216
215
|
n(a).is("disabled", !e.infinite && $.value)
|
|
@@ -220,7 +219,7 @@ const pe = ["src"], a = (
|
|
|
220
219
|
d(n(v), { icon: "ico-ep:arrow-left" })
|
|
221
220
|
], 2),
|
|
222
221
|
c("span", {
|
|
223
|
-
class:
|
|
222
|
+
class: l([
|
|
224
223
|
n(a).e("btn"),
|
|
225
224
|
n(a).e("next"),
|
|
226
225
|
n(a).is("disabled", !e.infinite && M.value)
|
|
@@ -231,10 +230,10 @@ const pe = ["src"], a = (
|
|
|
231
230
|
], 2)
|
|
232
231
|
], 64)),
|
|
233
232
|
c("div", {
|
|
234
|
-
class:
|
|
233
|
+
class: l([n(a).e("btn"), n(a).e("actions")])
|
|
235
234
|
}, [
|
|
236
235
|
c("div", {
|
|
237
|
-
class:
|
|
236
|
+
class: l(n(a).e("actions__inner"))
|
|
238
237
|
}, [
|
|
239
238
|
d(n(v), {
|
|
240
239
|
icon: "ico-ep:zoom-out",
|
|
@@ -245,14 +244,14 @@ const pe = ["src"], a = (
|
|
|
245
244
|
onClick: t[2] || (t[2] = (o) => p("zoomIn"))
|
|
246
245
|
}),
|
|
247
246
|
c("i", {
|
|
248
|
-
class:
|
|
247
|
+
class: l(n(a).e("actions__divider"))
|
|
249
248
|
}, null, 2),
|
|
250
249
|
d(n(v), {
|
|
251
250
|
icon: "ico-ep:scale-to-original",
|
|
252
251
|
onClick: B
|
|
253
252
|
}),
|
|
254
253
|
c("i", {
|
|
255
|
-
class:
|
|
254
|
+
class: l(n(a).e("actions__divider"))
|
|
256
255
|
}, null, 2),
|
|
257
256
|
d(n(v), {
|
|
258
257
|
icon: "ico-ep:refresh-left",
|
|
@@ -265,18 +264,18 @@ const pe = ["src"], a = (
|
|
|
265
264
|
], 2)
|
|
266
265
|
], 2),
|
|
267
266
|
c("div", {
|
|
268
|
-
class:
|
|
267
|
+
class: l(n(a).e("canvas"))
|
|
269
268
|
}, [
|
|
270
269
|
(x(!0), E(V, null, ce(e.urlList, (o, r) => ue((x(), E("img", {
|
|
271
270
|
ref_for: !0,
|
|
272
271
|
ref: (h) => Y.value[r] = h,
|
|
273
272
|
key: o,
|
|
274
273
|
src: o,
|
|
275
|
-
style: S(
|
|
276
|
-
class:
|
|
277
|
-
onLoad:
|
|
278
|
-
onError:
|
|
279
|
-
onMousedown:
|
|
274
|
+
style: S(j.value),
|
|
275
|
+
class: l(n(a).e("img")),
|
|
276
|
+
onLoad: K,
|
|
277
|
+
onError: Q,
|
|
278
|
+
onMousedown: U
|
|
280
279
|
}, null, 46, pe)), [
|
|
281
280
|
[fe, r === m.value]
|
|
282
281
|
])), 128))
|
|
@@ -290,5 +289,5 @@ const pe = ["src"], a = (
|
|
|
290
289
|
}
|
|
291
290
|
});
|
|
292
291
|
export {
|
|
293
|
-
|
|
292
|
+
Le as default
|
|
294
293
|
};
|
package/es/components/index.js
CHANGED
|
@@ -78,39 +78,39 @@ import { VftMdCodeDemo as ge } from "./md-code-demo/index.js";
|
|
|
78
78
|
import { VftMdCodeTabs as Pe } from "./md-code-tabs/index.js";
|
|
79
79
|
import { VftMessage as De, VftMessage as ye } from "./message/index.js";
|
|
80
80
|
import { VftLoading as Me } from "./loading/index.js";
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import { default as Oe } from "./popper/
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
81
|
+
import { EmptyEnum as Ee } from "./empty/constants.js";
|
|
82
|
+
import { TabsRootContextKey as Ke } from "./tabs/types.js";
|
|
83
|
+
import { default as Fe } from "./popper/arrow.vue2.js";
|
|
84
|
+
import { default as Ae } from "./popper/trigger.vue2.js";
|
|
85
|
+
import { default as Oe } from "./popper/content.vue2.js";
|
|
86
|
+
import { TOOLTIP_INJECTION_KEY as _e } from "./tooltip/constants.js";
|
|
87
|
+
import { useTabDropdown as we } from "./multiple-tabs/use/use-tab-dropdown.js";
|
|
88
|
+
import { initAffixTabs as Ne, useTabsDrag as Be } from "./multiple-tabs/use/use-multiple-tabs.js";
|
|
89
|
+
import { configProviderContextKey as Ue, messageConfig as Je } from "./config-provider/constants.js";
|
|
90
|
+
import { provideGlobalConfig as je, useGlobalComponentSettings as qe, useGlobalConfig as We } from "./config-provider/hooks/use-global-config.js";
|
|
91
|
+
import { usePagination as Xe, vftPaginationKey as Ze } from "./pagination/usePagination.js";
|
|
92
|
+
import { formItemValidateStates as or } from "./form/types.js";
|
|
93
|
+
import { formContextKey as er, formItemContextKey as rr } from "./form/constants.js";
|
|
94
|
+
import { useDisabled as pr, useFormDisabled as mr, useFormSize as xr, useSize as ar } from "./form/hooks/use-form-common-props.js";
|
|
95
|
+
import { useFormItem as Vr, useFormItemInputId as nr } from "./form/hooks/use-form-item.js";
|
|
96
|
+
import { buttonGroupContextKey as ur } from "./button/constants.js";
|
|
97
|
+
import { checkboxGroupContextKey as dr } from "./checkbox/constants.js";
|
|
98
|
+
import { radioGroupKey as Cr } from "./radio/constants.js";
|
|
99
|
+
import { BAR_MAP as Tr, GAP as Pr, renderThumbStyle as Ir } from "./scrollbar/util.js";
|
|
100
|
+
import { scrollbarContextKey as yr } from "./scrollbar/constants.js";
|
|
101
|
+
import { DROPDOWN_INJECTION_KEY as Mr } from "./dropdown/tokens.js";
|
|
102
|
+
import { selectV2InjectionKey as Er } from "./select-v2/token.js";
|
|
103
|
+
import { selectGroupKey as Kr, selectKey as vr } from "./select/token.js";
|
|
104
|
+
import { INDEX as kr } from "./table/columns.js";
|
|
105
|
+
import { useDialog as Gr } from "./dialog/hooks/use-dialog.js";
|
|
106
|
+
import { dialogInjectionKey as Rr } from "./dialog/constants.js";
|
|
107
|
+
import { rowContextKey as zr } from "./row/constants.js";
|
|
108
|
+
import { MenuTypeEnum as hr } from "./horizontal-menu/constants.js";
|
|
109
|
+
import { buildTimeList as Br, dateEquals as Hr, extractDateFormat as Ur, extractTimeFormat as Jr, formatter as Yr, makeList as jr, parseDate as qr, rangeArr as Wr, valueEquals as Qr } from "./time-picker/utils.js";
|
|
110
|
+
import { DEFAULT_FORMATS_DATE as Zr, DEFAULT_FORMATS_DATEPICKER as $r, DEFAULT_FORMATS_TIME as of, timeUnits as tf } from "./time-picker/constants.js";
|
|
111
|
+
import { timePickerDefaultProps as rf } from "./time-picker/common/props.js";
|
|
112
|
+
import { default as pf } from "./time-picker/common/picker.vue2.js";
|
|
113
|
+
import { default as xf } from "./time-picker/time-picker-com/panel-time-pick.vue2.js";
|
|
114
114
|
import { ROOT_PICKER_INJECTION_KEY as Vf, datePickerConfig as nf } from "./date-picker/constants.js";
|
|
115
115
|
import { datePickerProps as uf } from "./date-picker/props/date-picker.js";
|
|
116
116
|
import { dragEventsKey as df, useDragNodeHandler as cf } from "./tree/model/useDragNode.js";
|
|
@@ -121,26 +121,26 @@ import { messageDefaults as Sf, messageTypes as Mf } from "./message/types.js";
|
|
|
121
121
|
import { vLoading as Ef, createLoadingDirective as Lf, vLoading as Kf } from "./loading/directive.js";
|
|
122
122
|
import { Loading as Ff } from "./loading/service.js";
|
|
123
123
|
export {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
124
|
+
Tr as BAR_MAP,
|
|
125
|
+
pf as CommonPicker,
|
|
126
|
+
Zr as DEFAULT_FORMATS_DATE,
|
|
127
|
+
$r as DEFAULT_FORMATS_DATEPICKER,
|
|
128
|
+
of as DEFAULT_FORMATS_TIME,
|
|
129
|
+
Mr as DROPDOWN_INJECTION_KEY,
|
|
130
130
|
st as DynamicSizeGrid,
|
|
131
131
|
at as DynamicSizeList,
|
|
132
|
-
|
|
132
|
+
Ee as EmptyEnum,
|
|
133
133
|
Vt as FixedSizeGrid,
|
|
134
134
|
mt as FixedSizeList,
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
Pr as GAP,
|
|
136
|
+
kr as INDEX,
|
|
137
137
|
f as Icon,
|
|
138
|
-
|
|
138
|
+
hr as MenuTypeEnum,
|
|
139
139
|
De as Message,
|
|
140
140
|
Vf as ROOT_PICKER_INJECTION_KEY,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
_e as TOOLTIP_INJECTION_KEY,
|
|
142
|
+
Ke as TabsRootContextKey,
|
|
143
|
+
xf as TimePickPanel,
|
|
144
144
|
ae as VftAlert,
|
|
145
145
|
q as VftAside,
|
|
146
146
|
x as VftAvatar,
|
|
@@ -210,9 +210,9 @@ export {
|
|
|
210
210
|
me as VftPopconfirm,
|
|
211
211
|
D as VftPopover,
|
|
212
212
|
c as VftPopper,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
213
|
+
Fe as VftPopperArrow,
|
|
214
|
+
Oe as VftPopperContent,
|
|
215
|
+
Ae as VftPopperTrigger,
|
|
216
216
|
Do as VftQrcode,
|
|
217
217
|
Yo as VftRadio,
|
|
218
218
|
jo as VftRadioButton,
|
|
@@ -239,61 +239,61 @@ export {
|
|
|
239
239
|
Xt as VftTree,
|
|
240
240
|
Mt as VftTreeSelect,
|
|
241
241
|
Et as VftVerifyCode,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
242
|
+
Br as buildTimeList,
|
|
243
|
+
ur as buttonGroupContextKey,
|
|
244
|
+
dr as checkboxGroupContextKey,
|
|
245
|
+
Ue as configProviderContextKey,
|
|
246
246
|
K as createContextMenu,
|
|
247
247
|
Lf as createLoadingDirective,
|
|
248
|
-
|
|
248
|
+
Hr as dateEquals,
|
|
249
249
|
nf as datePickerConfig,
|
|
250
250
|
uf as datePickerProps,
|
|
251
251
|
v as destroyContextMenu,
|
|
252
|
-
|
|
252
|
+
Rr as dialogInjectionKey,
|
|
253
253
|
df as dragEventsKey,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
254
|
+
Ur as extractDateFormat,
|
|
255
|
+
Jr as extractTimeFormat,
|
|
256
|
+
er as formContextKey,
|
|
257
|
+
rr as formItemContextKey,
|
|
258
|
+
or as formItemValidateStates,
|
|
259
|
+
Yr as formatter,
|
|
260
260
|
gf as getChildState,
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
Ne as initAffixTabs,
|
|
262
|
+
jr as makeList,
|
|
263
|
+
Je as messageConfig,
|
|
264
264
|
Sf as messageDefaults,
|
|
265
265
|
Mf as messageTypes,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
266
|
+
qr as parseDate,
|
|
267
|
+
je as provideGlobalConfig,
|
|
268
|
+
Cr as radioGroupKey,
|
|
269
|
+
Wr as rangeArr,
|
|
270
|
+
Ir as renderThumbStyle,
|
|
271
|
+
zr as rowContextKey,
|
|
272
|
+
yr as scrollbarContextKey,
|
|
273
|
+
Kr as selectGroupKey,
|
|
274
|
+
vr as selectKey,
|
|
275
|
+
Er as selectV2InjectionKey,
|
|
276
276
|
Pf as spaceProps,
|
|
277
|
-
|
|
278
|
-
|
|
277
|
+
rf as timePickerDefaultProps,
|
|
278
|
+
tf as timeUnits,
|
|
279
279
|
k as useContextMenu,
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
Gr as useDialog,
|
|
281
|
+
pr as useDisabled,
|
|
282
282
|
cf as useDragNodeHandler,
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
283
|
+
mr as useFormDisabled,
|
|
284
|
+
Vr as useFormItem,
|
|
285
|
+
nr as useFormItemInputId,
|
|
286
|
+
xr as useFormSize,
|
|
287
|
+
qe as useGlobalComponentSettings,
|
|
288
|
+
We as useGlobalConfig,
|
|
289
|
+
Xe as usePagination,
|
|
290
|
+
ar as useSize,
|
|
291
291
|
Df as useSpace,
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
we as useTabDropdown,
|
|
293
|
+
Be as useTabsDrag,
|
|
294
294
|
Kf as vLoading,
|
|
295
|
-
|
|
296
|
-
|
|
295
|
+
Qr as valueEquals,
|
|
296
|
+
Ze as vftPaginationKey,
|
|
297
297
|
lt as virtualizedGridProps,
|
|
298
298
|
dt as virtualizedListProps,
|
|
299
299
|
ct as virtualizedProps,
|