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 N, useSlots as G, reactive as H, ref as v, computed as s, watch as J, h as y, Comment as K,
|
|
1
|
+
import { defineComponent as N, useSlots as G, reactive as H, ref as v, computed as s, watch as J, h as y, Comment as K, createElementBlock as p, openBlock as h, normalizeClass as i, unref as t, createVNode as a, createElementVNode as O, withCtx as l, renderSlot as d, createCommentVNode as T, toDisplayString as P } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import { isEmpty as V, isUndefined as w } from "@vft/utils";
|
|
4
4
|
import { debugWarn as X } from "../../utils/error.js";
|
|
@@ -67,7 +67,7 @@ const le = { key: 0 }, se = { key: 0 }, ne = N({
|
|
|
67
67
|
leftPanel: f,
|
|
68
68
|
/** @description right panel ref */
|
|
69
69
|
rightPanel: c
|
|
70
|
-
}), (e, m) => (
|
|
70
|
+
}), (e, m) => (h(), p("div", {
|
|
71
71
|
class: i(t(r).b())
|
|
72
72
|
}, [
|
|
73
73
|
a(E, {
|
|
@@ -103,7 +103,7 @@ const le = { key: 0 }, se = { key: 0 }, ne = N({
|
|
|
103
103
|
}, {
|
|
104
104
|
default: l(() => [
|
|
105
105
|
a(t(S), { icon: "icon-arrow-left" }),
|
|
106
|
-
t(w)(e.buttonTexts[0]) ?
|
|
106
|
+
t(w)(e.buttonTexts[0]) ? T("", !0) : (h(), p("span", le, P(e.buttonTexts[0]), 1))
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
109
|
}, 8, ["class", "disabled", "onClick"]),
|
|
@@ -114,7 +114,7 @@ const le = { key: 0 }, se = { key: 0 }, ne = N({
|
|
|
114
114
|
onClick: t(L)
|
|
115
115
|
}, {
|
|
116
116
|
default: l(() => [
|
|
117
|
-
t(w)(e.buttonTexts[1]) ?
|
|
117
|
+
t(w)(e.buttonTexts[1]) ? T("", !0) : (h(), p("span", se, P(e.buttonTexts[1]), 1)),
|
|
118
118
|
a(t(S), { icon: "icon-arrow-right" })
|
|
119
119
|
]),
|
|
120
120
|
_: 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import f from "./tree-node.vue2.js";
|
|
2
|
-
import { resolveComponent as a, withDirectives as g,
|
|
2
|
+
import { resolveComponent as a, withDirectives as g, createElementBlock as i, openBlock as r, withModifiers as d, normalizeClass as s, createElementVNode as v, createVNode as l, normalizeStyle as D, createBlock as p, createCommentVNode as t, withCtx as N, Fragment as y, renderList as E, vShow as k } from "vue";
|
|
3
3
|
import w from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const $ = ["aria-expanded", "aria-disabled", "aria-checked", "draggable", "data-key"], L = ["aria-expanded"];
|
|
5
5
|
function S(e, n, c, B, M, V) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Y, getCurrentInstance as x, ref as s, computed as Z, watch as i, provide as w,
|
|
1
|
+
import { defineComponent as Y, getCurrentInstance as x, ref as s, computed as Z, watch as i, provide as w, createElementBlock as m, openBlock as y, normalizeClass as h, unref as n, createCommentVNode as _, withDirectives as ee, Fragment as te, renderList as re, createBlock as oe, renderSlot as ne, createElementVNode as E, toDisplayString as de, vShow as ae } from "vue";
|
|
2
2
|
import "../form/index.js";
|
|
3
3
|
import "../icon/index.js";
|
|
4
4
|
import "@vueuse/core";
|
|
@@ -218,7 +218,7 @@ const $e = /* @__PURE__ */ Y({
|
|
|
218
218
|
]),
|
|
219
219
|
role: "tree"
|
|
220
220
|
}, [
|
|
221
|
-
(y(!0), m(
|
|
221
|
+
(y(!0), m(te, null, re(u.value.childNodes, (d) => (y(), oe(ye, {
|
|
222
222
|
key: N(d),
|
|
223
223
|
node: d,
|
|
224
224
|
props: t,
|
|
@@ -232,13 +232,13 @@ const $e = /* @__PURE__ */ Y({
|
|
|
232
232
|
key: 0,
|
|
233
233
|
class: h(n(a).e("empty-block"))
|
|
234
234
|
}, [
|
|
235
|
-
|
|
235
|
+
ne(e.$slots, "empty", {}, () => [
|
|
236
236
|
E("span", {
|
|
237
237
|
class: h(n(a).e("empty-text"))
|
|
238
|
-
},
|
|
238
|
+
}, de(l.emptyText ?? "暂无数据"), 3)
|
|
239
239
|
])
|
|
240
|
-
], 2)) :
|
|
241
|
-
|
|
240
|
+
], 2)) : _("", !0),
|
|
241
|
+
ee(E("div", {
|
|
242
242
|
ref_key: "dropIndicator$",
|
|
243
243
|
ref: g,
|
|
244
244
|
class: h(n(a).e("drop-indicator"))
|
|
@@ -580,8 +580,8 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
580
580
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
581
581
|
$slots: {
|
|
582
582
|
file?(_: {
|
|
583
|
-
file:
|
|
584
|
-
index:
|
|
583
|
+
file: import("./types").UploadFile;
|
|
584
|
+
index: number;
|
|
585
585
|
}): any;
|
|
586
586
|
trigger?(_: {}): any;
|
|
587
587
|
default?(_: {}): any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, shallowRef as I, computed as $,
|
|
1
|
+
import { defineComponent as D, shallowRef as I, computed as $, createElementBlock as A, openBlock as q, withKeys as N, normalizeClass as T, withModifiers as w, unref as g, createBlock as X, renderSlot as L, createElementVNode as G, withCtx as J, nextTick as Q } from "vue";
|
|
2
2
|
import "../form/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import { isObject as O, entriesOf as Y } from "@vft/utils";
|
|
@@ -189,31 +189,31 @@ const re = ["onKeydown"], de = ["name", "multiple", "accept"], fe = D({
|
|
|
189
189
|
},
|
|
190
190
|
upload: C
|
|
191
191
|
}), (e, o) => (q(), A("div", {
|
|
192
|
-
class:
|
|
192
|
+
class: T([g(v).b(), g(v).m(r.listType), g(v).is("drag", r.drag)]),
|
|
193
193
|
tabindex: "0",
|
|
194
194
|
onClick: U,
|
|
195
|
-
onKeydown: N(
|
|
195
|
+
onKeydown: N(w(j, ["self"]), ["enter", "space"])
|
|
196
196
|
}, [
|
|
197
197
|
r.drag ? (q(), X(ae, {
|
|
198
198
|
key: 0,
|
|
199
199
|
disabled: g(k),
|
|
200
200
|
onFile: o[0] || (o[0] = (a) => B(a.file))
|
|
201
201
|
}, {
|
|
202
|
-
default:
|
|
202
|
+
default: J(() => [
|
|
203
203
|
L(e.$slots, "default")
|
|
204
204
|
]),
|
|
205
205
|
_: 3
|
|
206
206
|
}, 8, ["disabled"])) : L(e.$slots, "default", { key: 1 }),
|
|
207
|
-
|
|
207
|
+
G("input", {
|
|
208
208
|
ref_key: "inputRef",
|
|
209
209
|
ref: b,
|
|
210
|
-
class:
|
|
210
|
+
class: T(g(v).e("input")),
|
|
211
211
|
name: r.name,
|
|
212
212
|
multiple: r.multiple,
|
|
213
213
|
accept: r.accept,
|
|
214
214
|
type: "file",
|
|
215
215
|
onChange: V,
|
|
216
|
-
onClick: o[1] || (o[1] =
|
|
216
|
+
onClick: o[1] || (o[1] = w(() => {
|
|
217
217
|
}, ["stop"]))
|
|
218
218
|
}, null, 42, de)
|
|
219
219
|
], 42, re));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, inject as x, ref as E,
|
|
1
|
+
import { defineComponent as d, inject as x, ref as E, createElementBlock as N, openBlock as B, withModifiers as n, normalizeClass as M, unref as u, renderSlot as h } from "vue";
|
|
2
2
|
import "../form/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "@vft/utils";
|
|
@@ -41,7 +41,7 @@ const v = "VftUploadDrag", O = d({
|
|
|
41
41
|
}, _ = () => {
|
|
42
42
|
f.value || (t.value = !0);
|
|
43
43
|
};
|
|
44
|
-
return (o, r) => (
|
|
44
|
+
return (o, r) => (B(), N("div", {
|
|
45
45
|
class: M([u(l).b("dragger"), u(l).is("dragover", t.value)]),
|
|
46
46
|
onDrop: n(g, ["prevent"]),
|
|
47
47
|
onDragover: n(_, ["prevent"]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, ref as B,
|
|
1
|
+
import { defineComponent as C, ref as B, createBlock as p, openBlock as n, TransitionGroup as F, unref as e, normalizeClass as t, withCtx as N, createElementBlock as m, renderSlot as h, Fragment as z, renderList as I, withKeys as P, createCommentVNode as a, createElementVNode as b, withModifiers as K, createVNode as f, toDisplayString as L, normalizeStyle as S, nextTick as D } from "vue";
|
|
2
2
|
import "../form/index.js";
|
|
3
3
|
import { VftIcon as u } from "../icon/index.js";
|
|
4
4
|
import { VftProgress as E } from "../progress/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as F, useSlots as j, computed as
|
|
1
|
+
import { defineComponent as F, useSlots as j, computed as g, shallowRef as H, onBeforeUnmount as N, provide as O, toRef as W, createElementBlock as q, openBlock as v, normalizeClass as D, unref as t, createBlock as h, createCommentVNode as i, renderSlot as n, createSlots as $, withCtx as u, createVNode as K, mergeProps as B } from "vue";
|
|
2
2
|
import "../form/index.js";
|
|
3
|
-
import {
|
|
3
|
+
import { VftMessage as w } from "../message/index.js";
|
|
4
4
|
import { ajaxUpload as A } from "./ajax.js";
|
|
5
5
|
import { uploadContextKey as G } from "./constants.js";
|
|
6
6
|
import C from "./upload-content.vue2.js";
|
|
@@ -49,30 +49,30 @@ const X = F({
|
|
|
49
49
|
onSizeExceed: {}
|
|
50
50
|
},
|
|
51
51
|
setup(a, { expose: I }) {
|
|
52
|
-
const o = a, d = j(),
|
|
52
|
+
const o = a, d = j(), y = Q(), P = g(() => o.sizeExceedMessage || "文件大小超出限制"), p = H(), {
|
|
53
53
|
abort: S,
|
|
54
54
|
submit: k,
|
|
55
55
|
clearFiles: z,
|
|
56
56
|
uploadFiles: r,
|
|
57
57
|
handleStart: R,
|
|
58
|
-
handleError:
|
|
58
|
+
handleError: M,
|
|
59
59
|
handleRemove: c,
|
|
60
60
|
handleSuccess: T,
|
|
61
61
|
handleProgress: x
|
|
62
|
-
} = J(o, p), m =
|
|
62
|
+
} = J(o, p), m = g(() => o.listType === "picture-card"), U = {
|
|
63
63
|
abort: S,
|
|
64
64
|
submit: k,
|
|
65
65
|
clearFiles: z,
|
|
66
66
|
uploadFiles: r,
|
|
67
67
|
uploadRef: p
|
|
68
|
-
}, b =
|
|
68
|
+
}, b = g(() => ({
|
|
69
69
|
...o,
|
|
70
|
-
sizeExceedMessage:
|
|
70
|
+
sizeExceedMessage: P.value,
|
|
71
71
|
fileList: r.value,
|
|
72
72
|
onStart: R,
|
|
73
73
|
onProgress: x,
|
|
74
74
|
onSuccess: T,
|
|
75
|
-
onError:
|
|
75
|
+
onError: M,
|
|
76
76
|
onRemove: c,
|
|
77
77
|
onChange: (e, s) => {
|
|
78
78
|
o.onChange?.(e, s, U);
|
|
@@ -116,11 +116,11 @@ const X = F({
|
|
|
116
116
|
handleRemove: c,
|
|
117
117
|
fileList: r
|
|
118
118
|
}), (e, s) => (v(), q("div", {
|
|
119
|
-
class: D(["vft-upload-wrapper", [{ disabled: t(
|
|
119
|
+
class: D(["vft-upload-wrapper", [{ disabled: t(y) }]])
|
|
120
120
|
}, [
|
|
121
121
|
m.value && a.showFileList ? (v(), h(L, {
|
|
122
122
|
key: 0,
|
|
123
|
-
disabled: t(
|
|
123
|
+
disabled: t(y),
|
|
124
124
|
"list-type": a.listType,
|
|
125
125
|
files: t(r),
|
|
126
126
|
"handle-preview": a.onPreview,
|
|
@@ -132,8 +132,8 @@ const X = F({
|
|
|
132
132
|
ref: p
|
|
133
133
|
}, b.value), {
|
|
134
134
|
default: u(() => [
|
|
135
|
-
t(d).trigger ?
|
|
136
|
-
!t(d).trigger && t(d).default ?
|
|
135
|
+
t(d).trigger ? n(e.$slots, "trigger", { key: 0 }) : i("", !0),
|
|
136
|
+
!t(d).trigger && t(d).default ? n(e.$slots, "default", { key: 1 }) : i("", !0)
|
|
137
137
|
]),
|
|
138
138
|
_: 3
|
|
139
139
|
}, 16)
|
|
@@ -143,30 +143,30 @@ const X = F({
|
|
|
143
143
|
e.$slots.file ? {
|
|
144
144
|
name: "default",
|
|
145
145
|
fn: u(({ file: l, index: f }) => [
|
|
146
|
-
|
|
146
|
+
n(e.$slots, "file", {
|
|
147
147
|
file: l,
|
|
148
148
|
index: f
|
|
149
149
|
})
|
|
150
150
|
]),
|
|
151
151
|
key: "0"
|
|
152
152
|
} : void 0
|
|
153
|
-
]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) :
|
|
153
|
+
]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) : i("", !0),
|
|
154
154
|
!m.value || m.value && !a.showFileList ? (v(), h(C, B({
|
|
155
155
|
key: 1,
|
|
156
156
|
ref_key: "uploadRef",
|
|
157
157
|
ref: p
|
|
158
158
|
}, b.value), {
|
|
159
159
|
default: u(() => [
|
|
160
|
-
t(d).trigger ?
|
|
161
|
-
!t(d).trigger && t(d).default ?
|
|
160
|
+
t(d).trigger ? n(e.$slots, "trigger", { key: 0 }) : i("", !0),
|
|
161
|
+
!t(d).trigger && t(d).default ? n(e.$slots, "default", { key: 1 }) : i("", !0)
|
|
162
162
|
]),
|
|
163
163
|
_: 3
|
|
164
|
-
}, 16)) :
|
|
165
|
-
e.$slots.trigger ?
|
|
166
|
-
|
|
164
|
+
}, 16)) : i("", !0),
|
|
165
|
+
e.$slots.trigger ? n(e.$slots, "default", { key: 2 }) : i("", !0),
|
|
166
|
+
n(e.$slots, "tip"),
|
|
167
167
|
!m.value && a.showFileList ? (v(), h(L, {
|
|
168
168
|
key: 3,
|
|
169
|
-
disabled: t(
|
|
169
|
+
disabled: t(y),
|
|
170
170
|
"list-type": a.listType,
|
|
171
171
|
files: t(r),
|
|
172
172
|
"handle-preview": a.onPreview,
|
|
@@ -175,14 +175,14 @@ const X = F({
|
|
|
175
175
|
e.$slots.file ? {
|
|
176
176
|
name: "default",
|
|
177
177
|
fn: u(({ file: l, index: f }) => [
|
|
178
|
-
|
|
178
|
+
n(e.$slots, "file", {
|
|
179
179
|
file: l,
|
|
180
180
|
index: f
|
|
181
181
|
})
|
|
182
182
|
]),
|
|
183
183
|
key: "0"
|
|
184
184
|
} : void 0
|
|
185
|
-
]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) :
|
|
185
|
+
]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) : i("", !0)
|
|
186
186
|
], 2));
|
|
187
187
|
}
|
|
188
188
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, computed as s,
|
|
1
|
+
import { defineComponent as d, computed as s, createElementBlock as f, openBlock as u, normalizeStyle as o, createElementVNode as g, unref as k } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import { addUnit as t } from "../../utils/helper.js";
|
|
@@ -25,7 +25,7 @@ const y = ["width", "height"], v = d({
|
|
|
25
25
|
return c({
|
|
26
26
|
getCode: i,
|
|
27
27
|
code: l
|
|
28
|
-
}), (C, p) => (
|
|
28
|
+
}), (C, p) => (u(), f("div", {
|
|
29
29
|
style: o(h.value),
|
|
30
30
|
onClick: a
|
|
31
31
|
}, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _, computed as n, shallowRef as C, ref as j, onMounted as q, watch as J, onBeforeUnmount as K,
|
|
1
|
+
import { defineComponent as _, computed as n, shallowRef as C, ref as j, onMounted as q, watch as J, onBeforeUnmount as K, createElementBlock as Q, openBlock as Z, normalizeStyle as tt, renderSlot as et } from "vue";
|
|
2
2
|
import { useMutationObserver as ot } from "@vueuse/core";
|
|
3
3
|
import { isArray as nt, isUndefined as at } from "@vft/utils";
|
|
4
4
|
import { watermarkProps as rt } from "./watermark.js";
|
|
@@ -117,7 +117,7 @@ const ft = _({
|
|
|
117
117
|
attributes: !0,
|
|
118
118
|
subtree: !0,
|
|
119
119
|
childList: !0
|
|
120
|
-
}), (e, o) => (
|
|
120
|
+
}), (e, o) => (Z(), Q("div", {
|
|
121
121
|
ref_key: "containerRef",
|
|
122
122
|
ref: f,
|
|
123
123
|
style: tt([R])
|
package/es/hooks/use-id/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { unref as n,
|
|
1
|
+
import { unref as n, inject as i, getCurrentInstance as c } from "vue";
|
|
2
2
|
import { isClient as s, computedEager as u } from "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import { debugWarn as d } from "../../utils/error.js";
|
|
@@ -9,7 +9,7 @@ import { useGetDerivedNamespace as p } from "../use-namespace/index.js";
|
|
|
9
9
|
const r = {
|
|
10
10
|
prefix: Math.floor(Math.random() * 1e4),
|
|
11
11
|
current: 0
|
|
12
|
-
}, m = Symbol("vftIdInjection"), a = () =>
|
|
12
|
+
}, m = Symbol("vftIdInjection"), a = () => c() ? i(m, r) : r, h = (t) => {
|
|
13
13
|
const e = a();
|
|
14
14
|
!s && e === r && d(
|
|
15
15
|
"IdInjection",
|
|
@@ -2,14 +2,14 @@ import "@vueuse/core";
|
|
|
2
2
|
import { isNumber as m, isClient as p } from "@vft/utils";
|
|
3
3
|
import { debugWarn as l } from "../../utils/error.js";
|
|
4
4
|
import "../../components/config-provider/hooks/use-global-config.js";
|
|
5
|
-
import {
|
|
5
|
+
import { getCurrentInstance as i, inject as e, computed as c, unref as v, ref as Z } from "vue";
|
|
6
6
|
import "lodash-es";
|
|
7
7
|
import "../../components/form/index.js";
|
|
8
8
|
const s = {
|
|
9
9
|
current: 0
|
|
10
|
-
}, u =
|
|
10
|
+
}, u = Z(0), f = 2e3, d = Symbol("vftZIndexContextKey"), y = Symbol("zIndexContextKey"), K = (I) => {
|
|
11
11
|
const n = i() ? e(d, s) : s, x = I || (i() ? e(y, void 0) : void 0), t = c(() => {
|
|
12
|
-
const r =
|
|
12
|
+
const r = v(x);
|
|
13
13
|
return m(r) ? r : f;
|
|
14
14
|
}), o = c(() => t.value + u.value), a = () => (n.current++, u.value = n.current, o.value);
|
|
15
15
|
return !p && !e(d) && l(
|
package/es/index.js
CHANGED
|
@@ -101,7 +101,7 @@ export { VftMdVuePlayground } from "./components/md-vue-playground/index.js";
|
|
|
101
101
|
export { VftInfiniteScroll } from "./components/infinite-scroll/index.js";
|
|
102
102
|
export { VftLoading } from "./components/loading/index.js";
|
|
103
103
|
export { VftMessage, Message } from "./components/message/index.js";
|
|
104
|
-
export {
|
|
104
|
+
export { VftMessageBox } from "./components/message-box/index.js";
|
|
105
105
|
export { VftProgressI } from "./components/progress-i/index.js";
|
|
106
106
|
export { VftSuperForm } from "./components/super-form/index.js";
|
|
107
107
|
export { EVENT_CODE } from "./constants/aria.js";
|
|
@@ -148,65 +148,65 @@ export { ACTION_FIELD, CHECKED_FIELD, CREATE_TIME_FIELD, DATE_FIELD, DATE_TIME_F
|
|
|
148
148
|
export { getDynamicProps, useForm } from "./components/super-form/use/use-form.js";
|
|
149
149
|
export { CompResolver } from "./comp-resolver.js";
|
|
150
150
|
export { makeInstaller } from "./make-installer.js";
|
|
151
|
-
export { default as CommonPicker } from "./components/time-picker/common/picker.vue2.js";
|
|
152
|
-
export { default as TimePickPanel } from "./components/time-picker/time-picker-com/panel-time-pick.vue2.js";
|
|
153
151
|
export { default as VftPopperArrow } from "./components/popper/arrow.vue2.js";
|
|
154
152
|
export { default as VftPopperContent } from "./components/popper/content.vue2.js";
|
|
155
153
|
export { default as VftPopperTrigger } from "./components/popper/trigger.vue2.js";
|
|
156
|
-
export {
|
|
157
|
-
export {
|
|
158
|
-
export { CASCADER_PANEL_INJECTION_KEY } from "./components/cascader-panel/types.js";
|
|
159
|
-
export { CommonProps, DefaultProps, cascaderPanelEmits, cascaderPanelProps, useCascaderConfig } from "./components/cascader-panel/config.js";
|
|
160
|
-
export { DEFAULT_DIALOG_TRANSITION, dialogInjectionKey } from "./components/dialog/constants.js";
|
|
161
|
-
export { DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, PICKER_BASE_INJECTION_KEY, PICKER_POPPER_OPTIONS_INJECTION_KEY, timeUnits } from "./components/time-picker/constants.js";
|
|
162
|
-
export { DROPDOWN_INJECTION_KEY } from "./components/dropdown/tokens.js";
|
|
163
|
-
export { EmptyEnum } from "./components/empty/constants.js";
|
|
164
|
-
export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from "./components/transfer/transfer.js";
|
|
165
|
-
export { MenuTypeEnum } from "./components/horizontal-menu/constants.js";
|
|
166
|
-
export { ROOT_PICKER_INJECTION_KEY, ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY } from "./components/date-picker/constants.js";
|
|
167
|
-
export { TOOLTIP_INJECTION_KEY } from "./components/tooltip/constants.js";
|
|
168
|
-
export { TabsRootContextKey } from "./components/tabs/types.js";
|
|
169
|
-
export { vLoading, createLoadingDirective } from "./components/loading/directive.js";
|
|
170
|
-
export { Loading } from "./components/loading/service.js";
|
|
171
|
-
export { addRequire, removeRequire, selectMapping } from "./components/table/utils.js";
|
|
172
|
-
export { breadcrumbKey } from "./components/breadcrumb/constants.js";
|
|
173
|
-
export { buildTimeList, dateEquals, dayOrDaysToDate, extractDateFormat, extractTimeFormat, formatter, makeList, parseDate, rangeArr, valueEquals } from "./components/time-picker/utils.js";
|
|
154
|
+
export { default as CommonPicker } from "./components/time-picker/common/picker.vue2.js";
|
|
155
|
+
export { default as TimePickPanel } from "./components/time-picker/time-picker-com/panel-time-pick.vue2.js";
|
|
174
156
|
export { buttonGroupContextKey } from "./components/button/constants.js";
|
|
175
157
|
export { cascaderEmits, cascaderProps } from "./components/cascader/cascader.js";
|
|
158
|
+
export { CASCADER_PANEL_INJECTION_KEY } from "./components/cascader-panel/types.js";
|
|
159
|
+
export { CommonProps, DefaultProps, cascaderPanelEmits, cascaderPanelProps, useCascaderConfig } from "./components/cascader-panel/config.js";
|
|
176
160
|
export { checkboxGroupContextKey } from "./components/checkbox/constants.js";
|
|
177
|
-
export { collapseContextKey } from "./components/collapse/constants.js";
|
|
178
|
-
export { collapseEmits, collapseProps, emitChangeFn } from "./components/collapse/collapse.js";
|
|
179
|
-
export { collapseItemProps } from "./components/collapse/collapse-item.js";
|
|
180
161
|
export { configProviderContextKey, messageConfig } from "./components/config-provider/constants.js";
|
|
181
|
-
export {
|
|
162
|
+
export { provideGlobalConfig, useGlobalComponentSettings, useGlobalConfig } from "./components/config-provider/hooks/use-global-config.js";
|
|
163
|
+
export { ROOT_PICKER_INJECTION_KEY, ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY } from "./components/date-picker/constants.js";
|
|
182
164
|
export { datePickerProps } from "./components/date-picker/props/date-picker.js";
|
|
183
|
-
export {
|
|
184
|
-
export {
|
|
165
|
+
export { DEFAULT_DIALOG_TRANSITION, dialogInjectionKey } from "./components/dialog/constants.js";
|
|
166
|
+
export { useDialog } from "./components/dialog/use-dialog.js";
|
|
167
|
+
export { DROPDOWN_INJECTION_KEY } from "./components/dropdown/tokens.js";
|
|
168
|
+
export { EmptyEnum } from "./components/empty/constants.js";
|
|
185
169
|
export { formContextKey, formItemContextKey } from "./components/form/constants.js";
|
|
186
|
-
export {
|
|
187
|
-
export {
|
|
170
|
+
export { useDisabled, useFormDisabled, useFormSize, useSize } from "./components/form/hooks/use-form-common-props.js";
|
|
171
|
+
export { useFormItem, useFormItemInputId } from "./components/form/hooks/use-form-item.js";
|
|
172
|
+
export { MenuTypeEnum } from "./components/horizontal-menu/constants.js";
|
|
188
173
|
export { initAffixTabs, useTabsDrag } from "./components/multiple-tabs/use/use-multiple-tabs.js";
|
|
189
|
-
export {
|
|
190
|
-
export { isDatePicker, isInput, isRangePicker } from "./components/super-form/component-map.js";
|
|
191
|
-
export { messageDefaults, messageTypes } from "./components/message/types.js";
|
|
174
|
+
export { useTabDropdown } from "./components/multiple-tabs/use/use-tab-dropdown.js";
|
|
192
175
|
export { notificationEmits, notificationProps, notificationTypes } from "./components/notification/notification.js";
|
|
193
|
-
export {
|
|
176
|
+
export { usePagination, vftPaginationKey } from "./components/pagination/usePagination.js";
|
|
194
177
|
export { radioGroupKey } from "./components/radio/constants.js";
|
|
195
178
|
export { rowContextKey } from "./components/row/constants.js";
|
|
196
179
|
export { scrollbarContextKey } from "./components/scrollbar/constants.js";
|
|
180
|
+
export { BAR_MAP, GAP, renderThumbStyle } from "./components/scrollbar/util.js";
|
|
197
181
|
export { selectV2InjectionKey } from "./components/select/token.js";
|
|
198
182
|
export { sliderContextKey } from "./components/slider/constants.js";
|
|
199
183
|
export { sliderEmits } from "./components/slider/slider.js";
|
|
200
184
|
export { spaceProps } from "./components/space/space.js";
|
|
185
|
+
export { useSpace } from "./components/space/use-space.js";
|
|
186
|
+
export { addRequire, removeRequire, selectMapping } from "./components/table/utils.js";
|
|
187
|
+
export { TabsRootContextKey } from "./components/tabs/types.js";
|
|
201
188
|
export { timePickerDefaultProps, timePickerRangeTriggerProps, timePickerRngeTriggerProps } from "./components/time-picker/common/props.js";
|
|
202
|
-
export {
|
|
203
|
-
export {
|
|
204
|
-
export {
|
|
189
|
+
export { DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, PICKER_BASE_INJECTION_KEY, PICKER_POPPER_OPTIONS_INJECTION_KEY, timeUnits } from "./components/time-picker/constants.js";
|
|
190
|
+
export { buildTimeList, dateEquals, dayOrDaysToDate, extractDateFormat, extractTimeFormat, formatter, makeList, parseDate, rangeArr, valueEquals } from "./components/time-picker/utils.js";
|
|
191
|
+
export { TOOLTIP_INJECTION_KEY } from "./components/tooltip/constants.js";
|
|
192
|
+
export { getChildState } from "./components/tree/model/node.js";
|
|
193
|
+
export { dragEventsKey, useDragNodeHandler } from "./components/tree/model/useDragNode.js";
|
|
194
|
+
export { breadcrumbKey } from "./components/breadcrumb/constants.js";
|
|
195
|
+
export { CAROUSEL_ITEM_NAME, carouselContextKey } from "./components/carousel/constants.js";
|
|
196
|
+
export { collapseEmits, collapseProps, emitChangeFn } from "./components/collapse/collapse.js";
|
|
197
|
+
export { collapseItemProps } from "./components/collapse/collapse-item.js";
|
|
198
|
+
export { collapseContextKey } from "./components/collapse/constants.js";
|
|
199
|
+
export { countdownEmits, countdownProps } from "./components/countdown/countdown.js";
|
|
200
|
+
export { inputTagEmits, inputTagProps } from "./components/input-tag/input-tag.js";
|
|
205
201
|
export { useModal, useModalInner } from "./components/modal/use/use-modal.js";
|
|
206
|
-
export {
|
|
207
|
-
export {
|
|
208
|
-
export {
|
|
202
|
+
export { defaultProps, segmentedEmits, segmentedProps } from "./components/segmented/segmented.js";
|
|
203
|
+
export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from "./components/transfer/transfer.js";
|
|
204
|
+
export { genFileId, uploadContextKey } from "./components/upload/constants.js";
|
|
209
205
|
export { watermarkProps } from "./components/watermark/watermark.js";
|
|
206
|
+
export { vLoading, createLoadingDirective } from "./components/loading/directive.js";
|
|
207
|
+
export { Loading } from "./components/loading/service.js";
|
|
208
|
+
export { messageDefaults, messageTypes } from "./components/message/types.js";
|
|
209
|
+
export { isDatePicker, isInput, isRangePicker } from "./components/super-form/component-map.js";
|
|
210
210
|
|
|
211
211
|
|
|
212
212
|
const install = installer.install;
|
package/es/package.json.d.ts
CHANGED
package/es/package.json.js
CHANGED
package/es/plugin.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { VftLoading as o } from "./components/loading/index.js";
|
|
2
2
|
import { VftInfiniteScroll as t } from "./components/infinite-scroll/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { VftNotification as
|
|
6
|
-
const
|
|
3
|
+
import { VftMessage as f } from "./components/message/index.js";
|
|
4
|
+
import { VftMessageBox as i } from "./components/message-box/index.js";
|
|
5
|
+
import { VftNotification as r } from "./components/notification/index.js";
|
|
6
|
+
const p = [
|
|
7
7
|
o,
|
|
8
8
|
f,
|
|
9
|
-
|
|
9
|
+
i,
|
|
10
10
|
t,
|
|
11
|
-
|
|
11
|
+
r
|
|
12
12
|
];
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
p as default
|
|
15
15
|
};
|
package/es/utils/helper.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useGlobalConfig as n } from "../components/config-provider/hooks/use-global-config.js";
|
|
2
|
-
import {
|
|
2
|
+
import { componentSizes as i, componentSizeMap as o } from "../constants/size.js";
|
|
3
3
|
import { addUnit as s } from "@vft/utils";
|
|
4
|
-
const c = (t) => ["large", "small"].includes(t) ? t : !1, l = (t) => ["", ...
|
|
4
|
+
const c = (t) => ["large", "small"].includes(t) ? t : !1, l = (t) => ["", ...i].includes(t), m = (t) => o[t || "default"], p = (t) => !t && t !== 0 ? [] : Array.isArray(t) ? t : [t], d = (t) => [...new Set(t)];
|
|
5
5
|
function f(t) {
|
|
6
6
|
const e = n();
|
|
7
7
|
return s(t, e?.value?.baseUnit, e?.value?.baseUnitSize);
|
package/es/utils/ns-cover.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { generateCssVars as a, cssVarValue as c, isObject as i, setStyle as l, getRgbCount as u,
|
|
1
|
+
import { generateCssVars as a, cssVarValue as c, isObject as i, setStyle as l, getRgbCount as u, mixColor as n, hexToRGB as m } from "@vft/utils";
|
|
2
2
|
import { isClient as r } from "@vueuse/core";
|
|
3
3
|
import { ref as g } from "vue";
|
|
4
4
|
const V = (e, s = document.documentElement, t = !0) => {
|
package/es/utils/vue/vnode.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { isVNode as o, Fragment as S, Comment as A, Text as s,
|
|
1
|
+
import { hasOwn as m, camelize as N, isArray as E } from "@vft/utils";
|
|
2
|
+
import { isVNode as o, Fragment as S, Comment as A, Text as s, createCommentVNode as L, createBlock as _, openBlock as C } from "vue";
|
|
3
3
|
import { debugWarn as O } from "../error.js";
|
|
4
4
|
const R = "utils/vue/vnode";
|
|
5
5
|
var D = /* @__PURE__ */ ((e) => (e[e.TEXT = 1] = "TEXT", e[e.CLASS = 2] = "CLASS", e[e.STYLE = 4] = "STYLE", e[e.PROPS = 8] = "PROPS", e[e.FULL_PROPS = 16] = "FULL_PROPS", e[e.HYDRATE_EVENTS = 32] = "HYDRATE_EVENTS", e[e.STABLE_FRAGMENT = 64] = "STABLE_FRAGMENT", e[e.KEYED_FRAGMENT = 128] = "KEYED_FRAGMENT", e[e.UNKEYED_FRAGMENT = 256] = "UNKEYED_FRAGMENT", e[e.NEED_PATCH = 512] = "NEED_PATCH", e[e.DYNAMIC_SLOTS = 1024] = "DYNAMIC_SLOTS", e[e.HOISTED = -1] = "HOISTED", e[e.BAIL = -2] = "BAIL", e))(D || {});
|
|
@@ -25,10 +25,10 @@ function T(e, t) {
|
|
|
25
25
|
}
|
|
26
26
|
const M = (e, t = 3) => E(e) ? T(e[0], t) : T(e, t);
|
|
27
27
|
function H(e, ...t) {
|
|
28
|
-
return e ? v(...t) :
|
|
28
|
+
return e ? v(...t) : L("v-if", !0);
|
|
29
29
|
}
|
|
30
30
|
function v(...e) {
|
|
31
|
-
return
|
|
31
|
+
return C(), _(...e);
|
|
32
32
|
}
|
|
33
33
|
const w = (e) => {
|
|
34
34
|
if (!o(e))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../config-provider/index.cjs");require("../form/index.cjs");const q=require("@vueuse/core"),o=require("vue"),v=require("./constants.cjs"),F=require("../
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../config-provider/index.cjs");require("../form/index.cjs");const q=require("@vueuse/core"),o=require("vue"),v=require("./constants.cjs"),F=require("../form/hooks/use-form-item.cjs"),T=require("../config-provider/hooks/use-global-config.cjs"),r=require("../form/hooks/use-form-common-props.cjs"),p=(e,i)=>{const u=o.inject(v.buttonGroupContextKey,void 0),l=T.useGlobalConfig("button"),{form:a}=F.useFormItem(),d=r.useFormSize(o.computed(()=>u?.size)),n=r.useFormDisabled(),f=o.ref(),m=o.useSlots(),b=o.computed(()=>e.type||u?.type||""),g=o.computed(()=>e.autoInsertSpace??l.value?.autoInsertSpace??!1),h=o.computed(()=>{const t=m.default?.();if(g.value&&t?.length===1){const c=t[0];if(c?.type===o.Text){const S=c.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(S.trim())}}return!1}),y=o.computed(()=>e.tag==="button"?{ariaDisabled:n.value||e.loading,disabled:n.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),s=t=>{e.nativeType==="reset"&&a?.resetFields(),i("click",t)},C=q.useThrottleFn(t=>{s(t)},e.throttleTime);return{_props:y,_disabled:n,_size:d,_type:b,_ref:f,shouldAddSpace:h,handleClick:t=>{e.useThrottle?C(t):s(t)}}};exports.useButton=p;
|