vft 0.0.523 → 0.0.524
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 +2 -2
- package/es/components/alert/alert.vue2.js +1 -1
- package/es/components/autocomplete/autocomplete.vue2.js +1 -1
- package/es/components/avatar/avatar.vue2.js +2 -2
- package/es/components/avatar-stack/avatar-stack.vue2.js +7 -7
- package/es/components/backtop/backtop.vue2.js +1 -1
- package/es/components/breadcrumb/breadcrumb-item.vue2.js +3 -3
- package/es/components/breadcrumb/breadcrumb.vue2.js +2 -2
- package/es/components/button/button-group.vue2.js +2 -2
- package/es/components/button/button.vue2.js +7 -7
- package/es/components/button/use-button.js +3 -3
- package/es/components/card/card.vue2.js +6 -6
- package/es/components/carousel/carousel-item.vue2.js +3 -3
- package/es/components/carousel/carousel.vue2.js +1 -1
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/cascader/cascader.vue2.js +1 -1
- package/es/components/cascader-panel/index.vue2.js +1 -1
- package/es/components/cascader-panel/menu.vue2.js +5 -5
- package/es/components/cascader-panel/node.vue2.js +8 -8
- package/es/components/check-tag/check-tag.vue2.js +2 -2
- package/es/components/checkbox/checkbox-button.vue2.js +13 -13
- package/es/components/checkbox/checkbox-group.vue2.js +3 -3
- package/es/components/checkbox/checkbox.vue2.js +1 -1
- package/es/components/clamp/clamp.vue2.js +2 -2
- package/es/components/clamp-toggle/clamp-toggle.vue2.js +3 -3
- package/es/components/clamp-tooltip/clamp-tooltip.vue2.js +6 -6
- package/es/components/col/col.vue2.js +2 -2
- package/es/components/collapse/collapse-item.vue2.js +2 -2
- package/es/components/collapse/collapse.vue2.js +2 -2
- package/es/components/collapse-transition/collapse-transition.vue2.js +2 -2
- package/es/components/color-picker/color-picker.vue2.js +1 -1
- package/es/components/color-picker/components/alpha-slider.vue2.js +2 -2
- package/es/components/color-picker/components/hue-slider.vue.js +2 -2
- package/es/components/color-picker/components/predefine.vue.js +3 -3
- package/es/components/color-picker/components/sv-panel.vue.js +2 -2
- package/es/components/config-provider/config-provider.vue2.js +2 -2
- package/es/components/config-provider/hooks/use-global-config.js +4 -4
- package/es/components/container/aside.vue2.js +2 -2
- package/es/components/container/container.vue2.js +2 -2
- package/es/components/container/footer.vue2.js +2 -2
- package/es/components/container/header.vue2.js +2 -2
- package/es/components/container/main.vue2.js +2 -2
- package/es/components/context-menu/context-menu.vue2.js +1 -1
- package/es/components/countdown/countdown.vue2.js +2 -2
- package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +6 -6
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +4 -4
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +4 -4
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +1 -1
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +2 -2
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +12 -12
- package/es/components/date-picker/date-picker-com/panel-year-range.vue2.js +12 -12
- package/es/components/date-picker/props/basic-date-table.js +3 -3
- package/es/components/date-picker/props/basic-month-table.js +3 -3
- package/es/components/date-picker/props/basic-year-table.js +3 -3
- package/es/components/descriptions/description.vue2.js +1 -1
- package/es/components/descriptions/descriptions-row.vue2.js +10 -10
- package/es/components/dialog/dialog-content.vue2.js +3 -3
- package/es/components/dialog/dialog.vue2.js +5 -5
- package/es/components/divider/divider.vue2.js +5 -5
- package/es/components/drawer/drawer.vue2.js +4 -4
- package/es/components/dropdown/dropdown-item-impl.vue2.js +3 -3
- package/es/components/dropdown/dropdown-item.vue2.js +2 -2
- package/es/components/dropdown/dropdown-menu.vue2.js +2 -2
- package/es/components/dropdown/dropdown.vue2.js +4 -4
- package/es/components/empty/empty.vue2.js +5 -5
- package/es/components/footer-layout/footer-layout.vue2.js +2 -2
- package/es/components/form/form-item.vue2.js +16 -16
- package/es/components/form/form.vue2.js +2 -2
- package/es/components/full-screen/full-screen.vue2.js +2 -2
- package/es/components/header-layout/header-layout.vue2.js +1 -1
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +3 -3
- package/es/components/icon/icon.vue2.js +3 -3
- package/es/components/icon-text/icon-text.vue2.js +1 -1
- package/es/components/iframe-layout/iframe-layout.vue2.js +4 -4
- package/es/components/iframe-layout/iframe-page.vue2.js +2 -2
- package/es/components/image/image.vue2.js +1 -1
- package/es/components/image-viewer/image-viewer.vue2.js +6 -6
- package/es/components/index.js +181 -181
- package/es/components/input/input.vue2.js +2 -2
- package/es/components/input-number/input-number.vue2.js +4 -4
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/input-tag/input-tag.vue2.js +7 -7
- package/es/components/link/link.vue2.js +1 -1
- package/es/components/list-cell/list-cell.vue2.js +1 -1
- package/es/components/logo/logo.vue2.js +10 -10
- package/es/components/md-container/md-container.vue2.js +5 -5
- package/es/components/menu/menu-collapse-transition.vue.js +2 -2
- package/es/components/menu/menu-item-group.vue2.js +7 -7
- package/es/components/menu/menu-item.vue2.js +1 -1
- package/es/components/message/message.vue2.js +3 -3
- package/es/components/message-box/message-box.vue2.js +1 -1
- package/es/components/modal/modal-footer-action.vue2.js +10 -10
- package/es/components/modal/modal.vue2.js +3 -3
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +1 -1
- package/es/components/multiple-tabs/tab-content.vue2.js +2 -2
- package/es/components/notification/notification.vue2.js +1 -1
- package/es/components/overlay/overlay.vue2.js +1 -1
- package/es/components/page-wrapper/page-wrapper.vue2.js +2 -2
- package/es/components/pagination/components/jumper.vue2.js +2 -2
- package/es/components/pagination/components/next.vue2.js +4 -4
- package/es/components/pagination/components/pager.vue2.js +1 -1
- package/es/components/pagination/components/prev.vue2.js +4 -4
- package/es/components/pagination/components/sizes.vue2.js +2 -2
- package/es/components/pagination/components/total.vue2.js +2 -2
- package/es/components/popconfirm/popconfirm.vue2.js +3 -3
- package/es/components/popover/popover.vue2.js +9 -9
- package/es/components/popper/arrow.vue2.js +2 -2
- package/es/components/popper/content.vue2.js +2 -2
- package/es/components/popper/trigger.vue2.js +4 -4
- package/es/components/progress/progress.vue2.js +1 -1
- package/es/components/progress-i/progress-i.vue2.js +2 -2
- package/es/components/qrcode/qrcode.vue2.js +1 -1
- package/es/components/radio/radio-button.vue2.js +2 -2
- package/es/components/radio/radio-group.vue2.js +3 -3
- package/es/components/radio/radio.vue2.js +2 -2
- package/es/components/rate/rate.vue2.js +6 -6
- package/es/components/router-view-content/router-view-content.vue2.js +7 -7
- package/es/components/roving-focus-group/roving-focus-group.vue2.js +2 -2
- package/es/components/roving-focus-group/roving-focus-item.vue2.js +2 -2
- package/es/components/row/row.vue2.js +2 -2
- package/es/components/scrollbar/bar.vue2.js +2 -2
- package/es/components/scrollbar/scrollbar.vue2.js +7 -7
- package/es/components/scrollbar/thumb.vue2.js +2 -2
- package/es/components/search/search.vue2.js +48 -44
- package/es/components/segmented/segmented.vue2.js +7 -7
- package/es/components/select/group-item.vue.js +2 -2
- package/es/components/select/option-item.vue.js +2 -2
- package/es/components/select/select.vue.js +1 -1
- package/es/components/skeleton/skeleton-item.vue2.js +2 -2
- package/es/components/skeleton/skeleton.vue2.js +8 -8
- package/es/components/slider/button.vue2.js +2 -2
- package/es/components/slider/slider.vue2.js +1 -1
- package/es/components/space/space.js +1 -1
- package/es/components/statistic/statistic.vue2.js +17 -17
- package/es/components/steps/item.vue2.js +11 -11
- package/es/components/steps/steps.vue2.js +2 -2
- package/es/components/super-form/super-form-action.vue2.js +11 -11
- package/es/components/super-form/super-form.vue2.js +7 -7
- package/es/components/switch/switch.vue2.js +1 -1
- package/es/components/table/table.vue2.js +4 -4
- package/es/components/tabs/tab-bar.vue2.js +2 -2
- package/es/components/tabs/tab-pane.vue2.js +6 -6
- package/es/components/teleport/teleport.vue2.js +2 -2
- package/es/components/time-picker/common/picker-range-trigger.vue2.js +2 -2
- package/es/components/time-picker/common/picker.vue2.js +8 -8
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +1 -1
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +3 -3
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +3 -3
- package/es/components/time-select/time-select.vue2.js +3 -3
- package/es/components/timeline/timeline-item.vue2.js +1 -1
- package/es/components/tooltip/content.vue2.js +6 -6
- package/es/components/tooltip/tooltip.vue2.js +1 -1
- package/es/components/tooltip/trigger.vue2.js +2 -2
- package/es/components/transfer/transfer-panel.vue2.js +7 -7
- package/es/components/transfer/transfer.vue2.js +4 -4
- package/es/components/tree/tree-node.vue.js +1 -1
- package/es/components/tree/tree.vue2.js +6 -6
- package/es/components/upload/index.d.ts +2 -2
- package/es/components/upload/upload-content.vue2.js +7 -7
- package/es/components/upload/upload-dragger.vue2.js +2 -2
- package/es/components/upload/upload-list.vue2.js +1 -1
- package/es/components/upload/upload.vue.d.ts +2 -2
- package/es/components/upload/upload.vue2.js +22 -22
- package/es/components/verify-code/verify-code.vue2.js +2 -2
- package/es/components/watermark/watermark.vue2.js +2 -2
- package/es/hooks/use-id/index.js +2 -2
- package/es/hooks/use-z-index/index.js +3 -3
- package/es/index.js +39 -39
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/plugin.js +7 -7
- package/es/utils/helper.js +2 -2
- package/es/utils/ns-cover.js +1 -1
- package/es/utils/vue/vnode.js +4 -4
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/popover/popover.vue2.cjs +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/upload/index.d.ts +2 -2
- package/lib/components/upload/upload.vue.d.ts +2 -2
- package/lib/components/upload/upload.vue2.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/lib/plugin.cjs +1 -1
- package/package.json +4 -4
- package/web-types.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as v, computed as d, resolveComponent as A,
|
|
1
|
+
import { defineComponent as v, computed as d, resolveComponent as A, createBlock as t, openBlock as n, withCtx as m, createVNode as s, unref as o, KeepAlive as k, createCommentVNode as g, resolveDynamicComponent as f, Transition as x, mergeProps as C } from "vue";
|
|
2
2
|
import { getRouterKeyPath as N } from "@vft/router";
|
|
3
3
|
import { createReusableTemplate as R } from "@vueuse/core";
|
|
4
4
|
const K = v({
|
|
@@ -20,25 +20,25 @@ const K = v({
|
|
|
20
20
|
}), [y, c] = R();
|
|
21
21
|
return (a, i) => {
|
|
22
22
|
const r = A("router-view");
|
|
23
|
-
return
|
|
23
|
+
return n(), t(r, { name: e.name }, {
|
|
24
24
|
default: m(({ Component: u, route: l }) => [
|
|
25
25
|
s(o(y), null, {
|
|
26
26
|
default: m(() => [
|
|
27
|
-
e.openKeepAlive ? (
|
|
27
|
+
e.openKeepAlive ? (n(), t(k, {
|
|
28
28
|
key: 0,
|
|
29
29
|
include: h.value,
|
|
30
30
|
exclude: p.value(l)
|
|
31
31
|
}, [
|
|
32
|
-
e.isReloadFlag ? (
|
|
32
|
+
e.isReloadFlag ? (n(), t(f(u), {
|
|
33
33
|
key: o(N)(l)
|
|
34
34
|
})) : g("", !0)
|
|
35
|
-
], 1032, ["include", "exclude"])) : (
|
|
35
|
+
], 1032, ["include", "exclude"])) : (n(), t(f(u), {
|
|
36
36
|
key: l.fullPath
|
|
37
37
|
}))
|
|
38
38
|
]),
|
|
39
39
|
_: 2
|
|
40
40
|
}, 1024),
|
|
41
|
-
e.transitionName ? (
|
|
41
|
+
e.transitionName ? (n(), t(x, C({
|
|
42
42
|
key: 0,
|
|
43
43
|
name: e.transitionName
|
|
44
44
|
}, e.transitionAttr), {
|
|
@@ -46,7 +46,7 @@ const K = v({
|
|
|
46
46
|
s(o(c))
|
|
47
47
|
]),
|
|
48
48
|
_: 1
|
|
49
|
-
}, 16, ["name"])) : (
|
|
49
|
+
}, 16, ["name"])) : (n(), t(o(c), { key: 1 }))
|
|
50
50
|
]),
|
|
51
51
|
_: 1
|
|
52
52
|
}, 8, ["name"]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as t,
|
|
1
|
+
import { defineComponent as t, createBlock as c, openBlock as l, unref as u, withCtx as e, createVNode as a, normalizeProps as f, guardReactiveProps as p, renderSlot as s } from "vue";
|
|
2
2
|
import r from "./roving-focus-group-impl.vue2.js";
|
|
3
3
|
import { VftCollection as n } from "./types.js";
|
|
4
4
|
const i = t({
|
|
@@ -10,7 +10,7 @@ const i = t({
|
|
|
10
10
|
}), C = /* @__PURE__ */ t({
|
|
11
11
|
...i,
|
|
12
12
|
setup(m) {
|
|
13
|
-
return (o, _) => (
|
|
13
|
+
return (o, _) => (l(), c(u(n), null, {
|
|
14
14
|
default: e(() => [
|
|
15
15
|
a(r, f(p(o.$attrs)), {
|
|
16
16
|
default: e(() => [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, inject as l, ref as g, unref as r, nextTick as x, computed as d, provide as R,
|
|
1
|
+
import { defineComponent as p, inject as l, ref as g, unref as r, nextTick as x, computed as d, provide as R, createBlock as G, openBlock as K, withCtx as V, renderSlot as S } from "vue";
|
|
2
2
|
import { EVENT_CODE as U } from "../../constants/aria.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "@vft/utils";
|
|
@@ -83,7 +83,7 @@ const j = p({
|
|
|
83
83
|
handleMousedown: T,
|
|
84
84
|
handleFocus: F,
|
|
85
85
|
handleKeydown: h
|
|
86
|
-
}), (e, m) => (
|
|
86
|
+
}), (e, m) => (K(), G(r(I), {
|
|
87
87
|
id: r(n),
|
|
88
88
|
focusable: s.focusable,
|
|
89
89
|
active: s.active
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as o, provide as s, computed as r,
|
|
1
|
+
import { defineComponent as o, provide as s, computed as r, createBlock as n, openBlock as m, resolveDynamicComponent as u, normalizeStyle as f, normalizeClass as c, withCtx as g, renderSlot as d } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -34,7 +34,7 @@ const v = o({
|
|
|
34
34
|
a.is(`align-${t.align}`, t.align !== "top"),
|
|
35
35
|
t.className
|
|
36
36
|
]);
|
|
37
|
-
return (e, w) => (
|
|
37
|
+
return (e, w) => (m(), n(u(t.tag), {
|
|
38
38
|
class: c(l.value),
|
|
39
39
|
style: f(i.value)
|
|
40
40
|
}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, ref as i,
|
|
1
|
+
import { defineComponent as m, ref as i, createElementBlock as u, openBlock as h, Fragment as d, createVNode as n } from "vue";
|
|
2
2
|
import r from "./thumb.vue2.js";
|
|
3
3
|
import { GAP as s } from "./util.js";
|
|
4
4
|
const z = /* @__PURE__ */ m({
|
|
@@ -19,7 +19,7 @@ const z = /* @__PURE__ */ m({
|
|
|
19
19
|
o.value = t.scrollTop * 100 / l * e.ratioY, a.value = t.scrollLeft * 100 / c * e.ratioX;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
}), (t, l) => (
|
|
22
|
+
}), (t, l) => (h(), u(d, null, [
|
|
23
23
|
n(r, {
|
|
24
24
|
move: a.value,
|
|
25
25
|
ratio: e.ratioX,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as W, ref as o, computed as h, watch as k, nextTick as T, provide as D, reactive as G, onMounted as X, onUpdated as Y,
|
|
1
|
+
import { defineComponent as W, ref as o, computed as h, watch as k, nextTick as T, provide as D, reactive as G, onMounted as X, onUpdated as Y, createElementBlock as q, openBlock as y, normalizeClass as w, unref as F, createElementVNode as I, createBlock as B, createCommentVNode as J, normalizeStyle as E, resolveDynamicComponent as Q, withCtx as Z, renderSlot as _ } from "vue";
|
|
2
2
|
import { isNumber as i, isObject as ee } from "@vft/utils";
|
|
3
3
|
import { useResizeObserver as te, useEventListener as le } from "@vueuse/core";
|
|
4
4
|
import { debugWarn as N } from "../../utils/error.js";
|
|
@@ -116,22 +116,22 @@ const L = "ElScrollbar", ie = W({
|
|
|
116
116
|
ref_key: "wrapRef",
|
|
117
117
|
ref: l,
|
|
118
118
|
class: w(j.value),
|
|
119
|
-
style:
|
|
119
|
+
style: E($.value),
|
|
120
120
|
onScroll: H
|
|
121
121
|
}, [
|
|
122
|
-
(y(),
|
|
122
|
+
(y(), B(Q(t.tag), {
|
|
123
123
|
ref_key: "resizeRef",
|
|
124
124
|
ref: x,
|
|
125
125
|
class: w(K.value),
|
|
126
|
-
style:
|
|
126
|
+
style: E(t.viewStyle)
|
|
127
127
|
}, {
|
|
128
|
-
default:
|
|
129
|
-
|
|
128
|
+
default: Z(() => [
|
|
129
|
+
_(e.$slots, "default")
|
|
130
130
|
]),
|
|
131
131
|
_: 3
|
|
132
132
|
}, 8, ["class", "style"]))
|
|
133
133
|
], 38),
|
|
134
|
-
t.native ?
|
|
134
|
+
t.native ? J("", !0) : (y(), B(oe, {
|
|
135
135
|
key: 0,
|
|
136
136
|
ref_key: "barRef",
|
|
137
137
|
ref: m,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as T, inject as D, ref as i, computed as E, onBeforeUnmount as N, toRef as S,
|
|
1
|
+
import { defineComponent as T, inject as D, ref as i, computed as E, onBeforeUnmount as N, toRef as S, createBlock as A, openBlock as O, Transition as j, unref as m, withCtx as K, withDirectives as U, createElementVNode as z, normalizeClass as C, normalizeStyle as I, vShow as V } from "vue";
|
|
2
2
|
import { useEventListener as P, isClient as _ } from "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import { throwError as q } from "../../utils/error.js";
|
|
@@ -78,7 +78,7 @@ const W = "Thumb", ce = /* @__PURE__ */ T({
|
|
|
78
78
|
S(o, "scrollbarElement"),
|
|
79
79
|
"mouseleave",
|
|
80
80
|
H
|
|
81
|
-
), (t, n) => (
|
|
81
|
+
), (t, n) => (O(), A(j, {
|
|
82
82
|
name: m(s).b("fade")
|
|
83
83
|
}, {
|
|
84
84
|
default: K(() => [
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as g, computed as i, ref as l,
|
|
2
|
-
import { VftInput as
|
|
3
|
-
import { VftPopover as
|
|
1
|
+
import { defineComponent as g, computed as i, ref as l, createElementBlock as V, openBlock as h, Fragment as Y, withDirectives as Z, createBlock as _, createCommentVNode as ee, normalizeStyle as oe, normalizeClass as w, unref as a, createVNode as te, mergeProps as B, createSlots as ne, withCtx as r, renderSlot as s, createElementVNode as le } from "vue";
|
|
2
|
+
import { VftInput as ae } from "../input/index.js";
|
|
3
|
+
import { VftPopover as ie } from "../popover/index.js";
|
|
4
4
|
import "@vueuse/core";
|
|
5
5
|
import "@vft/utils";
|
|
6
6
|
import { addUnit as d } from "../../utils/helper.js";
|
|
7
7
|
import { generateCssVars as b } from "../../utils/ns-cover.js";
|
|
8
8
|
import "lodash-es";
|
|
9
9
|
import "../form/index.js";
|
|
10
|
-
import { useNamespace as
|
|
10
|
+
import { useNamespace as re } 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 { ClickOutside as
|
|
15
|
-
const
|
|
14
|
+
import { ClickOutside as se } from "@vft/directives";
|
|
15
|
+
const ue = g({
|
|
16
16
|
name: "vft-search"
|
|
17
|
-
}),
|
|
18
|
-
...
|
|
17
|
+
}), ge = /* @__PURE__ */ g({
|
|
18
|
+
...ue,
|
|
19
19
|
props: {
|
|
20
20
|
width: { default: 200 },
|
|
21
21
|
activeWidth: {},
|
|
@@ -48,7 +48,7 @@ const se = g({
|
|
|
48
48
|
},
|
|
49
49
|
emits: ["update:modelValue", "blur", "focus", "clear", "enter", "prefixClick", "suffixClick", "mouseenter", "mouseleave", "keydown", "change", "input", "compositionstart", "compositionupdate", "compositionend"],
|
|
50
50
|
setup(o, { expose: P, emit: x }) {
|
|
51
|
-
const t = x, f =
|
|
51
|
+
const t = x, f = re("search"), R = i(() => o.placeholder || "请输入你要搜索的内容"), y = l(), C = l(), c = l(), p = l(!1), m = l(!1), n = l(!1), S = i(
|
|
52
52
|
() => b(
|
|
53
53
|
{
|
|
54
54
|
width: o.activeWidth && (n.value || o.modelValue) ? d(o.activeWidth) : d(o.width)
|
|
@@ -69,12 +69,12 @@ const se = g({
|
|
|
69
69
|
offset: 3,
|
|
70
70
|
width: 500,
|
|
71
71
|
...o.popoverCfg
|
|
72
|
-
})),
|
|
72
|
+
})), I = (e) => {
|
|
73
73
|
t("update:modelValue", e), t("input", e);
|
|
74
|
-
},
|
|
74
|
+
}, W = () => {
|
|
75
75
|
v();
|
|
76
76
|
};
|
|
77
|
-
function
|
|
77
|
+
function z() {
|
|
78
78
|
n.value = !0;
|
|
79
79
|
}
|
|
80
80
|
function v() {
|
|
@@ -93,31 +93,34 @@ const se = g({
|
|
|
93
93
|
n.value = !0, p.value = !0, t("focus");
|
|
94
94
|
};
|
|
95
95
|
function O() {
|
|
96
|
-
|
|
96
|
+
o.usePopover && !n.value && (n.value = !0);
|
|
97
97
|
}
|
|
98
98
|
function j() {
|
|
99
|
-
|
|
99
|
+
p.value = !1, t("blur");
|
|
100
100
|
}
|
|
101
101
|
function A() {
|
|
102
|
-
u(), t("
|
|
102
|
+
u(), t("prefixClick", o.modelValue);
|
|
103
103
|
}
|
|
104
104
|
function D() {
|
|
105
|
+
u(), t("suffixClick", o.modelValue);
|
|
106
|
+
}
|
|
107
|
+
function K() {
|
|
105
108
|
u(), t("enter", o.modelValue);
|
|
106
109
|
}
|
|
107
110
|
function u(e = !0) {
|
|
108
111
|
o.usePopover && v(), e && c.value.blur();
|
|
109
112
|
}
|
|
110
|
-
const
|
|
113
|
+
const L = (e) => {
|
|
111
114
|
t("keydown", e);
|
|
112
|
-
},
|
|
115
|
+
}, H = i(() => y.value?.popperRef?.contentRef), q = (e) => {
|
|
113
116
|
t("update:modelValue", e);
|
|
114
|
-
}, q = (e) => {
|
|
115
|
-
t("change", e);
|
|
116
117
|
}, G = (e) => {
|
|
117
|
-
t("
|
|
118
|
+
t("change", e);
|
|
118
119
|
}, J = (e) => {
|
|
119
|
-
t("
|
|
120
|
+
t("compositionstart", e);
|
|
120
121
|
}, Q = (e) => {
|
|
122
|
+
t("compositionupdate", e);
|
|
123
|
+
}, T = (e) => {
|
|
121
124
|
t("compositionend", e);
|
|
122
125
|
};
|
|
123
126
|
return P({
|
|
@@ -125,37 +128,38 @@ const se = g({
|
|
|
125
128
|
isHover: m,
|
|
126
129
|
visible: n,
|
|
127
130
|
hidePopover: v,
|
|
128
|
-
showPopover:
|
|
131
|
+
showPopover: z,
|
|
129
132
|
inputRef: c
|
|
130
|
-
}), (e, k) => (h(), V(
|
|
131
|
-
|
|
133
|
+
}), (e, k) => (h(), V(Y, null, [
|
|
134
|
+
Z((h(), V("div", {
|
|
132
135
|
ref_key: "searchRef",
|
|
133
136
|
ref: C,
|
|
134
137
|
class: w([a(f).b(), a(f).is("active", !!n.value || !!o.modelValue)]),
|
|
135
|
-
style:
|
|
138
|
+
style: oe($.value)
|
|
136
139
|
}, [
|
|
137
|
-
|
|
140
|
+
te(a(ae), B({
|
|
138
141
|
ref_key: "inputRef",
|
|
139
142
|
ref: c
|
|
140
143
|
}, e.$props, {
|
|
141
144
|
placeholder: R.value,
|
|
142
145
|
"input-style": S.value,
|
|
143
|
-
onInput:
|
|
146
|
+
onInput: I,
|
|
147
|
+
onClick: O,
|
|
144
148
|
onFocus: N,
|
|
145
|
-
onEnter:
|
|
146
|
-
onBlur:
|
|
149
|
+
onEnter: K,
|
|
150
|
+
onBlur: j,
|
|
147
151
|
onMouseenter: U,
|
|
148
|
-
"onUpdate:modelValue":
|
|
152
|
+
"onUpdate:modelValue": q,
|
|
149
153
|
onMouseleave: F,
|
|
150
|
-
onPrefixClick:
|
|
151
|
-
onSuffixClick:
|
|
152
|
-
onChange:
|
|
153
|
-
onKeydown:
|
|
154
|
+
onPrefixClick: A,
|
|
155
|
+
onSuffixClick: D,
|
|
156
|
+
onChange: G,
|
|
157
|
+
onKeydown: L,
|
|
154
158
|
onClear: M,
|
|
155
|
-
onCompositionstart:
|
|
156
|
-
onCompositionupdate:
|
|
157
|
-
onCompositionend:
|
|
158
|
-
}),
|
|
159
|
+
onCompositionstart: J,
|
|
160
|
+
onCompositionupdate: Q,
|
|
161
|
+
onCompositionend: T
|
|
162
|
+
}), ne({ _: 2 }, [
|
|
159
163
|
e.$slots.prefix ? {
|
|
160
164
|
name: "prefix",
|
|
161
165
|
fn: r(() => [
|
|
@@ -186,9 +190,9 @@ const se = g({
|
|
|
186
190
|
} : void 0
|
|
187
191
|
]), 1040, ["placeholder", "input-style"])
|
|
188
192
|
], 6)), [
|
|
189
|
-
[a(
|
|
193
|
+
[a(se), W, H.value]
|
|
190
194
|
]),
|
|
191
|
-
o.usePopover ? (h(),
|
|
195
|
+
o.usePopover ? (h(), _(a(ie), B({
|
|
192
196
|
key: 0,
|
|
193
197
|
style: { "--vft-transition-duration": "3s" },
|
|
194
198
|
ref_key: "popoverRef",
|
|
@@ -196,21 +200,21 @@ const se = g({
|
|
|
196
200
|
}, E.value, {
|
|
197
201
|
"virtual-ref": C.value,
|
|
198
202
|
visible: n.value,
|
|
199
|
-
"onUpdate:visible": k[0] || (k[0] = (
|
|
203
|
+
"onUpdate:visible": k[0] || (k[0] = (X) => n.value = X),
|
|
200
204
|
"virtual-triggering": ""
|
|
201
205
|
}), {
|
|
202
206
|
default: r(() => [
|
|
203
|
-
|
|
207
|
+
le("div", {
|
|
204
208
|
class: w(a(f).e("content"))
|
|
205
209
|
}, [
|
|
206
210
|
s(e.$slots, "default")
|
|
207
211
|
], 2)
|
|
208
212
|
]),
|
|
209
213
|
_: 3
|
|
210
|
-
}, 16, ["virtual-ref", "visible"])) :
|
|
214
|
+
}, 16, ["virtual-ref", "visible"])) : ee("", !0)
|
|
211
215
|
], 64));
|
|
212
216
|
}
|
|
213
217
|
});
|
|
214
218
|
export {
|
|
215
|
-
|
|
219
|
+
ge as default
|
|
216
220
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _, ref as A, reactive as B, computed as c, watch as E,
|
|
1
|
+
import { defineComponent as _, ref as A, reactive as B, computed as c, watch as E, createElementBlock as b, createCommentVNode as R, openBlock as h, unref as a, normalizeClass as r, createElementVNode as d, normalizeStyle as q, Fragment as H, renderList as W, renderSlot as j, createTextVNode as G, toDisplayString as M } from "vue";
|
|
2
2
|
import { useActiveElement as U, useResizeObserver as J } from "@vueuse/core";
|
|
3
3
|
import { isObject as g } from "@vft/utils";
|
|
4
4
|
import { debugWarn as K } from "../../utils/error.js";
|
|
@@ -75,7 +75,7 @@ const ce = ["id", "aria-label", "aria-labelledby"], de = ["name", "disabled", "c
|
|
|
75
75
|
{
|
|
76
76
|
flush: "post"
|
|
77
77
|
}
|
|
78
|
-
), (e, o) => e.options.length ? (
|
|
78
|
+
), (e, o) => e.options.length ? (h(), b("div", {
|
|
79
79
|
key: 0,
|
|
80
80
|
id: a(F),
|
|
81
81
|
ref_key: "segmentedRef",
|
|
@@ -89,10 +89,10 @@ const ce = ["id", "aria-label", "aria-labelledby"], de = ["name", "disabled", "c
|
|
|
89
89
|
class: r([a(l).e("group"), a(l).m(s.direction)])
|
|
90
90
|
}, [
|
|
91
91
|
d("div", {
|
|
92
|
-
style:
|
|
92
|
+
style: q(Y.value),
|
|
93
93
|
class: r(x.value)
|
|
94
94
|
}, null, 6),
|
|
95
|
-
(
|
|
95
|
+
(h(!0), b(H, null, W(e.options, (n, P) => (h(), b("label", {
|
|
96
96
|
key: P,
|
|
97
97
|
class: r(T(n))
|
|
98
98
|
}, [
|
|
@@ -107,13 +107,13 @@ const ce = ["id", "aria-label", "aria-labelledby"], de = ["name", "disabled", "c
|
|
|
107
107
|
d("div", {
|
|
108
108
|
class: r(a(l).e("item-label"))
|
|
109
109
|
}, [
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
j(e.$slots, "default", { item: n }, () => [
|
|
111
|
+
G(M(z(n)), 1)
|
|
112
112
|
])
|
|
113
113
|
], 2)
|
|
114
114
|
], 2))), 128))
|
|
115
115
|
], 2)
|
|
116
|
-
], 10, ce)) :
|
|
116
|
+
], 10, ce)) : R("", !0);
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
119
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import t from "./group-item.vue2.js";
|
|
2
|
-
import {
|
|
2
|
+
import { createElementBlock as o, openBlock as r, normalizeStyle as i, normalizeClass as l, toDisplayString as s } from "vue";
|
|
3
3
|
import n from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
function p(e, a, m, c, f, u) {
|
|
5
|
-
return
|
|
5
|
+
return r(), o("div", {
|
|
6
6
|
class: l(e.ns.be("group", "title")),
|
|
7
7
|
style: i({ ...e.style, lineHeight: `${e.height}px` })
|
|
8
8
|
}, s(e.item.label), 7);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import o from "./option-item.vue2.js";
|
|
2
|
-
import {
|
|
2
|
+
import { createElementBlock as l, openBlock as n, withModifiers as r, normalizeClass as d, normalizeStyle as t, renderSlot as a, createElementVNode as m, toDisplayString as p } from "vue";
|
|
3
3
|
import f from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const u = ["aria-selected"];
|
|
5
5
|
function b(e, s, k, v, $, g) {
|
|
6
|
-
return
|
|
6
|
+
return n(), l("li", {
|
|
7
7
|
"aria-selected": e.selected,
|
|
8
8
|
style: t(e.style),
|
|
9
9
|
class: d([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import I from "./select.vue2.js";
|
|
2
|
-
import { resolveComponent as m, resolveDirective as R, withDirectives as w,
|
|
2
|
+
import { resolveComponent as m, resolveDirective as R, withDirectives as w, createElementBlock as p, openBlock as a, normalizeClass as o, createVNode as u, withCtx as t, createSlots as M, renderSlot as i, normalizeProps as D, guardReactiveProps as E, createElementVNode as n, toDisplayString as f, withModifiers as r, createCommentVNode as d, createBlock as b, Fragment as h, renderList as $, normalizeStyle as k, createTextVNode as T, withKeys as g, vModelText as B, vShow as K } from "vue";
|
|
3
3
|
import L from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const P = ["id", "autocomplete", "tabindex", "aria-expanded", "aria-label", "disabled", "readonly", "name"], N = ["textContent"], O = { key: 1 };
|
|
5
5
|
function H(e, s, U, A, F, j) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n, computed as m,
|
|
1
|
+
import { defineComponent as n, computed as m, createElementBlock as c, openBlock as r, normalizeClass as a, unref as t, createBlock as l, createCommentVNode as p, normalizeProps as s, mergeProps as f } from "vue";
|
|
2
2
|
import { VftIcon as u } from "../icon/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import { singleAttrToObj as d } from "@vft/utils";
|
|
@@ -27,7 +27,7 @@ const g = n({
|
|
|
27
27
|
return (v, _) => (r(), c("div", {
|
|
28
28
|
class: a([t(o).e("item"), t(o).e(e.variant)])
|
|
29
29
|
}, [
|
|
30
|
-
e.variant === "image" ? (r(), l(t(u),
|
|
30
|
+
e.variant === "image" ? (r(), l(t(u), s(f({ key: 0 }, i.value)), null, 16)) : p("", !0)
|
|
31
31
|
], 2));
|
|
32
32
|
}
|
|
33
33
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as k, computed as y,
|
|
1
|
+
import { defineComponent as k, computed as y, createElementBlock as n, renderSlot as u, unref as t, openBlock as o, mergeProps as d, Fragment as l, renderList as c, createCommentVNode as h, createVNode as B, normalizeClass as f, createBlock as $, normalizeProps as v } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -28,17 +28,17 @@ const N = k({
|
|
|
28
28
|
);
|
|
29
29
|
return g({
|
|
30
30
|
uiLoading: s
|
|
31
|
-
}), (a, z) => t(s) ? (o(), n("div",
|
|
31
|
+
}), (a, z) => t(s) ? (o(), n("div", d({
|
|
32
32
|
key: 0,
|
|
33
33
|
class: [t(r).b(), t(r).is("animated", e.animated)]
|
|
34
34
|
}, a.$attrs), [
|
|
35
|
-
(o(!0), n(l, null,
|
|
36
|
-
e.loading ?
|
|
37
|
-
|
|
35
|
+
(o(!0), n(l, null, c(e.count, (m) => (o(), n(l, { key: m }, [
|
|
36
|
+
e.loading ? u(a.$slots, "template", { key: m }, () => [
|
|
37
|
+
B(p, {
|
|
38
38
|
class: f(t(r).is("first")),
|
|
39
39
|
variant: "p"
|
|
40
40
|
}, null, 8, ["class"]),
|
|
41
|
-
(o(!0), n(l, null,
|
|
41
|
+
(o(!0), n(l, null, c(e.rows, (i) => (o(), $(p, {
|
|
42
42
|
key: i,
|
|
43
43
|
class: f([
|
|
44
44
|
t(r).e("paragraph"),
|
|
@@ -46,9 +46,9 @@ const N = k({
|
|
|
46
46
|
]),
|
|
47
47
|
variant: "p"
|
|
48
48
|
}, null, 8, ["class"]))), 128))
|
|
49
|
-
]) :
|
|
49
|
+
]) : h("", !0)
|
|
50
50
|
], 64))), 128))
|
|
51
|
-
], 16)) :
|
|
51
|
+
], 16)) : u(a.$slots, "default", v(d({ key: 1 }, a.$attrs)));
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, reactive as N, getCurrentInstance as S, toRefs as T,
|
|
1
|
+
import { defineComponent as b, reactive as N, getCurrentInstance as S, toRefs as T, createElementBlock as P, openBlock as z, unref as t, normalizeStyle as K, normalizeClass as d, createVNode as L, withCtx as f, createElementVNode as g, toDisplayString as X } from "vue";
|
|
2
2
|
import { isNumber as Y } from "@vft/utils";
|
|
3
3
|
import { VftTooltip as A } from "../tooltip/index.js";
|
|
4
4
|
import { UPDATE_MODEL_EVENT as F } from "../../constants/event.js";
|
|
@@ -56,7 +56,7 @@ const R = ["tabindex"], U = b({
|
|
|
56
56
|
setPosition: M,
|
|
57
57
|
hovering: a,
|
|
58
58
|
dragging: p
|
|
59
|
-
}), (j, e) => (
|
|
59
|
+
}), (j, e) => (z(), P("div", {
|
|
60
60
|
ref_key: "button",
|
|
61
61
|
ref: B,
|
|
62
62
|
class: d([t(m).e("button-wrapper"), { hover: t(a), dragging: t(p) }]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, reactive as oe, getCurrentInstance as ie, computed as d, toRefs as D, provide as re,
|
|
1
|
+
import { defineComponent as $, reactive as oe, getCurrentInstance as ie, computed as d, toRefs as D, provide as re, createElementBlock as r, openBlock as o, unref as e, normalizeClass as u, createElementVNode as V, createBlock as I, createCommentVNode as S, normalizeStyle as p, createVNode as ne, Fragment as k, renderList as B } from "vue";
|
|
2
2
|
import "../form/index.js";
|
|
3
3
|
import { VftInputNumber as ue } from "../input-number/index.js";
|
|
4
4
|
import "@vueuse/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isNumber as m,
|
|
1
|
+
import { isNumber as m, isString as P, isArray as p } from "@vft/utils";
|
|
2
2
|
import { componentSizes as T } from "../../constants/size.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as v, computed as k,
|
|
1
|
+
import { defineComponent as v, computed as k, createElementBlock as o, openBlock as l, normalizeClass as s, unref as r, createCommentVNode as f, createElementVNode as a, renderSlot as c, createTextVNode as V, toDisplayString as n, normalizeStyle as b } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import { isFunction as B, isNumber as C } from "@vft/utils";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -27,40 +27,40 @@ const z = v({
|
|
|
27
27
|
* @description current display value
|
|
28
28
|
*/
|
|
29
29
|
displayValue: d
|
|
30
|
-
}), (e, p) => (
|
|
30
|
+
}), (e, p) => (l(), o("div", {
|
|
31
31
|
class: s(r(t).b())
|
|
32
32
|
}, [
|
|
33
|
-
e.$slots.title || e.title ? (
|
|
33
|
+
e.$slots.title || e.title ? (l(), o("div", {
|
|
34
34
|
key: 0,
|
|
35
35
|
class: s(r(t).e("head"))
|
|
36
36
|
}, [
|
|
37
|
-
|
|
38
|
-
V(
|
|
37
|
+
c(e.$slots, "title", {}, () => [
|
|
38
|
+
V(n(e.title), 1)
|
|
39
39
|
])
|
|
40
|
-
], 2)) :
|
|
41
|
-
|
|
40
|
+
], 2)) : f("", !0),
|
|
41
|
+
a("div", {
|
|
42
42
|
class: s(r(t).e("content"))
|
|
43
43
|
}, [
|
|
44
|
-
e.$slots.prefix || e.prefix ? (
|
|
44
|
+
e.$slots.prefix || e.prefix ? (l(), o("div", {
|
|
45
45
|
key: 0,
|
|
46
46
|
class: s(r(t).e("prefix"))
|
|
47
47
|
}, [
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
c(e.$slots, "prefix", {}, () => [
|
|
49
|
+
a("span", null, n(e.prefix), 1)
|
|
50
50
|
])
|
|
51
|
-
], 2)) :
|
|
52
|
-
|
|
51
|
+
], 2)) : f("", !0),
|
|
52
|
+
a("span", {
|
|
53
53
|
class: s(r(t).e("number")),
|
|
54
54
|
style: b(e.valueStyle)
|
|
55
|
-
},
|
|
56
|
-
e.$slots.suffix || e.suffix ? (
|
|
55
|
+
}, n(d.value), 7),
|
|
56
|
+
e.$slots.suffix || e.suffix ? (l(), o("div", {
|
|
57
57
|
key: 1,
|
|
58
58
|
class: s(r(t).e("suffix"))
|
|
59
59
|
}, [
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
c(e.$slots, "suffix", {}, () => [
|
|
61
|
+
a("span", null, n(e.suffix), 1)
|
|
62
62
|
])
|
|
63
|
-
], 2)) :
|
|
63
|
+
], 2)) : f("", !0)
|
|
64
64
|
], 2)
|
|
65
65
|
], 2));
|
|
66
66
|
}
|