vft 0.0.429 → 0.0.430
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/attributes.json +1 -1
- package/es/components/alert/alert.vue2.js +38 -38
- package/es/components/autocomplete/autocomplete.vue2.js +82 -82
- package/es/components/avatar/avatar.vue2.js +23 -23
- package/es/components/avatar-stack/avatar-stack.vue2.js +25 -25
- package/es/components/breadcrumb/breadcrumb-item.vue2.js +19 -19
- package/es/components/button/button.vue2.js +37 -37
- package/es/components/card/card.vue2.js +19 -19
- package/es/components/carousel/carousel.vue2.js +75 -75
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/cascader-panel/index.vue2.js +2 -2
- package/es/components/cascader-panel/menu.vue2.js +2 -2
- package/es/components/cascader-panel/node.vue2.js +3 -4
- package/es/components/checkbox/checkbox-button.vue2.js +52 -52
- package/es/components/checkbox/checkbox-group.vue2.js +26 -26
- package/es/components/checkbox/checkbox.vue2.js +57 -57
- package/es/components/clamp/clamp.vue2.js +14 -14
- package/es/components/clamp-toggle/clamp-toggle.vue2.js +17 -17
- package/es/components/clamp-tooltip/clamp-tooltip.vue2.js +19 -19
- package/es/components/col/col.vue2.js +20 -20
- package/es/components/color-picker/color-picker.vue2.js +126 -128
- package/es/components/color-picker/components/sv-panel.vue.js +2 -2
- package/es/components/config-provider/hooks/use-global-config.js +3 -3
- package/es/components/context-menu/context-menu.vue2.js +18 -18
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +37 -39
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +8 -10
- package/es/components/date-picker/date-picker.d.ts +1 -1
- package/es/components/date-picker/index.d.ts +2 -2
- package/es/components/descriptions/description.vue2.js +44 -44
- package/es/components/descriptions/descriptions-row.vue2.js +12 -12
- package/es/components/dialog/dialog-content.vue2.js +31 -31
- package/es/components/dialog/dialog.vue2.js +46 -46
- package/es/components/divider/divider.vue2.js +19 -19
- package/es/components/drawer/drawer.vue2.js +41 -41
- package/es/components/dropdown/dropdown-item-impl.vue2.js +40 -40
- package/es/components/dropdown/dropdown-item.vue2.js +28 -28
- package/es/components/dropdown/dropdown.vue2.js +124 -124
- package/es/components/form/form-item.vue2.js +71 -71
- package/es/components/header-layout/header-layout.vue2.js +25 -25
- package/es/components/icon/icon.vue2.js +15 -15
- package/es/components/icon-text/icon-text.vue2.js +28 -28
- package/es/components/iframe-layout/iframe-layout.vue2.js +13 -13
- package/es/components/iframe-layout/iframe-page.vue2.js +11 -11
- package/es/components/image/image.vue2.js +63 -63
- package/es/components/image-viewer/image-viewer.vue2.js +88 -88
- package/es/components/infinite-scroll/index.d.ts +1 -1
- package/es/components/input/input.vue2.js +112 -112
- package/es/components/input-number/input-number.vue2.js +100 -100
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/link/link.vue2.js +20 -20
- package/es/components/list-cell/list-cell.vue2.js +19 -19
- package/es/components/logo/logo.vue2.js +22 -22
- package/es/components/menu/menu-item-group.vue2.js +8 -8
- package/es/components/menu/menu-item.vue2.js +48 -48
- package/es/components/message/message.vue2.js +66 -66
- package/es/components/modal/modal-footer-action.vue2.js +25 -25
- package/es/components/modal/modal.vue2.js +40 -40
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +30 -30
- package/es/components/page-wrapper/page-wrapper.vue2.js +12 -12
- package/es/components/pagination/components/jumper.vue2.js +18 -18
- package/es/components/pagination/components/next.vue2.js +11 -11
- package/es/components/pagination/components/pager.vue2.js +74 -74
- package/es/components/pagination/components/prev.vue2.js +9 -9
- package/es/components/pagination/components/sizes.vue2.js +18 -18
- package/es/components/pagination/components/total.vue2.js +8 -8
- package/es/components/popconfirm/popconfirm.vue2.js +47 -47
- package/es/components/popover/popover.vue2.js +28 -28
- package/es/components/popper/trigger.vue2.js +9 -9
- package/es/components/progress/progress.vue2.js +87 -87
- package/es/components/qrcode/qrcode.vue2.js +31 -31
- package/es/components/radio/radio-button.vue2.js +17 -17
- package/es/components/radio/radio-group.vue2.js +35 -35
- package/es/components/router-view-content/router-view-content.vue2.js +25 -25
- package/es/components/roving-focus-group/roving-focus-item.vue2.js +30 -30
- package/es/components/row/row.vue2.js +5 -5
- package/es/components/scrollbar/bar.vue2.js +16 -16
- package/es/components/scrollbar/scrollbar.vue2.js +48 -48
- package/es/components/scrollbar/thumb.vue2.js +27 -27
- package/es/components/search/search.vue2.js +29 -29
- package/es/components/select/index.d.ts +1 -1
- package/es/components/select/select.vue.d.ts +1 -1
- package/es/components/side-menu/index.d.ts +2 -8
- package/es/components/side-menu/side-menu.vue.d.ts +5 -59
- package/es/components/side-menu/types.d.ts +107 -0
- package/es/components/skeleton/skeleton-item.vue2.js +9 -9
- package/es/components/skeleton/skeleton.vue2.js +14 -14
- package/es/components/slider/button.vue2.js +54 -54
- package/es/components/slider/slider.vue2.js +106 -106
- package/es/components/steps/item.vue2.js +56 -56
- package/es/components/steps/steps.vue2.js +16 -16
- package/es/components/super-form/super-form-action.vue2.js +28 -28
- package/es/components/super-form/super-form-item.vue2.js +1 -1
- package/es/components/switch/switch.vue2.js +108 -108
- package/es/components/table/field.d.ts +4 -4
- package/es/components/teleport/teleport.vue2.js +6 -6
- package/es/components/time-picker/common/picker.vue.d.ts +1 -1
- package/es/components/time-picker/index.d.ts +2 -2
- package/es/components/time-picker/time-picker.d.ts +1 -1
- package/es/components/timeline/timeline-item.vue2.js +20 -20
- package/es/components/tooltip/content.vue2.js +57 -57
- package/es/components/tooltip/tooltip.vue2.js +66 -66
- package/es/components/tooltip/trigger.vue2.js +42 -42
- package/es/components/tree/tree.vue2.js +72 -72
- package/es/components/upload/upload-content.vue2.js +85 -85
- package/es/components/upload/upload-list.vue2.js +70 -70
- package/es/components/upload/upload.vue2.js +86 -86
- package/es/components/verify-code/verify-code.vue2.js +18 -18
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/vue/vnode.js +1 -1
- package/lib/components/alert/alert.vue2.cjs +1 -1
- package/lib/components/autocomplete/autocomplete.vue2.cjs +1 -1
- package/lib/components/avatar/avatar.vue2.cjs +1 -1
- package/lib/components/avatar-stack/avatar-stack.vue2.cjs +1 -1
- package/lib/components/breadcrumb/breadcrumb-item.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/carousel/carousel.vue2.cjs +1 -1
- package/lib/components/cascader-panel/index.vue2.cjs +1 -1
- package/lib/components/cascader-panel/menu.vue2.cjs +1 -1
- package/lib/components/cascader-panel/node.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/clamp-tooltip/clamp-tooltip.vue2.cjs +1 -1
- package/lib/components/col/col.vue2.cjs +1 -1
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/color-picker/components/sv-panel.vue.cjs +1 -1
- package/lib/components/context-menu/context-menu.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-date-range.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker.d.ts +1 -1
- package/lib/components/date-picker/index.d.ts +2 -2
- 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/drawer/drawer.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown-item-impl.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown-item.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/form/form-item.vue2.cjs +1 -1
- package/lib/components/header-layout/header-layout.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/infinite-scroll/index.d.ts +1 -1
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/input-number/input-number.vue2.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/menu/menu-item-group.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/message/message.vue2.cjs +1 -1
- package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
- package/lib/components/modal/modal.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
- package/lib/components/pagination/components/jumper.vue2.cjs +1 -1
- package/lib/components/pagination/components/next.vue2.cjs +1 -1
- package/lib/components/pagination/components/pager.vue2.cjs +1 -1
- package/lib/components/pagination/components/prev.vue2.cjs +1 -1
- package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
- package/lib/components/pagination/components/total.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/trigger.vue2.cjs +1 -1
- package/lib/components/progress/progress.vue2.cjs +5 -5
- 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/router-view-content/router-view-content.vue2.cjs +1 -1
- package/lib/components/roving-focus-group/roving-focus-item.vue2.cjs +1 -1
- package/lib/components/row/row.vue2.cjs +1 -1
- package/lib/components/scrollbar/bar.vue2.cjs +1 -1
- package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
- package/lib/components/scrollbar/thumb.vue2.cjs +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/select/index.d.ts +1 -1
- package/lib/components/select/select.vue.d.ts +1 -1
- package/lib/components/side-menu/index.d.ts +2 -8
- package/lib/components/side-menu/side-menu.vue.d.ts +5 -59
- package/lib/components/side-menu/types.d.ts +107 -0
- package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
- package/lib/components/skeleton/skeleton.vue2.cjs +1 -1
- package/lib/components/slider/button.vue2.cjs +1 -1
- package/lib/components/slider/slider.vue2.cjs +1 -1
- package/lib/components/steps/item.vue2.cjs +1 -1
- package/lib/components/steps/steps.vue2.cjs +1 -1
- package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
- package/lib/components/switch/switch.vue2.cjs +1 -1
- package/lib/components/table/field.d.ts +4 -4
- package/lib/components/teleport/teleport.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue.d.ts +1 -1
- package/lib/components/time-picker/index.d.ts +2 -2
- package/lib/components/time-picker/time-picker.d.ts +1 -1
- package/lib/components/timeline/timeline-item.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/tree/tree.vue2.cjs +1 -1
- package/lib/components/upload/upload-content.vue2.cjs +1 -1
- package/lib/components/upload/upload-list.vue2.cjs +1 -1
- package/lib/components/upload/upload.vue2.cjs +1 -1
- package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +5 -5
- package/tags.json +1 -1
- package/theme-style/src/mixins/mixins.scss +1 -0
- package/web-types.json +1 -1
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { defineComponent as l, getCurrentInstance as d, inject as k, ref as b, createElementBlock as
|
|
1
|
+
import { defineComponent as l, getCurrentInstance as d, inject as k, ref as b, createElementBlock as p, openBlock as a, normalizeClass as s, unref as e, createElementVNode as y, createBlock as C, renderSlot as _, mergeProps as g, toDisplayString as B } from "vue";
|
|
2
2
|
import { VftIcon as I } from "../icon/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "@vft/utils";
|
|
5
5
|
import "../config-provider/hooks/use-global-config.js";
|
|
6
6
|
import "lodash-es";
|
|
7
7
|
import "../form/index.js";
|
|
8
|
-
import { useNamespace as
|
|
8
|
+
import { useNamespace as x } from "../../hooks/use-namespace/index.js";
|
|
9
9
|
import "../../hooks/use-model-toggle/index.js";
|
|
10
10
|
import "@popperjs/core";
|
|
11
11
|
import "../../hooks/use-z-index/index.js";
|
|
12
|
-
import { breadcrumbKey as
|
|
13
|
-
const
|
|
12
|
+
import { breadcrumbKey as V } from "./constants.js";
|
|
13
|
+
const h = l({
|
|
14
14
|
name: "VftBreadcrumbItem"
|
|
15
15
|
}), F = /* @__PURE__ */ l({
|
|
16
|
-
...
|
|
16
|
+
...h,
|
|
17
17
|
props: {
|
|
18
18
|
to: {},
|
|
19
19
|
replace: { type: Boolean }
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
23
|
-
!
|
|
21
|
+
setup(c) {
|
|
22
|
+
const t = c, i = d(), o = k(V, void 0), r = x("breadcrumb"), n = i.appContext.config.globalProperties.$router, m = b(), u = () => {
|
|
23
|
+
!t.to || !n || (t.replace ? n.replace(t.to) : n.push(t.to));
|
|
24
24
|
};
|
|
25
|
-
return (
|
|
26
|
-
class:
|
|
25
|
+
return (f, E) => (a(), p("span", {
|
|
26
|
+
class: s(e(r).e("item"))
|
|
27
27
|
}, [
|
|
28
|
-
|
|
28
|
+
y("span", {
|
|
29
29
|
ref_key: "link",
|
|
30
|
-
ref:
|
|
31
|
-
class:
|
|
30
|
+
ref: m,
|
|
31
|
+
class: s([e(r).e("inner"), e(r).is("link", !!c.to)]),
|
|
32
32
|
role: "link",
|
|
33
|
-
onClick:
|
|
33
|
+
onClick: u
|
|
34
34
|
}, [
|
|
35
|
-
|
|
35
|
+
_(f.$slots, "default")
|
|
36
36
|
], 2),
|
|
37
|
-
e(
|
|
37
|
+
e(o)?.separatorIcon ? (a(), C(e(I), g({ key: 0 }, e(o).separatorIcon, {
|
|
38
38
|
class: e(r).e("separator")
|
|
39
|
-
}), null, 16, ["class"])) : (
|
|
39
|
+
}), null, 16, ["class"])) : (a(), p("span", {
|
|
40
40
|
key: 1,
|
|
41
|
-
class:
|
|
41
|
+
class: s(e(r).e("separator")),
|
|
42
42
|
role: "presentation"
|
|
43
|
-
}, B(e(
|
|
43
|
+
}, B(e(o)?.separator), 3))
|
|
44
44
|
], 2));
|
|
45
45
|
}
|
|
46
46
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { VftIcon as
|
|
1
|
+
import { defineComponent as g, computed as T, createBlock as i, openBlock as l, resolveDynamicComponent as $, mergeProps as p, unref as e, withCtx as I, createElementBlock as y, createCommentVNode as f, Fragment as A, renderSlot as k, normalizeClass as B, normalizeProps as N } from "vue";
|
|
2
|
+
import { VftIcon as b } from "../icon/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import { singleAttrToObj as P } from "@vft/utils";
|
|
5
5
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -11,9 +11,9 @@ import "@popperjs/core";
|
|
|
11
11
|
import "../../hooks/use-z-index/index.js";
|
|
12
12
|
import { useButtonCustomStyle as j } from "./button-custom.js";
|
|
13
13
|
import { useButton as w } from "./use-button.js";
|
|
14
|
-
const D =
|
|
14
|
+
const D = g({
|
|
15
15
|
name: "vft-button"
|
|
16
|
-
}), X = /* @__PURE__ */
|
|
16
|
+
}), X = /* @__PURE__ */ g({
|
|
17
17
|
...D,
|
|
18
18
|
props: {
|
|
19
19
|
tag: { default: "button" },
|
|
@@ -39,50 +39,50 @@ const D = b({
|
|
|
39
39
|
throttleTime: { default: 300 }
|
|
40
40
|
},
|
|
41
41
|
emits: ["click"],
|
|
42
|
-
setup(
|
|
43
|
-
const
|
|
42
|
+
setup(o, { expose: C, emit: h }) {
|
|
43
|
+
const a = o, v = h, t = V("button"), x = j(a), { _ref: s, _size: r, _type: c, _disabled: m, _props: z, shouldAddSpace: u, handleClick: S } = w(a, v), d = T(() => P(a.icon, "icon"));
|
|
44
44
|
return C({
|
|
45
|
-
ref:
|
|
46
|
-
size:
|
|
47
|
-
type:
|
|
48
|
-
disabled:
|
|
49
|
-
shouldAddSpace:
|
|
50
|
-
}), (
|
|
45
|
+
ref: s,
|
|
46
|
+
size: r,
|
|
47
|
+
type: c,
|
|
48
|
+
disabled: m,
|
|
49
|
+
shouldAddSpace: u
|
|
50
|
+
}), (n, E) => (l(), i($(o.tag), p({
|
|
51
51
|
ref_key: "_ref",
|
|
52
|
-
ref:
|
|
53
|
-
}, e(
|
|
52
|
+
ref: s
|
|
53
|
+
}, e(z), {
|
|
54
54
|
class: [
|
|
55
|
-
e(
|
|
56
|
-
e(
|
|
57
|
-
e(
|
|
58
|
-
e(
|
|
59
|
-
e(
|
|
60
|
-
e(
|
|
61
|
-
e(
|
|
62
|
-
e(
|
|
63
|
-
e(
|
|
64
|
-
e(
|
|
65
|
-
e(
|
|
66
|
-
e(
|
|
55
|
+
e(t).b(),
|
|
56
|
+
e(t).m(e(c)),
|
|
57
|
+
e(t).m(e(r)),
|
|
58
|
+
e(t).is("disabled", e(m)),
|
|
59
|
+
e(t).is("loading", o.loading),
|
|
60
|
+
e(t).is("plain", o.plain),
|
|
61
|
+
e(t).is("round", o.round),
|
|
62
|
+
e(t).is("circle", o.circle),
|
|
63
|
+
e(t).is("text", o.text),
|
|
64
|
+
e(t).is("link", o.link),
|
|
65
|
+
e(t).is("has-bg", o.bg),
|
|
66
|
+
e(t).is("block", o.block)
|
|
67
67
|
],
|
|
68
|
-
style: e(
|
|
69
|
-
onClick: e(
|
|
68
|
+
style: e(x),
|
|
69
|
+
onClick: e(S)
|
|
70
70
|
}), {
|
|
71
|
-
default:
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
default: I(() => [
|
|
72
|
+
o.loading ? (l(), y(A, { key: 0 }, [
|
|
73
|
+
n.$slots.loading ? k(n.$slots, "loading", { key: 0 }) : (l(), i(e(b), {
|
|
74
74
|
key: 1,
|
|
75
75
|
rotate: "",
|
|
76
|
-
class:
|
|
76
|
+
class: B(e(t).is("loading")),
|
|
77
77
|
icon: "icon-loading"
|
|
78
78
|
}, null, 8, ["class"]))
|
|
79
|
-
], 64)) :
|
|
80
|
-
|
|
79
|
+
], 64)) : d.value?.icon ? (l(), i(e(b), N(p({ key: 1 }, d.value)), null, 16)) : f("", !0),
|
|
80
|
+
n.$slots.default ? (l(), y("span", {
|
|
81
81
|
key: 2,
|
|
82
|
-
class:
|
|
82
|
+
class: B({ [e(t).em("text", "expand")]: e(u) })
|
|
83
83
|
}, [
|
|
84
|
-
|
|
85
|
-
], 2)) :
|
|
84
|
+
k(n.$slots, "default")
|
|
85
|
+
], 2)) : f("", !0)
|
|
86
86
|
]),
|
|
87
87
|
_: 3
|
|
88
88
|
}, 16, ["class", "style", "onClick"]));
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as m, createElementBlock as d, openBlock as s, normalizeClass as r, unref as a, createCommentVNode as i, createElementVNode as n, renderSlot as l, createTextVNode as c, toDisplayString as f, normalizeStyle as p } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "../form/index.js";
|
|
7
|
-
import { useNamespace as
|
|
7
|
+
import { useNamespace as u } from "../../hooks/use-namespace/index.js";
|
|
8
8
|
import "../../hooks/use-model-toggle/index.js";
|
|
9
9
|
import "@popperjs/core";
|
|
10
10
|
import "../../hooks/use-z-index/index.js";
|
|
11
|
-
const
|
|
11
|
+
const h = m({
|
|
12
12
|
name: "vft-card"
|
|
13
|
-
}),
|
|
14
|
-
...
|
|
13
|
+
}), B = /* @__PURE__ */ m({
|
|
14
|
+
...h,
|
|
15
15
|
props: {
|
|
16
16
|
header: { default: "" },
|
|
17
17
|
bodyStyle: { default: "" },
|
|
18
18
|
shadow: { default: "always" }
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
22
|
-
return (
|
|
23
|
-
class:
|
|
20
|
+
setup(e) {
|
|
21
|
+
const t = u("card");
|
|
22
|
+
return (o, y) => (s(), d("div", {
|
|
23
|
+
class: r([a(t).b(), a(t).is(`${e.shadow}-shadow`)])
|
|
24
24
|
}, [
|
|
25
|
-
|
|
25
|
+
o.$slots.header || e.header ? (s(), d("div", {
|
|
26
26
|
key: 0,
|
|
27
|
-
class:
|
|
27
|
+
class: r(a(t).e("header"))
|
|
28
28
|
}, [
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
l(o.$slots, "header", {}, () => [
|
|
30
|
+
c(f(e.header), 1)
|
|
31
31
|
])
|
|
32
|
-
], 2)) :
|
|
33
|
-
|
|
34
|
-
class:
|
|
35
|
-
style:
|
|
32
|
+
], 2)) : i("", !0),
|
|
33
|
+
n("div", {
|
|
34
|
+
class: r(a(t).e("body")),
|
|
35
|
+
style: p(e.bodyStyle)
|
|
36
36
|
}, [
|
|
37
|
-
|
|
37
|
+
l(o.$slots, "default")
|
|
38
38
|
], 6)
|
|
39
39
|
], 2));
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
export {
|
|
43
|
-
|
|
43
|
+
B as default
|
|
44
44
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, getCurrentInstance as _, computed as T, unref as e, createElementBlock as
|
|
1
|
+
import { defineComponent as E, getCurrentInstance as _, computed as T, unref as e, createElementBlock as d, openBlock as s, withModifiers as m, normalizeClass as l, createBlock as L, createCommentVNode as f, createElementVNode as a, createVNode as p, Transition as V, withCtx as y, withDirectives as g, vShow as h, normalizeStyle as ee, renderSlot as te, Fragment as oe, renderList as ne, toDisplayString as re } from "vue";
|
|
2
2
|
import { VftIcon as D } from "../icon/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "@vft/utils";
|
|
@@ -35,60 +35,60 @@ const se = ["onMouseenter", "onClick"], le = { key: 0 }, ue = {
|
|
|
35
35
|
cardScale: { default: 0.83 }
|
|
36
36
|
},
|
|
37
37
|
emits: ["change"],
|
|
38
|
-
setup(
|
|
38
|
+
setup(i, { expose: z, emit: G }) {
|
|
39
39
|
const t = ie("carousel"), N = G, P = _(), {
|
|
40
|
-
root:
|
|
41
|
-
activeIndex:
|
|
40
|
+
root: x,
|
|
41
|
+
activeIndex: u,
|
|
42
42
|
arrowDisplay: k,
|
|
43
43
|
hasLabel: C,
|
|
44
44
|
hover: B,
|
|
45
|
-
isCardType:
|
|
45
|
+
isCardType: H,
|
|
46
46
|
items: b,
|
|
47
47
|
isVertical: w,
|
|
48
|
-
containerStyle:
|
|
48
|
+
containerStyle: A,
|
|
49
49
|
handleButtonEnter: M,
|
|
50
|
-
handleButtonLeave:
|
|
51
|
-
handleIndicatorClick:
|
|
50
|
+
handleButtonLeave: v,
|
|
51
|
+
handleIndicatorClick: F,
|
|
52
52
|
handleMouseEnter: S,
|
|
53
53
|
handleMouseLeave: $,
|
|
54
|
-
setActiveItem:
|
|
55
|
-
prev:
|
|
56
|
-
next:
|
|
57
|
-
PlaceholderItem:
|
|
58
|
-
isTwoLengthShow:
|
|
59
|
-
ItemsSorter:
|
|
54
|
+
setActiveItem: O,
|
|
55
|
+
prev: j,
|
|
56
|
+
next: q,
|
|
57
|
+
PlaceholderItem: J,
|
|
58
|
+
isTwoLengthShow: K,
|
|
59
|
+
ItemsSorter: Q,
|
|
60
60
|
throttledArrowClick: I,
|
|
61
|
-
throttledIndicatorHover:
|
|
62
|
-
} = ae(P.props, N, t.b()),
|
|
63
|
-
const n = [t.b(), t.m(
|
|
64
|
-
return e(
|
|
65
|
-
}),
|
|
66
|
-
const n = [t.e("indicators"), t.em("indicators",
|
|
67
|
-
return e(C) && n.push(t.em("indicators", "labels")),
|
|
61
|
+
throttledIndicatorHover: R
|
|
62
|
+
} = ae(P.props, N, t.b()), U = T(() => {
|
|
63
|
+
const n = [t.b(), t.m(i.direction)];
|
|
64
|
+
return e(H) && n.push(t.m("card")), n;
|
|
65
|
+
}), W = T(() => {
|
|
66
|
+
const n = [t.e("indicators"), t.em("indicators", i.direction)];
|
|
67
|
+
return e(C) && n.push(t.em("indicators", "labels")), i.indicatorPosition === "outside" && n.push(t.em("indicators", "outside")), e(w) && n.push(t.em("indicators", "right")), n;
|
|
68
68
|
});
|
|
69
|
-
function
|
|
70
|
-
if (!
|
|
69
|
+
function X(n) {
|
|
70
|
+
if (!i.motionBlur) return;
|
|
71
71
|
const o = e(w) ? `${t.namespace.value}-transitioning-vertical` : `${t.namespace.value}-transitioning`;
|
|
72
72
|
n.currentTarget.classList.add(o);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
if (!
|
|
74
|
+
function Y(n) {
|
|
75
|
+
if (!i.motionBlur) return;
|
|
76
76
|
const o = e(w) ? `${t.namespace.value}-transitioning-vertical` : `${t.namespace.value}-transitioning`;
|
|
77
77
|
n.currentTarget.classList.remove(o);
|
|
78
78
|
}
|
|
79
79
|
return z({
|
|
80
80
|
/** @description active slide index */
|
|
81
|
-
activeIndex:
|
|
81
|
+
activeIndex: u,
|
|
82
82
|
/** @description manually switch slide, index of the slide to be switched to, starting from 0; or the `name` of corresponding `el-carousel-item` */
|
|
83
|
-
setActiveItem:
|
|
83
|
+
setActiveItem: O,
|
|
84
84
|
/** @description switch to the previous slide */
|
|
85
|
-
prev:
|
|
85
|
+
prev: j,
|
|
86
86
|
/** @description switch to the next slide */
|
|
87
|
-
next:
|
|
88
|
-
}), (n, o) => (
|
|
87
|
+
next: q
|
|
88
|
+
}), (n, o) => (s(), d("div", {
|
|
89
89
|
ref_key: "root",
|
|
90
|
-
ref:
|
|
91
|
-
class:
|
|
90
|
+
ref: x,
|
|
91
|
+
class: l(U.value),
|
|
92
92
|
onMouseenter: o[6] || (o[6] = m(
|
|
93
93
|
//@ts-ignore
|
|
94
94
|
(...r) => e(S) && e(S)(...r),
|
|
@@ -100,102 +100,102 @@ const se = ["onMouseenter", "onClick"], le = { key: 0 }, ue = {
|
|
|
100
100
|
["stop"]
|
|
101
101
|
))
|
|
102
102
|
}, [
|
|
103
|
-
e(k) ? (
|
|
103
|
+
e(k) ? (s(), L(V, {
|
|
104
104
|
key: 0,
|
|
105
105
|
name: "carousel-arrow-left"
|
|
106
106
|
}, {
|
|
107
107
|
default: y(() => [
|
|
108
|
-
g(
|
|
108
|
+
g(a("button", {
|
|
109
109
|
type: "button",
|
|
110
|
-
class:
|
|
110
|
+
class: l([e(t).e("arrow"), e(t).em("arrow", "left")]),
|
|
111
111
|
onMouseenter: o[0] || (o[0] = (r) => e(M)("left")),
|
|
112
112
|
onMouseleave: o[1] || (o[1] = //@ts-ignore
|
|
113
|
-
(...r) => e(
|
|
114
|
-
onClick: o[2] || (o[2] = m((r) => e(I)(e(
|
|
113
|
+
(...r) => e(v) && e(v)(...r)),
|
|
114
|
+
onClick: o[2] || (o[2] = m((r) => e(I)(e(u) - 1), ["stop"]))
|
|
115
115
|
}, [
|
|
116
|
-
|
|
116
|
+
p(e(D), { icon: "ico-ep:arrow-left" })
|
|
117
117
|
], 34), [
|
|
118
|
-
[h, (
|
|
118
|
+
[h, (i.arrow === "always" || e(B)) && (i.loop || e(u) > 0)]
|
|
119
119
|
])
|
|
120
120
|
]),
|
|
121
121
|
_: 1
|
|
122
|
-
})) :
|
|
123
|
-
e(k) ? (
|
|
122
|
+
})) : f("", !0),
|
|
123
|
+
e(k) ? (s(), L(V, {
|
|
124
124
|
key: 1,
|
|
125
125
|
name: "carousel-arrow-right"
|
|
126
126
|
}, {
|
|
127
127
|
default: y(() => [
|
|
128
|
-
g(
|
|
128
|
+
g(a("button", {
|
|
129
129
|
type: "button",
|
|
130
|
-
class:
|
|
130
|
+
class: l([e(t).e("arrow"), e(t).em("arrow", "right")]),
|
|
131
131
|
onMouseenter: o[3] || (o[3] = (r) => e(M)("right")),
|
|
132
132
|
onMouseleave: o[4] || (o[4] = //@ts-ignore
|
|
133
|
-
(...r) => e(
|
|
134
|
-
onClick: o[5] || (o[5] = m((r) => e(I)(e(
|
|
133
|
+
(...r) => e(v) && e(v)(...r)),
|
|
134
|
+
onClick: o[5] || (o[5] = m((r) => e(I)(e(u) + 1), ["stop"]))
|
|
135
135
|
}, [
|
|
136
|
-
|
|
136
|
+
p(e(D), { icon: "ico-ep:arrow-right" })
|
|
137
137
|
], 34), [
|
|
138
138
|
[
|
|
139
139
|
h,
|
|
140
|
-
(
|
|
140
|
+
(i.arrow === "always" || e(B)) && (i.loop || e(u) < e(b).length - 1)
|
|
141
141
|
]
|
|
142
142
|
])
|
|
143
143
|
]),
|
|
144
144
|
_: 1
|
|
145
|
-
})) :
|
|
146
|
-
|
|
147
|
-
class:
|
|
148
|
-
style: ee(e(
|
|
149
|
-
onTransitionstart:
|
|
150
|
-
onTransitionend:
|
|
145
|
+
})) : f("", !0),
|
|
146
|
+
a("div", {
|
|
147
|
+
class: l(e(t).e("container")),
|
|
148
|
+
style: ee(e(A)),
|
|
149
|
+
onTransitionstart: X,
|
|
150
|
+
onTransitionend: Y
|
|
151
151
|
}, [
|
|
152
|
-
|
|
152
|
+
p(e(J)),
|
|
153
153
|
te(n.$slots, "default")
|
|
154
154
|
], 38),
|
|
155
|
-
|
|
155
|
+
p(e(Q), null, {
|
|
156
156
|
default: y(() => [
|
|
157
|
-
|
|
157
|
+
i.indicatorPosition !== "none" ? (s(), d("ul", {
|
|
158
158
|
key: 0,
|
|
159
|
-
class:
|
|
159
|
+
class: l(W.value)
|
|
160
160
|
}, [
|
|
161
|
-
(
|
|
161
|
+
(s(!0), d(oe, null, ne(e(b), (r, c) => g((s(), d("li", {
|
|
162
162
|
key: c,
|
|
163
|
-
class:
|
|
163
|
+
class: l([
|
|
164
164
|
e(t).e("indicator"),
|
|
165
|
-
e(t).em("indicator",
|
|
166
|
-
e(t).is("active", c === e(
|
|
165
|
+
e(t).em("indicator", i.direction),
|
|
166
|
+
e(t).is("active", c === e(u))
|
|
167
167
|
]),
|
|
168
|
-
onMouseenter: (
|
|
169
|
-
onClick: m((
|
|
168
|
+
onMouseenter: (Z) => e(R)(c),
|
|
169
|
+
onClick: m((Z) => e(F)(c), ["stop"])
|
|
170
170
|
}, [
|
|
171
|
-
|
|
172
|
-
class:
|
|
171
|
+
a("button", {
|
|
172
|
+
class: l(e(t).e("button"))
|
|
173
173
|
}, [
|
|
174
|
-
e(C) ? (
|
|
174
|
+
e(C) ? (s(), d("span", le, re(r.label), 1)) : f("", !0)
|
|
175
175
|
], 2)
|
|
176
176
|
], 42, se)), [
|
|
177
|
-
[h, e(
|
|
177
|
+
[h, e(K)(c)]
|
|
178
178
|
])), 128))
|
|
179
|
-
], 2)) :
|
|
179
|
+
], 2)) : f("", !0)
|
|
180
180
|
]),
|
|
181
181
|
_: 1
|
|
182
182
|
}),
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
183
|
+
i.motionBlur ? (s(), d("svg", ue, [...o[8] || (o[8] = [
|
|
184
|
+
a("defs", null, [
|
|
185
|
+
a("filter", { id: "elCarouselHorizontal" }, [
|
|
186
|
+
a("feGaussianBlur", {
|
|
187
187
|
in: "SourceGraphic",
|
|
188
188
|
stdDeviation: "12,0"
|
|
189
189
|
})
|
|
190
190
|
]),
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
a("filter", { id: "elCarouselVertical" }, [
|
|
192
|
+
a("feGaussianBlur", {
|
|
193
193
|
in: "SourceGraphic",
|
|
194
194
|
stdDeviation: "0,10"
|
|
195
195
|
})
|
|
196
196
|
])
|
|
197
197
|
], -1)
|
|
198
|
-
]))) :
|
|
198
|
+
])])) : f("", !0)
|
|
199
199
|
], 34));
|
|
200
200
|
}
|
|
201
201
|
});
|
|
@@ -11,7 +11,7 @@ import "../../hooks/use-model-toggle/index.js";
|
|
|
11
11
|
import { useOrderedChildren as ge } from "../../hooks/use-ordered-children/index.js";
|
|
12
12
|
import "@popperjs/core";
|
|
13
13
|
import "../../hooks/use-z-index/index.js";
|
|
14
|
-
import {
|
|
14
|
+
import { carouselContextKey as Se, CAROUSEL_ITEM_NAME as H } from "./constants.js";
|
|
15
15
|
const L = 300, ze = (t, O, M) => {
|
|
16
16
|
const {
|
|
17
17
|
children: o,
|
|
@@ -73,13 +73,13 @@ const O = N({
|
|
|
73
73
|
size: "14",
|
|
74
74
|
class: l(e(t).is("loading"))
|
|
75
75
|
}, null, 8, ["class"]),
|
|
76
|
-
o[0] || (o[0] = x(" 加载中 "))
|
|
76
|
+
o[0] || (o[0] = x(" 加载中 ", -1))
|
|
77
77
|
], 2)) : y.value ? (r(), m("div", {
|
|
78
78
|
key: 1,
|
|
79
79
|
class: l(e(t).e("empty-text"))
|
|
80
80
|
}, [
|
|
81
81
|
R(n.$slots, "empty", {}, () => [
|
|
82
|
-
o[1] || (o[1] = x("暂无数据"))
|
|
82
|
+
o[1] || (o[1] = x("暂无数据", -1))
|
|
83
83
|
])
|
|
84
84
|
], 2)) : e(c)?.isHoverMenu ? (r(), m("svg", {
|
|
85
85
|
key: 2,
|
|
@@ -90,11 +90,10 @@ const G = ["id", "aria-haspopup", "aria-owns", "aria-expanded", "tabindex"], Q =
|
|
|
90
90
|
onClick: a[1] || (a[1] = L(() => {
|
|
91
91
|
}, ["stop"]))
|
|
92
92
|
}, {
|
|
93
|
-
default: R(() => a[2] || (a[2] = [
|
|
93
|
+
default: R(() => [...a[2] || (a[2] = [
|
|
94
94
|
U("span", null, null, -1)
|
|
95
|
-
])),
|
|
96
|
-
_: 1
|
|
97
|
-
__: [2]
|
|
95
|
+
])]),
|
|
96
|
+
_: 1
|
|
98
97
|
}, 8, ["model-value", "label", "disabled"])) : i.value && o.node.checked ? (u(), m(n(x), {
|
|
99
98
|
key: 2,
|
|
100
99
|
icon: "icon-check",
|