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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, computed as a, createBlock as l, openBlock as c, unref as
|
|
1
|
+
import { defineComponent as g, computed as a, createBlock as l, openBlock as c, unref as t, normalizeProps as R, guardReactiveProps as x, withCtx as u, createVNode as T, normalizeClass as N, createCommentVNode as r, renderSlot as v, mergeProps as p, createTextVNode as B, toDisplayString as f } from "vue";
|
|
2
2
|
import { VftButton as b } from "../button/index.js";
|
|
3
3
|
import { VftFormItem as V } from "../form/index.js";
|
|
4
4
|
import { VftRow as S } from "../row/index.js";
|
|
@@ -23,44 +23,44 @@ const Q = /* @__PURE__ */ g({
|
|
|
23
23
|
actionRowOptions: {},
|
|
24
24
|
submitResetReverse: { type: Boolean }
|
|
25
25
|
},
|
|
26
|
-
setup(
|
|
26
|
+
setup(o) {
|
|
27
27
|
const m = j("form-action"), { resetAction: k, submitAction: w, commonAction: C } = A(), O = a(() => ({
|
|
28
28
|
justify: "end",
|
|
29
|
-
...
|
|
29
|
+
...o.actionRowOptions
|
|
30
30
|
})), h = a(
|
|
31
|
-
() => Object.assign({ btnText: "重置" },
|
|
31
|
+
() => Object.assign({ btnText: "重置" }, o.resetButtonOptions)
|
|
32
32
|
), d = a(
|
|
33
|
-
() => Object.assign({ btnText: "确认" },
|
|
33
|
+
() => Object.assign({ btnText: "确认" }, o.submitButtonOptions)
|
|
34
34
|
), n = a(
|
|
35
|
-
() => Object.assign({ btnText: "取消" },
|
|
36
|
-
), y = (
|
|
37
|
-
type:
|
|
38
|
-
options:
|
|
39
|
-
action:
|
|
40
|
-
className:
|
|
41
|
-
show:
|
|
35
|
+
() => Object.assign({ btnText: "取消" }, o.commonButtonOptions)
|
|
36
|
+
), y = (e) => ({
|
|
37
|
+
type: e ? "warning" : "primary",
|
|
38
|
+
options: e ? h.value : d.value,
|
|
39
|
+
action: e ? k : w,
|
|
40
|
+
className: e ? m.e("reset") : m.e("submit"),
|
|
41
|
+
show: e ? o.showResetButton : o.showSubmitButton
|
|
42
42
|
}), s = a(
|
|
43
|
-
() => y(!
|
|
43
|
+
() => y(!o.submitResetReverse)
|
|
44
44
|
), i = a(
|
|
45
|
-
() => y(
|
|
45
|
+
() => y(o.submitResetReverse)
|
|
46
46
|
);
|
|
47
|
-
return (
|
|
47
|
+
return (e, P) => (c(), l(t(S), R(x(O.value)), {
|
|
48
48
|
default: u(() => [
|
|
49
|
-
|
|
50
|
-
class: N([{ "submit-block": d.value.block },
|
|
49
|
+
T(t(V), {
|
|
50
|
+
class: N([{ "submit-block": d.value.block }, t(m).b()])
|
|
51
51
|
}, {
|
|
52
52
|
default: u(() => [
|
|
53
|
-
|
|
54
|
-
class:
|
|
55
|
-
onClick:
|
|
53
|
+
o.showCommonButton && !n.value.isBehind ? (c(), l(t(b), p({ key: 0 }, n.value, {
|
|
54
|
+
class: t(m).e("common"),
|
|
55
|
+
onClick: t(C)
|
|
56
56
|
}), {
|
|
57
57
|
default: u(() => [
|
|
58
58
|
B(f(n.value.btnText), 1)
|
|
59
59
|
]),
|
|
60
60
|
_: 1
|
|
61
61
|
}, 16, ["class", "onClick"])) : r("", !0),
|
|
62
|
-
v(
|
|
63
|
-
s.value.show ? (c(), l(
|
|
62
|
+
v(e.$slots, "resetBefore"),
|
|
63
|
+
s.value.show ? (c(), l(t(b), p({
|
|
64
64
|
key: 1,
|
|
65
65
|
type: s.value.type
|
|
66
66
|
}, s.value.options, {
|
|
@@ -72,8 +72,8 @@ const Q = /* @__PURE__ */ g({
|
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
74
74
|
}, 16, ["type", "onClick", "class"])) : r("", !0),
|
|
75
|
-
v(
|
|
76
|
-
i.value.show ? (c(), l(
|
|
75
|
+
v(e.$slots, "submitBefore"),
|
|
76
|
+
i.value.show ? (c(), l(t(b), p({
|
|
77
77
|
key: 2,
|
|
78
78
|
type: i.value.type
|
|
79
79
|
}, i.value.options, {
|
|
@@ -85,10 +85,10 @@ const Q = /* @__PURE__ */ g({
|
|
|
85
85
|
]),
|
|
86
86
|
_: 1
|
|
87
87
|
}, 16, ["type", "onClick", "class"])) : r("", !0),
|
|
88
|
-
v(
|
|
89
|
-
|
|
90
|
-
class:
|
|
91
|
-
onClick:
|
|
88
|
+
v(e.$slots, "submitAfter"),
|
|
89
|
+
o.showCommonButton && n.value.isBehind ? (c(), l(t(b), p({ key: 3 }, n.value, {
|
|
90
|
+
class: t(m).e("common"),
|
|
91
|
+
onClick: t(C)
|
|
92
92
|
}), {
|
|
93
93
|
default: u(() => [
|
|
94
94
|
B(f(n.value.btnText), 1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Q, computed as v, ref as re, unref as c, useSlots as oe, createVNode as s, mergeProps as L, withDirectives as ie, vShow as ne,
|
|
1
|
+
import { defineComponent as Q, computed as v, ref as re, unref as c, useSlots as oe, createVNode as s, mergeProps as L, withDirectives as ie, vShow as ne, createTextVNode as G, isVNode as le, resolveComponent as V } from "vue";
|
|
2
2
|
import "../alert/index.js";
|
|
3
3
|
import "../avatar/index.js";
|
|
4
4
|
import "../avatar-stack/index.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { singleAttrToObj as
|
|
1
|
+
import { defineComponent as M, computed as s, ref as g, watch as T, onMounted as Q, createElementBlock as v, openBlock as o, withModifiers as R, normalizeStyle as F, normalizeClass as c, createElementVNode as p, createCommentVNode as r, withKeys as X, unref as i, createBlock as k, normalizeProps as I, mergeProps as w, toDisplayString as B, nextTick as Y } from "vue";
|
|
2
|
+
import { singleAttrToObj as O, isPromise as A, isBoolean as Z } from "@vft/utils";
|
|
3
3
|
import "../form/index.js";
|
|
4
|
-
import { VftIcon as
|
|
4
|
+
import { VftIcon as V } from "../icon/index.js";
|
|
5
5
|
import { UPDATE_MODEL_EVENT as E, CHANGE_EVENT as N, INPUT_EVENT as P } from "../../constants/event.js";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import { debugWarn as
|
|
7
|
+
import { debugWarn as K, throwError as _ } from "../../utils/error.js";
|
|
8
8
|
import { addUnit as ee } from "../../utils/helper.js";
|
|
9
9
|
import "lodash-es";
|
|
10
10
|
import { useNamespace as ae } from "../../hooks/use-namespace/index.js";
|
|
11
11
|
import "../../hooks/use-model-toggle/index.js";
|
|
12
12
|
import "@popperjs/core";
|
|
13
13
|
import "../../hooks/use-z-index/index.js";
|
|
14
|
-
import { useFormItem as te, useFormItemInputId as
|
|
15
|
-
import { useFormSize as
|
|
16
|
-
const ne = ["id", "aria-checked", "aria-disabled", "name", "true-value", "false-value", "disabled", "tabindex"],
|
|
14
|
+
import { useFormItem as te, useFormItemInputId as ie } from "../form/hooks/use-form-item.js";
|
|
15
|
+
import { useFormSize as le, useFormDisabled as oe } from "../form/hooks/use-form-common-props.js";
|
|
16
|
+
const ne = ["id", "aria-checked", "aria-disabled", "name", "true-value", "false-value", "disabled", "tabindex"], ce = ["aria-hidden"], re = ["aria-hidden"], ue = ["aria-hidden"], se = M({
|
|
17
17
|
name: "vft-switch"
|
|
18
|
-
}),
|
|
19
|
-
...
|
|
18
|
+
}), Be = /* @__PURE__ */ M({
|
|
19
|
+
...se,
|
|
20
20
|
props: {
|
|
21
21
|
modelValue: { type: [Boolean, String, Number], default: !1 },
|
|
22
22
|
value: { type: [Boolean, String, Number], default: !1 },
|
|
@@ -41,158 +41,158 @@ const ne = ["id", "aria-checked", "aria-disabled", "name", "true-value", "false-
|
|
|
41
41
|
tabindex: {}
|
|
42
42
|
},
|
|
43
43
|
emits: [E, N, P],
|
|
44
|
-
setup(
|
|
45
|
-
const t = ae("switch"),
|
|
44
|
+
setup(a, { expose: U, emit: j }) {
|
|
45
|
+
const t = ae("switch"), e = a, d = j, { formItem: S } = te(), G = le(), { inputId: H } = ie(e, {
|
|
46
46
|
formItemContext: S
|
|
47
|
-
}),
|
|
48
|
-
() =>
|
|
49
|
-
),
|
|
50
|
-
() =>
|
|
51
|
-
),
|
|
47
|
+
}), m = s(
|
|
48
|
+
() => O(e.activeIcon, "icon")
|
|
49
|
+
), f = s(
|
|
50
|
+
() => O(e.inactiveIcon, "icon")
|
|
51
|
+
), b = oe(s(() => e.loading)), x = g(e.modelValue !== !1), h = g(), L = g(), W = s(() => [
|
|
52
52
|
t.b(),
|
|
53
|
-
t.m(
|
|
54
|
-
t.is("disabled",
|
|
55
|
-
t.is("checked",
|
|
56
|
-
]),
|
|
57
|
-
width: ee(
|
|
53
|
+
t.m(G.value),
|
|
54
|
+
t.is("disabled", b.value),
|
|
55
|
+
t.is("checked", l.value)
|
|
56
|
+
]), $ = s(() => ({
|
|
57
|
+
width: ee(e.width)
|
|
58
58
|
}));
|
|
59
|
-
|
|
60
|
-
() =>
|
|
59
|
+
T(
|
|
60
|
+
() => e.modelValue,
|
|
61
61
|
() => {
|
|
62
|
-
|
|
62
|
+
x.value = !0;
|
|
63
63
|
}
|
|
64
|
-
),
|
|
65
|
-
() =>
|
|
64
|
+
), T(
|
|
65
|
+
() => e.value,
|
|
66
66
|
() => {
|
|
67
|
-
|
|
67
|
+
x.value = !1;
|
|
68
68
|
}
|
|
69
69
|
);
|
|
70
|
-
const z = s(() =>
|
|
71
|
-
[
|
|
72
|
-
|
|
70
|
+
const z = s(() => x.value ? e.modelValue : e.value), l = s(() => z.value === e.activeValue);
|
|
71
|
+
[e.activeValue, e.inactiveValue].includes(z.value) || (d(E, e.inactiveValue), d(N, e.inactiveValue), d(P, e.inactiveValue)), T(l, (n) => {
|
|
72
|
+
h.value.checked = n, e.validateEvent && S?.validate?.("change").catch((u) => K(u));
|
|
73
73
|
});
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
const y = () => {
|
|
75
|
+
const n = l.value ? e.inactiveValue : e.activeValue;
|
|
76
|
+
d(E, n), d(N, n), d(P, n), Y(() => {
|
|
77
|
+
h.value.checked = l.value;
|
|
78
78
|
});
|
|
79
79
|
}, D = () => {
|
|
80
|
-
if (
|
|
81
|
-
const { beforeChange:
|
|
82
|
-
if (!
|
|
83
|
-
|
|
80
|
+
if (b.value) return;
|
|
81
|
+
const { beforeChange: n } = e;
|
|
82
|
+
if (!n) {
|
|
83
|
+
y();
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
86
|
-
const
|
|
86
|
+
const u = n();
|
|
87
87
|
[
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
].includes(!0) ||
|
|
88
|
+
A(u),
|
|
89
|
+
Z(u)
|
|
90
|
+
].includes(!0) || _(
|
|
91
91
|
t.b(),
|
|
92
92
|
"beforeChange must return type `Promise<boolean>` or `boolean`"
|
|
93
|
-
),
|
|
94
|
-
|
|
95
|
-
}).catch((
|
|
96
|
-
|
|
97
|
-
}) :
|
|
98
|
-
},
|
|
99
|
-
...
|
|
100
|
-
...
|
|
101
|
-
...
|
|
102
|
-
})),
|
|
103
|
-
|
|
93
|
+
), A(u) ? u.then((C) => {
|
|
94
|
+
C && y();
|
|
95
|
+
}).catch((C) => {
|
|
96
|
+
K(t.b(), `some error occurred: ${C}`);
|
|
97
|
+
}) : u && y();
|
|
98
|
+
}, q = s(() => t.cssVarBlock({
|
|
99
|
+
...e.activeColor ? { "on-color": e.activeColor } : null,
|
|
100
|
+
...e.inactiveColor ? { "off-color": e.inactiveColor } : null,
|
|
101
|
+
...e.borderColor ? { "border-color": e.borderColor } : null
|
|
102
|
+
})), J = () => {
|
|
103
|
+
h.value?.focus?.();
|
|
104
104
|
};
|
|
105
|
-
return
|
|
106
|
-
|
|
107
|
-
}),
|
|
105
|
+
return Q(() => {
|
|
106
|
+
h.value.checked = l.value;
|
|
107
|
+
}), U({
|
|
108
108
|
/**
|
|
109
109
|
* @description manual focus to the switch component
|
|
110
110
|
**/
|
|
111
|
-
focus:
|
|
111
|
+
focus: J,
|
|
112
112
|
/**
|
|
113
113
|
* @description whether Switch is checked
|
|
114
114
|
*/
|
|
115
|
-
checked:
|
|
116
|
-
}), (
|
|
117
|
-
class:
|
|
118
|
-
style:
|
|
119
|
-
onClick:
|
|
115
|
+
checked: l
|
|
116
|
+
}), (n, u) => (o(), v("div", {
|
|
117
|
+
class: c(W.value),
|
|
118
|
+
style: F(q.value),
|
|
119
|
+
onClick: R(D, ["prevent"])
|
|
120
120
|
}, [
|
|
121
|
-
|
|
122
|
-
id:
|
|
121
|
+
p("input", {
|
|
122
|
+
id: i(H),
|
|
123
123
|
ref_key: "input",
|
|
124
|
-
ref:
|
|
125
|
-
class:
|
|
124
|
+
ref: h,
|
|
125
|
+
class: c(i(t).e("input")),
|
|
126
126
|
type: "checkbox",
|
|
127
127
|
role: "switch",
|
|
128
|
-
"aria-checked":
|
|
129
|
-
"aria-disabled":
|
|
130
|
-
name:
|
|
131
|
-
"true-value":
|
|
132
|
-
"false-value":
|
|
133
|
-
disabled:
|
|
134
|
-
tabindex:
|
|
135
|
-
onChange:
|
|
136
|
-
onKeydown:
|
|
128
|
+
"aria-checked": l.value,
|
|
129
|
+
"aria-disabled": i(b),
|
|
130
|
+
name: a.name,
|
|
131
|
+
"true-value": a.activeValue,
|
|
132
|
+
"false-value": a.inactiveValue,
|
|
133
|
+
disabled: i(b),
|
|
134
|
+
tabindex: a.tabindex,
|
|
135
|
+
onChange: y,
|
|
136
|
+
onKeydown: X(D, ["enter"])
|
|
137
137
|
}, null, 42, ne),
|
|
138
|
-
!
|
|
138
|
+
!a.inlinePrompt && (a.inactiveIcon || a.inactiveText) ? (o(), v("span", {
|
|
139
139
|
key: 0,
|
|
140
|
-
class:
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
class: c([
|
|
141
|
+
i(t).e("label"),
|
|
142
|
+
i(t).em("label", "left"),
|
|
143
|
+
i(t).is("active", !l.value)
|
|
144
144
|
])
|
|
145
145
|
}, [
|
|
146
|
-
|
|
147
|
-
!
|
|
146
|
+
f.value?.icon ? (o(), k(i(V), I(w({ key: 0 }, f.value)), null, 16)) : r("", !0),
|
|
147
|
+
!f.value?.icon && a.inactiveText ? (o(), v("span", {
|
|
148
148
|
key: 1,
|
|
149
|
-
"aria-hidden":
|
|
150
|
-
}, B(
|
|
149
|
+
"aria-hidden": l.value
|
|
150
|
+
}, B(a.inactiveText), 9, ce)) : r("", !0)
|
|
151
151
|
], 2)) : r("", !0),
|
|
152
|
-
|
|
152
|
+
p("span", {
|
|
153
153
|
ref_key: "core",
|
|
154
|
-
ref:
|
|
155
|
-
class:
|
|
156
|
-
style:
|
|
154
|
+
ref: L,
|
|
155
|
+
class: c(i(t).e("core")),
|
|
156
|
+
style: F($.value)
|
|
157
157
|
}, [
|
|
158
|
-
|
|
158
|
+
a.inlinePrompt ? (o(), v("div", {
|
|
159
159
|
key: 0,
|
|
160
|
-
class:
|
|
160
|
+
class: c(i(t).e("inner"))
|
|
161
161
|
}, [
|
|
162
|
-
|
|
162
|
+
m.value?.icon || f.value?.icon ? (o(), k(i(V), I(w({ key: 0 }, l.value ? m.value : f.value)), null, 16)) : a.activeText || a.inactiveText ? (o(), v("span", {
|
|
163
163
|
key: 1,
|
|
164
|
-
class:
|
|
165
|
-
"aria-hidden": !
|
|
166
|
-
}, B(
|
|
164
|
+
class: c(i(t).is("text")),
|
|
165
|
+
"aria-hidden": !l.value
|
|
166
|
+
}, B(l.value ? a.activeText : a.inactiveText), 11, re)) : r("", !0)
|
|
167
167
|
], 2)) : r("", !0),
|
|
168
|
-
|
|
169
|
-
class:
|
|
168
|
+
p("div", {
|
|
169
|
+
class: c(i(t).e("action"))
|
|
170
170
|
}, [
|
|
171
|
-
|
|
171
|
+
a.loading ? (o(), k(i(V), {
|
|
172
172
|
key: 0,
|
|
173
173
|
rotate: "",
|
|
174
|
-
class:
|
|
174
|
+
class: c(i(t).is("loading")),
|
|
175
175
|
icon: "icon-loading"
|
|
176
176
|
}, null, 8, ["class"])) : r("", !0)
|
|
177
177
|
], 2)
|
|
178
178
|
], 6),
|
|
179
|
-
!
|
|
179
|
+
!a.inlinePrompt && (m.value?.icon || a.activeText) ? (o(), v("span", {
|
|
180
180
|
key: 1,
|
|
181
|
-
class:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
181
|
+
class: c([
|
|
182
|
+
i(t).e("label"),
|
|
183
|
+
i(t).em("label", "right"),
|
|
184
|
+
i(t).is("active", l.value)
|
|
185
185
|
])
|
|
186
186
|
}, [
|
|
187
|
-
|
|
188
|
-
!
|
|
187
|
+
m.value?.icon ? (o(), k(i(V), I(w({ key: 0 }, m.value)), null, 16)) : r("", !0),
|
|
188
|
+
!m.value?.icon && a.activeText ? (o(), v("span", {
|
|
189
189
|
key: 1,
|
|
190
|
-
"aria-hidden": !
|
|
191
|
-
}, B(
|
|
190
|
+
"aria-hidden": !l.value
|
|
191
|
+
}, B(a.activeText), 9, ue)) : r("", !0)
|
|
192
192
|
], 2)) : r("", !0)
|
|
193
193
|
], 6));
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
196
|
export {
|
|
197
|
-
|
|
197
|
+
Be as default
|
|
198
198
|
};
|
|
@@ -13,7 +13,7 @@ export declare const DATE_FIELD: ({ format, field, title, }?: {
|
|
|
13
13
|
title: string;
|
|
14
14
|
formatter: ({ row }: {
|
|
15
15
|
row: any;
|
|
16
|
-
}) =>
|
|
16
|
+
}) => string;
|
|
17
17
|
};
|
|
18
18
|
export declare const DATE_TIME_FIELD: ({ format, field, title, }?: {
|
|
19
19
|
format?: string | undefined;
|
|
@@ -25,7 +25,7 @@ export declare const DATE_TIME_FIELD: ({ format, field, title, }?: {
|
|
|
25
25
|
title: string;
|
|
26
26
|
formatter: ({ row }: {
|
|
27
27
|
row: any;
|
|
28
|
-
}) =>
|
|
28
|
+
}) => string;
|
|
29
29
|
};
|
|
30
30
|
export declare const CREATE_TIME_FIELD: ({ format, field, title, }?: {
|
|
31
31
|
format?: string | undefined;
|
|
@@ -37,7 +37,7 @@ export declare const CREATE_TIME_FIELD: ({ format, field, title, }?: {
|
|
|
37
37
|
title: string;
|
|
38
38
|
formatter: ({ row }: {
|
|
39
39
|
row: any;
|
|
40
|
-
}) =>
|
|
40
|
+
}) => string;
|
|
41
41
|
};
|
|
42
42
|
export declare const UPDATE_TIME_FIELD: ({ format, field, title, }?: {
|
|
43
43
|
format?: string | undefined;
|
|
@@ -49,7 +49,7 @@ export declare const UPDATE_TIME_FIELD: ({ format, field, title, }?: {
|
|
|
49
49
|
title: string;
|
|
50
50
|
formatter: ({ row }: {
|
|
51
51
|
row: any;
|
|
52
|
-
}) =>
|
|
52
|
+
}) => string;
|
|
53
53
|
};
|
|
54
54
|
export declare const STATUS_FIELD: ({ field, title, normalText, disabledText, strToNumber, }?: {
|
|
55
55
|
field?: string | undefined;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as l, renderSlot as o, createBlock as a, openBlock as r, Teleport as n } from "vue";
|
|
2
|
+
const f = /* @__PURE__ */ l({
|
|
3
3
|
__name: "teleport",
|
|
4
4
|
props: {
|
|
5
5
|
disabled: { type: Boolean, default: !1 },
|
|
6
6
|
to: {}
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
9
|
-
return (
|
|
8
|
+
setup(e) {
|
|
9
|
+
return (t, s) => e.disabled ? o(t.$slots, "default", { key: 0 }) : (r(), a(n, {
|
|
10
10
|
key: 1,
|
|
11
11
|
to: e.to
|
|
12
12
|
}, [
|
|
13
|
-
o(
|
|
13
|
+
o(t.$slots, "default")
|
|
14
14
|
], 8, ["to"]));
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
f as default
|
|
19
19
|
};
|
|
@@ -250,11 +250,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
250
250
|
}>, {
|
|
251
251
|
readonly disabled: boolean;
|
|
252
252
|
readonly type: string;
|
|
253
|
+
readonly placeholder: string;
|
|
253
254
|
readonly modelValue: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | string[] | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType) | (((new (...args: any[]) => string | number | string[] | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType)) | null)[], unknown, unknown>;
|
|
254
255
|
readonly placement: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | (((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement)) | null)[], import("@popperjs/core").Placement, unknown>;
|
|
255
256
|
readonly tabindex: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
|
256
257
|
readonly readonly: boolean;
|
|
257
|
-
readonly placeholder: string;
|
|
258
258
|
readonly validateEvent: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
259
259
|
readonly clearable: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
260
260
|
readonly prefixIcon: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>;
|
|
@@ -192,11 +192,11 @@ declare const _TimePicker: import("vue").DefineComponent<import("vue").ExtractPr
|
|
|
192
192
|
}>, {
|
|
193
193
|
disabled: boolean;
|
|
194
194
|
type: string;
|
|
195
|
+
placeholder: string;
|
|
195
196
|
modelValue: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | string[] | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType) | (((new (...args: any[]) => string | number | string[] | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType)) | null)[], unknown, unknown>;
|
|
196
197
|
placement: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | (((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement)) | null)[], import("@popperjs/core").Placement, unknown>;
|
|
197
198
|
tabindex: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
|
198
199
|
readonly: boolean;
|
|
199
|
-
placeholder: string;
|
|
200
200
|
validateEvent: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
201
201
|
clearable: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
202
202
|
prefixIcon: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>;
|
|
@@ -405,11 +405,11 @@ export declare const VftTimePicker: import("vue").DefineComponent<import("vue").
|
|
|
405
405
|
}>, {
|
|
406
406
|
disabled: boolean;
|
|
407
407
|
type: string;
|
|
408
|
+
placeholder: string;
|
|
408
409
|
modelValue: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | string[] | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType) | (((new (...args: any[]) => string | number | string[] | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType)) | null)[], unknown, unknown>;
|
|
409
410
|
placement: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | (((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement)) | null)[], import("@popperjs/core").Placement, unknown>;
|
|
410
411
|
tabindex: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
|
411
412
|
readonly: boolean;
|
|
412
|
-
placeholder: string;
|
|
413
413
|
validateEvent: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
414
414
|
clearable: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
415
415
|
prefixIcon: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>;
|
|
@@ -193,11 +193,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
193
193
|
}>, {
|
|
194
194
|
disabled: boolean;
|
|
195
195
|
type: string;
|
|
196
|
+
placeholder: string;
|
|
196
197
|
modelValue: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | string[] | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType) | (((new (...args: any[]) => string | number | string[] | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType)) | null)[], unknown, unknown>;
|
|
197
198
|
placement: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | (((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement)) | null)[], import("@popperjs/core").Placement, unknown>;
|
|
198
199
|
tabindex: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
|
199
200
|
readonly: boolean;
|
|
200
|
-
placeholder: string;
|
|
201
201
|
validateEvent: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
202
202
|
clearable: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
203
203
|
prefixIcon: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, computed as
|
|
1
|
+
import { defineComponent as d, computed as f, createElementBlock as m, openBlock as a, normalizeClass as l, unref as o, createElementVNode as n, createCommentVNode as i, normalizeStyle as p, createBlock as y, mergeProps as k, renderSlot as c, toDisplayString as r } from "vue";
|
|
2
2
|
import { VftIcon as v } from "../icon/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "@vft/utils";
|
|
@@ -24,52 +24,52 @@ const B = d({
|
|
|
24
24
|
icon: {},
|
|
25
25
|
hollow: { type: Boolean, default: !1 }
|
|
26
26
|
},
|
|
27
|
-
setup(
|
|
28
|
-
const e = h("timeline-item"),
|
|
27
|
+
setup(t) {
|
|
28
|
+
const e = h("timeline-item"), u = f(() => [
|
|
29
29
|
e.e("node"),
|
|
30
|
-
e.em("node",
|
|
31
|
-
e.em("node",
|
|
32
|
-
e.is("hollow",
|
|
30
|
+
e.em("node", t.size || ""),
|
|
31
|
+
e.em("node", t.type || ""),
|
|
32
|
+
e.is("hollow", t.hollow)
|
|
33
33
|
]);
|
|
34
|
-
return (
|
|
34
|
+
return (s, b) => (a(), m("li", {
|
|
35
35
|
class: l([o(e).b(), { [o(e).e("center")]: t.center }])
|
|
36
36
|
}, [
|
|
37
37
|
n("div", {
|
|
38
38
|
class: l(o(e).e("tail"))
|
|
39
39
|
}, null, 2),
|
|
40
|
-
|
|
40
|
+
s.$slots.dot ? i("", !0) : (a(), m("div", {
|
|
41
41
|
key: 0,
|
|
42
|
-
class: l(
|
|
43
|
-
style:
|
|
42
|
+
class: l(u.value),
|
|
43
|
+
style: p({
|
|
44
44
|
backgroundColor: t.color
|
|
45
45
|
})
|
|
46
46
|
}, [
|
|
47
|
-
t.icon?.icon ? (
|
|
47
|
+
t.icon?.icon ? (a(), y(o(v), k({ key: 0 }, t.icon, {
|
|
48
48
|
class: o(e).e("icon")
|
|
49
|
-
}), null, 16, ["class"])) :
|
|
49
|
+
}), null, 16, ["class"])) : i("", !0)
|
|
50
50
|
], 6)),
|
|
51
|
-
|
|
51
|
+
s.$slots.dot ? (a(), m("div", {
|
|
52
52
|
key: 1,
|
|
53
53
|
class: l(o(e).e("dot"))
|
|
54
54
|
}, [
|
|
55
|
-
|
|
56
|
-
], 2)) :
|
|
55
|
+
c(s.$slots, "dot")
|
|
56
|
+
], 2)) : i("", !0),
|
|
57
57
|
n("div", {
|
|
58
58
|
class: l(o(e).e("wrapper"))
|
|
59
59
|
}, [
|
|
60
|
-
!t.hideTimestamp && t.placement === "top" ? (
|
|
60
|
+
!t.hideTimestamp && t.placement === "top" ? (a(), m("div", {
|
|
61
61
|
key: 0,
|
|
62
62
|
class: l([o(e).e("timestamp"), o(e).is("top")])
|
|
63
|
-
},
|
|
63
|
+
}, r(t.timestamp), 3)) : i("", !0),
|
|
64
64
|
n("div", {
|
|
65
65
|
class: l(o(e).e("content"))
|
|
66
66
|
}, [
|
|
67
|
-
|
|
67
|
+
c(s.$slots, "default")
|
|
68
68
|
], 2),
|
|
69
|
-
!t.hideTimestamp && t.placement === "bottom" ? (
|
|
69
|
+
!t.hideTimestamp && t.placement === "bottom" ? (a(), m("div", {
|
|
70
70
|
key: 1,
|
|
71
71
|
class: l([o(e).e("timestamp"), o(e).is("bottom")])
|
|
72
|
-
},
|
|
72
|
+
}, r(t.timestamp), 3)) : i("", !0)
|
|
73
73
|
], 2)
|
|
74
74
|
], 2));
|
|
75
75
|
}
|