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,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as Oe, useAttrs as Te, useSlots as Le, computed as l,
|
|
1
|
+
import { defineComponent as Oe, useAttrs as Te, useSlots as Le, computed as l, getCurrentInstance as je, shallowRef as H, ref as E, watch as U, nextTick as V, onMounted as We, withDirectives as He, openBlock as i, createElementBlock as c, mergeProps as h, Fragment as q, normalizeClass as r, unref as a, renderSlot as $, createCommentVNode as u, createElementVNode as w, createBlock as B, withKeys as Ue, withModifiers as me, toDisplayString as D, normalizeStyle as qe, vShow as Ge } from "vue";
|
|
2
2
|
import "../form/index.js";
|
|
3
3
|
import { VftIcon as A } from "../icon/index.js";
|
|
4
4
|
import { useResizeObserver as Je, isClient as Qe } from "@vueuse/core";
|
|
5
|
-
import {
|
|
5
|
+
import { singleAttrToObj as G, noop as Xe, isString as F, isObject as ve } from "@vft/utils";
|
|
6
6
|
import { debugWarn as J } from "../../utils/error.js";
|
|
7
7
|
import "../config-provider/hooks/use-global-config.js";
|
|
8
8
|
import { isNil as Ye } from "lodash-es";
|
|
@@ -13,8 +13,8 @@ import "../../hooks/use-z-index/index.js";
|
|
|
13
13
|
import { UPDATE_MODEL_EVENT as Q } from "@vft/constants";
|
|
14
14
|
import { useAttrs as Ze, useCursor as _e } from "@vft/use";
|
|
15
15
|
import { calcTextareaHeight as he } from "./utils.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { useFormItem as et, useFormItemInputId as tt } from "../form/hooks/use-form-item.js";
|
|
17
|
+
import { useFormSize as at, useFormDisabled as nt } from "../form/hooks/use-form-common-props.js";
|
|
18
18
|
const ot = ["role"], lt = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"], st = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"], It = /* @__PURE__ */ Oe({
|
|
19
19
|
__name: "input",
|
|
20
20
|
props: {
|
|
@@ -86,9 +86,9 @@ const ot = ["role"], lt = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
86
86
|
n.is("focus", v.value)
|
|
87
87
|
]), d = Ze({
|
|
88
88
|
excludeKeys: l(() => Object.keys(X.value))
|
|
89
|
-
}), { form: Ce, formItem: M } =
|
|
89
|
+
}), { form: Ce, formItem: M } = et(), { inputId: Y } = tt(we.props, {
|
|
90
90
|
formItemContext: M
|
|
91
|
-
}), ke =
|
|
91
|
+
}), ke = at(), x = nt(), n = ye("input"), Z = ye("textarea"), K = H(), p = H(), v = E(!1), N = E(!1), C = E(!1), k = E(!1), _ = E(), O = H(e.inputStyle), I = l(() => K.value || p.value), T = l(() => G(e.prefixIcon, "icon", { size: 16 })), ee = l(() => G(e.suffixIcon, "icon", { size: 16 })), Ie = l(() => G(e.clearIcon, "icon", {
|
|
92
92
|
icon: "icon-circle-close",
|
|
93
93
|
size: 16
|
|
94
94
|
})), te = l(() => Ce?.statusIcon ?? !1), z = l(() => M?.validateState || ""), ae = l(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as L, ref as ee, reactive as te, computed as d, watch as ne, onMounted as ie, onUpdated as ue,
|
|
1
|
+
import { defineComponent as L, ref as ee, reactive as te, computed as d, watch as ne, onMounted as ie, onUpdated as ue, openBlock as C, createElementBlock as S, withModifiers as V, normalizeClass as P, unref as u, withDirectives as R, withKeys as N, createVNode as B, createCommentVNode as W } from "vue";
|
|
2
2
|
import { isNumber as s, isUndefined as h, isString as le } from "@vft/utils";
|
|
3
3
|
import "../form/index.js";
|
|
4
4
|
import { VftIcon as Y } from "../icon/index.js";
|
|
@@ -142,7 +142,7 @@ const me = L({
|
|
|
142
142
|
focus: X,
|
|
143
143
|
/** @description remove focus the input component */
|
|
144
144
|
blur: Z
|
|
145
|
-
}), (t, n) => (
|
|
145
|
+
}), (t, n) => (C(), S("div", {
|
|
146
146
|
class: P([
|
|
147
147
|
u(o).b(),
|
|
148
148
|
u(o).m(u(k)),
|
|
@@ -153,7 +153,7 @@ const me = L({
|
|
|
153
153
|
onDragstart: n[1] || (n[1] = V(() => {
|
|
154
154
|
}, ["prevent"]))
|
|
155
155
|
}, [
|
|
156
|
-
e.controls ? R((
|
|
156
|
+
e.controls ? R((C(), S("span", {
|
|
157
157
|
key: 0,
|
|
158
158
|
role: "button",
|
|
159
159
|
class: P([u(o).e("decrease"), u(o).is("disabled", D.value)]),
|
|
@@ -165,7 +165,7 @@ const me = L({
|
|
|
165
165
|
], 34)), [
|
|
166
166
|
[u(H), F]
|
|
167
167
|
]) : W("", !0),
|
|
168
|
-
e.controls ? R((
|
|
168
|
+
e.controls ? R((C(), S("span", {
|
|
169
169
|
key: 1,
|
|
170
170
|
role: "button",
|
|
171
171
|
class: P([u(o).e("increase"), u(o).is("disabled", M.value)]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as ge, computed as y,
|
|
1
|
+
import { defineComponent as B, useSlots as ge, computed as y, openBlock as l, createElementBlock as m, unref as e, normalizeStyle as ve, normalizeClass as a, renderSlot as I, createCommentVNode as f, createElementVNode as p, Fragment as ye, renderList as Ie, createBlock as C, withModifiers as x, withCtx as Ce, createTextVNode as he, toDisplayString as F, withDirectives as K, mergeProps as be, isRef as De, vModelText as ke, vShow as we } from "vue";
|
|
2
2
|
import "../form/index.js";
|
|
3
3
|
import { VftIcon as $ } from "../icon/index.js";
|
|
4
4
|
import { VftTag as Se } from "../tag/index.js";
|
|
@@ -108,7 +108,7 @@ const Be = ["id", "minlength", "maxlength", "disabled", "readonly", "autocomplet
|
|
|
108
108
|
onDragstart: (u) => e(se)(u, d),
|
|
109
109
|
onDragover: (u) => e(ie)(u, d),
|
|
110
110
|
onDragend: e(de),
|
|
111
|
-
onDrop: o[0] || (o[0] =
|
|
111
|
+
onDrop: o[0] || (o[0] = x(() => {
|
|
112
112
|
}, ["stop"]))
|
|
113
113
|
}, {
|
|
114
114
|
default: Ce(() => [
|
|
@@ -116,7 +116,7 @@ const Be = ["id", "minlength", "maxlength", "disabled", "readonly", "autocomplet
|
|
|
116
116
|
value: t,
|
|
117
117
|
index: d
|
|
118
118
|
}, () => [
|
|
119
|
-
he(
|
|
119
|
+
he(F(t), 1)
|
|
120
120
|
])
|
|
121
121
|
]),
|
|
122
122
|
_: 2
|
|
@@ -124,7 +124,7 @@ const Be = ["id", "minlength", "maxlength", "disabled", "readonly", "autocomplet
|
|
|
124
124
|
p("div", {
|
|
125
125
|
class: a(e(r).e("input-wrapper"))
|
|
126
126
|
}, [
|
|
127
|
-
|
|
127
|
+
K(p("input", be({
|
|
128
128
|
id: e(j),
|
|
129
129
|
ref_key: "inputRef",
|
|
130
130
|
ref: G,
|
|
@@ -160,10 +160,10 @@ const Be = ["id", "minlength", "maxlength", "disabled", "readonly", "autocomplet
|
|
|
160
160
|
ref: ne,
|
|
161
161
|
"aria-hidden": "true",
|
|
162
162
|
class: a(e(r).e("input-calculator")),
|
|
163
|
-
textContent:
|
|
163
|
+
textContent: F(e(i))
|
|
164
164
|
}, null, 10, Ne)
|
|
165
165
|
], 2),
|
|
166
|
-
|
|
166
|
+
K(p("div", {
|
|
167
167
|
ref_key: "dropIndicatorRef",
|
|
168
168
|
ref: re,
|
|
169
169
|
class: a(e(r).e("drop-indicator"))
|
|
@@ -179,7 +179,7 @@ const Be = ["id", "minlength", "maxlength", "disabled", "readonly", "autocomplet
|
|
|
179
179
|
e(fe) ? (l(), C(e($), {
|
|
180
180
|
key: 0,
|
|
181
181
|
class: a([e(r).e("icon"), e(r).e("clear")]),
|
|
182
|
-
onMousedown:
|
|
182
|
+
onMousedown: x(e(Re), ["prevent"]),
|
|
183
183
|
onClick: e(ee),
|
|
184
184
|
icon: "icon-circle-close"
|
|
185
185
|
}, null, 8, ["class", "onMousedown", "onClick"])) : f("", !0),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as s, getCurrentInstance as k, computed as b,
|
|
1
|
+
import { defineComponent as s, getCurrentInstance as k, computed as b, openBlock as i, createElementBlock as r, normalizeClass as a, unref as t, createBlock as y, normalizeProps as C, mergeProps as g, createCommentVNode as c, renderSlot as B } from "vue";
|
|
2
2
|
import { VftIcon as v } from "../icon/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import { singleAttrToObj as P } from "@vft/utils";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, ref as y, computed as _,
|
|
1
|
+
import { defineComponent as h, ref as y, computed as _, openBlock as l, createElementBlock as m, normalizeClass as r, unref as e, normalizeStyle as V, Fragment as N, renderList as z, createElementVNode as f, createVNode as B, mergeProps as d, toDisplayString as D, createBlock as p, createCommentVNode as T } from "vue";
|
|
2
2
|
import { VftIcon as g } from "../icon/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import { VNode as b, singleAttrToObj as E } from "@vft/utils";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, computed as r, getCurrentInstance as p,
|
|
1
|
+
import { defineComponent as c, computed as r, getCurrentInstance as p, openBlock as o, createElementBlock as l, normalizeStyle as d, normalizeClass as n, unref as a, createCommentVNode as i, toDisplayString as k } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -26,23 +26,23 @@ const y = ["src"], v = c({
|
|
|
26
26
|
const f = r(
|
|
27
27
|
() => t.jumpPath ? {} : e.cssVarBlock({ cursor: "inital" })
|
|
28
28
|
);
|
|
29
|
-
return (j, x) => t.logo || t.title ? (
|
|
29
|
+
return (j, x) => t.logo || t.title ? (o(), l("div", {
|
|
30
30
|
key: 0,
|
|
31
|
-
class:
|
|
31
|
+
class: n(s.value),
|
|
32
32
|
onClick: g,
|
|
33
33
|
style: d(f.value)
|
|
34
34
|
}, [
|
|
35
|
-
t.logo ? (
|
|
35
|
+
t.logo ? (o(), l("img", {
|
|
36
36
|
key: 0,
|
|
37
|
-
class:
|
|
37
|
+
class: n(a(e).e("img")),
|
|
38
38
|
src: t.logo,
|
|
39
39
|
alt: ""
|
|
40
|
-
}, null, 10, y)) :
|
|
41
|
-
t.title ? (
|
|
40
|
+
}, null, 10, y)) : i("", !0),
|
|
41
|
+
t.title ? (o(), l("div", {
|
|
42
42
|
key: 1,
|
|
43
|
-
class:
|
|
44
|
-
}, k(t.title), 3)) :
|
|
45
|
-
], 6)) :
|
|
43
|
+
class: n(a(e).e("title"))
|
|
44
|
+
}, k(t.title), 3)) : i("", !0)
|
|
45
|
+
], 6)) : i("", !0);
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as i, onMounted as m,
|
|
1
|
+
import { defineComponent as i, onMounted as m, openBlock as n, createElementBlock as t, normalizeClass as r, unref as o, createElementVNode as p } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -30,7 +30,7 @@ const l = ["id"], s = i({
|
|
|
30
30
|
"//unpkg.com/@waline/emojis@1.1.0/tw-emoji"
|
|
31
31
|
]
|
|
32
32
|
});
|
|
33
|
-
}), (w, d) => (
|
|
33
|
+
}), (w, d) => (n(), t("div", {
|
|
34
34
|
class: r(o(e).b())
|
|
35
35
|
}, [
|
|
36
36
|
p("div", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as S, getCurrentInstance as N, ref as A, computed as k, onMounted as P, nextTick as q, onDeactivated as z, onBeforeMount as B,
|
|
1
|
+
import { defineComponent as S, getCurrentInstance as N, ref as A, computed as k, onMounted as P, nextTick as q, onDeactivated as z, onBeforeMount as B, openBlock as s, createElementBlock as u, normalizeClass as c, unref as e, createBlock as f, createCommentVNode as p, createElementVNode as l, toDisplayString as b, createVNode as h, Fragment as I, renderList as O, withCtx as F, createTextVNode as H, renderSlot as J } from "vue";
|
|
2
2
|
import { VftIcon as T } from "../icon/index.js";
|
|
3
3
|
import { VftIconText as j } from "../icon-text/index.js";
|
|
4
4
|
import { VftMdComment as U } from "../md-comment/index.js";
|
|
@@ -14,7 +14,7 @@ import { useNamespace as te } from "../../hooks/use-namespace/index.js";
|
|
|
14
14
|
import "../../hooks/use-model-toggle/index.js";
|
|
15
15
|
import "@popperjs/core";
|
|
16
16
|
import "../../hooks/use-z-index/index.js";
|
|
17
|
-
import
|
|
17
|
+
import oe from "../../locale/use-locale.js";
|
|
18
18
|
import { useRouterHelper as ne } from "@vft/router";
|
|
19
19
|
import { useEventListener as ie } from "@vft/use";
|
|
20
20
|
import { usePhotoSwipe as le } from "@vft/use/photoswipe";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jumpElement as h } from "@vft/utils";
|
|
2
|
-
import
|
|
2
|
+
import v from "../../locale/use-locale.js";
|
|
3
3
|
import { defineComponent as g, ref as C, getCurrentInstance as T, computed as $, onMounted as I, watch as b, h as n } from "vue";
|
|
4
4
|
import { isActiveLink as k } from "./utils.js";
|
|
5
5
|
const y = ({ title: e, level: o, slug: t }) => n(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./menu-collapse-transition.vue2.js";
|
|
2
|
-
import {
|
|
2
|
+
import { openBlock as r, createBlock as t, Transition as n, mergeProps as s, withCtx as i, renderSlot as a } from "vue";
|
|
3
3
|
import p from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
function f(e, l, c, m, d, u) {
|
|
5
|
-
return
|
|
5
|
+
return r(), t(n, s({ mode: "out-in" }, e.listeners), {
|
|
6
6
|
default: i(() => [
|
|
7
7
|
a(e.$slots, "default")
|
|
8
8
|
]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n,
|
|
1
|
+
import { defineComponent as n, openBlock as t, createElementBlock as o, normalizeClass as i, unref as m, Fragment as a, createTextVNode as p, toDisplayString as u, renderSlot as s, createCommentVNode as c, createElementVNode as d } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -17,18 +17,18 @@ const k = n({
|
|
|
17
17
|
},
|
|
18
18
|
setup(r) {
|
|
19
19
|
const l = f("menu-item-group");
|
|
20
|
-
return (e, g) => (
|
|
20
|
+
return (e, g) => (t(), o("li", {
|
|
21
21
|
class: i(m(l).b())
|
|
22
22
|
}, [
|
|
23
|
-
r.title || e.$slots.title ? (
|
|
23
|
+
r.title || e.$slots.title ? (t(), o("div", {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: i(m(l).e("title"))
|
|
26
26
|
}, [
|
|
27
|
-
e.$slots.title ? s(e.$slots, "title", { key: 1 }) : (
|
|
28
|
-
|
|
27
|
+
e.$slots.title ? s(e.$slots, "title", { key: 1 }) : (t(), o(a, { key: 0 }, [
|
|
28
|
+
p(u(r.title), 1)
|
|
29
29
|
], 64))
|
|
30
|
-
], 2)) :
|
|
31
|
-
|
|
30
|
+
], 2)) : c("", !0),
|
|
31
|
+
d("ul", null, [
|
|
32
32
|
s(e.$slots, "default")
|
|
33
33
|
])
|
|
34
34
|
], 2));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, getCurrentInstance as F, useAttrs as O, inject as N, computed as a, reactive as q, onMounted as G, onBeforeUnmount as H,
|
|
1
|
+
import { defineComponent as P, getCurrentInstance as F, useAttrs as O, inject as N, computed as a, reactive as q, onMounted as G, onBeforeUnmount as H, openBlock as n, createElementBlock as k, Fragment as b, createBlock as s, unref as t, createCommentVNode as m, createElementVNode as M, normalizeClass as y, withCtx as $, normalizeProps as I, mergeProps as V, renderSlot as A, createVNode as J } from "vue";
|
|
2
2
|
import { singleAttrToObj as K, renderTNode as L, VNode as Q } from "@vft/utils";
|
|
3
3
|
import { VftIcon as h } from "../icon/index.js";
|
|
4
4
|
import { VftDivider as j } from "../divider/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as V, ref as m, computed as i, onMounted as H, watch as $,
|
|
1
|
+
import { defineComponent as V, ref as m, computed as i, onMounted as H, watch as $, openBlock as c, createBlock as w, Transition as D, unref as o, withCtx as F, withDirectives as P, createElementVNode as j, normalizeStyle as A, normalizeClass as a, createElementBlock as d, createVNode as U, normalizeProps as Z, guardReactiveProps as G, createCommentVNode as B, renderSlot as q, toDisplayString as J, mergeProps as K, withModifiers as Q, vShow as W } from "vue";
|
|
2
2
|
import { VftIcon as k } from "../icon/index.js";
|
|
3
3
|
import { EVENT_CODE as X } from "@vft/constants";
|
|
4
4
|
import { useEventListener as Y } from "@vft/use";
|
|
@@ -107,9 +107,9 @@ const se = ["id"], ie = ["innerHTML"], ve = /* @__PURE__ */ V({
|
|
|
107
107
|
key: 0,
|
|
108
108
|
class: a([o(t).e("icon"), O.value])
|
|
109
109
|
}, [
|
|
110
|
-
|
|
110
|
+
U(o(k), Z(G(v.value)), null, 16)
|
|
111
111
|
], 2)) : B("", !0),
|
|
112
|
-
|
|
112
|
+
q(s.$slots, "default", {}, () => [
|
|
113
113
|
e.dangerouslyUseHTMLString ? (c(), d("p", {
|
|
114
114
|
key: 1,
|
|
115
115
|
class: a(o(t).e("content")),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "@vueuse/core";
|
|
2
|
+
import "@vft/utils";
|
|
3
|
+
import "../config-provider/hooks/use-global-config.js";
|
|
4
|
+
import "vue";
|
|
5
|
+
import { withInstallFunction as o } from "../../utils/vue/install.js";
|
|
6
|
+
import "lodash-es";
|
|
7
|
+
import "../form/index.js";
|
|
8
|
+
import t from "./method.js";
|
|
9
|
+
const f = o(t, "$msgbox");
|
|
10
|
+
export {
|
|
11
|
+
f as MessageBox,
|
|
12
|
+
f as VftMessageBox,
|
|
13
|
+
f as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { Action, MessageBoxState, MessageBoxType } from './types';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** 按钮尺寸 */
|
|
4
|
+
buttonSize?: 'large' | 'default' | 'small';
|
|
5
|
+
/** 是否显示遮罩 */
|
|
6
|
+
modal?: boolean;
|
|
7
|
+
/** 是否锁定 body 滚动 */
|
|
8
|
+
lockScroll?: boolean;
|
|
9
|
+
/** 是否显示关闭按钮 */
|
|
10
|
+
showClose?: boolean;
|
|
11
|
+
/** 点击遮罩是否关闭 */
|
|
12
|
+
closeOnClickModal?: boolean;
|
|
13
|
+
/** 按 ESC 是否关闭 */
|
|
14
|
+
closeOnPressEscape?: boolean;
|
|
15
|
+
/** hash 改变时是否关闭 */
|
|
16
|
+
closeOnHashChange?: boolean;
|
|
17
|
+
/** 内容是否居中 */
|
|
18
|
+
center?: boolean;
|
|
19
|
+
/** 是否可拖拽 */
|
|
20
|
+
draggable?: boolean;
|
|
21
|
+
/** 拖拽时是否允许溢出视口 */
|
|
22
|
+
overflow?: boolean;
|
|
23
|
+
/** 按钮是否使用圆角 */
|
|
24
|
+
roundButton?: boolean;
|
|
25
|
+
/** 自定义挂载节点 */
|
|
26
|
+
container?: string;
|
|
27
|
+
/** boxType,由 alert / confirm / prompt 内部传入 */
|
|
28
|
+
boxType?: MessageBoxType;
|
|
29
|
+
}
|
|
30
|
+
declare function doClose(): void;
|
|
31
|
+
declare function handleAction(action: Action): void;
|
|
32
|
+
declare function handleClose(): void;
|
|
33
|
+
declare function __VLS_template(): {
|
|
34
|
+
default?(_: {}): any;
|
|
35
|
+
};
|
|
36
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {
|
|
37
|
+
visible: import("vue").Ref<boolean, boolean>;
|
|
38
|
+
state: {
|
|
39
|
+
autofocus: boolean;
|
|
40
|
+
title: string | undefined;
|
|
41
|
+
message: string | import("vue").VNode;
|
|
42
|
+
type: import("./types").MessageBoxMessageType;
|
|
43
|
+
icon: string;
|
|
44
|
+
closeIcon: string;
|
|
45
|
+
customClass: string;
|
|
46
|
+
customStyle: Record<string, string | number>;
|
|
47
|
+
showInput: boolean;
|
|
48
|
+
inputValue: string;
|
|
49
|
+
inputPlaceholder: string;
|
|
50
|
+
inputType: string;
|
|
51
|
+
inputPattern: RegExp | null;
|
|
52
|
+
inputValidator: import("./types").MessageBoxInputValidator;
|
|
53
|
+
inputErrorMessage: string;
|
|
54
|
+
showConfirmButton: boolean;
|
|
55
|
+
showCancelButton: boolean;
|
|
56
|
+
action: Action;
|
|
57
|
+
dangerouslyUseHTMLString: boolean;
|
|
58
|
+
confirmButtonText: string;
|
|
59
|
+
cancelButtonText: string;
|
|
60
|
+
confirmButtonType: import("./types").MessageBoxButtonType;
|
|
61
|
+
cancelButtonType: import("./types").MessageBoxButtonType;
|
|
62
|
+
confirmButtonLoading: boolean;
|
|
63
|
+
cancelButtonLoading: boolean;
|
|
64
|
+
confirmButtonLoadingIcon: string;
|
|
65
|
+
cancelButtonLoadingIcon: string;
|
|
66
|
+
confirmButtonClass: string;
|
|
67
|
+
confirmButtonDisabled: boolean;
|
|
68
|
+
cancelButtonClass: string;
|
|
69
|
+
editorErrorMessage: string;
|
|
70
|
+
beforeClose: null | ((action: Action, instance: MessageBoxState, done: () => void) => void);
|
|
71
|
+
callback: null | import("./types").Callback;
|
|
72
|
+
distinguishCancelAndClose: boolean;
|
|
73
|
+
modalFade: boolean;
|
|
74
|
+
modalClass: string;
|
|
75
|
+
validateError: boolean;
|
|
76
|
+
zIndex: number;
|
|
77
|
+
};
|
|
78
|
+
doClose: typeof doClose;
|
|
79
|
+
handleClose: typeof handleClose;
|
|
80
|
+
handleAction: typeof handleAction;
|
|
81
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
82
|
+
vanish: () => void;
|
|
83
|
+
action: (action: Action) => void;
|
|
84
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
85
|
+
onAction?: ((action: Action) => any) | undefined;
|
|
86
|
+
onVanish?: (() => any) | undefined;
|
|
87
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
88
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
89
|
+
export default _default;
|
|
90
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
91
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
92
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
93
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
94
|
+
} : {
|
|
95
|
+
type: import('vue').PropType<T[K]>;
|
|
96
|
+
required: true;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
100
|
+
new (): {
|
|
101
|
+
$slots: S;
|
|
102
|
+
};
|
|
103
|
+
};
|