vft 0.0.507 → 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/carousel/use-carousel.js +1 -1
- package/es/components/cascader/cascader.vue2.js +203 -202
- package/es/components/cascader-panel/index.vue2.js +1 -1
- package/es/components/cascader-panel/menu.vue2.js +50 -49
- 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 +21 -17
- 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 +134 -133
- 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 +2 -0
- package/es/components/config-provider/config-provider.vue2.js +5 -4
- package/es/components/config-provider/constants.d.ts +1 -0
- package/es/components/config-provider/constants.js +3 -2
- package/es/components/config-provider/hooks/use-global-config.js +33 -30
- package/es/components/config-provider/index.d.ts +9 -0
- package/es/components/config-provider/index.js +6 -5
- 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.js +83 -82
- package/es/components/date-picker/composables/use-month-range-header.js +15 -14
- package/es/components/date-picker/composables/use-panel-date-range.js +24 -23
- 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 +40 -39
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +41 -40
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +184 -183
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +225 -224
- 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 +39 -36
- 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 +68 -67
- package/es/components/dropdown/index.d.ts +33 -33
- package/es/components/empty/empty.vue2.js +39 -38
- 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 +18 -17
- 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 +60 -59
- package/es/components/image-viewer/image-viewer.vue2.js +43 -42
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +214 -210
- package/es/components/input/input.vue2.js +2 -2
- package/es/components/input-number/input-number.vue2.js +4 -4
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/input-tag/input-tag.vue2.js +7 -7
- package/es/components/link/link.vue2.js +1 -1
- package/es/components/list-cell/list-cell.vue2.js +1 -1
- package/es/components/logo/logo.vue2.js +10 -10
- package/es/components/md-comment/md-comment.vue2.js +2 -2
- package/es/components/md-container/md-container.vue2.js +75 -74
- package/es/components/md-container/toc.js +37 -36
- 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 +25 -24
- 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 +17 -16
- package/es/components/multiple-tabs/tab-content.vue2.js +2 -2
- package/es/components/multiple-tabs/use/use-tab-dropdown.js +54 -53
- package/es/components/notification/notification.vue2.js +1 -1
- package/es/components/overlay/overlay.vue2.js +1 -1
- package/es/components/page-wrapper/page-wrapper.vue2.js +2 -2
- package/es/components/pagination/components/jumper.vue2.js +2 -2
- package/es/components/pagination/components/next.vue2.js +4 -4
- package/es/components/pagination/components/pager.vue2.js +1 -1
- package/es/components/pagination/components/prev.vue2.js +4 -4
- package/es/components/pagination/components/sizes.vue2.js +2 -2
- package/es/components/pagination/components/total.vue2.js +2 -2
- package/es/components/popconfirm/popconfirm.vue2.js +40 -39
- 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 +78 -76
- 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 +232 -231
- package/es/components/skeleton/skeleton-item.vue2.js +2 -2
- package/es/components/skeleton/skeleton.vue2.js +8 -8
- package/es/components/slider/button.vue2.js +2 -2
- package/es/components/slider/slider.vue2.js +1 -1
- package/es/components/space/space.js +1 -1
- package/es/components/statistic/statistic.vue2.js +17 -17
- package/es/components/steps/item.vue2.js +11 -11
- package/es/components/steps/steps.vue2.js +2 -2
- package/es/components/super-form/super-form-action.vue2.js +11 -11
- package/es/components/super-form/super-form-item.vue2.js +5 -4
- package/es/components/super-form/super-form.vue2.js +7 -7
- package/es/components/super-form/use/helper.js +12 -12
- 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 +34 -33
- package/es/components/table/table.vue2.js +154 -157
- package/es/components/table/use/use-data-source.js +90 -90
- 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 +66 -65
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +134 -133
- 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 +59 -58
- package/es/components/transfer/transfer.vue2.js +70 -69
- package/es/components/tree/tree-node.vue.js +1 -1
- package/es/components/tree/tree.vue2.js +60 -59
- package/es/components/upload/index.d.ts +3 -3
- package/es/components/upload/upload-content.vue.d.ts +2 -2
- package/es/components/upload/upload-content.vue2.js +76 -73
- package/es/components/upload/upload-dragger.vue2.js +2 -2
- package/es/components/upload/upload-list.vue2.js +46 -45
- package/es/components/upload/upload.vue.d.ts +2 -2
- package/es/components/upload/upload.vue2.js +87 -85
- package/es/components/upload/utils.js +29 -29
- package/es/components/verify-code/verify-code.vue2.js +2 -2
- package/es/components/watermark/watermark.vue2.js +2 -2
- package/es/constants/date.d.ts +1 -1
- package/es/constants/date.js +9 -1
- package/es/hooks/use-id/index.js +2 -2
- package/es/hooks/use-z-index/index.js +3 -3
- package/es/index.d.ts +1 -0
- package/es/index.js +43 -38
- package/es/locale/index.d.js +1 -0
- package/es/locale/index.d.ts +26 -0
- package/es/locale/index.js +10 -0
- package/es/locale/lang/en.d.ts +183 -0
- package/es/locale/lang/en.js +241 -0
- package/es/locale/lang/zh-cn.d.ts +183 -0
- package/es/locale/lang/zh-cn.js +241 -0
- package/es/locale/lang/zh-tw.d.ts +183 -0
- package/es/locale/lang/zh-tw.js +241 -0
- package/es/locale/use-locale.d.ts +17 -0
- package/es/locale/use-locale.js +56 -0
- 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 +4 -4
- 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 +2 -0
- 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 +1 -0
- 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 +9 -0
- package/lib/components/date-picker/composables/use-basic-date-table.cjs +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/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/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-tab-dropdown.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-item.vue2.cjs +1 -1
- package/lib/components/super-form/use/helper.cjs +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-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/index.d.ts +3 -3
- package/lib/components/upload/upload-content.vue.d.ts +2 -2
- 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.vue.d.ts +2 -2
- package/lib/components/upload/upload.vue2.cjs +1 -1
- package/lib/components/upload/utils.cjs +1 -1
- package/lib/constants/date.cjs +1 -1
- package/lib/constants/date.d.ts +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/locale/index.cjs +1 -0
- package/lib/locale/index.d.cjs +1 -0
- package/lib/locale/index.d.ts +26 -0
- package/lib/locale/lang/en.cjs +1 -0
- package/lib/locale/lang/en.d.ts +183 -0
- package/lib/locale/lang/zh-cn.cjs +1 -0
- package/lib/locale/lang/zh-cn.d.ts +183 -0
- package/lib/locale/lang/zh-tw.cjs +1 -0
- package/lib/locale/lang/zh-tw.d.ts +183 -0
- package/lib/locale/use-locale.cjs +1 -0
- package/lib/locale/use-locale.d.ts +17 -0
- 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/super-form.scss +0 -1
- package/theme-style/src/table.scss +4 -0
- package/theme-style/vft-super-form.css +1 -1
- package/theme-style/vft-table.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,113 +1,114 @@
|
|
|
1
|
-
import { getRouterKeyPath as
|
|
2
|
-
import { useMultipleTabStore as S, useTabs as O, isTabPinned as
|
|
1
|
+
import { getRouterKeyPath as u } from "@vft/router";
|
|
2
|
+
import { useMultipleTabStore as S, useTabs as O, isTabPinned as A } from "@vft/store";
|
|
3
3
|
import "@vft/utils";
|
|
4
|
-
import { reactive as
|
|
4
|
+
import { reactive as U, computed as q } from "vue";
|
|
5
5
|
import "../../context-menu/context-menu.vue2.js";
|
|
6
6
|
import "../../icon/index.js";
|
|
7
|
+
import y from "../../../locale/use-locale.js";
|
|
7
8
|
import "vue-router";
|
|
8
|
-
function
|
|
9
|
-
const s =
|
|
9
|
+
function H(e, i) {
|
|
10
|
+
const { t: n } = y(), s = U({
|
|
10
11
|
current: null,
|
|
11
12
|
currentIndex: 0
|
|
12
|
-
}),
|
|
13
|
-
refreshPage:
|
|
14
|
-
closeAll:
|
|
15
|
-
close:
|
|
16
|
-
closeLeft:
|
|
17
|
-
closeOther:
|
|
18
|
-
closeRight:
|
|
19
|
-
newWinTab:
|
|
20
|
-
fullScreen:
|
|
21
|
-
alonePage:
|
|
22
|
-
pinTab:
|
|
23
|
-
unpinTab:
|
|
24
|
-
} = O(), D =
|
|
13
|
+
}), t = S(), {
|
|
14
|
+
refreshPage: p,
|
|
15
|
+
closeAll: g,
|
|
16
|
+
close: f,
|
|
17
|
+
closeLeft: h,
|
|
18
|
+
closeOther: b,
|
|
19
|
+
closeRight: T,
|
|
20
|
+
newWinTab: v,
|
|
21
|
+
fullScreen: x,
|
|
22
|
+
alonePage: L,
|
|
23
|
+
pinTab: C,
|
|
24
|
+
unpinTab: m
|
|
25
|
+
} = O(), D = q(() => {
|
|
25
26
|
if (!e)
|
|
26
27
|
return;
|
|
27
|
-
const { meta:
|
|
28
|
+
const { meta: l } = e, o = s.currentIndex, r = A(e), c = !r, a = !!l?.userPinned, P = o === 0 || o <= i, M = t.getTabList.length <= i || o === t.getTabList.length - 1 && t.getLastDragEndIndex >= 0, R = t.getTabList.length === i || t.getTabList.length === i + 1 && o === i, d = t.getTabList.length === i;
|
|
28
29
|
return [
|
|
29
30
|
{
|
|
30
31
|
iconCfg: { icon: "icon-refresh-right" },
|
|
31
|
-
text: "
|
|
32
|
-
handler: () =>
|
|
32
|
+
text: n("vft.multipleTabs.refresh"),
|
|
33
|
+
handler: () => p(e)
|
|
33
34
|
},
|
|
34
35
|
{
|
|
35
36
|
iconCfg: { icon: "icon-new-tab" },
|
|
36
|
-
text: "
|
|
37
|
-
handler: () =>
|
|
37
|
+
text: n("vft.multipleTabs.openInNewTab"),
|
|
38
|
+
handler: () => v(e),
|
|
38
39
|
divider: !0
|
|
39
40
|
},
|
|
40
41
|
{
|
|
41
42
|
iconCfg: { icon: "icon-close-tab" },
|
|
42
|
-
text: "
|
|
43
|
+
text: n("vft.multipleTabs.closeTab"),
|
|
43
44
|
disabled: r || d,
|
|
44
|
-
handler: () =>
|
|
45
|
+
handler: () => f(e)
|
|
45
46
|
},
|
|
46
47
|
{
|
|
47
48
|
iconCfg: { icon: "icon-arrow-close-left" },
|
|
48
|
-
text: "
|
|
49
|
-
disabled:
|
|
50
|
-
handler: () =>
|
|
49
|
+
text: n("vft.multipleTabs.closeLeft"),
|
|
50
|
+
disabled: P,
|
|
51
|
+
handler: () => h(e)
|
|
51
52
|
},
|
|
52
53
|
{
|
|
53
54
|
iconCfg: { icon: "icon-arrow-close-right" },
|
|
54
|
-
text: "
|
|
55
|
+
text: n("vft.multipleTabs.closeRight"),
|
|
55
56
|
disabled: M,
|
|
56
57
|
divider: !0,
|
|
57
|
-
handler: () =>
|
|
58
|
+
handler: () => T(e)
|
|
58
59
|
},
|
|
59
60
|
{
|
|
60
61
|
iconCfg: { icon: "icon-close-box-multiple-outline" },
|
|
61
|
-
text: "
|
|
62
|
+
text: n("vft.multipleTabs.closeOther"),
|
|
62
63
|
disabled: R,
|
|
63
|
-
handler: () =>
|
|
64
|
+
handler: () => b(e)
|
|
64
65
|
},
|
|
65
66
|
{
|
|
66
67
|
iconCfg: { icon: "icon-vector-square-delete" },
|
|
67
|
-
text: "
|
|
68
|
+
text: n("vft.multipleTabs.closeAll"),
|
|
68
69
|
disabled: d,
|
|
69
70
|
divider: !0,
|
|
70
|
-
handler: () =>
|
|
71
|
+
handler: () => g()
|
|
71
72
|
},
|
|
72
73
|
{
|
|
73
74
|
iconCfg: { icon: "icon-full-screen" },
|
|
74
|
-
text: "
|
|
75
|
-
handler: () =>
|
|
75
|
+
text: n("vft.multipleTabs.fullScreen"),
|
|
76
|
+
handler: () => x(e)
|
|
76
77
|
},
|
|
77
78
|
{
|
|
78
79
|
iconCfg: { icon: "icon-separate" },
|
|
79
|
-
text: "
|
|
80
|
-
handler: () =>
|
|
81
|
-
divider: c ||
|
|
80
|
+
text: n("vft.multipleTabs.standalone"),
|
|
81
|
+
handler: () => L(e),
|
|
82
|
+
divider: c || a
|
|
82
83
|
},
|
|
83
84
|
...c ? [
|
|
84
85
|
{
|
|
85
86
|
iconCfg: { icon: "icon-tab-pin" },
|
|
86
|
-
text: "
|
|
87
|
-
handler: () =>
|
|
87
|
+
text: n("vft.multipleTabs.pin"),
|
|
88
|
+
handler: () => C(e)
|
|
88
89
|
}
|
|
89
|
-
] :
|
|
90
|
+
] : a ? [
|
|
90
91
|
{
|
|
91
92
|
iconCfg: { icon: "icon-tab-unpin" },
|
|
92
|
-
text: "
|
|
93
|
-
handler: () =>
|
|
93
|
+
text: n("vft.multipleTabs.unpin"),
|
|
94
|
+
handler: () => m(e)
|
|
94
95
|
}
|
|
95
96
|
] : []
|
|
96
97
|
];
|
|
97
98
|
});
|
|
98
|
-
function
|
|
99
|
-
return (
|
|
100
|
-
if (!
|
|
99
|
+
function w(l) {
|
|
100
|
+
return (o) => {
|
|
101
|
+
if (!l)
|
|
101
102
|
return;
|
|
102
|
-
|
|
103
|
-
const r =
|
|
104
|
-
(c) =>
|
|
103
|
+
o?.preventDefault();
|
|
104
|
+
const r = t.getTabList.findIndex(
|
|
105
|
+
(c) => u(c) === u(l)
|
|
105
106
|
);
|
|
106
|
-
s.current =
|
|
107
|
+
s.current = l, s.currentIndex = r;
|
|
107
108
|
};
|
|
108
109
|
}
|
|
109
|
-
return { getDropMenuList: D, handleContextMenu:
|
|
110
|
+
return { getDropMenuList: D, handleContextMenu: w };
|
|
110
111
|
}
|
|
111
112
|
export {
|
|
112
|
-
|
|
113
|
+
H as useTabDropdown
|
|
113
114
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as S, ref as W, computed as l, onMounted as Z,
|
|
1
|
+
import { defineComponent as S, ref as W, computed as l, onMounted as Z, openBlock as r, createBlock as m, Transition as A, unref as t, withCtx as F, withDirectives as k, createElementVNode as u, normalizeStyle as h, normalizeClass as s, createCommentVNode as w, toDisplayString as T, renderSlot as G, createElementBlock as M, vShow as E, withModifiers as K } from "vue";
|
|
2
2
|
import { useEventListener as O, useTimeoutFn as U } from "@vueuse/core";
|
|
3
3
|
import { EVENT_CODE as p } from "../../constants/aria.js";
|
|
4
4
|
import "../config-provider/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as i, useSlots as y, createVNode as x,
|
|
1
|
+
import { defineComponent as i, useSlots as y, createVNode as x, renderSlot as l, h as r } from "vue";
|
|
2
2
|
import { noop as u } from "@vft/utils";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p,
|
|
1
|
+
import { defineComponent as p, openBlock as n, createElementBlock as l, normalizeClass as r, unref as e, createElementVNode as o, toDisplayString as m, renderSlot as c } from "vue";
|
|
2
2
|
import { useRouterHelper as d } from "@vft/router";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "@vft/utils";
|
|
@@ -18,7 +18,7 @@ const u = p({
|
|
|
18
18
|
},
|
|
19
19
|
setup(s) {
|
|
20
20
|
const t = f("page-wrapper"), { getTitle: a } = d();
|
|
21
|
-
return (i, _) => (
|
|
21
|
+
return (i, _) => (n(), l("div", {
|
|
22
22
|
class: r(e(t).b())
|
|
23
23
|
}, [
|
|
24
24
|
o("div", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, ref as g, computed as v,
|
|
1
|
+
import { defineComponent as f, ref as g, computed as v, openBlock as h, createElementBlock as _, unref as e, normalizeClass as t, createElementVNode as i, createVNode as b } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../../config-provider/hooks/use-global-config.js";
|
|
@@ -23,7 +23,7 @@ const x = ["disabled"], D = /* @__PURE__ */ f({
|
|
|
23
23
|
function d(a) {
|
|
24
24
|
a = Math.trunc(+a), p?.(+a), o.value = void 0;
|
|
25
25
|
}
|
|
26
|
-
return (a, E) => (
|
|
26
|
+
return (a, E) => (h(), _("span", {
|
|
27
27
|
class: t(e(n).e("jump")),
|
|
28
28
|
disabled: e(s)
|
|
29
29
|
}, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as l, computed as r,
|
|
1
|
+
import { defineComponent as l, computed as r, openBlock as a, createElementBlock as o, toDisplayString as c, createCommentVNode as s, createVNode as u, unref as m } from "vue";
|
|
2
2
|
import { VftIcon as b } from "../../icon/index.js";
|
|
3
3
|
const f = ["disabled", "aria-disabled"], x = { key: 0 }, p = /* @__PURE__ */ l({
|
|
4
4
|
__name: "next",
|
|
@@ -13,15 +13,15 @@ const f = ["disabled", "aria-disabled"], x = { key: 0 }, p = /* @__PURE__ */ l({
|
|
|
13
13
|
const t = r(
|
|
14
14
|
() => e.disabled || e.currentPage === e.pageCount || e.pageCount === 0
|
|
15
15
|
);
|
|
16
|
-
return (i, n) => (
|
|
16
|
+
return (i, n) => (a(), o("button", {
|
|
17
17
|
type: "button",
|
|
18
18
|
class: "btn-next",
|
|
19
19
|
disabled: t.value,
|
|
20
20
|
"aria-disabled": t.value,
|
|
21
21
|
onClick: n[0] || (n[0] = (d) => i.$emit("click", d))
|
|
22
22
|
}, [
|
|
23
|
-
e.nextText ? (
|
|
24
|
-
|
|
23
|
+
e.nextText ? (a(), o("span", x, c(e.nextText), 1)) : s("", !0),
|
|
24
|
+
u(m(b), {
|
|
25
25
|
icon: "icon-arrow-right",
|
|
26
26
|
size: 16
|
|
27
27
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as I, ref as f, computed as B, watchEffect as K,
|
|
1
|
+
import { defineComponent as I, ref as f, computed as B, watchEffect as K, openBlock as r, createElementBlock as c, withKeys as V, normalizeClass as d, unref as u, createCommentVNode as m, createBlock as v, Fragment as z, renderList as D, toDisplayString as F } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../../config-provider/hooks/use-global-config.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as l, computed as d,
|
|
1
|
+
import { defineComponent as l, computed as d, openBlock as o, createElementBlock as a, toDisplayString as s, createCommentVNode as m, createVNode as u, unref as p } from "vue";
|
|
2
2
|
import { VftIcon as b } from "../../icon/index.js";
|
|
3
3
|
const f = ["disabled", "aria-disabled"], v = { key: 0 }, g = /* @__PURE__ */ l({
|
|
4
4
|
__name: "prev",
|
|
@@ -10,15 +10,15 @@ const f = ["disabled", "aria-disabled"], v = { key: 0 }, g = /* @__PURE__ */ l({
|
|
|
10
10
|
emits: ["click"],
|
|
11
11
|
setup(e, { emit: i }) {
|
|
12
12
|
const r = i, t = d(() => e.disabled || e.currentPage <= 1);
|
|
13
|
-
return (k, n) => (
|
|
13
|
+
return (k, n) => (o(), a("button", {
|
|
14
14
|
type: "button",
|
|
15
15
|
class: "btn-prev",
|
|
16
16
|
disabled: t.value,
|
|
17
17
|
"aria-disabled": t.value,
|
|
18
18
|
onClick: n[0] || (n[0] = (c) => r("click", c))
|
|
19
19
|
}, [
|
|
20
|
-
e.prevText ? (
|
|
21
|
-
|
|
20
|
+
e.prevText ? (o(), a("span", v, s(e.prevText), 1)) : m("", !0),
|
|
21
|
+
u(p(b), {
|
|
22
22
|
icon: "icon-arrow-left",
|
|
23
23
|
size: 16
|
|
24
24
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, ref as z, watch as n, computed as d,
|
|
1
|
+
import { defineComponent as g, ref as z, watch as n, computed as d, openBlock as f, createElementBlock as S, normalizeClass as h, unref as s, createVNode as v } from "vue";
|
|
2
2
|
import { isEqual as C } from "lodash-es";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "@vft/utils";
|
|
@@ -42,7 +42,7 @@ const I = /* @__PURE__ */ g({
|
|
|
42
42
|
function c(e) {
|
|
43
43
|
e !== i.value && (i.value = e, p.handleSizeChange?.(Number(e)));
|
|
44
44
|
}
|
|
45
|
-
return (e, t) => (
|
|
45
|
+
return (e, t) => (f(), S("span", {
|
|
46
46
|
class: h(s(r).e("sizes"))
|
|
47
47
|
}, [
|
|
48
48
|
v(s(B), {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as i,
|
|
1
|
+
import { defineComponent as i, openBlock as r, createElementBlock as n, unref as t, normalizeClass as s, toDisplayString as p } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../../config-provider/hooks/use-global-config.js";
|
|
@@ -16,7 +16,7 @@ const c = ["disabled"], D = /* @__PURE__ */ i({
|
|
|
16
16
|
},
|
|
17
17
|
setup(o) {
|
|
18
18
|
const e = m("pagination"), { disabled: a } = l();
|
|
19
|
-
return (d, f) => (
|
|
19
|
+
return (d, f) => (r(), n("span", {
|
|
20
20
|
class: s(t(e).e("total")),
|
|
21
21
|
disabled: t(a)
|
|
22
22
|
}, "共 " + p(o.total) + " 条", 11, c));
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as v, ref as w, computed as r, openBlock as y, createBlock as B, unref as t, mergeProps as $, withCtx as c, renderSlot as b, createCommentVNode as T, createElementVNode as a, normalizeClass as l, normalizeStyle as I, createTextVNode as f, toDisplayString as m, createVNode as x } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
|
-
import { addUnit as
|
|
4
|
+
import { addUnit as P } from "../../utils/helper.js";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "../form/index.js";
|
|
7
|
-
import { VftButton as
|
|
8
|
-
import { VftIcon as
|
|
9
|
-
import { VftTooltip as
|
|
10
|
-
import { useNamespace as
|
|
7
|
+
import { VftButton as h } from "../button/index.js";
|
|
8
|
+
import { VftIcon as S } from "../icon/index.js";
|
|
9
|
+
import { VftTooltip as A } from "../tooltip/index.js";
|
|
10
|
+
import { useNamespace as R } 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
|
-
|
|
14
|
+
import q from "../../locale/use-locale.js";
|
|
15
|
+
const D = v({
|
|
15
16
|
name: "VftPopconfirm"
|
|
16
|
-
}),
|
|
17
|
-
...
|
|
17
|
+
}), Z = /* @__PURE__ */ v({
|
|
18
|
+
...D,
|
|
18
19
|
props: {
|
|
19
20
|
title: {},
|
|
20
21
|
confirmButtonText: {},
|
|
@@ -31,18 +32,18 @@ const R = h({
|
|
|
31
32
|
},
|
|
32
33
|
emits: ["confirm", "cancel"],
|
|
33
34
|
setup(e, { emit: C }) {
|
|
34
|
-
const i = e,
|
|
35
|
+
const i = e, s = C, n = R("popconfirm"), p = w(), { t: u } = q(), d = () => {
|
|
35
36
|
p.value?.onClose?.();
|
|
36
37
|
}, k = r(() => ({
|
|
37
|
-
width:
|
|
38
|
-
})),
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
() => i.confirmButtonText || "
|
|
44
|
-
),
|
|
45
|
-
return (o,
|
|
38
|
+
width: P(i.width)
|
|
39
|
+
})), V = (o) => {
|
|
40
|
+
s("confirm", o), d();
|
|
41
|
+
}, g = (o) => {
|
|
42
|
+
s("cancel", o), d();
|
|
43
|
+
}, z = r(
|
|
44
|
+
() => i.confirmButtonText || u("vft.popconfirm.confirm")
|
|
45
|
+
), N = r(() => i.cancelButtonText || u("vft.popconfirm.cancel"));
|
|
46
|
+
return (o, E) => (y(), B(t(A), $({
|
|
46
47
|
ref_key: "tooltipRef",
|
|
47
48
|
ref: p,
|
|
48
49
|
trigger: "click",
|
|
@@ -55,57 +56,57 @@ const R = h({
|
|
|
55
56
|
"hide-after": e.hideAfter,
|
|
56
57
|
persistent: e.persistent
|
|
57
58
|
}), {
|
|
58
|
-
content:
|
|
59
|
+
content: c(() => [
|
|
59
60
|
a("div", {
|
|
60
|
-
class:
|
|
61
|
+
class: l(t(n).b())
|
|
61
62
|
}, [
|
|
62
63
|
a("div", {
|
|
63
|
-
class:
|
|
64
|
+
class: l(t(n).e("main"))
|
|
64
65
|
}, [
|
|
65
|
-
!e.hideIcon && e.icon ? (y(),
|
|
66
|
+
!e.hideIcon && e.icon ? (y(), B(t(S), {
|
|
66
67
|
key: 0,
|
|
67
68
|
icon: e.icon,
|
|
68
69
|
size: 20,
|
|
69
|
-
class:
|
|
70
|
-
style:
|
|
71
|
-
}, null, 8, ["icon", "class", "style"])) :
|
|
72
|
-
f(" " +
|
|
70
|
+
class: l(t(n).e("icon")),
|
|
71
|
+
style: I({ color: e.iconColor })
|
|
72
|
+
}, null, 8, ["icon", "class", "style"])) : T("", !0),
|
|
73
|
+
f(" " + m(e.title), 1)
|
|
73
74
|
], 2),
|
|
74
75
|
a("div", {
|
|
75
|
-
class:
|
|
76
|
+
class: l(t(n).e("action"))
|
|
76
77
|
}, [
|
|
77
|
-
|
|
78
|
+
x(t(h), {
|
|
78
79
|
size: "small",
|
|
79
80
|
type: e.cancelButtonType === "text" ? "" : e.cancelButtonType,
|
|
80
81
|
text: e.cancelButtonType === "text",
|
|
81
|
-
onClick:
|
|
82
|
+
onClick: g
|
|
82
83
|
}, {
|
|
83
|
-
default:
|
|
84
|
-
f(
|
|
84
|
+
default: c(() => [
|
|
85
|
+
f(m(N.value), 1)
|
|
85
86
|
]),
|
|
86
87
|
_: 1
|
|
87
88
|
}, 8, ["type", "text"]),
|
|
88
|
-
|
|
89
|
+
x(t(h), {
|
|
89
90
|
size: "small",
|
|
90
91
|
type: e.confirmButtonType === "text" ? "" : e.confirmButtonType,
|
|
91
92
|
text: e.confirmButtonType === "text",
|
|
92
|
-
onClick:
|
|
93
|
+
onClick: V
|
|
93
94
|
}, {
|
|
94
|
-
default:
|
|
95
|
-
f(
|
|
95
|
+
default: c(() => [
|
|
96
|
+
f(m(z.value), 1)
|
|
96
97
|
]),
|
|
97
98
|
_: 1
|
|
98
99
|
}, 8, ["type", "text"])
|
|
99
100
|
], 2)
|
|
100
101
|
], 2)
|
|
101
102
|
]),
|
|
102
|
-
default:
|
|
103
|
-
o.$slots.reference ?
|
|
103
|
+
default: c(() => [
|
|
104
|
+
o.$slots.reference ? b(o.$slots, "reference", { key: 0 }) : T("", !0)
|
|
104
105
|
]),
|
|
105
106
|
_: 3
|
|
106
107
|
}, 16, ["popper-class", "popper-style", "teleported", "hide-after", "persistent"]));
|
|
107
108
|
}
|
|
108
109
|
});
|
|
109
110
|
export {
|
|
110
|
-
|
|
111
|
+
Z as default
|
|
111
112
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, computed as o, ref as S, unref as l,
|
|
1
|
+
import { defineComponent as u, computed as o, ref as S, unref as l, openBlock as f, createBlock as x, mergeProps as R, withCtx as s, renderSlot as d, createCommentVNode as p, createElementBlock as T, normalizeClass as U, toDisplayString as c, createTextVNode as V } from "vue";
|
|
2
2
|
import { VftTooltip as $ } from "../tooltip/index.js";
|
|
3
3
|
import { EVENT_CODE as i } from "../../constants/aria.js";
|
|
4
4
|
import "@vueuse/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as t, inject as m, watch as i, onBeforeUnmount as l,
|
|
1
|
+
import { defineComponent as t, inject as m, watch as i, onBeforeUnmount as l, openBlock as c, createElementBlock as _, normalizeStyle as u, unref as o, normalizeClass as w } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -35,7 +35,7 @@ const E = t({
|
|
|
35
35
|
* @description Arrow element
|
|
36
36
|
*/
|
|
37
37
|
arrowRef: r
|
|
38
|
-
}), (e, N) => (
|
|
38
|
+
}), (e, N) => (c(), _("span", {
|
|
39
39
|
ref_key: "arrowRef",
|
|
40
40
|
ref: r,
|
|
41
41
|
class: w(o(f).e("arrow")),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, getCurrentInstance as D, inject as J, provide as y, onMounted as U, watch as f, unref as e, onBeforeUnmount as W,
|
|
1
|
+
import { defineComponent as C, getCurrentInstance as D, inject as J, provide as y, onMounted as U, watch as f, unref as e, onBeforeUnmount as W, openBlock as Y, createElementBlock as Z, mergeProps as G, createVNode as H, withCtx as Q, renderSlot as X } from "vue";
|
|
2
2
|
import _ from "../focus-trap/focus-trap.vue.js";
|
|
3
3
|
import "../focus-trap/utils.js";
|
|
4
4
|
import { noop as R, isElement as P } from "@vft/utils";
|
|
@@ -120,7 +120,7 @@ const ne = C({
|
|
|
120
120
|
* @description content style
|
|
121
121
|
*/
|
|
122
122
|
contentStyle: c
|
|
123
|
-
}), (r, a) => (
|
|
123
|
+
}), (r, a) => (Y(), Z("div", G({
|
|
124
124
|
ref_key: "contentRef",
|
|
125
125
|
ref: n
|
|
126
126
|
}, e($), {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, getCurrentInstance as C, inject as y, computed as s, onMounted as x, watch as l, onBeforeUnmount as E,
|
|
1
|
+
import { defineComponent as g, getCurrentInstance as C, inject as y, computed as s, onMounted as x, watch as l, onBeforeUnmount as E, openBlock as B, createBlock as w, unref as A, mergeProps as M, withCtx as P, renderSlot as R, createCommentVNode as T } from "vue";
|
|
2
2
|
import { isElement as v } from "@vft/utils";
|
|
3
3
|
import { OnlyChild as k } from "../slot/only-child.js";
|
|
4
4
|
import { unrefElement as L } from "@vueuse/core";
|
|
@@ -99,14 +99,14 @@ const O = g({
|
|
|
99
99
|
* @description trigger element
|
|
100
100
|
*/
|
|
101
101
|
triggerRef: n
|
|
102
|
-
}), (e, d) => o.virtualTriggering ?
|
|
102
|
+
}), (e, d) => o.virtualTriggering ? T("", !0) : (B(), w(A(k), M({ key: 0 }, e.$attrs, {
|
|
103
103
|
"aria-controls": p.value,
|
|
104
104
|
"aria-describedby": c.value,
|
|
105
105
|
"aria-expanded": m.value,
|
|
106
106
|
"aria-haspopup": u.value
|
|
107
107
|
}), {
|
|
108
|
-
default:
|
|
109
|
-
|
|
108
|
+
default: P(() => [
|
|
109
|
+
R(e.$slots, "default")
|
|
110
110
|
]),
|
|
111
111
|
_: 3
|
|
112
112
|
}, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"]));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as T, computed as r,
|
|
1
|
+
import { defineComponent as T, computed as r, openBlock as o, createElementBlock as i, normalizeClass as l, unref as a, createElementVNode as f, normalizeStyle as c, renderSlot as C, toDisplayString as D, createCommentVNode as y, createBlock as A, normalizeProps as L, mergeProps as M } from "vue";
|
|
2
2
|
import { isFunction as E, isString as I } from "@vft/utils";
|
|
3
3
|
import { VftIcon as O } from "../icon/index.js";
|
|
4
4
|
import "@vueuse/core";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as e,
|
|
1
|
+
import { defineComponent as e, openBlock as o, createElementBlock as n } from "vue";
|
|
2
2
|
const p = /* @__PURE__ */ e({
|
|
3
3
|
__name: "progress-i",
|
|
4
4
|
setup(r) {
|
|
5
|
-
return console.log(1), (t, c) => (
|
|
5
|
+
return console.log(1), (t, c) => (o(), n("div", null, "1"));
|
|
6
6
|
}
|
|
7
7
|
});
|
|
8
8
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, ref as w, onMounted as g, getCurrentInstance as v, watch as h,
|
|
1
|
+
import { defineComponent as f, ref as w, onMounted as g, getCurrentInstance as v, watch as h, openBlock as l, createElementBlock as p, createBlock as C, resolveDynamicComponent as x, unref as c } from "vue";
|
|
2
2
|
import { downloadByUrl as y } from "@vft/utils";
|
|
3
3
|
import { toDataURL as E } from "qrcode";
|
|
4
4
|
import { toCanvas as L } from "./toCanvas.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, computed as C,
|
|
1
|
+
import { defineComponent as f, computed as C, openBlock as g, createElementBlock as N, normalizeClass as u, unref as e, withDirectives as V, createElementVNode as p, withModifiers as b, isRef as $, vModelRadio as R, normalizeStyle as w, renderSlot as x, createTextVNode as z, toDisplayString as D } 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 F = ["value", "name", "disabled"], G = f({
|
|
|
30
30
|
boxShadow: l?.fill ? `-1px 0 0 0 ${l.fill}` : "",
|
|
31
31
|
color: l?.textColor || ""
|
|
32
32
|
}));
|
|
33
|
-
return (m, o) => (
|
|
33
|
+
return (m, o) => (g(), N("label", {
|
|
34
34
|
class: u([
|
|
35
35
|
e(t).b("button"),
|
|
36
36
|
e(t).is("active", e(i) === e(s)),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, ref as E, onMounted as B, computed as k, provide as _, reactive as h, toRefs as C, watch as x,
|
|
1
|
+
import { defineComponent as p, ref as E, onMounted as B, computed as k, provide as _, reactive as h, toRefs as C, watch as x, openBlock as i, createElementBlock as u, unref as a, normalizeClass as z, Fragment as N, renderList as A, createBlock as F, resolveDynamicComponent as G, renderSlot as L, nextTick as T } from "vue";
|
|
2
2
|
import "../form/index.js";
|
|
3
3
|
import { UPDATE_MODEL_EVENT as c, CHANGE_EVENT as V } from "../../constants/event.js";
|
|
4
4
|
import "@vueuse/core";
|
|
@@ -65,7 +65,7 @@ const K = ["id", "aria-label", "aria-labelledby"], O = p({
|
|
|
65
65
|
"aria-label": a(s) ? void 0 : r.label || "radio-group",
|
|
66
66
|
"aria-labelledby": a(s) ? a(l)?.labelId : void 0
|
|
67
67
|
}, [
|
|
68
|
-
r.options ? (i(!0), u(
|
|
68
|
+
r.options ? (i(!0), u(N, { key: 0 }, A(r.options, (o) => (i(), F(G(r.useButton ? q : M), {
|
|
69
69
|
size: o.size,
|
|
70
70
|
disabled: o.disabled,
|
|
71
71
|
label: o.label,
|
|
@@ -73,7 +73,7 @@ const K = ["id", "aria-label", "aria-labelledby"], O = p({
|
|
|
73
73
|
name: o.name,
|
|
74
74
|
border: o.border,
|
|
75
75
|
key: o.value
|
|
76
|
-
}, null, 8, ["size", "disabled", "label", "value", "name", "border"]))), 128)) :
|
|
76
|
+
}, null, 8, ["size", "disabled", "label", "value", "name", "border"]))), 128)) : L(e.$slots, "default", { key: 1 })
|
|
77
77
|
], 10, K));
|
|
78
78
|
}
|
|
79
79
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f,
|
|
1
|
+
import { defineComponent as f, openBlock as R, createElementBlock as $, normalizeClass as n, unref as e, createElementVNode as r, withDirectives as y, withModifiers as u, isRef as w, vModelRadio as B, renderSlot as N, createTextVNode as z, toDisplayString as D, nextTick as E } from "vue";
|
|
2
2
|
import { radioProps as M } from "./radio.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "@vft/utils";
|
|
@@ -21,7 +21,7 @@ const h = ["value", "name", "disabled", "checked"], F = f({
|
|
|
21
21
|
function V() {
|
|
22
22
|
E(() => d("change", s.value));
|
|
23
23
|
}
|
|
24
|
-
return (l, i) => (
|
|
24
|
+
return (l, i) => (R(), $("label", {
|
|
25
25
|
class: n([
|
|
26
26
|
e(o).b(),
|
|
27
27
|
e(o).is("disabled", e(m)),
|