@varlet/ui 3.8.2 → 3.8.3-alpha.1736270430406
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/es/action-sheet/ActionItem.mjs +4 -4
- package/es/action-sheet/ActionSheet.mjs +9 -9
- package/es/action-sheet/index.mjs +2 -2
- package/es/action-sheet/props.mjs +1 -1
- package/es/alert/Alert.mjs +3 -3
- package/es/alert/index.mjs +1 -1
- package/es/app-bar/AppBar.mjs +5 -5
- package/es/app-bar/index.mjs +1 -1
- package/es/auto-complete/AutoComplete.mjs +23 -27
- package/es/auto-complete/index.mjs +1 -1
- package/es/auto-complete/props.mjs +1 -1
- package/es/avatar/Avatar.mjs +5 -5
- package/es/avatar/index.mjs +1 -1
- package/es/avatar-group/AvatarGroup.mjs +2 -2
- package/es/avatar-group/index.mjs +1 -1
- package/es/back-top/BackTop.mjs +7 -7
- package/es/back-top/index.mjs +1 -1
- package/es/badge/Badge.mjs +3 -3
- package/es/badge/index.mjs +1 -1
- package/es/badge/props.mjs +1 -1
- package/es/bottom-navigation/BottomNavigation.mjs +8 -9
- package/es/bottom-navigation/index.mjs +1 -1
- package/es/bottom-navigation-item/BottomNavigationItem.mjs +4 -4
- package/es/bottom-navigation-item/index.mjs +1 -1
- package/es/bottom-navigation-item/provide.mjs +1 -1
- package/es/breadcrumb/Breadcrumb.mjs +3 -3
- package/es/breadcrumb/index.mjs +1 -1
- package/es/breadcrumb/provide.mjs +1 -1
- package/es/breadcrumbs/Breadcrumbs.mjs +2 -2
- package/es/breadcrumbs/index.mjs +1 -1
- package/es/button/Button.mjs +6 -6
- package/es/button/index.mjs +1 -1
- package/es/button-group/ButtonGroup.mjs +1 -1
- package/es/button-group/index.mjs +1 -1
- package/es/card/Card.mjs +39 -39
- package/es/card/index.mjs +1 -1
- package/es/cell/Cell.mjs +3 -3
- package/es/cell/index.mjs +1 -1
- package/es/cell/props.mjs +1 -1
- package/es/checkbox/Checkbox.mjs +7 -7
- package/es/checkbox/index.mjs +1 -1
- package/es/checkbox-group/CheckboxGroup.mjs +5 -5
- package/es/checkbox-group/index.mjs +1 -1
- package/es/chip/Chip.mjs +4 -4
- package/es/chip/index.mjs +1 -1
- package/es/chip/props.mjs +1 -1
- package/es/code/Code.mjs +1 -1
- package/es/code/index.mjs +1 -1
- package/es/col/Col.mjs +4 -4
- package/es/col/index.mjs +1 -1
- package/es/collapse/Collapse.mjs +6 -4
- package/es/collapse/index.mjs +1 -1
- package/es/collapse-item/CollapseItem.mjs +4 -4
- package/es/collapse-item/index.mjs +1 -1
- package/es/collapse-item/provide.mjs +1 -1
- package/es/collapse-transition/CollapseTransition.mjs +2 -2
- package/es/collapse-transition/index.mjs +1 -1
- package/es/collapse-transition/useCollapseTransition.mjs +1 -1
- package/es/context/lock.mjs +1 -1
- package/es/context/stack.mjs +1 -1
- package/es/context/zIndex.mjs +1 -1
- package/es/count-to/CountTo.mjs +4 -4
- package/es/count-to/index.mjs +1 -1
- package/es/countdown/Countdown.mjs +2 -2
- package/es/countdown/index.mjs +1 -1
- package/es/counter/Counter.mjs +8 -8
- package/es/counter/index.mjs +1 -1
- package/es/date-picker/DatePicker.mjs +92 -43
- package/es/date-picker/index.mjs +1 -1
- package/es/date-picker/src/day-picker-panel.mjs +59 -27
- package/es/date-picker/src/month-picker-panel.mjs +57 -23
- package/es/date-picker/src/panel-header.mjs +12 -6
- package/es/date-picker/src/year-picker-panel.mjs +53 -23
- package/es/dialog/Dialog.mjs +5 -5
- package/es/dialog/index.mjs +3 -3
- package/es/dialog/props.mjs +1 -1
- package/es/divider/Divider.mjs +4 -4
- package/es/divider/index.mjs +1 -1
- package/es/drag/Drag.mjs +21 -42
- package/es/drag/index.mjs +1 -1
- package/es/ellipsis/Ellipsis.mjs +2 -2
- package/es/ellipsis/index.mjs +1 -1
- package/es/fab/Fab.mjs +4 -5
- package/es/fab/index.mjs +1 -1
- package/es/fab/props.mjs +1 -1
- package/es/field-decorator/FieldDecorator.mjs +5 -5
- package/es/field-decorator/index.mjs +1 -1
- package/es/floating-panel/FloatingPanel.mjs +6 -6
- package/es/floating-panel/index.mjs +1 -1
- package/es/form/Form.mjs +4 -4
- package/es/form/index.mjs +2 -2
- package/es/form/provide.mjs +1 -1
- package/es/form-details/index.mjs +1 -1
- package/es/highlighter-provider/HighlighterProvider.mjs +2 -2
- package/es/highlighter-provider/index.mjs +1 -1
- package/es/highlighter-provider/provide.mjs +1 -1
- package/es/hover/index.mjs +12 -7
- package/es/hover-overlay/HoverOverlay.mjs +2 -2
- package/es/hover-overlay/index.mjs +2 -2
- package/es/icon/Icon.mjs +3 -3
- package/es/icon/index.mjs +1 -1
- package/es/image/Image.mjs +5 -5
- package/es/image/index.mjs +1 -1
- package/es/image-preview/ImagePreview.mjs +13 -14
- package/es/image-preview/index.mjs +2 -2
- package/es/image-preview/props.mjs +2 -2
- package/es/index-anchor/IndexAnchor.mjs +5 -5
- package/es/index-anchor/index.mjs +1 -1
- package/es/index-anchor/provide.mjs +1 -1
- package/es/index-bar/IndexBar.mjs +17 -13
- package/es/index-bar/index.mjs +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +12 -12
- package/es/input/index.mjs +1 -1
- package/es/input/props.mjs +1 -1
- package/es/lazy/index.mjs +1 -1
- package/es/link/Link.mjs +2 -2
- package/es/link/index.mjs +1 -1
- package/es/list/List.mjs +10 -10
- package/es/list/index.mjs +1 -1
- package/es/list/provide.mjs +1 -1
- package/es/loading/Loading.mjs +2 -2
- package/es/loading/index.mjs +1 -1
- package/es/loading-bar/LoadingBar.mjs +1 -2
- package/es/loading-bar/index.mjs +1 -1
- package/es/locale/index.mjs +5 -5
- package/es/locale-provider/LocaleProvider.mjs +11 -8
- package/es/locale-provider/index.mjs +1 -1
- package/es/locale-provider/provide.mjs +1 -1
- package/es/menu/Menu.mjs +2 -2
- package/es/menu/index.mjs +1 -1
- package/es/menu/usePopover.mjs +6 -6
- package/es/menu-option/MenuOption.mjs +9 -9
- package/es/menu-option/index.mjs +1 -1
- package/es/menu-option/provide.mjs +1 -1
- package/es/menu-select/MenuChildren.mjs +21 -21
- package/es/menu-select/MenuSelect.mjs +9 -9
- package/es/menu-select/index.mjs +1 -1
- package/es/option/Option.mjs +5 -5
- package/es/option/index.mjs +1 -1
- package/es/option/provide.mjs +1 -1
- package/es/overlay/Overlay.mjs +4 -4
- package/es/overlay/index.mjs +1 -1
- package/es/pagination/Pagination.mjs +26 -18
- package/es/pagination/index.mjs +1 -1
- package/es/paper/Paper.mjs +3 -3
- package/es/paper/index.mjs +1 -1
- package/es/picker/Picker.mjs +9 -9
- package/es/picker/index.mjs +2 -2
- package/es/picker/props.mjs +1 -1
- package/es/popup/Popup.mjs +6 -6
- package/es/popup/index.mjs +1 -1
- package/es/progress/Progress.mjs +4 -4
- package/es/progress/index.mjs +1 -1
- package/es/pull-refresh/PullRefresh.mjs +10 -12
- package/es/pull-refresh/index.mjs +1 -1
- package/es/radio/Radio.mjs +10 -9
- package/es/radio/index.mjs +1 -1
- package/es/radio-group/RadioGroup.mjs +7 -6
- package/es/radio-group/index.mjs +1 -1
- package/es/rate/Rate.mjs +8 -8
- package/es/rate/index.mjs +1 -1
- package/es/rate/props.mjs +1 -1
- package/es/result/Result.mjs +7 -7
- package/es/result/index.mjs +1 -1
- package/es/ripple/index.mjs +1 -1
- package/es/row/Row.mjs +4 -4
- package/es/row/index.mjs +1 -1
- package/es/select/Select.mjs +13 -13
- package/es/select/index.mjs +1 -1
- package/es/select/props.mjs +1 -1
- package/es/skeleton/Skeleton.mjs +3 -3
- package/es/skeleton/index.mjs +1 -1
- package/es/slider/Slider.mjs +9 -9
- package/es/slider/index.mjs +1 -1
- package/es/snackbar/Snackbar.mjs +1 -1
- package/es/snackbar/core.mjs +8 -8
- package/es/snackbar/index.mjs +9 -8
- package/es/snackbar/props.mjs +1 -1
- package/es/snackbar/style/index.mjs +1 -1
- package/es/space/Space.mjs +2 -2
- package/es/space/index.mjs +1 -1
- package/es/step/Step.mjs +3 -3
- package/es/step/index.mjs +1 -1
- package/es/step/provide.mjs +1 -1
- package/es/steps/Steps.mjs +3 -3
- package/es/steps/index.mjs +1 -1
- package/es/sticky/Sticky.mjs +7 -7
- package/es/sticky/index.mjs +1 -1
- package/es/style-provider/StyleProvider.mjs +2 -2
- package/es/style-provider/index.mjs +2 -2
- package/es/swipe/Swipe.mjs +10 -10
- package/es/swipe/index.mjs +1 -1
- package/es/swipe-item/SwipeItem.mjs +1 -1
- package/es/swipe-item/index.mjs +1 -1
- package/es/swipe-item/provide.mjs +1 -1
- package/es/switch/Switch.mjs +6 -6
- package/es/switch/index.mjs +1 -1
- package/es/tab/Tab.mjs +4 -4
- package/es/tab/index.mjs +1 -1
- package/es/tab/provide.mjs +1 -1
- package/es/tab-item/TabItem.mjs +3 -3
- package/es/tab-item/index.mjs +1 -1
- package/es/tab-item/provide.mjs +1 -1
- package/es/table/Table.mjs +1 -1
- package/es/table/index.mjs +1 -1
- package/es/tabs/Tabs.mjs +9 -7
- package/es/tabs/index.mjs +1 -1
- package/es/tabs/props.mjs +1 -1
- package/es/tabs-items/TabsItems.mjs +4 -4
- package/es/tabs-items/index.mjs +1 -1
- package/es/themes/dark/index.mjs +33 -33
- package/es/themes/index.mjs +1 -1
- package/es/themes/md3-dark/index.mjs +45 -45
- package/es/themes/md3-light/index.mjs +39 -39
- package/es/time-picker/TimePicker.mjs +48 -24
- package/es/time-picker/clock.mjs +41 -19
- package/es/time-picker/index.mjs +1 -1
- package/es/time-picker/utils.mjs +13 -5
- package/es/tooltip/Tooltip.mjs +2 -2
- package/es/tooltip/index.mjs +1 -1
- package/es/uploader/Uploader.mjs +14 -14
- package/es/uploader/index.mjs +1 -1
- package/es/utils/components.mjs +5 -5
- package/es/utils/elements.mjs +9 -9
- package/es/utils/test.mjs +1 -1
- package/es/varlet.esm.js +20946 -20941
- package/es/watermark/Watermark.mjs +15 -17
- package/es/watermark/index.mjs +1 -1
- package/highlight/web-types.en-US.json +1 -1
- package/highlight/web-types.zh-CN.json +1 -1
- package/lib/varlet.cjs.js +25205 -25003
- package/package.json +7 -7
- package/types/actionSheet.d.ts +2 -2
- package/types/alert.d.ts +1 -1
- package/types/appBar.d.ts +1 -1
- package/types/autoComplete.d.ts +4 -4
- package/types/avatar.d.ts +1 -1
- package/types/avatarGroup.d.ts +1 -1
- package/types/backTop.d.ts +1 -1
- package/types/badge.d.ts +1 -1
- package/types/bottomNavigation.d.ts +2 -2
- package/types/bottomNavigationItem.d.ts +2 -2
- package/types/breadcrumb.d.ts +1 -1
- package/types/breadcrumbs.d.ts +1 -1
- package/types/button.d.ts +5 -5
- package/types/buttonGroup.d.ts +2 -2
- package/types/card.d.ts +1 -1
- package/types/cell.d.ts +1 -1
- package/types/checkbox.d.ts +1 -1
- package/types/checkboxGroup.d.ts +2 -2
- package/types/chip.d.ts +3 -3
- package/types/code.d.ts +1 -1
- package/types/col.d.ts +1 -1
- package/types/collapse.d.ts +1 -1
- package/types/collapseItem.d.ts +1 -1
- package/types/collapseTransition.d.ts +1 -1
- package/types/countTo.d.ts +1 -1
- package/types/countdown.d.ts +1 -1
- package/types/counter.d.ts +1 -1
- package/types/datePicker.d.ts +1 -1
- package/types/dialog.d.ts +1 -1
- package/types/divider.d.ts +1 -1
- package/types/drag.d.ts +1 -1
- package/types/ellipsis.d.ts +1 -1
- package/types/fab.d.ts +2 -2
- package/types/floatingPanel.d.ts +2 -2
- package/types/form.d.ts +1 -1
- package/types/formDetails.d.ts +1 -1
- package/types/highlighterProvider.d.ts +1 -1
- package/types/hover.d.ts +1 -1
- package/types/hoverOverlay.d.ts +1 -1
- package/types/icon.d.ts +1 -1
- package/types/image.d.ts +2 -2
- package/types/imagePreview.d.ts +2 -2
- package/types/indexAnchor.d.ts +1 -1
- package/types/indexBar.d.ts +1 -1
- package/types/input.d.ts +4 -4
- package/types/link.d.ts +1 -1
- package/types/list.d.ts +1 -1
- package/types/loading.d.ts +1 -1
- package/types/localeProvider.d.ts +2 -2
- package/types/menu.d.ts +2 -2
- package/types/menuOption.d.ts +1 -1
- package/types/menuSelect.d.ts +2 -2
- package/types/option.d.ts +1 -1
- package/types/overlay.d.ts +2 -2
- package/types/pagination.d.ts +1 -1
- package/types/paper.d.ts +1 -1
- package/types/picker.d.ts +3 -3
- package/types/popup.d.ts +2 -2
- package/types/progress.d.ts +1 -1
- package/types/pullRefresh.d.ts +1 -1
- package/types/radio.d.ts +1 -1
- package/types/radioGroup.d.ts +3 -3
- package/types/rate.d.ts +1 -1
- package/types/result.d.ts +1 -1
- package/types/row.d.ts +1 -1
- package/types/select.d.ts +3 -3
- package/types/skeleton.d.ts +1 -1
- package/types/slider.d.ts +4 -4
- package/types/snackbar.d.ts +2 -2
- package/types/space.d.ts +1 -1
- package/types/step.d.ts +1 -1
- package/types/steps.d.ts +3 -3
- package/types/sticky.d.ts +1 -1
- package/types/styleProvider.d.ts +2 -2
- package/types/swipe.d.ts +1 -1
- package/types/swipeItem.d.ts +1 -1
- package/types/switch.d.ts +1 -1
- package/types/tab.d.ts +1 -1
- package/types/tabItem.d.ts +1 -1
- package/types/table.d.ts +1 -1
- package/types/tabs.d.ts +3 -3
- package/types/tabsItems.d.ts +2 -2
- package/types/timePicker.d.ts +1 -1
- package/types/tooltip.d.ts +2 -2
- package/types/uploader.d.ts +2 -2
- package/types/watermark.d.ts +1 -1
- package/umd/varlet.js +7 -7
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Ripple from "../ripple/index.mjs";
|
|
2
|
-
import VarIcon from "../icon/index.mjs";
|
|
3
|
-
import VarHoverOverlay, { useHoverOverlay } from "../hover-overlay/index.mjs";
|
|
4
|
-
import Hover from "../hover/index.mjs";
|
|
5
1
|
import { defineComponent } from "vue";
|
|
2
|
+
import Hover from "../hover/index.mjs";
|
|
3
|
+
import VarHoverOverlay, { useHoverOverlay } from "../hover-overlay/index.mjs";
|
|
4
|
+
import VarIcon from "../icon/index.mjs";
|
|
5
|
+
import Ripple from "../ripple/index.mjs";
|
|
6
6
|
import { createNamespace } from "../utils/components.mjs";
|
|
7
7
|
const { name, n, classes } = createNamespace("action-sheet");
|
|
8
8
|
import { resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createVNode as _createVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, createElementBlock as _createElementBlock, withDirectives as _withDirectives } from "vue";
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import Ripple from "../ripple/index.mjs";
|
|
2
|
-
import VarPopup from "../popup/index.mjs";
|
|
3
|
-
import VarActionItem from "./ActionItem.mjs";
|
|
4
1
|
import { defineComponent } from "vue";
|
|
5
|
-
import { props } from "./props.mjs";
|
|
6
|
-
import { t } from "../locale/index.mjs";
|
|
7
|
-
import { createNamespace } from "../utils/components.mjs";
|
|
8
2
|
import { call } from "@varlet/shared";
|
|
9
3
|
import { useVModel } from "@varlet/use";
|
|
4
|
+
import { t } from "../locale/index.mjs";
|
|
10
5
|
import { injectLocaleProvider } from "../locale-provider/provide.mjs";
|
|
6
|
+
import VarPopup from "../popup/index.mjs";
|
|
7
|
+
import Ripple from "../ripple/index.mjs";
|
|
8
|
+
import { createNamespace } from "../utils/components.mjs";
|
|
9
|
+
import VarActionItem from "./ActionItem.mjs";
|
|
10
|
+
import { props } from "./props.mjs";
|
|
11
11
|
const { name, n, classes } = createNamespace("action-sheet");
|
|
12
12
|
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, createBlock as _createBlock, mergeProps as _mergeProps, withCtx as _withCtx } from "vue";
|
|
13
13
|
function __render__(_ctx, _cache) {
|
|
14
14
|
const _component_var_action_item = _resolveComponent("var-action-item");
|
|
15
15
|
const _component_var_popup = _resolveComponent("var-popup");
|
|
16
16
|
return _openBlock(), _createBlock(_component_var_popup, {
|
|
17
|
+
show: _ctx.show,
|
|
18
|
+
"onUpdate:show": _cache[0] || (_cache[0] = ($event) => _ctx.show = $event),
|
|
17
19
|
position: "bottom",
|
|
18
20
|
class: _normalizeClass(_ctx.n("popup-radius")),
|
|
19
21
|
overlay: _ctx.overlay,
|
|
@@ -24,8 +26,6 @@ function __render__(_ctx, _cache) {
|
|
|
24
26
|
"close-on-key-escape": _ctx.closeOnKeyEscape,
|
|
25
27
|
teleport: _ctx.teleport,
|
|
26
28
|
"safe-area": _ctx.safeArea,
|
|
27
|
-
show: _ctx.show,
|
|
28
|
-
"onUpdate:show": _cache[0] || (_cache[0] = ($event) => _ctx.show = $event),
|
|
29
29
|
onOpen: _ctx.onOpen,
|
|
30
30
|
onClose: _ctx.onClose,
|
|
31
31
|
onClosed: _ctx.onClosed,
|
|
@@ -81,7 +81,7 @@ function __render__(_ctx, _cache) {
|
|
|
81
81
|
]),
|
|
82
82
|
_: 3
|
|
83
83
|
/* FORWARDED */
|
|
84
|
-
}, 8, ["class", "overlay", "overlay-class", "overlay-style", "lock-scroll", "close-on-click-overlay", "close-on-key-escape", "teleport", "safe-area", "
|
|
84
|
+
}, 8, ["show", "class", "overlay", "overlay-class", "overlay-style", "lock-scroll", "close-on-click-overlay", "close-on-key-escape", "teleport", "safe-area", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange", "onKeyEscape"]);
|
|
85
85
|
}
|
|
86
86
|
const __sfc__ = defineComponent({
|
|
87
87
|
name,
|
|
@@ -14,10 +14,10 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import VarActionSheet from "./ActionSheet.mjs";
|
|
18
17
|
import { nextTick, reactive } from "vue";
|
|
19
|
-
import {
|
|
18
|
+
import { call, inBrowser } from "@varlet/shared";
|
|
20
19
|
import { mountInstance, withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
20
|
+
import VarActionSheet from "./ActionSheet.mjs";
|
|
21
21
|
import { props as actionSheetProps } from "./props.mjs";
|
|
22
22
|
let singletonOptions;
|
|
23
23
|
let defaultOptions = {};
|
|
@@ -14,8 +14,8 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import { defineListenerProp, pickProps } from "../utils/components.mjs";
|
|
18
17
|
import { popupProps } from "../popup/index.mjs";
|
|
18
|
+
import { defineListenerProp, pickProps } from "../utils/components.mjs";
|
|
19
19
|
const props = __spreadValues({
|
|
20
20
|
show: Boolean,
|
|
21
21
|
title: String,
|
package/es/alert/Alert.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { computed, defineComponent } from "vue";
|
|
2
|
+
import { call } from "@varlet/shared";
|
|
1
3
|
import VarIcon from "../icon/index.mjs";
|
|
2
|
-
import { defineComponent, computed } from "vue";
|
|
3
|
-
import { props } from "./props.mjs";
|
|
4
4
|
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { props } from "./props.mjs";
|
|
6
6
|
const { name, n, classes } = createNamespace("alert");
|
|
7
7
|
const iconTypeMap = {
|
|
8
8
|
success: "checkbox-marked-circle",
|
package/es/alert/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Alert from "./Alert.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import Alert from "./Alert.mjs";
|
|
3
3
|
import { props as alertProps } from "./props.mjs";
|
|
4
4
|
withInstall(Alert);
|
|
5
5
|
withPropsDefaultsSetter(Alert, alertProps);
|
package/es/app-bar/AppBar.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { props } from "./props.mjs";
|
|
3
|
-
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
|
4
|
-
import { onSmartMounted, onWindowResize } from "@varlet/use";
|
|
1
|
+
import { computed, defineComponent, onUpdated, ref } from "vue";
|
|
5
2
|
import { getRect } from "@varlet/shared";
|
|
3
|
+
import { onSmartMounted, onWindowResize } from "@varlet/use";
|
|
4
|
+
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
|
6
5
|
import { toSizeUnit } from "../utils/elements.mjs";
|
|
6
|
+
import { props } from "./props.mjs";
|
|
7
7
|
const { name, n, classes } = createNamespace("app-bar");
|
|
8
8
|
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, mergeProps as _mergeProps, Fragment as _Fragment } from "vue";
|
|
9
9
|
function __render__(_ctx, _cache) {
|
|
@@ -14,6 +14,7 @@ function __render__(_ctx, _cache) {
|
|
|
14
14
|
_createElementVNode(
|
|
15
15
|
"div",
|
|
16
16
|
_mergeProps({
|
|
17
|
+
ref: "appBar",
|
|
17
18
|
class: _ctx.classes(
|
|
18
19
|
_ctx.n(),
|
|
19
20
|
_ctx.n("$--box"),
|
|
@@ -23,7 +24,6 @@ function __render__(_ctx, _cache) {
|
|
|
23
24
|
[_ctx.border, _ctx.n("--border")],
|
|
24
25
|
_ctx.formatElevation(_ctx.elevation, 3)
|
|
25
26
|
),
|
|
26
|
-
ref: "appBar",
|
|
27
27
|
style: _ctx.rootStyles
|
|
28
28
|
}, _ctx.$attrs),
|
|
29
29
|
[
|
package/es/app-bar/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import AppBar from "./AppBar.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import AppBar from "./AppBar.mjs";
|
|
3
3
|
import { props as appBarProps } from "./props.mjs";
|
|
4
4
|
withInstall(AppBar);
|
|
5
5
|
withPropsDefaultsSetter(AppBar, appBarProps);
|
|
@@ -18,16 +18,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18
18
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
import VarInput from "../input/index.mjs";
|
|
22
|
-
import VarMenuSelect from "../menu-select/index.mjs";
|
|
23
|
-
import VarMenuOption from "../menu-option/index.mjs";
|
|
24
|
-
import VarFormDetails from "../form-details/index.mjs";
|
|
25
21
|
import { computed, defineComponent, nextTick, ref, watch } from "vue";
|
|
26
|
-
import { props } from "./props.mjs";
|
|
27
|
-
import { createNamespace, useValidation } from "../utils/components.mjs";
|
|
28
|
-
import { useClickOutside, useEventListener, useVModel } from "@varlet/use";
|
|
29
22
|
import { call, isEmpty, preventDefault, raf, toNumber } from "@varlet/shared";
|
|
23
|
+
import { useClickOutside, useEventListener, useVModel } from "@varlet/use";
|
|
24
|
+
import VarFormDetails from "../form-details/index.mjs";
|
|
30
25
|
import { useForm } from "../form/provide.mjs";
|
|
26
|
+
import VarInput from "../input/index.mjs";
|
|
27
|
+
import VarMenuOption from "../menu-option/index.mjs";
|
|
28
|
+
import VarMenuSelect from "../menu-select/index.mjs";
|
|
29
|
+
import { createNamespace, useValidation } from "../utils/components.mjs";
|
|
30
|
+
import { props } from "./props.mjs";
|
|
31
31
|
const { name, n } = createNamespace("auto-complete");
|
|
32
32
|
import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, mergeProps as _mergeProps, withCtx as _withCtx, createSlots as _createSlots, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode } from "vue";
|
|
33
33
|
const _hoisted_1 = ["tabindex"];
|
|
@@ -44,6 +44,8 @@ function __render__(_ctx, _cache) {
|
|
|
44
44
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
45
45
|
}, [
|
|
46
46
|
_createVNode(_component_var_menu_select, {
|
|
47
|
+
show: _ctx.isShowMenuSelect,
|
|
48
|
+
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => _ctx.isShowMenuSelect = $event),
|
|
47
49
|
"same-width": "",
|
|
48
50
|
"auto-complete-cover": "",
|
|
49
51
|
scrollable: "",
|
|
@@ -52,8 +54,6 @@ function __render__(_ctx, _cache) {
|
|
|
52
54
|
disabled: _ctx.disabled || _ctx.formDisabled || _ctx.readonly || _ctx.formReadonly,
|
|
53
55
|
class: _normalizeClass(_ctx.n("menu-select")),
|
|
54
56
|
"popover-class": _ctx.variant === "standard" ? _ctx.n("--standard-menu-margin") : void 0,
|
|
55
|
-
show: _ctx.isShowMenuSelect,
|
|
56
|
-
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => _ctx.isShowMenuSelect = $event),
|
|
57
57
|
"onUpdate:modelValue": _ctx.handleAutoComplete,
|
|
58
58
|
onKeyEscape: _ctx.handleKeyEscape
|
|
59
59
|
}, {
|
|
@@ -100,6 +100,8 @@ function __render__(_ctx, _cache) {
|
|
|
100
100
|
disabled: _ctx.disabled,
|
|
101
101
|
clearable: _ctx.clearable
|
|
102
102
|
}, {
|
|
103
|
+
modelValue: _ctx.value,
|
|
104
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.value = $event),
|
|
103
105
|
autocomplete: "off",
|
|
104
106
|
"is-force-focusing-effect": _ctx.isFocusing,
|
|
105
107
|
"is-force-error-effect": !!_ctx.errorMessage,
|
|
@@ -107,9 +109,7 @@ function __render__(_ctx, _cache) {
|
|
|
107
109
|
onInput: _ctx.handleInput,
|
|
108
110
|
onBlur: _ctx.handleBlur,
|
|
109
111
|
onClear: _ctx.handleClear,
|
|
110
|
-
onChange: _ctx.handleChange
|
|
111
|
-
modelValue: _ctx.value,
|
|
112
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.value = $event)
|
|
112
|
+
onChange: _ctx.handleChange
|
|
113
113
|
}), _createSlots({
|
|
114
114
|
_: 2
|
|
115
115
|
/* DYNAMIC */
|
|
@@ -142,11 +142,11 @@ function __render__(_ctx, _cache) {
|
|
|
142
142
|
]),
|
|
143
143
|
key: "3"
|
|
144
144
|
} : void 0
|
|
145
|
-
]), 1040, ["is-force-focusing-effect", "is-force-error-effect", "onInput", "onBlur", "onClear", "onChange"
|
|
145
|
+
]), 1040, ["modelValue", "is-force-focusing-effect", "is-force-error-effect", "onInput", "onBlur", "onClear", "onChange"])
|
|
146
146
|
]),
|
|
147
147
|
_: 3
|
|
148
148
|
/* FORWARDED */
|
|
149
|
-
}, 8, ["disabled", "class", "popover-class", "
|
|
149
|
+
}, 8, ["show", "disabled", "class", "popover-class", "onUpdate:modelValue", "onKeyEscape"]),
|
|
150
150
|
_createVNode(_component_var_form_details, {
|
|
151
151
|
"error-message": _ctx.errorMessage,
|
|
152
152
|
"extra-message": _ctx.maxlengthText
|
|
@@ -269,21 +269,17 @@ const __sfc__ = defineComponent({
|
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
function changeMenuState() {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
}
|
|
279
|
-
});
|
|
272
|
+
if (isFocusing.value) {
|
|
273
|
+
isShowMenuSelect.value = getShowMenuSelect(value.value);
|
|
274
|
+
}
|
|
275
|
+
if (isShowMenuSelect.value) {
|
|
276
|
+
viewOptions.value = props2.options;
|
|
277
|
+
}
|
|
280
278
|
}
|
|
281
279
|
function handleInput(newValue, event) {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
validateWithTrigger("onInput");
|
|
286
|
-
});
|
|
280
|
+
changeMenuState();
|
|
281
|
+
call(props2.onInput, newValue, event);
|
|
282
|
+
validateWithTrigger("onInput");
|
|
287
283
|
}
|
|
288
284
|
function handleClear() {
|
|
289
285
|
clearing = true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import AutoComplete from "./AutoComplete.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import AutoComplete from "./AutoComplete.mjs";
|
|
3
3
|
import { props as autoCompleteProps } from "./props.mjs";
|
|
4
4
|
withInstall(AutoComplete);
|
|
5
5
|
withPropsDefaultsSetter(AutoComplete, autoCompleteProps);
|
|
@@ -14,8 +14,8 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import { defineListenerProp, pickProps } from "../utils/components.mjs";
|
|
18
17
|
import { inputProps } from "../input/index.mjs";
|
|
18
|
+
import { defineListenerProp, pickProps } from "../utils/components.mjs";
|
|
19
19
|
const props = __spreadValues({
|
|
20
20
|
modelValue: String,
|
|
21
21
|
options: {
|
package/es/avatar/Avatar.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent, ref, onUpdated } from "vue";
|
|
3
|
-
import { props } from "./props.mjs";
|
|
4
|
-
import { toSizeUnit } from "../utils/elements.mjs";
|
|
5
|
-
import { createNamespace } from "../utils/components.mjs";
|
|
1
|
+
import { defineComponent, onUpdated, ref } from "vue";
|
|
6
2
|
import { call } from "@varlet/shared";
|
|
7
3
|
import { onSmartMounted } from "@varlet/use";
|
|
4
|
+
import Lazy from "../lazy/index.mjs";
|
|
5
|
+
import { createNamespace } from "../utils/components.mjs";
|
|
6
|
+
import { toSizeUnit } from "../utils/elements.mjs";
|
|
7
|
+
import { props } from "./props.mjs";
|
|
8
8
|
const isInternalSize = (size) => ["mini", "small", "normal", "large"].includes(size);
|
|
9
9
|
const { name, n, classes } = createNamespace("avatar");
|
|
10
10
|
import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, Fragment as _Fragment, renderSlot as _renderSlot } from "vue";
|
package/es/avatar/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Avatar from "./Avatar.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import Avatar from "./Avatar.mjs";
|
|
3
3
|
import { props as avatarProps } from "./props.mjs";
|
|
4
4
|
withInstall(Avatar);
|
|
5
5
|
withPropsDefaultsSetter(Avatar, avatarProps);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { props } from "./props.mjs";
|
|
1
|
+
import { computed, defineComponent } from "vue";
|
|
3
2
|
import { createNamespace } from "../utils/components.mjs";
|
|
4
3
|
import { toSizeUnit } from "../utils/elements.mjs";
|
|
4
|
+
import { props } from "./props.mjs";
|
|
5
5
|
const { name, n, classes } = createNamespace("avatar-group");
|
|
6
6
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
7
7
|
function __render__(_ctx, _cache) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import AvatarGroup from "./AvatarGroup.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import AvatarGroup from "./AvatarGroup.mjs";
|
|
3
3
|
import { props as avatarGroupProps } from "./props.mjs";
|
|
4
4
|
withInstall(AvatarGroup);
|
|
5
5
|
withPropsDefaultsSetter(AvatarGroup, avatarGroupProps);
|
package/es/back-top/BackTop.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { defineComponent, onActivated, onMounted, ref } from "vue";
|
|
2
|
+
import { call, getScrollLeft, getScrollTop, throttle } from "@varlet/shared";
|
|
3
|
+
import { onSmartUnmounted } from "@varlet/use";
|
|
1
4
|
import VarButton from "../button/index.mjs";
|
|
2
5
|
import VarIcon from "../icon/index.mjs";
|
|
3
|
-
import { defineComponent, ref, onMounted, onActivated } from "vue";
|
|
4
|
-
import { props } from "./props.mjs";
|
|
5
|
-
import { throttle, getScrollTop, getScrollLeft, call } from "@varlet/shared";
|
|
6
|
-
import { easeInOutCubic } from "../utils/shared.mjs";
|
|
7
|
-
import { scrollTo, getParentScroller, toPxNum, toSizeUnit, getTarget } from "../utils/elements.mjs";
|
|
8
6
|
import { createNamespace } from "../utils/components.mjs";
|
|
9
|
-
import {
|
|
7
|
+
import { getParentScroller, getTarget, scrollTo, toPxNum, toSizeUnit } from "../utils/elements.mjs";
|
|
8
|
+
import { easeInOutCubic } from "../utils/shared.mjs";
|
|
9
|
+
import { props } from "./props.mjs";
|
|
10
10
|
const { name, n, classes } = createNamespace("back-top");
|
|
11
11
|
import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, withModifiers as _withModifiers, mergeProps as _mergeProps, createElementVNode as _createElementVNode, Teleport as _Teleport, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
12
12
|
function __render__(_ctx, _cache) {
|
|
@@ -19,8 +19,8 @@ function __render__(_ctx, _cache) {
|
|
|
19
19
|
_createElementVNode(
|
|
20
20
|
"div",
|
|
21
21
|
_mergeProps({
|
|
22
|
-
class: _ctx.classes(_ctx.n(), [_ctx.show, _ctx.n("--active")]),
|
|
23
22
|
ref: "backTopEl",
|
|
23
|
+
class: _ctx.classes(_ctx.n(), [_ctx.show, _ctx.n("--active")]),
|
|
24
24
|
style: {
|
|
25
25
|
right: _ctx.toSizeUnit(_ctx.right),
|
|
26
26
|
bottom: _ctx.toSizeUnit(_ctx.bottom)
|
package/es/back-top/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import BackTop from "./BackTop.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import BackTop from "./BackTop.mjs";
|
|
3
3
|
import { props as backTopProps } from "./props.mjs";
|
|
4
4
|
withInstall(BackTop);
|
|
5
5
|
withPropsDefaultsSetter(BackTop, backTopProps);
|
package/es/badge/Badge.mjs
CHANGED
|
@@ -14,12 +14,12 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import VarIcon from "../icon/index.mjs";
|
|
18
|
-
import { toNumber } from "@varlet/shared";
|
|
19
17
|
import { computed, defineComponent } from "vue";
|
|
20
|
-
import {
|
|
18
|
+
import { toNumber } from "@varlet/shared";
|
|
19
|
+
import VarIcon from "../icon/index.mjs";
|
|
21
20
|
import { createNamespace } from "../utils/components.mjs";
|
|
22
21
|
import { toSizeUnit } from "../utils/elements.mjs";
|
|
22
|
+
import { props } from "./props.mjs";
|
|
23
23
|
const { name, n, classes } = createNamespace("badge");
|
|
24
24
|
import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, vShow as _vShow, mergeProps as _mergeProps, createElementVNode as _createElementVNode, withDirectives as _withDirectives, Transition as _Transition, withCtx as _withCtx, createVNode as _createVNode } from "vue";
|
|
25
25
|
const _hoisted_1 = { key: 0 };
|
package/es/badge/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Badge from "./Badge.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import Badge from "./Badge.mjs";
|
|
3
3
|
import { props as badgeProps } from "./props.mjs";
|
|
4
4
|
withInstall(Badge);
|
|
5
5
|
withPropsDefaultsSetter(Badge, badgeProps);
|
package/es/badge/props.mjs
CHANGED
|
@@ -14,14 +14,14 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
+
import { computed, defineComponent, onUpdated, ref, watch } from "vue";
|
|
18
|
+
import { call, getRect, isNumber, normalizeToArray } from "@varlet/shared";
|
|
19
|
+
import { onSmartMounted, onWindowResize } from "@varlet/use";
|
|
17
20
|
import VarButton from "../button/index.mjs";
|
|
18
|
-
import { defineComponent, ref, computed, onUpdated, watch } from "vue";
|
|
19
|
-
import { props } from "./props.mjs";
|
|
20
|
-
import { useBottomNavigationItems } from "./provide.mjs";
|
|
21
21
|
import { createNamespace } from "../utils/components.mjs";
|
|
22
|
-
import { isNumber, normalizeToArray, call, getRect } from "@varlet/shared";
|
|
23
|
-
import { onSmartMounted, onWindowResize } from "@varlet/use";
|
|
24
22
|
import { toSizeUnit } from "../utils/elements.mjs";
|
|
23
|
+
import { props } from "./props.mjs";
|
|
24
|
+
import { useBottomNavigationItems } from "./provide.mjs";
|
|
25
25
|
const { name, n, classes } = createNamespace("bottom-navigation");
|
|
26
26
|
const { n: nItem } = createNamespace("bottom-navigation-item");
|
|
27
27
|
const RIGHT_HALF_SPACE_CLASS = nItem("--right-half-space");
|
|
@@ -40,6 +40,7 @@ function __render__(_ctx, _cache) {
|
|
|
40
40
|
_createElementVNode(
|
|
41
41
|
"div",
|
|
42
42
|
_mergeProps({
|
|
43
|
+
ref: "bottomNavigationDom",
|
|
43
44
|
class: _ctx.classes(
|
|
44
45
|
_ctx.n(),
|
|
45
46
|
_ctx.n("$--box"),
|
|
@@ -48,7 +49,6 @@ function __render__(_ctx, _cache) {
|
|
|
48
49
|
[_ctx.safeArea, _ctx.n("--safe-area")],
|
|
49
50
|
[_ctx.variant, _ctx.n("--variant")]
|
|
50
51
|
),
|
|
51
|
-
ref: "bottomNavigationDom",
|
|
52
52
|
style: `z-index:${_ctx.zIndex}`
|
|
53
53
|
}, _ctx.$attrs),
|
|
54
54
|
[
|
|
@@ -56,9 +56,8 @@ function __render__(_ctx, _cache) {
|
|
|
56
56
|
_ctx.$slots.fab ? (_openBlock(), _createBlock(_component_var_button, _mergeProps({
|
|
57
57
|
key: 0,
|
|
58
58
|
class: _ctx.classes(_ctx.n("fab"), [_ctx.length % 2, _ctx.n("--fab-right"), _ctx.n("--fab-center")]),
|
|
59
|
-
"var-bottom-navigation__fab": ""
|
|
60
|
-
|
|
61
|
-
}, _ctx.fabProps), {
|
|
59
|
+
"var-bottom-navigation__fab": ""
|
|
60
|
+
}, _ctx.fabProps, { onClick: _ctx.handleFabClick }), {
|
|
62
61
|
default: _withCtx(() => [
|
|
63
62
|
_renderSlot(_ctx.$slots, "fab")
|
|
64
63
|
]),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import BottomNavigation from "./BottomNavigation.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import BottomNavigation from "./BottomNavigation.mjs";
|
|
3
3
|
import { props as bottomNavigationProps } from "./props.mjs";
|
|
4
4
|
withInstall(BottomNavigation);
|
|
5
5
|
withPropsDefaultsSetter(BottomNavigation, bottomNavigationProps);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { computed, defineComponent } from "vue";
|
|
2
|
+
import { call } from "@varlet/shared";
|
|
2
3
|
import VarBadge from "../badge/index.mjs";
|
|
3
4
|
import VarIcon from "../icon/index.mjs";
|
|
4
|
-
import
|
|
5
|
+
import Ripple from "../ripple/index.mjs";
|
|
6
|
+
import { createNamespace } from "../utils/components.mjs";
|
|
5
7
|
import { props } from "./props.mjs";
|
|
6
8
|
import { useBottomNavigation } from "./provide.mjs";
|
|
7
|
-
import { createNamespace } from "../utils/components.mjs";
|
|
8
|
-
import { call } from "@varlet/shared";
|
|
9
9
|
const { name, n, classes } = createNamespace("bottom-navigation-item");
|
|
10
10
|
const defaultBadgeProps = {
|
|
11
11
|
type: "danger",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import BottomNavigationItem from "./BottomNavigationItem.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import BottomNavigationItem from "./BottomNavigationItem.mjs";
|
|
3
3
|
import { props as bottomNavigationItemProps } from "./props.mjs";
|
|
4
4
|
withInstall(BottomNavigationItem);
|
|
5
5
|
withPropsDefaultsSetter(BottomNavigationItem, bottomNavigationItemProps);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed, defineComponent } from "vue";
|
|
2
|
+
import { call } from "@varlet/shared";
|
|
3
|
+
import { createNamespace } from "../utils/components.mjs";
|
|
2
4
|
import { props } from "./props.mjs";
|
|
3
5
|
import { useBreadcrumb } from "./provide.mjs";
|
|
4
|
-
import { createNamespace } from "../utils/components.mjs";
|
|
5
|
-
import { call } from "@varlet/shared";
|
|
6
6
|
const { name, n, classes } = createNamespace("breadcrumb");
|
|
7
7
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createCommentVNode as _createCommentVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
8
8
|
function __render__(_ctx, _cache) {
|
package/es/breadcrumb/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Breadcrumb from "./Breadcrumb.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import Breadcrumb from "./Breadcrumb.mjs";
|
|
3
3
|
import { props as breadcrumbProps } from "./props.mjs";
|
|
4
4
|
withInstall(Breadcrumb);
|
|
5
5
|
withPropsDefaultsSetter(Breadcrumb, breadcrumbProps);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useParent } from "@varlet/use";
|
|
2
1
|
import { assert } from "@varlet/shared";
|
|
2
|
+
import { useParent } from "@varlet/use";
|
|
3
3
|
import { BREADCRUMBS_BIND_BREADCRUMB_ITEM_KEY } from "../breadcrumbs/provide.mjs";
|
|
4
4
|
function useBreadcrumb() {
|
|
5
5
|
const { parentProvider, bindParent, index } = useParent(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed, defineComponent } from "vue";
|
|
2
|
+
import { createNamespace } from "../utils/components.mjs";
|
|
2
3
|
import { props } from "./props.mjs";
|
|
3
4
|
import { useBreadcrumbsList } from "./provide.mjs";
|
|
4
|
-
import { createNamespace } from "../utils/components.mjs";
|
|
5
5
|
const { name, n } = createNamespace("breadcrumbs");
|
|
6
6
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
7
7
|
function __render__(_ctx, _cache) {
|
package/es/breadcrumbs/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Breadcrumbs from "./Breadcrumbs.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import Breadcrumbs from "./Breadcrumbs.mjs";
|
|
3
3
|
import { props as breadcrumbsProps } from "./props.mjs";
|
|
4
4
|
withInstall(Breadcrumbs);
|
|
5
5
|
withPropsDefaultsSetter(Breadcrumbs, breadcrumbsProps);
|
package/es/button/Button.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import Ripple from "../ripple/index.mjs";
|
|
2
|
-
import VarLoading from "../loading/index.mjs";
|
|
3
|
-
import VarHoverOverlay, { useHoverOverlay } from "../hover-overlay/index.mjs";
|
|
4
|
-
import Hover from "../hover/index.mjs";
|
|
5
1
|
import { computed, defineComponent, ref } from "vue";
|
|
6
|
-
import {
|
|
2
|
+
import { call, normalizeToArray } from "@varlet/shared";
|
|
3
|
+
import Hover from "../hover/index.mjs";
|
|
4
|
+
import VarHoverOverlay, { useHoverOverlay } from "../hover-overlay/index.mjs";
|
|
5
|
+
import VarLoading from "../loading/index.mjs";
|
|
6
|
+
import Ripple from "../ripple/index.mjs";
|
|
7
7
|
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
|
8
|
+
import { props } from "./props.mjs";
|
|
8
9
|
import { useButtonGroup } from "./provide.mjs";
|
|
9
|
-
import { call, normalizeToArray } from "@varlet/shared";
|
|
10
10
|
const { name, n, classes } = createNamespace("button");
|
|
11
11
|
import { resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, createElementVNode as _createElementVNode, createVNode as _createVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, createElementBlock as _createElementBlock, withDirectives as _withDirectives } from "vue";
|
|
12
12
|
const _hoisted_1 = ["tabindex", "type", "disabled"];
|
package/es/button/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
1
2
|
import Button from "./Button.mjs";
|
|
2
3
|
import { props as buttonProps } from "./props.mjs";
|
|
3
|
-
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
4
4
|
withInstall(Button);
|
|
5
5
|
withPropsDefaultsSetter(Button, buttonProps);
|
|
6
6
|
const _ButtonComponent = Button;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, defineComponent } from "vue";
|
|
2
|
-
import { useButtons } from "./provide.mjs";
|
|
3
2
|
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
|
4
3
|
import { props } from "./props.mjs";
|
|
4
|
+
import { useButtons } from "./provide.mjs";
|
|
5
5
|
const { name, n, classes } = createNamespace("button-group");
|
|
6
6
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
7
7
|
function __render__(_ctx, _cache) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ButtonGroup from "./ButtonGroup.mjs";
|
|
2
1
|
import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
|
|
2
|
+
import ButtonGroup from "./ButtonGroup.mjs";
|
|
3
3
|
import { props as buttonGroupProps } from "./props.mjs";
|
|
4
4
|
withInstall(ButtonGroup);
|
|
5
5
|
withPropsDefaultsSetter(ButtonGroup, buttonGroupProps);
|