vft 0.0.509 → 0.0.513
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.vue.d.ts +2 -2
- package/es/components/autocomplete/autocomplete.vue2.js +1 -1
- package/es/components/autocomplete/index.d.ts +6 -6
- 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/index.d.ts +9 -9
- 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 +202 -203
- package/es/components/cascader-panel/index.vue2.js +1 -1
- package/es/components/cascader-panel/menu.vue2.js +49 -50
- 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 +18 -19
- 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 +133 -134
- 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.vue.d.ts +0 -2
- package/es/components/config-provider/config-provider.vue2.js +4 -5
- package/es/components/config-provider/constants.d.ts +0 -1
- package/es/components/config-provider/constants.js +2 -3
- package/es/components/config-provider/hooks/use-global-config.js +30 -33
- package/es/components/config-provider/index.d.ts +0 -9
- package/es/components/config-provider/index.js +5 -6
- 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 +123 -124
- package/es/components/date-picker/composables/use-month-range-header.js +14 -15
- package/es/components/date-picker/composables/use-panel-date-range.js +23 -24
- 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 +39 -40
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +40 -41
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +178 -179
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +224 -225
- 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 +36 -39
- 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 +66 -67
- package/es/components/empty/empty.vue2.js +36 -37
- 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 +17 -18
- 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 +59 -60
- package/es/components/image-viewer/image-viewer.vue2.js +44 -45
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +213 -211
- 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 +74 -75
- package/es/components/md-container/toc.js +36 -37
- 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 +100 -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/modal/index.d.ts +1 -0
- package/es/components/modal/modal-footer-action.vue2.js +24 -25
- 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 +16 -17
- package/es/components/multiple-tabs/tab-content.vue2.js +2 -2
- package/es/components/multiple-tabs/use/use-tab-dropdown.js +53 -54
- 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/index.d.ts +15 -15
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/popconfirm/popconfirm.vue2.js +39 -40
- 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 +50 -51
- package/es/components/segmented/segmented.vue2.js +7 -7
- package/es/components/select/group-item.vue.js +2 -2
- package/es/components/select/index.d.ts +4 -4
- package/es/components/select/option-item.vue.js +2 -2
- package/es/components/select/select.vue.d.ts +4 -4
- package/es/components/select/select.vue.js +1 -1
- package/es/components/select/useSelect.d.ts +4 -4
- package/es/components/select/useSelect.js +231 -232
- 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 +65 -66
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +133 -134
- 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 +58 -59
- package/es/components/transfer/transfer.vue2.js +69 -70
- package/es/components/tree/tree-node.vue.js +1 -1
- package/es/components/tree/tree.vue2.js +59 -60
- package/es/components/upload/upload-content.vue2.js +47 -48
- package/es/components/upload/upload-dragger.vue2.js +2 -2
- package/es/components/upload/upload-list.vue2.js +45 -46
- package/es/components/upload/upload.vue2.js +98 -99
- 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.d.ts +0 -1
- package/es/index.js +39 -42
- 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/autocomplete/autocomplete.vue.d.ts +2 -2
- package/lib/components/autocomplete/index.d.ts +6 -6
- package/lib/components/button/index.d.ts +9 -9
- 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 +4 -4
- 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/config-provider/config-provider.vue.d.ts +0 -2
- package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
- package/lib/components/config-provider/constants.cjs +1 -1
- package/lib/components/config-provider/constants.d.ts +0 -1
- package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
- package/lib/components/config-provider/index.cjs +1 -1
- package/lib/components/config-provider/index.d.ts +0 -9
- 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.vue2.cjs +1 -1
- 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.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/multiple-tabs.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/index.d.ts +15 -15
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/select/index.d.ts +4 -4
- package/lib/components/select/select.vue.d.ts +4 -4
- package/lib/components/select/useSelect.cjs +1 -1
- package/lib/components/select/useSelect.d.ts +4 -4
- 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/index.d.ts +0 -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 +3 -3
- package/theme-style/index.css +1 -1
- package/theme-style/src/message-box.scss +2 -2
- package/theme-style/src/table.scss +6 -0
- package/theme-style/vft-message-box.css +1 -1
- package/theme-style/vft-table.css +1 -1
- package/web-types.json +1 -1
- package/es/locale/index.d.ts +0 -26
- package/es/locale/index.js +0 -10
- package/es/locale/lang/en.d.ts +0 -183
- package/es/locale/lang/en.js +0 -241
- package/es/locale/lang/zh-cn.d.ts +0 -183
- package/es/locale/lang/zh-cn.js +0 -241
- package/es/locale/lang/zh-tw.d.ts +0 -183
- package/es/locale/lang/zh-tw.js +0 -241
- package/es/locale/use-locale.d.ts +0 -17
- package/es/locale/use-locale.js +0 -56
- package/lib/locale/index.cjs +0 -1
- package/lib/locale/index.d.ts +0 -26
- package/lib/locale/lang/en.cjs +0 -1
- package/lib/locale/lang/en.d.ts +0 -183
- package/lib/locale/lang/zh-cn.cjs +0 -1
- package/lib/locale/lang/zh-cn.d.ts +0 -183
- package/lib/locale/lang/zh-tw.cjs +0 -1
- package/lib/locale/lang/zh-tw.d.ts +0 -183
- package/lib/locale/use-locale.cjs +0 -1
- package/lib/locale/use-locale.d.ts +0 -17
- /package/es/{locale/index.d.js → components/message-box/types.js} +0 -0
- /package/lib/{locale/index.d.cjs → components/message-box/types.cjs} +0 -0
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { defineComponent as S, getCurrentInstance as
|
|
2
|
-
import { VftButtonGroup as
|
|
1
|
+
import { defineComponent as S, getCurrentInstance as X, ref as a, computed as b, watch as Z, toRef as h, onBeforeUnmount as _, provide as T, openBlock as $, createElementBlock as ee, normalizeClass as x, unref as o, createVNode as r, createSlots as te, withCtx as n, renderSlot as y, createBlock as oe, mergeProps as I, createCommentVNode as ne } from "vue";
|
|
2
|
+
import { VftButtonGroup as re, VftButton as O } from "../button/index.js";
|
|
3
3
|
import "../form/index.js";
|
|
4
|
-
import { VftIcon as
|
|
5
|
-
import
|
|
4
|
+
import { VftIcon as le } from "../icon/index.js";
|
|
5
|
+
import ie from "../roving-focus-group/roving-focus-group.vue2.js";
|
|
6
6
|
import "../roving-focus-group/roving-focus-group-impl.vue2.js";
|
|
7
7
|
import "../roving-focus-group/roving-focus-item.vue2.js";
|
|
8
8
|
import "../roving-focus-group/types.js";
|
|
9
9
|
import { EVENT_CODE as w } from "../../constants/aria.js";
|
|
10
|
-
import { VftScrollbar as
|
|
11
|
-
import { OnlyChild as
|
|
12
|
-
import { VftTooltip as
|
|
10
|
+
import { VftScrollbar as ae } from "../scrollbar/index.js";
|
|
11
|
+
import { OnlyChild as de } from "../slot/only-child.js";
|
|
12
|
+
import { VftTooltip as fe } from "../tooltip/index.js";
|
|
13
13
|
import "@vueuse/core";
|
|
14
|
-
import { isArray as
|
|
15
|
-
import { addUnit as
|
|
14
|
+
import { isArray as ue } from "@vft/utils";
|
|
15
|
+
import { addUnit as se } from "../../utils/helper.js";
|
|
16
16
|
import "lodash-es";
|
|
17
|
-
import { useId as
|
|
18
|
-
import { useNamespace as
|
|
17
|
+
import { useId as ce } from "../../hooks/use-id/index.js";
|
|
18
|
+
import { useNamespace as me } from "../../hooks/use-namespace/index.js";
|
|
19
19
|
import "../../hooks/use-model-toggle/index.js";
|
|
20
20
|
import "@popperjs/core";
|
|
21
21
|
import "../../hooks/use-z-index/index.js";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
const ye = S({
|
|
22
|
+
import { DROPDOWN_INJECTION_KEY as pe } from "./tokens.js";
|
|
23
|
+
import { VftCollection as ve } from "./types.js";
|
|
24
|
+
import { useFormSize as ge } from "../form/hooks/use-form-common-props.js";
|
|
25
|
+
const be = S({
|
|
27
26
|
name: "vft-dropdown"
|
|
28
|
-
}),
|
|
29
|
-
...
|
|
27
|
+
}), Ue = /* @__PURE__ */ S({
|
|
28
|
+
...be,
|
|
30
29
|
props: {
|
|
31
30
|
trigger: { default: "hover" },
|
|
32
31
|
effect: { default: "light" },
|
|
@@ -49,99 +48,99 @@ const ye = S({
|
|
|
49
48
|
teleported: { type: Boolean, default: !0 }
|
|
50
49
|
},
|
|
51
50
|
emits: ["visible-change", "command", "click"],
|
|
52
|
-
setup(e, { expose: z, emit:
|
|
53
|
-
const
|
|
54
|
-
maxHeight:
|
|
55
|
-
})),
|
|
56
|
-
|
|
51
|
+
setup(e, { expose: z, emit: R }) {
|
|
52
|
+
const d = e, u = R, l = me("dropdown"), L = X(), i = a(), C = a(), m = a(null), f = a(null), V = a(null), p = a(null), k = a(!1), N = [w.enter, w.space, w.down], D = b(() => ({
|
|
53
|
+
maxHeight: se(d.maxHeight)
|
|
54
|
+
})), H = ce().value, v = b(() => d.id || H);
|
|
55
|
+
Z(
|
|
57
56
|
[i, h(d, "trigger")],
|
|
58
57
|
([t, c], [B]) => {
|
|
59
|
-
const
|
|
58
|
+
const Q = ue(c) ? c : [c];
|
|
60
59
|
B?.$el?.removeEventListener && B.$el.removeEventListener(
|
|
61
60
|
"pointerenter",
|
|
62
61
|
s
|
|
63
62
|
), t?.$el?.removeEventListener && t.$el.removeEventListener(
|
|
64
63
|
"pointerenter",
|
|
65
64
|
s
|
|
66
|
-
), t?.$el?.addEventListener &&
|
|
65
|
+
), t?.$el?.addEventListener && Q.includes("hover") && t.$el.addEventListener(
|
|
67
66
|
"pointerenter",
|
|
68
67
|
s
|
|
69
68
|
);
|
|
70
69
|
},
|
|
71
70
|
{ immediate: !0 }
|
|
72
|
-
),
|
|
71
|
+
), _(() => {
|
|
73
72
|
i.value?.$el?.removeEventListener && i.value.$el.removeEventListener(
|
|
74
73
|
"pointerenter",
|
|
75
74
|
s
|
|
76
75
|
);
|
|
77
76
|
});
|
|
78
|
-
function
|
|
77
|
+
function P() {
|
|
79
78
|
E();
|
|
80
79
|
}
|
|
81
80
|
function E() {
|
|
82
81
|
m.value?.onClose();
|
|
83
82
|
}
|
|
84
|
-
function
|
|
83
|
+
function A() {
|
|
85
84
|
m.value?.onOpen();
|
|
86
85
|
}
|
|
87
|
-
const g =
|
|
88
|
-
function
|
|
86
|
+
const g = ge();
|
|
87
|
+
function F(...t) {
|
|
89
88
|
u("command", ...t);
|
|
90
89
|
}
|
|
91
90
|
function s() {
|
|
92
91
|
i.value?.$el?.focus();
|
|
93
92
|
}
|
|
94
|
-
function
|
|
93
|
+
function K() {
|
|
95
94
|
}
|
|
96
|
-
function
|
|
95
|
+
function U() {
|
|
97
96
|
o(f)?.focus(), p.value = null;
|
|
98
97
|
}
|
|
99
|
-
function
|
|
98
|
+
function G(t) {
|
|
100
99
|
p.value = t;
|
|
101
100
|
}
|
|
102
|
-
function
|
|
101
|
+
function J(t) {
|
|
103
102
|
k.value || (t.preventDefault(), t.stopImmediatePropagation());
|
|
104
103
|
}
|
|
105
|
-
function
|
|
104
|
+
function M() {
|
|
106
105
|
u("visible-change", !0);
|
|
107
106
|
}
|
|
108
|
-
function
|
|
107
|
+
function W(t) {
|
|
109
108
|
t?.type === "keydown" && f.value?.focus();
|
|
110
109
|
}
|
|
111
|
-
function
|
|
110
|
+
function Y() {
|
|
112
111
|
u("visible-change", !1);
|
|
113
112
|
}
|
|
114
|
-
T(
|
|
113
|
+
T(pe, {
|
|
115
114
|
contentRef: f,
|
|
116
115
|
role: b(() => d.role),
|
|
117
116
|
triggerId: v,
|
|
118
117
|
isUsingKeyboard: k,
|
|
119
|
-
onItemEnter:
|
|
120
|
-
onItemLeave:
|
|
118
|
+
onItemEnter: K,
|
|
119
|
+
onItemLeave: U
|
|
121
120
|
}), T("elDropdown", {
|
|
122
|
-
instance:
|
|
121
|
+
instance: L,
|
|
123
122
|
dropdownSize: g,
|
|
124
|
-
handleClick:
|
|
125
|
-
commandHandler:
|
|
123
|
+
handleClick: P,
|
|
124
|
+
commandHandler: F,
|
|
126
125
|
trigger: h(d, "trigger"),
|
|
127
126
|
hideOnClick: h(d, "hideOnClick")
|
|
128
127
|
});
|
|
129
|
-
const
|
|
128
|
+
const j = (t) => {
|
|
130
129
|
t.preventDefault(), f.value?.focus?.({
|
|
131
130
|
preventScroll: !0
|
|
132
131
|
});
|
|
133
|
-
},
|
|
132
|
+
}, q = (t) => {
|
|
134
133
|
u("click", t);
|
|
135
134
|
};
|
|
136
135
|
return z({
|
|
137
136
|
handleClose: E,
|
|
138
|
-
handleOpen:
|
|
137
|
+
handleOpen: A,
|
|
139
138
|
// Todo
|
|
140
|
-
onFocusAfterTrapped:
|
|
141
|
-
}), (t, c) => ($(),
|
|
139
|
+
onFocusAfterTrapped: j
|
|
140
|
+
}), (t, c) => ($(), ee("div", {
|
|
142
141
|
class: x([o(l).b(), o(l).is("disabled", e.disabled)])
|
|
143
142
|
}, [
|
|
144
|
-
r(o(
|
|
143
|
+
r(o(fe), {
|
|
145
144
|
ref_key: "popperRef",
|
|
146
145
|
ref: m,
|
|
147
146
|
role: e.role,
|
|
@@ -166,28 +165,28 @@ const ye = S({
|
|
|
166
165
|
teleported: e.teleported,
|
|
167
166
|
pure: "",
|
|
168
167
|
persistent: "",
|
|
169
|
-
onBeforeShow:
|
|
170
|
-
onShow:
|
|
171
|
-
onBeforeHide:
|
|
172
|
-
},
|
|
168
|
+
onBeforeShow: M,
|
|
169
|
+
onShow: W,
|
|
170
|
+
onBeforeHide: Y
|
|
171
|
+
}, te({
|
|
173
172
|
content: n(() => [
|
|
174
|
-
r(o(
|
|
173
|
+
r(o(ae), {
|
|
175
174
|
ref_key: "scrollbar",
|
|
176
|
-
ref:
|
|
177
|
-
"wrap-style":
|
|
175
|
+
ref: V,
|
|
176
|
+
"wrap-style": D.value,
|
|
178
177
|
tag: "div",
|
|
179
178
|
"view-class": [o(l).e("list"), "test"]
|
|
180
179
|
}, {
|
|
181
180
|
default: n(() => [
|
|
182
|
-
r(o(
|
|
181
|
+
r(o(ie), {
|
|
183
182
|
loop: e.loop,
|
|
184
183
|
"current-tab-id": p.value,
|
|
185
184
|
orientation: "horizontal",
|
|
186
|
-
onCurrentTabIdChange:
|
|
187
|
-
onEntryFocus:
|
|
185
|
+
onCurrentTabIdChange: G,
|
|
186
|
+
onEntryFocus: J
|
|
188
187
|
}, {
|
|
189
188
|
default: n(() => [
|
|
190
|
-
r(o(
|
|
189
|
+
r(o(ve), null, {
|
|
191
190
|
default: n(() => [
|
|
192
191
|
y(t.$slots, "dropdown")
|
|
193
192
|
]),
|
|
@@ -205,7 +204,7 @@ const ye = S({
|
|
|
205
204
|
e.splitButton ? void 0 : {
|
|
206
205
|
name: "default",
|
|
207
206
|
fn: n(() => [
|
|
208
|
-
r(o(
|
|
207
|
+
r(o(de), {
|
|
209
208
|
id: v.value,
|
|
210
209
|
ref_key: "triggeringElementRef",
|
|
211
210
|
ref: i,
|
|
@@ -221,7 +220,7 @@ const ye = S({
|
|
|
221
220
|
key: "0"
|
|
222
221
|
}
|
|
223
222
|
]), 1032, ["role", "effect", "popper-options", "hide-after", "placement", "popper-class", "reference-element", "trigger", "trigger-target-el", "show-after", "virtual-ref", "virtual-triggering", "disabled", "transition", "teleported"]),
|
|
224
|
-
e.splitButton ? ($(), oe(o(
|
|
223
|
+
e.splitButton ? ($(), oe(o(re), { key: 0 }, {
|
|
225
224
|
default: n(() => [
|
|
226
225
|
r(o(O), I({
|
|
227
226
|
ref_key: "referenceElementRef",
|
|
@@ -231,7 +230,7 @@ const ye = S({
|
|
|
231
230
|
type: e.type,
|
|
232
231
|
disabled: e.disabled,
|
|
233
232
|
tabindex: e.tabindex,
|
|
234
|
-
onClick:
|
|
233
|
+
onClick: q
|
|
235
234
|
}), {
|
|
236
235
|
default: n(() => [
|
|
237
236
|
y(t.$slots, "default")
|
|
@@ -249,16 +248,16 @@ const ye = S({
|
|
|
249
248
|
class: o(l).e("caret-button"),
|
|
250
249
|
disabled: e.disabled,
|
|
251
250
|
tabindex: e.tabindex,
|
|
252
|
-
"aria-label":
|
|
251
|
+
"aria-label": "切换下拉菜单"
|
|
253
252
|
}), {
|
|
254
253
|
default: n(() => [
|
|
255
|
-
r(o(
|
|
254
|
+
r(o(le), {
|
|
256
255
|
class: x(o(l).e("icon")),
|
|
257
256
|
icon: "icon-arrow-down"
|
|
258
257
|
}, null, 8, ["class"])
|
|
259
258
|
]),
|
|
260
259
|
_: 1
|
|
261
|
-
}, 16, ["id", "size", "type", "class", "disabled", "tabindex"
|
|
260
|
+
}, 16, ["id", "size", "type", "class", "disabled", "tabindex"])
|
|
262
261
|
]),
|
|
263
262
|
_: 3
|
|
264
263
|
})) : ne("", !0)
|
|
@@ -266,5 +265,5 @@ const ye = S({
|
|
|
266
265
|
}
|
|
267
266
|
});
|
|
268
267
|
export {
|
|
269
|
-
|
|
268
|
+
Ue as default
|
|
270
269
|
};
|
|
@@ -1,72 +1,71 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as d, getCurrentInstance as v, computed as s, openBlock as a, createElementBlock as l, normalizeClass as c, unref as t, createElementVNode as k, renderSlot as i, createBlock as z, normalizeProps as x, mergeProps as C, createVNode as E, createCommentVNode as u } from "vue";
|
|
2
2
|
import { VftIcon as V } from "../icon/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
|
-
import { singleAttrToObj as
|
|
5
|
-
import { addUnit as
|
|
4
|
+
import { singleAttrToObj as D, renderTNode as $, VNode as b } from "@vft/utils";
|
|
5
|
+
import { addUnit as h } from "../../utils/helper.js";
|
|
6
6
|
import "lodash-es";
|
|
7
7
|
import "../form/index.js";
|
|
8
|
-
import { useNamespace as
|
|
8
|
+
import { useNamespace as w } 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 { useLocale as B } from "../../locale/use-locale.js";
|
|
13
12
|
import { EmptyEnum as e } from "./constants.js";
|
|
14
|
-
const
|
|
13
|
+
const B = d({
|
|
15
14
|
name: "vft-empty"
|
|
16
|
-
}),
|
|
17
|
-
...
|
|
15
|
+
}), J = /* @__PURE__ */ d({
|
|
16
|
+
...B,
|
|
18
17
|
props: {
|
|
19
18
|
icon: {},
|
|
20
19
|
type: { default: () => e.NoData },
|
|
21
20
|
size: { default: "default" },
|
|
22
21
|
desc: {}
|
|
23
22
|
},
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
23
|
+
setup(o) {
|
|
24
|
+
const n = w("empty"), p = v(), f = /* @__PURE__ */ new Map([
|
|
26
25
|
[
|
|
27
26
|
e.NotFound,
|
|
28
27
|
{
|
|
29
|
-
text:
|
|
28
|
+
text: "页面不存在"
|
|
30
29
|
}
|
|
31
30
|
],
|
|
32
31
|
[
|
|
33
32
|
e.Delete,
|
|
34
33
|
{
|
|
35
|
-
text:
|
|
34
|
+
text: "已删除"
|
|
36
35
|
}
|
|
37
36
|
],
|
|
38
37
|
[
|
|
39
38
|
e.NetworkDisconnect,
|
|
40
39
|
{
|
|
41
|
-
text:
|
|
40
|
+
text: "网络已断开"
|
|
42
41
|
}
|
|
43
42
|
],
|
|
44
43
|
[
|
|
45
44
|
e.NoData,
|
|
46
45
|
{
|
|
47
|
-
text:
|
|
46
|
+
text: "暂无数据"
|
|
48
47
|
}
|
|
49
48
|
],
|
|
50
49
|
[
|
|
51
50
|
e.PageError,
|
|
52
51
|
{
|
|
53
|
-
text:
|
|
52
|
+
text: "系统异常"
|
|
54
53
|
}
|
|
55
54
|
],
|
|
56
55
|
[
|
|
57
56
|
e.NoFilter,
|
|
58
57
|
{
|
|
59
|
-
text:
|
|
58
|
+
text: "此筛选条件下无结果"
|
|
60
59
|
}
|
|
61
60
|
],
|
|
62
61
|
[
|
|
63
62
|
e.NoSearch,
|
|
64
63
|
{
|
|
65
|
-
text:
|
|
64
|
+
text: "没有搜索结果"
|
|
66
65
|
}
|
|
67
66
|
]
|
|
68
|
-
]),
|
|
69
|
-
switch (
|
|
67
|
+
]), N = s(() => f.get(o.type)), g = s(() => {
|
|
68
|
+
switch (o.size) {
|
|
70
69
|
case "large":
|
|
71
70
|
return 120;
|
|
72
71
|
case "default":
|
|
@@ -74,37 +73,37 @@ const I = p({
|
|
|
74
73
|
case "small":
|
|
75
74
|
return 60;
|
|
76
75
|
default:
|
|
77
|
-
return
|
|
76
|
+
return o.size || 80;
|
|
78
77
|
}
|
|
79
|
-
}),
|
|
80
|
-
size:
|
|
81
|
-
icon:
|
|
82
|
-
})),
|
|
83
|
-
() =>
|
|
78
|
+
}), y = s(() => D(o.icon, "icon", {
|
|
79
|
+
size: h(g.value),
|
|
80
|
+
icon: o.type
|
|
81
|
+
})), m = s(
|
|
82
|
+
() => $(p, "desc", { defaultNode: N.value?.text })
|
|
84
83
|
);
|
|
85
|
-
return (
|
|
86
|
-
class: c([
|
|
84
|
+
return (r, I) => (a(), l("div", {
|
|
85
|
+
class: c([t(n).b()])
|
|
87
86
|
}, [
|
|
88
|
-
|
|
89
|
-
class: c(
|
|
87
|
+
k("div", {
|
|
88
|
+
class: c(t(n).e("image"))
|
|
90
89
|
}, [
|
|
91
|
-
|
|
90
|
+
r.$slots.img ? i(r.$slots, "img", { key: 0 }) : (a(), z(t(V), x(C({ key: 1 }, y.value)), null, 16))
|
|
92
91
|
], 2),
|
|
93
|
-
|
|
92
|
+
m.value ? (a(), l("span", {
|
|
94
93
|
key: 0,
|
|
95
|
-
class: c(
|
|
94
|
+
class: c(t(n).e("desc"))
|
|
96
95
|
}, [
|
|
97
|
-
|
|
96
|
+
E(t(b), { content: m.value }, null, 8, ["content"])
|
|
98
97
|
], 2)) : u("", !0),
|
|
99
|
-
|
|
98
|
+
r.$slots.default ? (a(), l("div", {
|
|
100
99
|
key: 1,
|
|
101
|
-
class: c(
|
|
100
|
+
class: c(t(n).e("bottom"))
|
|
102
101
|
}, [
|
|
103
|
-
|
|
102
|
+
i(r.$slots, "default")
|
|
104
103
|
], 2)) : u("", !0)
|
|
105
104
|
], 2));
|
|
106
105
|
}
|
|
107
106
|
});
|
|
108
107
|
export {
|
|
109
|
-
|
|
108
|
+
J as default
|
|
110
109
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a,
|
|
1
|
+
import { defineComponent as a, openBlock as i, createBlock as m, unref as t, normalizeClass as o, withCtx as p, createElementVNode as s, renderSlot as l } from "vue";
|
|
2
2
|
import { VftFooter as n } from "../container/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "@vft/utils";
|
|
@@ -15,7 +15,7 @@ const c = a({
|
|
|
15
15
|
...c,
|
|
16
16
|
setup(u) {
|
|
17
17
|
const e = f("footer-layout");
|
|
18
|
-
return (r, d) => (
|
|
18
|
+
return (r, d) => (i(), m(t(n), {
|
|
19
19
|
class: o(t(e).b())
|
|
20
20
|
}, {
|
|
21
21
|
default: p(() => [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Z, useSlots as ye, inject as E, ref as b, computed as a, watch as T, reactive as Se, toRefs as ke, provide as qe, onMounted as Ie, onBeforeUnmount as Ve,
|
|
1
|
+
import { defineComponent as Z, useSlots as ye, inject as E, ref as b, computed as a, watch as T, reactive as Se, toRefs as ke, provide as qe, onMounted as Ie, onBeforeUnmount as Ve, openBlock as R, createElementBlock as we, unref as f, normalizeClass as g, createBlock as G, withCtx as _, resolveDynamicComponent as Ce, normalizeStyle as K, renderSlot as B, createTextVNode as Fe, toDisplayString as U, createCommentVNode as M, createElementVNode as O, createVNode as Re, TransitionGroup as _e, nextTick as Be } from "vue";
|
|
2
2
|
import { refDebounced as Me } from "@vueuse/core";
|
|
3
3
|
import { isBoolean as We, getProp as W, isFunction as xe } from "@vft/utils";
|
|
4
4
|
import { addUnit as H, castArray as J } from "../../utils/helper.js";
|
|
@@ -185,46 +185,46 @@ const je = ["role", "aria-labelledby"], De = Z({
|
|
|
185
185
|
role: I.value ? "group" : void 0,
|
|
186
186
|
"aria-labelledby": I.value ? f(S) : void 0
|
|
187
187
|
}, [
|
|
188
|
-
x.hideLabel ?
|
|
188
|
+
x.hideLabel ? M("", !0) : (R(), G(f(Ne), {
|
|
189
189
|
key: 0,
|
|
190
190
|
"is-auto-width": A.value.width === "auto",
|
|
191
191
|
"update-all": f(o)?.labelWidth === "auto"
|
|
192
192
|
}, {
|
|
193
|
-
default:
|
|
193
|
+
default: _(() => [
|
|
194
194
|
k.value ? (R(), G(Ce(q.value ? "label" : "div"), {
|
|
195
195
|
key: 0,
|
|
196
196
|
id: f(S),
|
|
197
197
|
for: q.value,
|
|
198
198
|
class: g(f(s).e("label")),
|
|
199
|
-
style:
|
|
199
|
+
style: K(A.value)
|
|
200
200
|
}, {
|
|
201
|
-
default:
|
|
202
|
-
|
|
203
|
-
Fe(
|
|
201
|
+
default: _(() => [
|
|
202
|
+
B(e.$slots, "label", { label: L.value }, () => [
|
|
203
|
+
Fe(U(L.value), 1)
|
|
204
204
|
])
|
|
205
205
|
]),
|
|
206
206
|
_: 3
|
|
207
|
-
}, 8, ["id", "for", "class", "style"])) :
|
|
207
|
+
}, 8, ["id", "for", "class", "style"])) : M("", !0)
|
|
208
208
|
]),
|
|
209
209
|
_: 3
|
|
210
210
|
}, 8, ["is-auto-width", "update-all"])),
|
|
211
|
-
|
|
211
|
+
O("div", {
|
|
212
212
|
class: g(f(s).e("content")),
|
|
213
|
-
style:
|
|
213
|
+
style: K(ae.value)
|
|
214
214
|
}, [
|
|
215
|
-
|
|
215
|
+
B(e.$slots, "default"),
|
|
216
216
|
Re(_e, {
|
|
217
217
|
name: `${f(s).namespace.value}-zoom-in-top`
|
|
218
218
|
}, {
|
|
219
|
-
default:
|
|
220
|
-
me.value ?
|
|
219
|
+
default: _(() => [
|
|
220
|
+
me.value ? B(e.$slots, "error", {
|
|
221
221
|
key: 0,
|
|
222
222
|
error: n.value
|
|
223
223
|
}, () => [
|
|
224
|
-
|
|
224
|
+
O("div", {
|
|
225
225
|
class: g(ne.value)
|
|
226
|
-
},
|
|
227
|
-
]) :
|
|
226
|
+
}, U(n.value), 3)
|
|
227
|
+
]) : M("", !0)
|
|
228
228
|
]),
|
|
229
229
|
_: 3
|
|
230
230
|
}, 8, ["name"])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, getCurrentInstance as q, ref as x, reactive as y, computed as F, watch as z, provide as T, toRefs as $,
|
|
1
|
+
import { defineComponent as b, getCurrentInstance as q, ref as x, reactive as y, computed as F, watch as z, provide as T, toRefs as $, openBlock as j, createElementBlock as M, normalizeClass as W, renderSlot as A } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import { isFunction as K } from "@vft/utils";
|
|
4
4
|
import { debugWarn as n } from "../../utils/error.js";
|
|
@@ -133,7 +133,7 @@ const H = b({
|
|
|
133
133
|
* @description Scroll to the specified fields.
|
|
134
134
|
*/
|
|
135
135
|
scrollToField: S
|
|
136
|
-
}), (e, t) => (
|
|
136
|
+
}), (e, t) => (j(), M("form", {
|
|
137
137
|
ref_key: "formRef",
|
|
138
138
|
ref: d,
|
|
139
139
|
class: W(C.value)
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { defineComponent as r,
|
|
2
|
-
import { useFullscreen as
|
|
3
|
-
import { delObjAttrNotExist as
|
|
4
|
-
import { VftIconText as
|
|
1
|
+
import { defineComponent as r, openBlock as p, createBlock as s, unref as o, mergeProps as m } from "vue";
|
|
2
|
+
import { useFullscreen as a } from "@vft/use";
|
|
3
|
+
import { delObjAttrNotExist as u } from "@vft/utils";
|
|
4
|
+
import { VftIconText as f } from "../icon-text/index.js";
|
|
5
5
|
import "@vueuse/core";
|
|
6
6
|
import "../config-provider/hooks/use-global-config.js";
|
|
7
7
|
import { primaryColor as d } from "../../utils/ns-cover.js";
|
|
8
8
|
import "lodash-es";
|
|
9
9
|
import "../form/index.js";
|
|
10
|
-
import { useNamespace as
|
|
10
|
+
import { useNamespace as x } 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
|
-
|
|
15
|
-
const y = r({
|
|
14
|
+
const _ = r({
|
|
16
15
|
name: "full-screen"
|
|
17
|
-
}),
|
|
18
|
-
...
|
|
16
|
+
}), z = /* @__PURE__ */ r({
|
|
17
|
+
..._,
|
|
19
18
|
props: {
|
|
20
19
|
text: {},
|
|
21
20
|
icon: {},
|
|
@@ -33,18 +32,18 @@ const y = r({
|
|
|
33
32
|
clampTooltipCfg: {},
|
|
34
33
|
useClamp: { type: Boolean }
|
|
35
34
|
},
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
38
|
-
return (
|
|
39
|
-
class: o(
|
|
35
|
+
setup(t) {
|
|
36
|
+
const n = t, l = x("full-screen"), { toggle: i, isFullscreen: e } = a(), c = d().value;
|
|
37
|
+
return (y, B) => (p(), s(o(f), m({
|
|
38
|
+
class: o(l).b(),
|
|
40
39
|
distance: 2,
|
|
41
|
-
"hover-color": o(
|
|
40
|
+
"hover-color": o(c),
|
|
42
41
|
onClick: o(i),
|
|
43
|
-
icon: o(
|
|
44
|
-
text: o(
|
|
45
|
-
}, o(
|
|
42
|
+
icon: o(e) ? "icon-exit-full-screen" : "icon-full-screen",
|
|
43
|
+
text: o(e) ? "退出全屏" : "全屏"
|
|
44
|
+
}, o(u)(n, !0, !0), { pointer: "" }), null, 16, ["class", "hover-color", "onClick", "icon", "text"]));
|
|
46
45
|
}
|
|
47
46
|
});
|
|
48
47
|
export {
|
|
49
|
-
|
|
48
|
+
z as default
|
|
50
49
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d,
|
|
1
|
+
import { defineComponent as d, openBlock as e, createBlock as n, unref as t, normalizeClass as m, withCtx as r, createVNode as f, createElementVNode as u, createElementBlock as c, normalizeProps as p, mergeProps as g, createCommentVNode as l, renderSlot as i } from "vue";
|
|
2
2
|
import { VftHeader as h, VftContainer as C, VftMain as V, VftFooter as k } from "../container/index.js";
|
|
3
3
|
import { VftLogo as _ } from "../logo/index.js";
|
|
4
4
|
import "@vueuse/core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as V, computed as S, getCurrentInstance as Y, useSlots as q, ref as F, createVNode as c, mergeProps as w, isVNode as K } from "vue";
|
|
2
2
|
import { useRouterHelper as Q } from "@vft/router";
|
|
3
3
|
import { isUrl as X } from "@vft/utils";
|
|
4
|
-
import { VftMenu as Z, VftSubMenu as _,
|
|
4
|
+
import { VftMenu as Z, VftSubMenu as _, VftMenuItemGroup as ee, VftMenuItem as te } from "../menu/index.js";
|
|
5
5
|
import "@vueuse/core";
|
|
6
6
|
import "../config-provider/hooks/use-global-config.js";
|
|
7
7
|
import "lodash-es";
|
|
@@ -71,7 +71,7 @@ const ue = V({
|
|
|
71
71
|
...t.attrMapping
|
|
72
72
|
})), B = Y(), h = q(), O = F(), T = B.appContext.config.globalProperties.$router, v = (e, o, a) => {
|
|
73
73
|
const i = e[l.value.path], r = e[l.value.title], n = e?.[l.value.index], M = e?.[l.value.icon], m = !!e?.[l.value.disabled], d = t.disabledJudgeTurnOver ? !m : m, g = n || i || o + r;
|
|
74
|
-
return c(
|
|
74
|
+
return c(te, w(e, {
|
|
75
75
|
key: g,
|
|
76
76
|
index: String(g),
|
|
77
77
|
icon: M,
|
|
@@ -92,7 +92,7 @@ const ue = V({
|
|
|
92
92
|
p("close", e);
|
|
93
93
|
}, z = (e) => {
|
|
94
94
|
p("sub-menu-click", e);
|
|
95
|
-
}, H = (e, o) => !t.enableScroll || !e ? e : o > t.scrollThreshold ? c(
|
|
95
|
+
}, H = (e, o) => !t.enableScroll || !e ? e : o > t.scrollThreshold ? c(ee, {
|
|
96
96
|
style: {
|
|
97
97
|
maxHeight: t.scrollMaxHeight,
|
|
98
98
|
overflowY: "auto"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, computed as t,
|
|
1
|
+
import { defineComponent as f, computed as t, openBlock as c, createElementBlock as s, normalizeStyle as l, normalizeClass as m, unref as i } from "vue";
|
|
2
2
|
import { isString as y } from "@vft/utils";
|
|
3
3
|
import "../config-provider/index.js";
|
|
4
4
|
import "@vueuse/core";
|
|
@@ -37,13 +37,13 @@ const z = ["src"], I = f({
|
|
|
37
37
|
"icon"
|
|
38
38
|
)
|
|
39
39
|
), u = (a) => a?.includes("/"), v = t(() => u(o.icon)), d = t(() => e.value?.iconifyPrefixClass && o.icon && y(o.icon) ? o.icon.startsWith(e.value?.iconifyPrefixClass) : !1).value ? "" : e.value?.iconfontClass || "";
|
|
40
|
-
return (a, x) => v.value ? (
|
|
40
|
+
return (a, x) => v.value ? (c(), s("img", {
|
|
41
41
|
key: 0,
|
|
42
42
|
class: m(i(n).e("image")),
|
|
43
43
|
src: o.icon,
|
|
44
44
|
alt: "",
|
|
45
45
|
style: l(r.value)
|
|
46
|
-
}, null, 14, z)) : (
|
|
46
|
+
}, null, 14, z)) : (c(), s("i", {
|
|
47
47
|
key: 1,
|
|
48
48
|
class: m([i(n).b(), o.icon, i(d)]),
|
|
49
49
|
style: l(r.value)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, computed as o,
|
|
1
|
+
import { defineComponent as C, computed as o, openBlock as l, createElementBlock as f, normalizeStyle as k, normalizeClass as S, unref as r, createBlock as c, mergeProps as s, createCommentVNode as y, normalizeProps as b, toDisplayString as I } from "vue";
|
|
2
2
|
import { VftClampTooltip as w } from "../clamp-tooltip/index.js";
|
|
3
3
|
import { VftIcon as h } from "../icon/index.js";
|
|
4
4
|
import "@vueuse/core";
|