vft 0.0.74 → 0.0.76
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/es/component.js +67 -48
- package/es/components/affix/affix.js +45 -0
- package/es/components/affix/affix.vue.js +4 -0
- package/es/components/affix/affix.vue2.js +83 -0
- package/es/components/affix/index.js +12 -0
- package/es/components/affix/style/css.js +2 -0
- package/es/components/affix/style/index.js +2 -0
- package/es/components/back-top/back-top.vue2.js +10 -2
- package/es/components/button/button.vue2.js +58 -59
- package/es/components/button/use-button.js +26 -20
- package/es/components/card/card.vue.js +4 -0
- package/es/components/card/card.vue2.js +44 -0
- package/es/components/card/index.js +12 -0
- package/es/components/card/instance.js +1 -0
- package/es/components/card/style/css.js +2 -0
- package/es/components/card/style/index.js +2 -0
- package/es/components/check-tag/check-tag.vue.js +4 -0
- package/es/components/check-tag/check-tag.vue2.js +35 -0
- package/es/components/check-tag/index.js +12 -0
- package/es/components/check-tag/style/css.js +2 -0
- package/es/components/check-tag/style/index.js +2 -0
- package/es/components/color-picker/color-picker.vue2.js +1 -1
- package/es/components/context-menu/context-menu.vue2.js +10 -2
- package/es/components/date-picker/composables/use-month-range-header.js +1 -1
- package/es/components/date-picker/constants.js +16 -2
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +37 -34
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +0 -1
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +177 -178
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +328 -336
- package/es/components/date-picker/date-picker.js +18 -18
- package/es/components/date-picker/index.js +5 -4
- package/es/components/date-picker/props/shared.js +1 -1
- package/es/components/date-time-select/date-time-select.vue2.js +59 -59
- package/es/components/dialog/dialog.vue2.js +12 -12
- package/es/components/dialog/hooks/use-dialog.js +4 -4
- package/es/components/dropdown/dropdown-menu.vue2.js +4 -4
- package/es/components/footer-layout/footer-layout.vue2.js +10 -2
- package/es/components/header-layout/header-layout.vue2.js +10 -2
- package/es/components/horizontal-menu/constants.js +4 -0
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +153 -86
- package/es/components/horizontal-menu/index.js +7 -5
- package/es/components/index.js +228 -194
- package/es/components/md-container/md-container.vue2.js +10 -2
- package/es/components/menu/menu-item.vue2.js +58 -58
- package/es/components/menu/menu.vue2.js +72 -68
- package/es/components/menu/sub-menu.vue2.js +139 -117
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +35 -26
- package/es/components/option/style/css.js +2 -0
- package/es/components/option/style/index.js +2 -0
- package/es/components/option-group/style/css.js +2 -0
- package/es/components/option-group/style/index.js +2 -0
- package/es/components/popconfirm/index.js +12 -0
- package/es/components/popconfirm/popconfirm.vue.js +4 -0
- package/es/components/popconfirm/popconfirm.vue2.js +112 -0
- package/es/components/popconfirm/style/css.js +6 -0
- package/es/components/popconfirm/style/index.js +6 -0
- package/es/components/result/result.vue2.js +10 -2
- package/es/components/roving-focus-group/roving-focus-item.vue2.js +1 -1
- package/es/components/select/index.js +22 -0
- package/es/components/select/option-group.vue.js +25 -0
- package/es/components/select/option-group.vue2.js +53 -0
- package/es/components/select/option.vue.js +27 -0
- package/es/components/select/option.vue2.js +58 -0
- package/es/components/select/options.js +34 -0
- package/es/components/select/select-dropdown.vue.js +15 -0
- package/es/components/select/select-dropdown.vue2.js +32 -0
- package/es/components/select/select.vue.js +327 -0
- package/es/components/select/select.vue2.js +348 -0
- package/es/components/select/style/css.js +8 -0
- package/es/components/select/style/index.js +8 -0
- package/es/components/select/token.js +5 -0
- package/es/components/select/useOption.js +71 -0
- package/es/components/select/useSelect.js +414 -0
- package/es/components/select-v2/select-dropdown.js +1 -1
- package/es/components/select-v2/useSelect.js +269 -269
- package/es/components/side-menu/side-menu.vue2.js +153 -142
- package/es/components/skeleton/index.js +16 -0
- package/es/components/skeleton/skeleton-item.vue.js +4 -0
- package/es/components/skeleton/skeleton-item.vue2.js +31 -0
- package/es/components/skeleton/skeleton.vue.js +4 -0
- package/es/components/skeleton/skeleton.vue2.js +55 -0
- package/es/components/skeleton/style/css.js +3 -0
- package/es/components/skeleton/style/index.js +3 -0
- package/es/components/skeleton-item/style/css.js +2 -0
- package/es/components/skeleton-item/style/index.js +2 -0
- package/es/components/space/index.js +17 -0
- package/es/components/space/item.js +24 -0
- package/es/components/space/space.js +182 -0
- package/es/components/space/style/css.js +2 -0
- package/es/components/space/style/index.js +2 -0
- package/es/components/space/use-space.js +44 -0
- package/es/components/switch/switch.vue2.js +1 -1
- package/es/components/tabs/tab-nav.vue2.js +30 -22
- package/es/components/tabs/tabs.vue2.js +37 -37
- package/es/components/time-picker/common/picker.vue2.js +241 -257
- package/es/components/time-picker/common/props.js +10 -6
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +1 -1
- package/es/components/time-picker/time-picker.js +10 -10
- package/es/components/time-select/time-select.vue2.js +38 -42
- package/es/components/tooltip/content.vue2.js +1 -1
- package/es/components/tree/index.js +14 -0
- package/es/components/tree/model/node.js +248 -0
- package/es/components/tree/model/tree-store.js +197 -0
- package/es/components/tree/model/useDragNode.js +71 -0
- package/es/components/tree/model/useKeydown.js +81 -0
- package/es/components/tree/model/useNodeExpandEventBroadcast.js +19 -0
- package/es/components/tree/model/util.js +21 -0
- package/es/components/tree/style/css.js +3 -0
- package/es/components/tree/style/index.js +3 -0
- package/es/components/tree/tree-node-content.vue.js +4 -0
- package/es/components/tree/tree-node-content.vue2.js +28 -0
- package/es/components/tree/tree-node.vue.js +98 -0
- package/es/components/tree/tree-node.vue2.js +152 -0
- package/es/components/tree/tree.type.js +1 -0
- package/es/components/tree/tree.vue.js +48 -0
- package/es/components/tree/tree.vue2.js +268 -0
- package/es/components/tree-select/cache-options.js +32 -0
- package/es/components/tree-select/index.js +9 -0
- package/es/components/tree-select/select.js +38 -0
- package/es/components/tree-select/style/css.js +11 -0
- package/es/components/tree-select/style/index.js +11 -0
- package/es/components/tree-select/tree-select-option.js +21 -0
- package/es/components/tree-select/tree-select.vue.js +4 -0
- package/es/components/tree-select/tree-select.vue2.js +81 -0
- package/es/components/tree-select/tree.js +137 -0
- package/es/components/tree-select/utils.js +45 -0
- package/es/hooks/index.js +25 -21
- package/es/hooks/use-focus/index.js +9 -0
- package/es/hooks/use-throttle-render/index.js +21 -0
- package/es/index.js +408 -368
- package/es/package.json.js +1 -1
- package/es/utils/helper.js +5 -2
- package/es/utils/index.js +48 -46
- package/lib/component.cjs +1 -1
- package/lib/components/affix/affix.cjs +1 -0
- package/lib/components/affix/affix.vue.cjs +1 -0
- package/lib/components/affix/affix.vue2.cjs +1 -0
- package/lib/components/affix/index.cjs +1 -0
- package/lib/components/affix/style/css.cjs +1 -0
- package/lib/components/affix/style/index.cjs +1 -0
- package/lib/components/back-top/back-top.vue2.cjs +1 -1
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/card/card.vue.cjs +1 -0
- package/lib/components/card/card.vue2.cjs +1 -0
- package/lib/components/card/index.cjs +1 -0
- package/lib/components/card/instance.cjs +1 -0
- package/lib/components/card/style/css.cjs +1 -0
- package/lib/components/card/style/index.cjs +1 -0
- package/lib/components/check-tag/check-tag.vue.cjs +1 -0
- package/lib/components/check-tag/check-tag.vue2.cjs +1 -0
- package/lib/components/check-tag/index.cjs +1 -0
- package/lib/components/check-tag/style/css.cjs +1 -0
- package/lib/components/check-tag/style/index.cjs +1 -0
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
- package/lib/components/date-picker/constants.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-picker/date-picker.cjs +1 -1
- package/lib/components/date-picker/index.cjs +1 -1
- package/lib/components/date-picker/props/shared.cjs +1 -1
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/dialog/dialog.vue2.cjs +1 -1
- package/lib/components/dialog/hooks/use-dialog.cjs +1 -1
- package/lib/components/dropdown/dropdown-menu.vue2.cjs +1 -1
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/horizontal-menu/constants.cjs +1 -0
- package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
- package/lib/components/horizontal-menu/index.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/menu.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/option/style/css.cjs +1 -0
- package/lib/components/option/style/index.cjs +1 -0
- package/lib/components/option-group/style/css.cjs +1 -0
- package/lib/components/option-group/style/index.cjs +1 -0
- package/lib/components/popconfirm/index.cjs +1 -0
- package/lib/components/popconfirm/popconfirm.vue.cjs +1 -0
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -0
- package/lib/components/popconfirm/style/css.cjs +1 -0
- package/lib/components/popconfirm/style/index.cjs +1 -0
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/roving-focus-group/roving-focus-item.vue2.cjs +1 -1
- package/lib/components/select/index.cjs +1 -0
- package/lib/components/select/option-group.vue.cjs +1 -0
- package/lib/components/select/option-group.vue2.cjs +1 -0
- package/lib/components/select/option.vue.cjs +1 -0
- package/lib/components/select/option.vue2.cjs +1 -0
- package/lib/components/select/options.cjs +1 -0
- package/lib/components/select/select-dropdown.vue.cjs +1 -0
- package/lib/components/select/select-dropdown.vue2.cjs +1 -0
- package/lib/components/select/select.vue.cjs +1 -0
- package/lib/components/select/select.vue2.cjs +1 -0
- package/lib/components/select/style/css.cjs +1 -0
- package/lib/components/select/style/index.cjs +1 -0
- package/lib/components/select/token.cjs +1 -0
- package/lib/components/select/useOption.cjs +1 -0
- package/lib/components/select/useSelect.cjs +1 -0
- package/lib/components/select-v2/select-dropdown.cjs +1 -1
- package/lib/components/select-v2/useSelect.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/skeleton/index.cjs +1 -0
- package/lib/components/skeleton/skeleton-item.vue.cjs +1 -0
- package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -0
- package/lib/components/skeleton/skeleton.vue.cjs +1 -0
- package/lib/components/skeleton/skeleton.vue2.cjs +1 -0
- package/lib/components/skeleton/style/css.cjs +1 -0
- package/lib/components/skeleton/style/index.cjs +1 -0
- package/lib/components/skeleton-item/style/css.cjs +1 -0
- package/lib/components/skeleton-item/style/index.cjs +1 -0
- package/lib/components/space/index.cjs +1 -0
- package/lib/components/space/item.cjs +1 -0
- package/lib/components/space/space.cjs +1 -0
- package/lib/components/space/style/css.cjs +1 -0
- package/lib/components/space/style/index.cjs +1 -0
- package/lib/components/space/use-space.cjs +1 -0
- package/lib/components/switch/switch.vue2.cjs +1 -1
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
- package/lib/components/time-picker/common/props.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker.cjs +1 -1
- package/lib/components/time-select/time-select.vue2.cjs +1 -1
- package/lib/components/tooltip/content.vue2.cjs +1 -1
- package/lib/components/tree/index.cjs +1 -0
- package/lib/components/tree/model/node.cjs +1 -0
- package/lib/components/tree/model/tree-store.cjs +1 -0
- package/lib/components/tree/model/useDragNode.cjs +1 -0
- package/lib/components/tree/model/useKeydown.cjs +1 -0
- package/lib/components/tree/model/useNodeExpandEventBroadcast.cjs +1 -0
- package/lib/components/tree/model/util.cjs +1 -0
- package/lib/components/tree/style/css.cjs +1 -0
- package/lib/components/tree/style/index.cjs +1 -0
- package/lib/components/tree/tree-node-content.vue.cjs +1 -0
- package/lib/components/tree/tree-node-content.vue2.cjs +1 -0
- package/lib/components/tree/tree-node.vue.cjs +1 -0
- package/lib/components/tree/tree-node.vue2.cjs +1 -0
- package/lib/components/tree/tree.type.cjs +1 -0
- package/lib/components/tree/tree.vue.cjs +1 -0
- package/lib/components/tree/tree.vue2.cjs +1 -0
- package/lib/components/tree-select/cache-options.cjs +1 -0
- package/lib/components/tree-select/index.cjs +1 -0
- package/lib/components/tree-select/select.cjs +1 -0
- package/lib/components/tree-select/style/css.cjs +1 -0
- package/lib/components/tree-select/style/index.cjs +1 -0
- package/lib/components/tree-select/tree-select-option.cjs +1 -0
- package/lib/components/tree-select/tree-select.vue.cjs +1 -0
- package/lib/components/tree-select/tree-select.vue2.cjs +1 -0
- package/lib/components/tree-select/tree.cjs +1 -0
- package/lib/components/tree-select/utils.cjs +1 -0
- package/lib/hooks/index.cjs +1 -1
- package/lib/hooks/use-focus/index.cjs +1 -0
- package/lib/hooks/use-throttle-render/index.cjs +1 -0
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/utils/helper.cjs +1 -1
- package/lib/utils/index.cjs +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-style/base.css +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/alert.scss +1 -1
- package/theme-style/src/autocomplete.scss +2 -2
- package/theme-style/src/breadcrumb.scss +4 -4
- package/theme-style/src/calendar.scss +2 -2
- package/theme-style/src/card.scss +1 -1
- package/theme-style/src/carousel.scss +1 -1
- package/theme-style/src/cascader.scss +3 -3
- package/theme-style/src/check-tag.scss +3 -3
- package/theme-style/src/checkbox.scss +1 -1
- package/theme-style/src/color-picker.scss +2 -2
- package/theme-style/src/common/var.scss +527 -521
- package/theme-style/src/date-picker/date-picker.scss +1 -1
- package/theme-style/src/date-picker/date-range-picker.scss +2 -2
- package/theme-style/src/date-picker/date-table.scss +1 -1
- package/theme-style/src/date-picker/month-table.scss +2 -2
- package/theme-style/src/date-picker/picker-panel.scss +4 -5
- package/theme-style/src/date-picker/picker.scss +7 -9
- package/theme-style/src/date-picker/time-picker.scss +2 -2
- package/theme-style/src/date-picker/time-spinner.scss +6 -8
- package/theme-style/src/date-picker/year-table.scss +3 -3
- package/theme-style/src/date-time-select.scss +3 -4
- package/theme-style/src/descriptions-item.scss +4 -4
- package/theme-style/src/descriptions.scss +2 -2
- package/theme-style/src/header-layout.scss +1 -1
- package/theme-style/src/horizontal-menu.scss +27 -39
- package/theme-style/src/image-viewer.scss +1 -1
- package/theme-style/src/index.scss +3 -0
- package/theme-style/src/input-number.scss +1 -1
- package/theme-style/src/menu.scss +76 -66
- package/theme-style/src/mixins/_var.scss +2 -2
- package/theme-style/src/mixins/mixins.scss +2 -2
- package/theme-style/src/popconfirm.scss +16 -0
- package/theme-style/src/popper.scss +4 -2
- package/theme-style/src/progress.scss +1 -1
- package/theme-style/src/reset.scss +3 -3
- package/theme-style/src/result.scss +2 -2
- package/theme-style/src/select-dropdown-v2.scss +1 -1
- package/theme-style/src/select-dropdown.scss +1 -1
- package/theme-style/src/select-v2.scss +2 -2
- package/theme-style/src/select.scss +4 -5
- package/theme-style/src/skeleton-item.scss +83 -0
- package/theme-style/src/skeleton.scss +44 -0
- package/theme-style/src/step.scss +10 -10
- package/theme-style/src/tabs.scss +15 -155
- package/theme-style/src/timeline-item.scss +2 -2
- package/theme-style/src/transfer.scss +5 -5
- package/theme-style/src/tree.scss +2 -5
- package/theme-style/src/upload.scss +11 -11
- package/theme-style/src/var.scss +1 -1
- package/theme-style/vft-alert.css +1 -1
- package/theme-style/vft-autocomplete.css +1 -1
- package/theme-style/vft-breadcrumb.css +1 -1
- package/theme-style/vft-calendar.css +1 -1
- package/theme-style/vft-card.css +1 -1
- package/theme-style/vft-carousel.css +1 -1
- package/theme-style/vft-cascader.css +1 -1
- package/theme-style/vft-check-tag.css +1 -1
- package/theme-style/vft-checkbox.css +1 -1
- package/theme-style/vft-color-picker.css +1 -1
- package/theme-style/vft-date-picker.css +1 -1
- package/theme-style/vft-date-time-select.css +1 -1
- package/theme-style/vft-descriptions-item.css +1 -1
- package/theme-style/vft-descriptions.css +1 -1
- package/theme-style/vft-header-layout.css +1 -1
- package/theme-style/vft-horizontal-menu.css +1 -1
- package/theme-style/vft-image-viewer.css +1 -1
- package/theme-style/vft-input-number.css +1 -1
- package/theme-style/vft-menu.css +1 -1
- package/theme-style/vft-popconfirm.css +1 -0
- package/theme-style/vft-popper.css +1 -1
- package/theme-style/vft-progress.css +1 -1
- package/theme-style/vft-reset.css +1 -1
- package/theme-style/vft-result.css +1 -1
- package/theme-style/vft-select-dropdown-v2.css +1 -1
- package/theme-style/vft-select-dropdown.css +1 -1
- package/theme-style/vft-select-v2.css +1 -1
- package/theme-style/vft-select.css +1 -1
- package/theme-style/vft-skeleton-item.css +1 -0
- package/theme-style/vft-skeleton.css +1 -0
- package/theme-style/vft-step.css +1 -1
- package/theme-style/vft-tabs.css +1 -1
- package/theme-style/vft-time-picker.css +1 -1
- package/theme-style/vft-time-select.css +1 -1
- package/theme-style/vft-timeline-item.css +1 -1
- package/theme-style/vft-transfer.css +1 -1
- package/theme-style/vft-tree.css +1 -1
- package/theme-style/vft-upload.css +1 -1
- package/theme-style/vft-var.css +1 -1
- package/web-types.json +1 -1
package/es/component.js
CHANGED
|
@@ -9,30 +9,30 @@ import { VftBackTop as V } from "./components/back-top/index.js";
|
|
|
9
9
|
import { VftPopover as e } from "./components/popover/index.js";
|
|
10
10
|
import { VftPopper as a } from "./components/popper/index.js";
|
|
11
11
|
import { VftLogo as n } from "./components/logo/index.js";
|
|
12
|
-
import { VftIconText as
|
|
13
|
-
import { VftImage as
|
|
14
|
-
import { VftFullScreen as
|
|
15
|
-
import { VftInput as
|
|
12
|
+
import { VftIconText as l } from "./components/icon-text/index.js";
|
|
13
|
+
import { VftImage as u } from "./components/image/index.js";
|
|
14
|
+
import { VftFullScreen as c } from "./components/full-screen/index.js";
|
|
15
|
+
import { VftInput as d } from "./components/input/index.js";
|
|
16
16
|
import { VftLink as C } from "./components/link/index.js";
|
|
17
|
-
import { VftTag as
|
|
18
|
-
import { VftQrcode as
|
|
19
|
-
import { VftOverlay as
|
|
20
|
-
import { VftSideMenu as
|
|
17
|
+
import { VftTag as T } from "./components/tag/index.js";
|
|
18
|
+
import { VftQrcode as s } from "./components/qrcode/index.js";
|
|
19
|
+
import { VftOverlay as M } from "./components/overlay/index.js";
|
|
20
|
+
import { VftSideMenu as S } from "./components/side-menu/index.js";
|
|
21
21
|
import { VftClamp as g } from "./components/clamp/index.js";
|
|
22
22
|
import { VftPageWrapper as I } from "./components/page-wrapper/index.js";
|
|
23
|
-
import { VftClampToggle as
|
|
24
|
-
import { VftRouterViewContent as
|
|
25
|
-
import { VftIframeLayout as
|
|
26
|
-
import { VftFooterLayout as
|
|
23
|
+
import { VftClampToggle as b } from "./components/clamp-toggle/index.js";
|
|
24
|
+
import { VftRouterViewContent as k } from "./components/router-view-content/index.js";
|
|
25
|
+
import { VftIframeLayout as P } from "./components/iframe-layout/index.js";
|
|
26
|
+
import { VftFooterLayout as D } from "./components/footer-layout/index.js";
|
|
27
27
|
import { VftHeaderLayout as w } from "./components/header-layout/index.js";
|
|
28
28
|
import { VftPagination as y } from "./components/pagination/index.js";
|
|
29
|
-
import { VftTabs as
|
|
30
|
-
import { VftForm as
|
|
29
|
+
import { VftTabs as h, VftTabPane as x } from "./components/tabs/index.js";
|
|
30
|
+
import { VftForm as L, VftFormItem as R } from "./components/form/index.js";
|
|
31
31
|
import { VftDescriptions as v, VftDescriptionsItem as B } from "./components/descriptions/index.js";
|
|
32
32
|
import { VftMultipleTabs as F } from "./components/multiple-tabs/index.js";
|
|
33
33
|
import { VftCollapseTransition as G } from "./components/collapse-transition/index.js";
|
|
34
|
-
import { VftMenu as H, VftMenuItem as
|
|
35
|
-
import { VftException as
|
|
34
|
+
import { VftMenu as H, VftMenuItem as O, VftMenuItemGroup as A, VftSubMenu as E } from "./components/menu/index.js";
|
|
35
|
+
import { VftException as z } from "./components/exception/index.js";
|
|
36
36
|
import { VftSearch as Q } from "./components/search/index.js";
|
|
37
37
|
import { VftButton as W, VftButtonGroup as j } from "./components/button/index.js";
|
|
38
38
|
import { VftCheckboxGroup as q, VftCheckbox as J, VftCheckboxButton as K } from "./components/checkbox/index.js";
|
|
@@ -50,33 +50,52 @@ import { VftDialog as Vo } from "./components/dialog/index.js";
|
|
|
50
50
|
import { VftDateTimeSelect as eo } from "./components/date-time-select/index.js";
|
|
51
51
|
import { VftHorizontalMenu as ao } from "./components/horizontal-menu/index.js";
|
|
52
52
|
import { VftCol as no } from "./components/col/index.js";
|
|
53
|
-
import { VftRow as
|
|
54
|
-
import { VftTimePicker as
|
|
53
|
+
import { VftRow as lo } from "./components/row/index.js";
|
|
54
|
+
import { VftTimePicker as uo } from "./components/time-picker/index.js";
|
|
55
55
|
import { VftDatePicker as co } from "./components/date-picker/index.js";
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
|
|
56
|
+
import { VftCheckTag as Co } from "./components/check-tag/index.js";
|
|
57
|
+
import { VftTree as To } from "./components/tree/index.js";
|
|
58
|
+
import { VftSpace as so } from "./components/space/index.js";
|
|
59
|
+
import { VftCard as Mo } from "./components/card/index.js";
|
|
60
|
+
import { VftPopconfirm as So } from "./components/popconfirm/index.js";
|
|
61
|
+
import { VftTreeSelect as go } from "./components/tree-select/index.js";
|
|
62
|
+
import { VftSkeleton as Io, VftSkeletonItem as bo } from "./components/skeleton/index.js";
|
|
63
|
+
import { VftAside as ko, VftContainer as Po, VftFooter as Do, VftHeader as wo, VftMain as yo } from "./components/container/index.js";
|
|
64
|
+
import { VftOption as ho, VftOptionGroup as xo, VftSelect as Lo } from "./components/select/index.js";
|
|
65
|
+
import { VftMdComment as Ro } from "./components/md-comment/index.js";
|
|
66
|
+
import { VftMdTabs as vo } from "./components/md-tabs/index.js";
|
|
67
|
+
import { VftMdVuePlayground as Bo } from "./components/md-vue-playground/index.js";
|
|
68
|
+
import { VftMdCodeDemo as Fo } from "./components/md-code-demo/index.js";
|
|
69
|
+
import { VftMdCodeTabs as Go } from "./components/md-code-tabs/index.js";
|
|
70
|
+
import { VftMdContainer as Ho } from "./components/md-container/index.js";
|
|
71
|
+
const $t = [
|
|
72
|
+
go,
|
|
73
|
+
ho,
|
|
74
|
+
xo,
|
|
75
|
+
Lo,
|
|
64
76
|
So,
|
|
77
|
+
Mo,
|
|
78
|
+
so,
|
|
79
|
+
Io,
|
|
80
|
+
bo,
|
|
81
|
+
To,
|
|
82
|
+
Co,
|
|
83
|
+
Ho,
|
|
84
|
+
Go,
|
|
85
|
+
Fo,
|
|
86
|
+
Bo,
|
|
87
|
+
vo,
|
|
88
|
+
co,
|
|
89
|
+
Ro,
|
|
65
90
|
ko,
|
|
66
91
|
Po,
|
|
67
92
|
Do,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
go,
|
|
71
|
-
Co,
|
|
72
|
-
so,
|
|
73
|
-
Mo,
|
|
74
|
-
To,
|
|
75
|
-
bo,
|
|
93
|
+
wo,
|
|
94
|
+
yo,
|
|
76
95
|
ao,
|
|
77
96
|
no,
|
|
78
|
-
lo,
|
|
79
97
|
uo,
|
|
98
|
+
lo,
|
|
80
99
|
Vo,
|
|
81
100
|
eo,
|
|
82
101
|
po,
|
|
@@ -98,49 +117,49 @@ const Ft = [
|
|
|
98
117
|
K,
|
|
99
118
|
W,
|
|
100
119
|
j,
|
|
120
|
+
L,
|
|
101
121
|
R,
|
|
102
|
-
h,
|
|
103
122
|
Q,
|
|
104
123
|
I,
|
|
105
124
|
g,
|
|
106
|
-
|
|
125
|
+
b,
|
|
126
|
+
s,
|
|
107
127
|
M,
|
|
108
128
|
T,
|
|
109
|
-
|
|
110
|
-
b,
|
|
129
|
+
S,
|
|
111
130
|
y,
|
|
112
131
|
C,
|
|
113
|
-
c,
|
|
114
|
-
l,
|
|
115
|
-
u,
|
|
116
132
|
d,
|
|
133
|
+
u,
|
|
134
|
+
l,
|
|
135
|
+
c,
|
|
117
136
|
v,
|
|
118
137
|
B,
|
|
119
138
|
t,
|
|
120
139
|
V,
|
|
121
|
-
P,
|
|
122
140
|
k,
|
|
123
|
-
|
|
141
|
+
P,
|
|
142
|
+
D,
|
|
124
143
|
w,
|
|
125
144
|
n,
|
|
126
145
|
F,
|
|
127
146
|
H,
|
|
147
|
+
O,
|
|
128
148
|
A,
|
|
129
149
|
E,
|
|
130
|
-
z,
|
|
131
150
|
G,
|
|
132
151
|
o,
|
|
133
152
|
r,
|
|
134
153
|
f,
|
|
135
154
|
m,
|
|
136
155
|
i,
|
|
156
|
+
h,
|
|
137
157
|
x,
|
|
138
|
-
L,
|
|
139
158
|
p,
|
|
140
159
|
e,
|
|
141
160
|
a,
|
|
142
|
-
|
|
161
|
+
z
|
|
143
162
|
];
|
|
144
163
|
export {
|
|
145
|
-
|
|
164
|
+
$t as default
|
|
146
165
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { isNumber as e, isBoolean as o } from "@vft/utils";
|
|
2
|
+
import "vue";
|
|
3
|
+
import { buildProps as i } from "../../utils/vue/props/runtime.js";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import { CHANGE_EVENT as p } from "../../constants/event.js";
|
|
6
|
+
import "../../utils/ns-cover.js";
|
|
7
|
+
import "lodash";
|
|
8
|
+
const d = i({
|
|
9
|
+
/**
|
|
10
|
+
* @description affix element zIndex value
|
|
11
|
+
* */
|
|
12
|
+
zIndex: {
|
|
13
|
+
type: Number,
|
|
14
|
+
default: 100
|
|
15
|
+
},
|
|
16
|
+
/**
|
|
17
|
+
* @description target container. (CSS selector)
|
|
18
|
+
*/
|
|
19
|
+
target: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ""
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
* @description offset distance
|
|
25
|
+
* */
|
|
26
|
+
offset: {
|
|
27
|
+
type: Number,
|
|
28
|
+
default: 0
|
|
29
|
+
},
|
|
30
|
+
/**
|
|
31
|
+
* @description position of affix
|
|
32
|
+
* */
|
|
33
|
+
position: {
|
|
34
|
+
type: String,
|
|
35
|
+
values: ["top", "bottom"],
|
|
36
|
+
default: "top"
|
|
37
|
+
}
|
|
38
|
+
}), b = {
|
|
39
|
+
scroll: ({ scrollTop: t, fixed: r }) => e(t) && o(r),
|
|
40
|
+
[p]: (t) => o(t)
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
b as affixEmits,
|
|
44
|
+
d as affixProps
|
|
45
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { defineComponent as $, shallowRef as m, ref as v, computed as S, watch as M, onMounted as R, watchEffect as W, openBlock as A, createElementBlock as H, normalizeClass as _, unref as f, normalizeStyle as y, createElementVNode as I, renderSlot as O } from "vue";
|
|
2
|
+
import { useWindowSize as P, useElementBounding as T, useEventListener as q } from "@vueuse/core";
|
|
3
|
+
import { addUnit as L } from "@vft/utils";
|
|
4
|
+
import { throwError as U } from "../../utils/error.js";
|
|
5
|
+
import "lodash";
|
|
6
|
+
import "../../utils/ns-cover.js";
|
|
7
|
+
import { getScrollContainer as V } from "../../utils/dom/scroll.js";
|
|
8
|
+
import { useNamespace as Y } from "../../hooks/use-namespace/index.js";
|
|
9
|
+
import "@popperjs/core";
|
|
10
|
+
import "../../hooks/use-z-index/index.js";
|
|
11
|
+
import { affixProps as j, affixEmits as D } from "./affix.js";
|
|
12
|
+
const b = "ElAffix", F = $({
|
|
13
|
+
name: b
|
|
14
|
+
}), ne = /* @__PURE__ */ $({
|
|
15
|
+
...F,
|
|
16
|
+
props: j,
|
|
17
|
+
emits: D,
|
|
18
|
+
setup(z, { expose: C, emit: p }) {
|
|
19
|
+
const e = z, d = Y("affix"), a = m(), i = m(), l = m(), { height: r } = P(), {
|
|
20
|
+
height: n,
|
|
21
|
+
width: h,
|
|
22
|
+
top: g,
|
|
23
|
+
bottom: x,
|
|
24
|
+
update: c
|
|
25
|
+
} = T(i, { windowScroll: !1 }), s = T(a), o = v(!1), w = v(0), u = v(0), N = S(() => ({
|
|
26
|
+
height: o.value ? `${n.value}px` : "",
|
|
27
|
+
width: o.value ? `${h.value}px` : ""
|
|
28
|
+
})), B = S(() => {
|
|
29
|
+
if (!o.value)
|
|
30
|
+
return {};
|
|
31
|
+
const t = e.offset ? L(e.offset) : 0;
|
|
32
|
+
return {
|
|
33
|
+
height: `${n.value}px`,
|
|
34
|
+
width: `${h.value}px`,
|
|
35
|
+
top: e.position === "top" ? t : "",
|
|
36
|
+
bottom: e.position === "bottom" ? t : "",
|
|
37
|
+
transform: u.value ? `translateY(${u.value}px)` : "",
|
|
38
|
+
zIndex: e.zIndex
|
|
39
|
+
};
|
|
40
|
+
}), E = () => {
|
|
41
|
+
if (l.value)
|
|
42
|
+
if (w.value = l.value instanceof Window ? document.documentElement.scrollTop : l.value.scrollTop || 0, e.position === "top")
|
|
43
|
+
if (e.target) {
|
|
44
|
+
const t = s.bottom.value - e.offset - n.value;
|
|
45
|
+
o.value = e.offset > g.value && s.bottom.value > 0, u.value = t < 0 ? t : 0;
|
|
46
|
+
} else
|
|
47
|
+
o.value = e.offset > g.value;
|
|
48
|
+
else if (e.target) {
|
|
49
|
+
const t = r.value - s.top.value - e.offset - n.value;
|
|
50
|
+
o.value = r.value - e.offset < x.value && r.value > s.top.value, u.value = t < 0 ? -t : 0;
|
|
51
|
+
} else
|
|
52
|
+
o.value = r.value - e.offset < x.value;
|
|
53
|
+
}, k = () => {
|
|
54
|
+
c(), p("scroll", {
|
|
55
|
+
scrollTop: w.value,
|
|
56
|
+
fixed: o.value
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
return M(o, (t) => p("change", t)), R(() => {
|
|
60
|
+
e.target ? (a.value = document.querySelector(e.target) ?? void 0, a.value || U(b, `Target is not existed: ${e.target}`)) : a.value = document.documentElement, l.value = V(i.value, !0), c();
|
|
61
|
+
}), q(l, "scroll", k), W(E), C({
|
|
62
|
+
/** @description update affix status */
|
|
63
|
+
update: E,
|
|
64
|
+
/** @description update rootRect info */
|
|
65
|
+
updateRoot: c
|
|
66
|
+
}), (t, G) => (A(), H("div", {
|
|
67
|
+
ref_key: "root",
|
|
68
|
+
ref: i,
|
|
69
|
+
class: _(f(d).b()),
|
|
70
|
+
style: y(f(N))
|
|
71
|
+
}, [
|
|
72
|
+
I("div", {
|
|
73
|
+
class: _({ [f(d).m("fixed")]: o.value }),
|
|
74
|
+
style: y(f(B))
|
|
75
|
+
}, [
|
|
76
|
+
O(t.$slots, "default")
|
|
77
|
+
], 6)
|
|
78
|
+
], 6));
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
export {
|
|
82
|
+
ne as default
|
|
83
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { withInstall as t } from "../../utils/vue/install.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "@vft/utils";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import "@vueuse/core";
|
|
6
|
+
import "../../utils/ns-cover.js";
|
|
7
|
+
import o from "./affix.vue2.js";
|
|
8
|
+
const l = t(o);
|
|
9
|
+
export {
|
|
10
|
+
l as VftAffix,
|
|
11
|
+
l as default
|
|
12
|
+
};
|
|
@@ -51,6 +51,8 @@ import "../virtual-list/components/fixed-size-grid.js";
|
|
|
51
51
|
import "../virtual-list/components/dynamic-size-grid.js";
|
|
52
52
|
import "../virtual-list/props.js";
|
|
53
53
|
import "../select-v2/index.js";
|
|
54
|
+
import "../select/index.js";
|
|
55
|
+
import "../tree-select/index.js";
|
|
54
56
|
import "../verify-code/index.js";
|
|
55
57
|
import "../table/index.js";
|
|
56
58
|
import "../image-viewer/index.js";
|
|
@@ -62,6 +64,12 @@ import "../row/index.js";
|
|
|
62
64
|
import "../horizontal-menu/index.js";
|
|
63
65
|
import "../time-picker/index.js";
|
|
64
66
|
import "../date-picker/index.js";
|
|
67
|
+
import "../check-tag/index.js";
|
|
68
|
+
import "../tree/index.js";
|
|
69
|
+
import "../skeleton/index.js";
|
|
70
|
+
import "../space/index.js";
|
|
71
|
+
import "../card/index.js";
|
|
72
|
+
import "../popconfirm/index.js";
|
|
65
73
|
import "../md-container/index.js";
|
|
66
74
|
import "../md-comment/index.js";
|
|
67
75
|
import "../md-tabs/index.js";
|
|
@@ -81,7 +89,7 @@ const r = (
|
|
|
81
89
|
_("back-top")
|
|
82
90
|
), N = c({
|
|
83
91
|
name: r.b()
|
|
84
|
-
}),
|
|
92
|
+
}), so = /* @__PURE__ */ c({
|
|
85
93
|
...N,
|
|
86
94
|
props: {
|
|
87
95
|
visibilityHeight: { default: 200 },
|
|
@@ -124,5 +132,5 @@ const r = (
|
|
|
124
132
|
}
|
|
125
133
|
});
|
|
126
134
|
export {
|
|
127
|
-
|
|
135
|
+
so as default
|
|
128
136
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as C, computed as I, openBlock as l,
|
|
2
|
-
import { VftIcon as
|
|
3
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as C, computed as I, openBlock as l, createBlock as i, resolveDynamicComponent as v, mergeProps as y, unref as e, withCtx as A, createElementBlock as f, Fragment as N, renderSlot as k, normalizeClass as g, normalizeProps as P, createCommentVNode as B } from "vue";
|
|
2
|
+
import { VftIcon as b } from "../icon/index.js";
|
|
3
|
+
import { useNamespace as T } from "../../hooks/use-namespace/index.js";
|
|
4
4
|
import "@popperjs/core";
|
|
5
5
|
import "lodash";
|
|
6
6
|
import "../../hooks/use-z-index/index.js";
|
|
@@ -8,15 +8,16 @@ import "@vueuse/core";
|
|
|
8
8
|
import { singleAttrToObj as V } from "@vft/utils";
|
|
9
9
|
import "../../utils/ns-cover.js";
|
|
10
10
|
import { useButton as j } from "./use-button.js";
|
|
11
|
-
import { useButtonCustomStyle as
|
|
12
|
-
const
|
|
11
|
+
import { useButtonCustomStyle as w } from "./button-custom.js";
|
|
12
|
+
const o = (
|
|
13
13
|
/* hoist-static*/
|
|
14
|
-
|
|
15
|
-
),
|
|
14
|
+
T("button")
|
|
15
|
+
), D = C({
|
|
16
16
|
name: o.b()
|
|
17
17
|
}), U = /* @__PURE__ */ C({
|
|
18
|
-
...
|
|
18
|
+
...D,
|
|
19
19
|
props: {
|
|
20
|
+
tag: { default: "button" },
|
|
20
21
|
size: null,
|
|
21
22
|
disabled: { type: Boolean },
|
|
22
23
|
type: null,
|
|
@@ -37,62 +38,60 @@ const F = ["aria-disabled", "disabled", "autofocus", "type"], o = (
|
|
|
37
38
|
block: { type: Boolean }
|
|
38
39
|
},
|
|
39
40
|
emits: ["click"],
|
|
40
|
-
setup(t, { expose:
|
|
41
|
-
const
|
|
42
|
-
return
|
|
41
|
+
setup(t, { expose: h, emit: z }) {
|
|
42
|
+
const a = t, s = I(() => V(a.icon, "icon")), S = w(a), { _ref: r, _size: c, _type: u, _disabled: d, _props: x, shouldAddSpace: m, handleClick: $ } = j(a, z);
|
|
43
|
+
return h({
|
|
43
44
|
/** @description button html element */
|
|
44
|
-
ref:
|
|
45
|
+
ref: r,
|
|
45
46
|
/** @description button size */
|
|
46
|
-
size:
|
|
47
|
+
size: c,
|
|
47
48
|
/** @description button type */
|
|
48
|
-
type:
|
|
49
|
+
type: u,
|
|
49
50
|
/** @description button disabled */
|
|
50
|
-
disabled:
|
|
51
|
+
disabled: d,
|
|
51
52
|
/** @description whether adding space */
|
|
52
|
-
shouldAddSpace:
|
|
53
|
-
}), (
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
], 14, F);
|
|
95
|
-
};
|
|
53
|
+
shouldAddSpace: m
|
|
54
|
+
}), (n, E) => (l(), i(v(t.tag), y({
|
|
55
|
+
ref_key: "_ref",
|
|
56
|
+
ref: r
|
|
57
|
+
}, e(x), {
|
|
58
|
+
class: [
|
|
59
|
+
e(o).b(),
|
|
60
|
+
e(o).m(e(u)),
|
|
61
|
+
e(o).m(e(c)),
|
|
62
|
+
e(o).is("disabled", e(d)),
|
|
63
|
+
e(o).is("loading", t.loading),
|
|
64
|
+
e(o).is("plain", t.plain),
|
|
65
|
+
e(o).is("round", t.round),
|
|
66
|
+
e(o).is("circle", t.circle),
|
|
67
|
+
e(o).is("text", t.text),
|
|
68
|
+
e(o).is("link", t.link),
|
|
69
|
+
e(o).is("has-bg", t.bg)
|
|
70
|
+
],
|
|
71
|
+
style: e(S),
|
|
72
|
+
onClick: e($)
|
|
73
|
+
}), {
|
|
74
|
+
default: A(() => {
|
|
75
|
+
var p;
|
|
76
|
+
return [
|
|
77
|
+
t.loading ? (l(), f(N, { key: 0 }, [
|
|
78
|
+
n.$slots.loading ? k(n.$slots, "loading", { key: 0 }) : (l(), i(e(b), {
|
|
79
|
+
key: 1,
|
|
80
|
+
rotate: "",
|
|
81
|
+
class: g(e(o).is("loading")),
|
|
82
|
+
icon: "ico-ep:loading"
|
|
83
|
+
}, null, 8, ["class"]))
|
|
84
|
+
], 64)) : (p = e(s)) != null && p.icon ? (l(), i(e(b), P(y({ key: 1 }, e(s))), null, 16)) : B("", !0),
|
|
85
|
+
n.$slots.default ? (l(), f("span", {
|
|
86
|
+
key: 2,
|
|
87
|
+
class: g({ [e(o).em("text", "expand")]: e(m) })
|
|
88
|
+
}, [
|
|
89
|
+
k(n.$slots, "default")
|
|
90
|
+
], 2)) : B("", !0)
|
|
91
|
+
];
|
|
92
|
+
}),
|
|
93
|
+
_: 3
|
|
94
|
+
}, 16, ["class", "style", "onClick"]));
|
|
96
95
|
}
|
|
97
96
|
});
|
|
98
97
|
export {
|
|
@@ -1,39 +1,45 @@
|
|
|
1
|
-
import { inject as
|
|
1
|
+
import { inject as v, computed as i, ref as _, useSlots as b, Text as h } from "vue";
|
|
2
2
|
import "../form/index.js";
|
|
3
3
|
import "../config-provider/index.js";
|
|
4
|
-
import { buttonGroupContextKey as
|
|
5
|
-
import { useGlobalConfig as
|
|
6
|
-
import { useFormItem as
|
|
4
|
+
import { buttonGroupContextKey as I } from "./constants.js";
|
|
5
|
+
import { useGlobalConfig as S } from "../config-provider/hooks/use-global-config.js";
|
|
6
|
+
import { useFormItem as F } from "../form/hooks/use-form-item.js";
|
|
7
7
|
import { useFormSize as k, useFormDisabled as z } from "../form/hooks/use-form-common-props.js";
|
|
8
|
-
const
|
|
9
|
-
const
|
|
8
|
+
const $ = (t, u) => {
|
|
9
|
+
const o = v(I, void 0), l = S("button"), { form: s } = F(), d = k(i(() => o == null ? void 0 : o.size)), a = z(), f = _(), c = b(), m = i(() => t.type || (o == null ? void 0 : o.type) || ""), p = i(
|
|
10
10
|
() => {
|
|
11
11
|
var e;
|
|
12
|
-
return
|
|
12
|
+
return t.autoInsertSpace ?? ((e = l.value) == null ? void 0 : e.autoInsertSpace) ?? !1;
|
|
13
13
|
}
|
|
14
|
-
),
|
|
15
|
-
var
|
|
16
|
-
const e = (
|
|
14
|
+
), g = i(() => {
|
|
15
|
+
var r;
|
|
16
|
+
const e = (r = c.default) == null ? void 0 : r.call(c);
|
|
17
17
|
if (p.value && (e == null ? void 0 : e.length) === 1) {
|
|
18
|
-
const
|
|
19
|
-
if ((
|
|
20
|
-
const y =
|
|
18
|
+
const n = e[0];
|
|
19
|
+
if ((n == null ? void 0 : n.type) === h) {
|
|
20
|
+
const y = n.children;
|
|
21
21
|
return /^\p{Unified_Ideograph}{2}$/u.test(y.trim());
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
return !1;
|
|
25
25
|
});
|
|
26
26
|
return {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
_props: i(() => t.tag === "button" ? {
|
|
28
|
+
ariaDisabled: a.value || t.loading,
|
|
29
|
+
disabled: a.value || t.loading,
|
|
30
|
+
autofocus: t.autofocus,
|
|
31
|
+
type: t.nativeType
|
|
32
|
+
} : {}),
|
|
33
|
+
_disabled: a,
|
|
34
|
+
_size: d,
|
|
35
|
+
_type: m,
|
|
36
|
+
_ref: f,
|
|
37
|
+
shouldAddSpace: g,
|
|
32
38
|
handleClick: (e) => {
|
|
33
|
-
|
|
39
|
+
t.nativeType === "reset" && (s == null || s.resetFields()), u("click", e);
|
|
34
40
|
}
|
|
35
41
|
};
|
|
36
42
|
};
|
|
37
43
|
export {
|
|
38
|
-
|
|
44
|
+
$ as useButton
|
|
39
45
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent as m, openBlock as s, createElementBlock as d, normalizeClass as r, unref as a, renderSlot as l, createTextVNode as n, toDisplayString as i, createCommentVNode as c, createElementVNode as u, normalizeStyle as f } from "vue";
|
|
2
|
+
import { useNamespace as h } from "../../hooks/use-namespace/index.js";
|
|
3
|
+
import "@popperjs/core";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import "../../hooks/use-z-index/index.js";
|
|
6
|
+
import "@vueuse/core";
|
|
7
|
+
import "@vft/utils";
|
|
8
|
+
import "../../utils/ns-cover.js";
|
|
9
|
+
const e = (
|
|
10
|
+
/* hoist-static*/
|
|
11
|
+
h("card")
|
|
12
|
+
), p = m({
|
|
13
|
+
name: e.b()
|
|
14
|
+
}), V = /* @__PURE__ */ m({
|
|
15
|
+
...p,
|
|
16
|
+
props: {
|
|
17
|
+
header: { default: "" },
|
|
18
|
+
bodyStyle: { default: "" },
|
|
19
|
+
shadow: { default: "always" }
|
|
20
|
+
},
|
|
21
|
+
setup(t) {
|
|
22
|
+
return (o, y) => (s(), d("div", {
|
|
23
|
+
class: r([a(e).b(), a(e).is(`${t.shadow}-shadow`)])
|
|
24
|
+
}, [
|
|
25
|
+
o.$slots.header || t.header ? (s(), d("div", {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: r(a(e).e("header"))
|
|
28
|
+
}, [
|
|
29
|
+
l(o.$slots, "header", {}, () => [
|
|
30
|
+
n(i(t.header), 1)
|
|
31
|
+
])
|
|
32
|
+
], 2)) : c("", !0),
|
|
33
|
+
u("div", {
|
|
34
|
+
class: r(a(e).e("body")),
|
|
35
|
+
style: f(t.bodyStyle)
|
|
36
|
+
}, [
|
|
37
|
+
l(o.$slots, "default")
|
|
38
|
+
], 6)
|
|
39
|
+
], 2));
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
V as default
|
|
44
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { withInstall as t } from "../../utils/vue/install.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "@vft/utils";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import "@vueuse/core";
|
|
6
|
+
import "../../utils/ns-cover.js";
|
|
7
|
+
import o from "./card.vue2.js";
|
|
8
|
+
const l = t(o);
|
|
9
|
+
export {
|
|
10
|
+
l as VftCard,
|
|
11
|
+
l as default
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|