vft 0.0.509 → 0.0.511
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/dist/index.css +1 -1
- 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/cascader/cascader.vue2.js +2 -2
- package/es/components/cascader-panel/index.vue2.js +1 -1
- package/es/components/cascader-panel/menu.vue2.js +6 -6
- 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 +4 -4
- 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 +2 -2
- 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 +3 -3
- 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/composables/use-basic-date-table.d.ts +1 -1
- package/es/components/date-picker/composables/use-basic-date-table.js +115 -115
- package/es/components/date-picker/composables/use-month-range-header.js +1 -1
- package/es/components/date-picker/composables/use-panel-date-range.js +1 -1
- 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 +5 -5
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +5 -5
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +12 -12
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +3 -3
- 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/date-time-select/date-time-select.vue2.js +1 -1
- 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.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown-item-impl.vue2.js +3 -3
- package/es/components/dropdown/dropdown-item.vue.d.ts +1 -1
- 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.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown.vue2.js +5 -5
- package/es/components/dropdown/index.d.ts +33 -33
- package/es/components/empty/empty.vue2.js +6 -6
- 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 +3 -3
- 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 +2 -2
- package/es/components/image-viewer/image-viewer.vue2.js +7 -7
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +206 -203
- package/es/components/input/input.vue2.js +6 -6
- package/es/components/input-number/input-number.vue2.js +4 -4
- 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-comment/md-comment.vue2.js +2 -2
- package/es/components/md-container/md-container.vue2.js +2 -2
- package/es/components/md-container/toc.js +1 -1
- 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/index.d.ts +4 -0
- package/es/components/message-box/index.js +14 -0
- package/es/components/message-box/message-box.vue.d.ts +103 -0
- package/es/components/message-box/message-box.vue.js +4 -0
- package/es/components/message-box/message-box.vue2.js +358 -0
- package/es/components/message-box/method.d.ts +3 -0
- package/es/components/message-box/method.js +101 -0
- package/es/components/message-box/style/css.d.ts +2 -0
- package/es/components/message-box/style/css.js +3 -0
- package/es/components/message-box/style/index.d.ts +2 -0
- package/es/components/message-box/style/index.js +3 -0
- package/es/components/message-box/types.d.ts +202 -0
- package/es/components/message-box/types.js +1 -0
- package/es/components/modal/index.d.ts +1 -0
- package/es/components/modal/modal-footer-action.vue2.js +11 -11
- package/es/components/modal/modal.vue.d.ts +1 -0
- package/es/components/modal/modal.vue2.js +30 -28
- 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/multiple-tabs/use/use-tab-dropdown.js +1 -1
- 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 +28 -29
- 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 +20 -21
- package/es/components/pagination/components/total.vue2.js +10 -11
- package/es/components/popconfirm/popconfirm.vue2.js +4 -4
- package/es/components/popover/popover.vue2.js +1 -1
- 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 +8 -8
- 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/select/useSelect.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 +47 -48
- package/es/components/super-form/super-form-item.vue2.js +204 -206
- package/es/components/super-form/super-form.vue2.js +7 -7
- package/es/components/super-form/use/helper.d.ts +1 -1
- package/es/components/super-form/use/helper.js +63 -63
- package/es/components/super-form/use/use-form.js +8 -8
- package/es/components/switch/switch.vue2.js +1 -1
- package/es/components/table/field.js +111 -130
- package/es/components/table/table.vue2.js +128 -133
- package/es/components/table/use/use-columns.js +26 -29
- package/es/components/table/use/use-data-source.js +59 -60
- 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 +4 -4
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +4 -4
- 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 +8 -8
- package/es/components/transfer/transfer.vue2.js +5 -5
- package/es/components/tree/tree-node.vue.js +1 -1
- package/es/components/tree/tree.vue2.js +7 -7
- package/es/components/upload/upload-content.vue2.js +8 -8
- package/es/components/upload/upload-dragger.vue2.js +2 -2
- package/es/components/upload/upload-list.vue2.js +2 -2
- package/es/components/upload/upload.vue2.js +20 -20
- 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/index.js +40 -39
- package/es/locale/index.js +6 -6
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/plugin.js +5 -3
- package/es/utils/helper.js +2 -2
- package/es/utils/ns-cover.js +1 -1
- package/es/utils/vue/vnode.js +3 -3
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/cascader/cascader.vue2.cjs +1 -1
- package/lib/components/cascader-panel/menu.vue2.cjs +2 -2
- package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/date-picker/composables/use-basic-date-table.cjs +1 -1
- package/lib/components/date-picker/composables/use-basic-date-table.d.ts +1 -1
- package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
- package/lib/components/date-picker/composables/use-panel-date-range.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
- package/lib/components/dropdown/dropdown-item.vue.d.ts +1 -1
- package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/dropdown/index.d.ts +33 -33
- package/lib/components/empty/empty.vue2.cjs +1 -1
- package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
- package/lib/components/image/image.vue2.cjs +1 -1
- package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-container/toc.cjs +1 -1
- package/lib/components/message-box/index.cjs +1 -0
- package/lib/components/message-box/index.d.ts +4 -0
- package/lib/components/message-box/message-box.vue.cjs +1 -0
- package/lib/components/message-box/message-box.vue.d.ts +103 -0
- package/lib/components/message-box/message-box.vue2.cjs +1 -0
- package/lib/components/message-box/method.cjs +1 -0
- package/lib/components/message-box/method.d.ts +3 -0
- package/lib/components/message-box/style/css.cjs +1 -0
- package/lib/components/message-box/style/css.d.ts +2 -0
- package/lib/components/message-box/style/index.cjs +1 -0
- package/lib/components/message-box/style/index.d.ts +2 -0
- package/lib/components/message-box/types.cjs +1 -0
- package/lib/components/message-box/types.d.ts +202 -0
- package/lib/components/modal/index.d.ts +1 -0
- package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
- package/lib/components/modal/modal.vue.d.ts +1 -0
- package/lib/components/modal/modal.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
- package/lib/components/pagination/components/jumper.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/search/search.vue2.cjs +1 -1
- package/lib/components/select/useSelect.cjs +1 -1
- package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/use/helper.cjs +1 -1
- package/lib/components/super-form/use/helper.d.ts +1 -1
- package/lib/components/super-form/use/use-form.cjs +1 -1
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/table/use/use-columns.cjs +1 -1
- package/lib/components/table/use/use-data-source.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
- package/lib/components/transfer/transfer-panel.vue2.cjs +1 -1
- package/lib/components/transfer/transfer.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/index.cjs +1 -1
- package/lib/locale/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 +2 -2
- package/theme-style/index.css +1 -1
- package/theme-style/src/table.scss +4 -0
- package/theme-style/vft-table.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, useSlots as H, reactive as J, ref as y, computed as s, watch as K, h as T, Comment as O,
|
|
1
|
+
import { defineComponent as $, useSlots as H, reactive as J, ref as y, computed as s, watch as K, h as T, Comment as O, openBlock as h, createElementBlock as u, normalizeClass as i, unref as t, createVNode as a, withCtx as l, renderSlot as f, createElementVNode as X, toDisplayString as P, createCommentVNode as V } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import { isEmpty as w, isUndefined as E } from "@vft/utils";
|
|
4
4
|
import { debugWarn as Y } from "../../utils/error.js";
|
|
@@ -9,7 +9,7 @@ import { useNamespace as Z } from "../../hooks/use-namespace/index.js";
|
|
|
9
9
|
import "../../hooks/use-model-toggle/index.js";
|
|
10
10
|
import "@popperjs/core";
|
|
11
11
|
import "../../hooks/use-z-index/index.js";
|
|
12
|
-
import
|
|
12
|
+
import x from "../../locale/use-locale.js";
|
|
13
13
|
import { VftButton as D } from "../button/index.js";
|
|
14
14
|
import { VftIcon as S } from "../icon/index.js";
|
|
15
15
|
import { transferEmits as ee, transferProps as te } from "./transfer.js";
|
|
@@ -68,7 +68,7 @@ const ne = { key: 0 }, ie = { key: 0 }, fe = $({
|
|
|
68
68
|
leftPanel: c,
|
|
69
69
|
/** @description right panel ref */
|
|
70
70
|
rightPanel: m
|
|
71
|
-
}), (e, p) => (
|
|
71
|
+
}), (e, p) => (h(), u("div", {
|
|
72
72
|
class: i(t(o).b())
|
|
73
73
|
}, [
|
|
74
74
|
a(N, {
|
|
@@ -104,7 +104,7 @@ const ne = { key: 0 }, ie = { key: 0 }, fe = $({
|
|
|
104
104
|
}, {
|
|
105
105
|
default: l(() => [
|
|
106
106
|
a(t(S), { icon: "icon-arrow-left" }),
|
|
107
|
-
t(E)(e.buttonTexts[0]) ?
|
|
107
|
+
t(E)(e.buttonTexts[0]) ? V("", !0) : (h(), u("span", ne, P(e.buttonTexts[0]), 1))
|
|
108
108
|
]),
|
|
109
109
|
_: 1
|
|
110
110
|
}, 8, ["class", "disabled", "onClick"]),
|
|
@@ -115,7 +115,7 @@ const ne = { key: 0 }, ie = { key: 0 }, fe = $({
|
|
|
115
115
|
onClick: t(Q)
|
|
116
116
|
}, {
|
|
117
117
|
default: l(() => [
|
|
118
|
-
t(E)(e.buttonTexts[1]) ?
|
|
118
|
+
t(E)(e.buttonTexts[1]) ? V("", !0) : (h(), u("span", ie, P(e.buttonTexts[1]), 1)),
|
|
119
119
|
a(t(S), { icon: "icon-arrow-right" })
|
|
120
120
|
]),
|
|
121
121
|
_: 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, openBlock as r, createElementBlock as i, withModifiers as d, normalizeClass as s, createElementVNode as v, normalizeStyle as D, createVNode as l, 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 Z, getCurrentInstance as x, ref as s, computed as _, watch as i, provide as w,
|
|
1
|
+
import { defineComponent as Z, getCurrentInstance as x, ref as s, computed as _, watch as i, provide as w, openBlock as y, createElementBlock as K, normalizeClass as h, unref as n, Fragment as ee, renderList as te, createBlock as re, renderSlot as oe, createElementVNode as E, toDisplayString as ne, createCommentVNode as de, withDirectives as ae, vShow as le } from "vue";
|
|
2
2
|
import "../form/index.js";
|
|
3
3
|
import "../icon/index.js";
|
|
4
4
|
import "@vueuse/core";
|
|
@@ -9,7 +9,7 @@ import { useNamespace as ce } from "../../hooks/use-namespace/index.js";
|
|
|
9
9
|
import "../../hooks/use-model-toggle/index.js";
|
|
10
10
|
import "@popperjs/core";
|
|
11
11
|
import "../../hooks/use-z-index/index.js";
|
|
12
|
-
import
|
|
12
|
+
import se from "../../locale/use-locale.js";
|
|
13
13
|
import ie from "./model/tree-store.js";
|
|
14
14
|
import { useDragNodeHandler as ue } from "./model/useDragNode.js";
|
|
15
15
|
import { useKeydown as pe } from "./model/useKeydown.js";
|
|
@@ -219,7 +219,7 @@ const Ie = /* @__PURE__ */ Z({
|
|
|
219
219
|
]),
|
|
220
220
|
role: "tree"
|
|
221
221
|
}, [
|
|
222
|
-
(y(!0), K(
|
|
222
|
+
(y(!0), K(ee, null, te(u.value.childNodes, (d) => (y(), re(fe, {
|
|
223
223
|
key: N(d),
|
|
224
224
|
node: d,
|
|
225
225
|
props: t,
|
|
@@ -233,13 +233,13 @@ const Ie = /* @__PURE__ */ Z({
|
|
|
233
233
|
key: 0,
|
|
234
234
|
class: h(n(a).e("empty-block"))
|
|
235
235
|
}, [
|
|
236
|
-
|
|
236
|
+
oe(e.$slots, "empty", {}, () => [
|
|
237
237
|
E("span", {
|
|
238
238
|
class: h(n(a).e("empty-text"))
|
|
239
|
-
},
|
|
239
|
+
}, ne(l.emptyText ?? n(b)("vft.tree.emptyText")), 3)
|
|
240
240
|
])
|
|
241
|
-
], 2)) :
|
|
242
|
-
|
|
241
|
+
], 2)) : de("", !0),
|
|
242
|
+
ae(E("div", {
|
|
243
243
|
ref_key: "dropIndicator$",
|
|
244
244
|
ref: g,
|
|
245
245
|
class: h(n(a).e("drop-indicator"))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, shallowRef as I, computed as A,
|
|
1
|
+
import { defineComponent as D, shallowRef as I, computed as A, openBlock as q, createElementBlock as N, withKeys as X, withModifiers as L, normalizeClass as T, unref as g, createBlock as G, withCtx as J, renderSlot as w, createElementVNode as Q, nextTick as Y } from "vue";
|
|
2
2
|
import "../form/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import { isObject as O, entriesOf as Z } from "@vft/utils";
|
|
@@ -9,7 +9,7 @@ import { useNamespace as te } from "../../hooks/use-namespace/index.js";
|
|
|
9
9
|
import "../../hooks/use-model-toggle/index.js";
|
|
10
10
|
import "@popperjs/core";
|
|
11
11
|
import "../../hooks/use-z-index/index.js";
|
|
12
|
-
import
|
|
12
|
+
import oe from "../../locale/use-locale.js";
|
|
13
13
|
import { ajaxUpload as ae } from "./ajax.js";
|
|
14
14
|
import { genFileId as ie } from "./constants.js";
|
|
15
15
|
import ne from "./upload-dragger.vue2.js";
|
|
@@ -190,31 +190,31 @@ const ce = ["onKeydown"], fe = ["name", "multiple", "accept"], ue = D({
|
|
|
190
190
|
},
|
|
191
191
|
upload: C
|
|
192
192
|
}), (e, o) => (q(), N("div", {
|
|
193
|
-
class:
|
|
193
|
+
class: T([g(v).b(), g(v).m(r.listType), g(v).is("drag", r.drag)]),
|
|
194
194
|
tabindex: "0",
|
|
195
195
|
onClick: U,
|
|
196
|
-
onKeydown: X(
|
|
196
|
+
onKeydown: X(L(H, ["self"]), ["enter", "space"])
|
|
197
197
|
}, [
|
|
198
198
|
r.drag ? (q(), G(ne, {
|
|
199
199
|
key: 0,
|
|
200
200
|
disabled: g(k),
|
|
201
201
|
onFile: o[0] || (o[0] = (a) => B(a.file))
|
|
202
202
|
}, {
|
|
203
|
-
default:
|
|
203
|
+
default: J(() => [
|
|
204
204
|
w(e.$slots, "default")
|
|
205
205
|
]),
|
|
206
206
|
_: 3
|
|
207
207
|
}, 8, ["disabled"])) : w(e.$slots, "default", { key: 1 }),
|
|
208
|
-
|
|
208
|
+
Q("input", {
|
|
209
209
|
ref_key: "inputRef",
|
|
210
210
|
ref: b,
|
|
211
|
-
class:
|
|
211
|
+
class: T(g(v).e("input")),
|
|
212
212
|
name: r.name,
|
|
213
213
|
multiple: r.multiple,
|
|
214
214
|
accept: r.accept,
|
|
215
215
|
type: "file",
|
|
216
216
|
onChange: j,
|
|
217
|
-
onClick: o[1] || (o[1] =
|
|
217
|
+
onClick: o[1] || (o[1] = L(() => {
|
|
218
218
|
}, ["stop"]))
|
|
219
219
|
}, null, 42, fe)
|
|
220
220
|
], 42, ce));
|
|
@@ -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, openBlock as N, createElementBlock 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) => (N(), B("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 N,
|
|
1
|
+
import { defineComponent as C, ref as N, openBlock as n, createBlock as p, TransitionGroup as z, unref as e, normalizeClass as t, withCtx as I, createElementBlock as m, Fragment as K, renderList as L, withKeys as P, renderSlot as h, createCommentVNode as a, createElementVNode as v, withModifiers as S, createVNode as f, toDisplayString as T, normalizeStyle as D, nextTick as E } from "vue";
|
|
2
2
|
import "../form/index.js";
|
|
3
3
|
import { VftIcon as u } from "../icon/index.js";
|
|
4
4
|
import { VftProgress as U } from "../progress/index.js";
|
|
@@ -11,7 +11,7 @@ import { useNamespace as g } 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
|
|
14
|
+
import M from "../../locale/use-locale.js";
|
|
15
15
|
import { useFormDisabled as R } from "../form/hooks/use-form-common-props.js";
|
|
16
16
|
import { useFormItem as W } from "../form/hooks/use-form-item.js";
|
|
17
17
|
const j = ["onKeydown"], q = ["src"], A = ["onClick"], H = ["onClick"], J = ["onClick"], O = C({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as I, useSlots as j, computed as h, shallowRef as O, onBeforeUnmount as q, provide as D, toRef as H,
|
|
1
|
+
import { defineComponent as I, useSlots as j, computed as h, shallowRef as O, onBeforeUnmount as q, provide as D, toRef as H, openBlock as g, createElementBlock as K, normalizeClass as W, unref as o, createBlock as w, createSlots as $, withCtx as u, createVNode as A, mergeProps as B, renderSlot as n, createCommentVNode as d } from "vue";
|
|
2
2
|
import "../form/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import { Message as S } from "../message/index.js";
|
|
4
|
+
import G from "../../locale/use-locale.js";
|
|
5
5
|
import { ajaxUpload as J } from "./ajax.js";
|
|
6
6
|
import { uploadContextKey as Q } from "./constants.js";
|
|
7
7
|
import L from "./upload-content.vue2.js";
|
|
@@ -90,8 +90,8 @@ const Z = I({
|
|
|
90
90
|
if (t.onSizeInvalid)
|
|
91
91
|
t.onSizeInvalid(e, a, l, s, C);
|
|
92
92
|
else {
|
|
93
|
-
const
|
|
94
|
-
console.warn(
|
|
93
|
+
const M = p("vft.upload.defaultSizeCheckMessage", { width: a, height: l, expectedWidth: s, expectedHeight: C });
|
|
94
|
+
console.warn(M), S.warning(M);
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
onTypeInvalid: (e, a) => {
|
|
@@ -126,15 +126,15 @@ const Z = I({
|
|
|
126
126
|
files: o(f),
|
|
127
127
|
"handle-preview": i.onPreview,
|
|
128
128
|
onRemove: o(m)
|
|
129
|
-
},
|
|
129
|
+
}, $({
|
|
130
130
|
append: u(() => [
|
|
131
|
-
A(L,
|
|
131
|
+
A(L, B({
|
|
132
132
|
ref_key: "uploadRef",
|
|
133
133
|
ref: c
|
|
134
134
|
}, E.value), {
|
|
135
135
|
default: u(() => [
|
|
136
|
-
o(r).trigger ?
|
|
137
|
-
!o(r).trigger && o(r).default ?
|
|
136
|
+
o(r).trigger ? n(e.$slots, "trigger", { key: 0 }) : d("", !0),
|
|
137
|
+
!o(r).trigger && o(r).default ? n(e.$slots, "default", { key: 1 }) : d("", !0)
|
|
138
138
|
]),
|
|
139
139
|
_: 3
|
|
140
140
|
}, 16)
|
|
@@ -144,27 +144,27 @@ const Z = I({
|
|
|
144
144
|
e.$slots.file ? {
|
|
145
145
|
name: "default",
|
|
146
146
|
fn: u(({ file: l, index: s }) => [
|
|
147
|
-
|
|
147
|
+
n(e.$slots, "file", {
|
|
148
148
|
file: l,
|
|
149
149
|
index: s
|
|
150
150
|
})
|
|
151
151
|
]),
|
|
152
152
|
key: "0"
|
|
153
153
|
} : void 0
|
|
154
|
-
]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) :
|
|
155
|
-
!v.value || v.value && !i.showFileList ? (g(), w(L,
|
|
154
|
+
]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) : d("", !0),
|
|
155
|
+
!v.value || v.value && !i.showFileList ? (g(), w(L, B({
|
|
156
156
|
key: 1,
|
|
157
157
|
ref_key: "uploadRef",
|
|
158
158
|
ref: c
|
|
159
159
|
}, E.value), {
|
|
160
160
|
default: u(() => [
|
|
161
|
-
o(r).trigger ?
|
|
162
|
-
!o(r).trigger && o(r).default ?
|
|
161
|
+
o(r).trigger ? n(e.$slots, "trigger", { key: 0 }) : d("", !0),
|
|
162
|
+
!o(r).trigger && o(r).default ? n(e.$slots, "default", { key: 1 }) : d("", !0)
|
|
163
163
|
]),
|
|
164
164
|
_: 3
|
|
165
|
-
}, 16)) :
|
|
166
|
-
e.$slots.trigger ?
|
|
167
|
-
|
|
165
|
+
}, 16)) : d("", !0),
|
|
166
|
+
e.$slots.trigger ? n(e.$slots, "default", { key: 2 }) : d("", !0),
|
|
167
|
+
n(e.$slots, "tip"),
|
|
168
168
|
!v.value && i.showFileList ? (g(), w(F, {
|
|
169
169
|
key: 3,
|
|
170
170
|
disabled: o(y),
|
|
@@ -172,18 +172,18 @@ const Z = I({
|
|
|
172
172
|
files: o(f),
|
|
173
173
|
"handle-preview": i.onPreview,
|
|
174
174
|
onRemove: o(m)
|
|
175
|
-
},
|
|
175
|
+
}, $({ _: 2 }, [
|
|
176
176
|
e.$slots.file ? {
|
|
177
177
|
name: "default",
|
|
178
178
|
fn: u(({ file: l, index: s }) => [
|
|
179
|
-
|
|
179
|
+
n(e.$slots, "file", {
|
|
180
180
|
file: l,
|
|
181
181
|
index: s
|
|
182
182
|
})
|
|
183
183
|
]),
|
|
184
184
|
key: "0"
|
|
185
185
|
} : void 0
|
|
186
|
-
]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) :
|
|
186
|
+
]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) : d("", !0)
|
|
187
187
|
], 2));
|
|
188
188
|
}
|
|
189
189
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, computed as s,
|
|
1
|
+
import { defineComponent as d, computed as s, openBlock as f, createElementBlock 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) => (f(), u("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, openBlock as Q, createElementBlock 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) => (Q(), Z("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, getCurrentInstance as i, inject 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 = () => i() ? c(m, r) : r, h = (t) => {
|
|
13
13
|
const e = a();
|
|
14
14
|
!s && e === r && d(
|
|
15
15
|
"IdInjection",
|
package/es/index.js
CHANGED
|
@@ -102,6 +102,7 @@ export { VftMdVuePlayground } from "./components/md-vue-playground/index.js";
|
|
|
102
102
|
export { VftInfiniteScroll } from "./components/infinite-scroll/index.js";
|
|
103
103
|
export { VftLoading } from "./components/loading/index.js";
|
|
104
104
|
export { VftMessage, Message } from "./components/message/index.js";
|
|
105
|
+
export { MessageBox } from "./components/message-box/index.js";
|
|
105
106
|
export { VftProgressI } from "./components/progress-i/index.js";
|
|
106
107
|
export { VftSuperForm } from "./components/super-form/index.js";
|
|
107
108
|
export { EVENT_CODE } from "./constants/aria.js";
|
|
@@ -149,68 +150,68 @@ export { getDynamicProps, useForm } from "./components/super-form/use/use-form.j
|
|
|
149
150
|
export { default as UnknownComponent } from "./locale/lang/en.js";
|
|
150
151
|
export { default as UnknownComponent } from "./locale/lang/zh-cn.js";
|
|
151
152
|
export { default as UnknownComponent } from "./locale/lang/zh-tw.js";
|
|
152
|
-
export {
|
|
153
|
+
export { default as UnknownComponent } from "./locale/use-locale.js";
|
|
153
154
|
export { CompResolver } from "./comp-resolver.js";
|
|
154
155
|
export { makeInstaller } from "./make-installer.js";
|
|
156
|
+
export { default as CommonPicker } from "./components/time-picker/common/picker.vue2.js";
|
|
157
|
+
export { default as TimePickPanel } from "./components/time-picker/time-picker-com/panel-time-pick.vue2.js";
|
|
155
158
|
export { default as VftPopperArrow } from "./components/popper/arrow.vue2.js";
|
|
156
159
|
export { default as VftPopperContent } from "./components/popper/content.vue2.js";
|
|
157
160
|
export { default as VftPopperTrigger } from "./components/popper/trigger.vue2.js";
|
|
158
|
-
export {
|
|
159
|
-
export {
|
|
160
|
-
export { buttonGroupContextKey } from "./components/button/constants.js";
|
|
161
|
-
export { cascaderEmits, cascaderProps } from "./components/cascader/cascader.js";
|
|
161
|
+
export { BAR_MAP, GAP, renderThumbStyle } from "./components/scrollbar/util.js";
|
|
162
|
+
export { CAROUSEL_ITEM_NAME, carouselContextKey } from "./components/carousel/constants.js";
|
|
162
163
|
export { CASCADER_PANEL_INJECTION_KEY } from "./components/cascader-panel/types.js";
|
|
163
164
|
export { CommonProps, DefaultProps, cascaderPanelEmits, cascaderPanelProps, useCascaderConfig } from "./components/cascader-panel/config.js";
|
|
164
|
-
export { checkboxGroupContextKey } from "./components/checkbox/constants.js";
|
|
165
|
-
export { configProviderContextKey, localeContextKey, messageConfig } from "./components/config-provider/constants.js";
|
|
166
|
-
export { provideGlobalConfig, useGlobalComponentSettings, useGlobalConfig } from "./components/config-provider/hooks/use-global-config.js";
|
|
167
|
-
export { ROOT_PICKER_INJECTION_KEY, ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY } from "./components/date-picker/constants.js";
|
|
168
|
-
export { datePickerProps } from "./components/date-picker/props/date-picker.js";
|
|
169
165
|
export { DEFAULT_DIALOG_TRANSITION, dialogInjectionKey } from "./components/dialog/constants.js";
|
|
170
|
-
export {
|
|
166
|
+
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";
|
|
171
167
|
export { DROPDOWN_INJECTION_KEY } from "./components/dropdown/tokens.js";
|
|
172
168
|
export { EmptyEnum } from "./components/empty/constants.js";
|
|
173
|
-
export {
|
|
174
|
-
export { useDisabled, useFormDisabled, useFormSize, useSize } from "./components/form/hooks/use-form-common-props.js";
|
|
175
|
-
export { useFormItem, useFormItemInputId } from "./components/form/hooks/use-form-item.js";
|
|
169
|
+
export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from "./components/transfer/transfer.js";
|
|
176
170
|
export { MenuTypeEnum } from "./components/horizontal-menu/constants.js";
|
|
171
|
+
export { ROOT_PICKER_INJECTION_KEY, ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY } from "./components/date-picker/constants.js";
|
|
172
|
+
export { TOOLTIP_INJECTION_KEY } from "./components/tooltip/constants.js";
|
|
173
|
+
export { TabsRootContextKey } from "./components/tabs/types.js";
|
|
174
|
+
export { vLoading, createLoadingDirective } from "./components/loading/directive.js";
|
|
175
|
+
export { Loading } from "./components/loading/service.js";
|
|
176
|
+
export { addRequire, removeRequire, selectMapping } from "./components/table/utils.js";
|
|
177
|
+
export { breadcrumbKey } from "./components/breadcrumb/constants.js";
|
|
178
|
+
export { buildTimeList, dateEquals, dayOrDaysToDate, extractDateFormat, extractTimeFormat, formatter, makeList, parseDate, rangeArr, valueEquals } from "./components/time-picker/utils.js";
|
|
179
|
+
export { buttonGroupContextKey } from "./components/button/constants.js";
|
|
180
|
+
export { cascaderEmits, cascaderProps } from "./components/cascader/cascader.js";
|
|
181
|
+
export { checkboxGroupContextKey } from "./components/checkbox/constants.js";
|
|
182
|
+
export { collapseContextKey } from "./components/collapse/constants.js";
|
|
183
|
+
export { collapseEmits, collapseProps, emitChangeFn } from "./components/collapse/collapse.js";
|
|
184
|
+
export { collapseItemProps } from "./components/collapse/collapse-item.js";
|
|
185
|
+
export { configProviderContextKey, localeContextKey, messageConfig } from "./components/config-provider/constants.js";
|
|
186
|
+
export { countdownEmits, countdownProps } from "./components/countdown/countdown.js";
|
|
187
|
+
export { datePickerProps } from "./components/date-picker/props/date-picker.js";
|
|
188
|
+
export { defaultProps, segmentedEmits, segmentedProps } from "./components/segmented/segmented.js";
|
|
189
|
+
export { dragEventsKey, useDragNodeHandler } from "./components/tree/model/useDragNode.js";
|
|
190
|
+
export { formContextKey, formItemContextKey } from "./components/form/constants.js";
|
|
191
|
+
export { genFileId, uploadContextKey } from "./components/upload/constants.js";
|
|
192
|
+
export { getChildState } from "./components/tree/model/node.js";
|
|
177
193
|
export { initAffixTabs, useTabsDrag } from "./components/multiple-tabs/use/use-multiple-tabs.js";
|
|
178
|
-
export {
|
|
194
|
+
export { inputTagEmits, inputTagProps } from "./components/input-tag/input-tag.js";
|
|
195
|
+
export { isDatePicker, isInput, isRangePicker } from "./components/super-form/component-map.js";
|
|
196
|
+
export { messageDefaults, messageTypes } from "./components/message/types.js";
|
|
179
197
|
export { notificationEmits, notificationProps, notificationTypes } from "./components/notification/notification.js";
|
|
180
|
-
export {
|
|
198
|
+
export { provideGlobalConfig, useGlobalComponentSettings, useGlobalConfig } from "./components/config-provider/hooks/use-global-config.js";
|
|
181
199
|
export { radioGroupKey } from "./components/radio/constants.js";
|
|
182
200
|
export { rowContextKey } from "./components/row/constants.js";
|
|
183
201
|
export { scrollbarContextKey } from "./components/scrollbar/constants.js";
|
|
184
|
-
export { BAR_MAP, GAP, renderThumbStyle } from "./components/scrollbar/util.js";
|
|
185
202
|
export { selectV2InjectionKey } from "./components/select/token.js";
|
|
186
203
|
export { sliderContextKey } from "./components/slider/constants.js";
|
|
187
204
|
export { sliderEmits } from "./components/slider/slider.js";
|
|
188
205
|
export { spaceProps } from "./components/space/space.js";
|
|
189
|
-
export { useSpace } from "./components/space/use-space.js";
|
|
190
|
-
export { addRequire, removeRequire, selectMapping } from "./components/table/utils.js";
|
|
191
|
-
export { TabsRootContextKey } from "./components/tabs/types.js";
|
|
192
206
|
export { timePickerDefaultProps, timePickerRangeTriggerProps, timePickerRngeTriggerProps } from "./components/time-picker/common/props.js";
|
|
193
|
-
export {
|
|
194
|
-
export {
|
|
195
|
-
export {
|
|
196
|
-
export { getChildState } from "./components/tree/model/node.js";
|
|
197
|
-
export { dragEventsKey, useDragNodeHandler } from "./components/tree/model/useDragNode.js";
|
|
198
|
-
export { breadcrumbKey } from "./components/breadcrumb/constants.js";
|
|
199
|
-
export { CAROUSEL_ITEM_NAME, carouselContextKey } from "./components/carousel/constants.js";
|
|
200
|
-
export { collapseEmits, collapseProps, emitChangeFn } from "./components/collapse/collapse.js";
|
|
201
|
-
export { collapseItemProps } from "./components/collapse/collapse-item.js";
|
|
202
|
-
export { collapseContextKey } from "./components/collapse/constants.js";
|
|
203
|
-
export { countdownEmits, countdownProps } from "./components/countdown/countdown.js";
|
|
204
|
-
export { inputTagEmits, inputTagProps } from "./components/input-tag/input-tag.js";
|
|
207
|
+
export { useDialog } from "./components/dialog/use-dialog.js";
|
|
208
|
+
export { useDisabled, useFormDisabled, useFormSize, useSize } from "./components/form/hooks/use-form-common-props.js";
|
|
209
|
+
export { useFormItem, useFormItemInputId } from "./components/form/hooks/use-form-item.js";
|
|
205
210
|
export { useModal, useModalInner } from "./components/modal/use/use-modal.js";
|
|
206
|
-
export {
|
|
207
|
-
export {
|
|
208
|
-
export {
|
|
211
|
+
export { usePagination, vftPaginationKey } from "./components/pagination/usePagination.js";
|
|
212
|
+
export { useSpace } from "./components/space/use-space.js";
|
|
213
|
+
export { useTabDropdown } from "./components/multiple-tabs/use/use-tab-dropdown.js";
|
|
209
214
|
export { watermarkProps } from "./components/watermark/watermark.js";
|
|
210
|
-
export { vLoading, createLoadingDirective } from "./components/loading/directive.js";
|
|
211
|
-
export { Loading } from "./components/loading/service.js";
|
|
212
|
-
export { messageDefaults, messageTypes } from "./components/message/types.js";
|
|
213
|
-
export { isDatePicker, isInput, isRangePicker } from "./components/super-form/component-map.js";
|
|
214
215
|
|
|
215
216
|
|
|
216
217
|
const install = installer.install;
|
package/es/locale/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
1
|
+
import { default as o } from "./lang/en.js";
|
|
2
|
+
import { default as r } from "./lang/zh-cn.js";
|
|
3
3
|
import { default as l } from "./lang/zh-tw.js";
|
|
4
|
-
import {
|
|
4
|
+
import { default as u } from "./use-locale.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
o as en,
|
|
7
|
+
u as useLocale,
|
|
8
|
+
r as zhCn,
|
|
9
9
|
l as zhTw
|
|
10
10
|
};
|
package/es/package.json.d.ts
CHANGED
package/es/package.json.js
CHANGED
package/es/plugin.js
CHANGED
|
@@ -1,13 +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 {
|
|
3
|
+
import { Message as f } from "./components/message/index.js";
|
|
4
|
+
import { MessageBox as s } from "./components/message-box/index.js";
|
|
4
5
|
import { VftNotification as i } from "./components/notification/index.js";
|
|
5
|
-
const
|
|
6
|
+
const n = [
|
|
6
7
|
o,
|
|
7
8
|
f,
|
|
9
|
+
s,
|
|
8
10
|
t,
|
|
9
11
|
i
|
|
10
12
|
];
|
|
11
13
|
export {
|
|
12
|
-
|
|
14
|
+
n as default
|
|
13
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 { componentSizeMap as i, componentSizes 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) => ["", ...o].includes(t), m = (t) => i[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 f, cssVarValue as c, isObject as i, setStyle as r, getRgbCount as u,
|
|
1
|
+
import { generateCssVars as f, cssVarValue as c, isObject as i, setStyle as r, getRgbCount as u, hexToRGB as m, mixColor as n } from "@vft/utils";
|
|
2
2
|
import { isClient as l } from "@vueuse/core";
|
|
3
3
|
import { ref as g } from "vue";
|
|
4
4
|
const V = (e, t = document.documentElement, s = !0) => {
|
package/es/utils/vue/vnode.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isArray as E, hasOwn as m, camelize as N } from "@vft/utils";
|
|
2
|
-
import { isVNode as o, Fragment as S, Comment as A, Text as s,
|
|
2
|
+
import { isVNode as o, Fragment as S, Comment as A, Text as s, openBlock as L, createBlock as _, createCommentVNode 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) : C("v-if", !0);
|
|
29
29
|
}
|
|
30
30
|
function v(...e) {
|
|
31
|
-
return
|
|
31
|
+
return L(), _(...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("../config-provider/hooks/use-global-config.cjs"),T=require("../form/hooks/use-form-item.cjs"),r=require("../form/hooks/use-form-common-props.cjs"),p=(e,i)=>{const u=o.inject(v.buttonGroupContextKey,void 0),l=F.useGlobalConfig("button"),{form:a}=T.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;
|