@varlet/ui 3.5.0 → 3.5.1-alpha.1726764162524
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/style/index.mjs +1 -1
- package/es/auto-complete/AutoComplete.mjs +1 -2
- package/es/avatar/Avatar.mjs +1 -2
- package/es/badge/Badge.mjs +1 -2
- package/es/button/Button.mjs +1 -2
- package/es/card/Card.mjs +2 -4
- package/es/checkbox/Checkbox.mjs +1 -2
- package/es/collapse/Collapse.mjs +1 -2
- package/es/collapse-item/CollapseItem.mjs +1 -2
- package/es/counter/Counter.mjs +1 -2
- package/es/date-picker/DatePicker.mjs +30 -60
- package/es/date-picker/src/day-picker-panel.mjs +18 -33
- package/es/date-picker/src/month-picker-panel.mjs +21 -39
- package/es/date-picker/src/panel-header.mjs +3 -6
- package/es/date-picker/src/year-picker-panel.mjs +19 -35
- package/es/ellipsis/Ellipsis.mjs +1 -2
- package/es/fab/Fab.mjs +1 -1
- package/es/field-decorator/FieldDecorator.mjs +1 -2
- package/es/form-details/FormDetails.mjs +1 -2
- package/es/hover/index.mjs +1 -2
- package/es/image/Image.mjs +1 -2
- package/es/image-preview/ImagePreview.mjs +1 -2
- package/es/index-bar/IndexBar.mjs +3 -6
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +1 -2
- package/es/loading/Loading.mjs +17 -20
- package/es/menu-option/MenuOption.mjs +1 -2
- package/es/option/Option.mjs +1 -2
- package/es/overlay/Overlay.mjs +1 -2
- package/es/pagination/Pagination.mjs +5 -10
- package/es/picker/Picker.mjs +1 -2
- package/es/popup/Popup.mjs +1 -2
- package/es/progress/Progress.mjs +1 -2
- package/es/radio/Radio.mjs +1 -2
- package/es/rate/Rate.mjs +1 -2
- package/es/result/Empty.mjs +13 -16
- package/es/result/Error.mjs +10 -13
- package/es/result/Info.mjs +10 -13
- package/es/result/Question.mjs +10 -13
- package/es/result/Warning.mjs +10 -13
- package/es/select/Select.mjs +1 -2
- package/es/slider/Slider.mjs +1 -2
- package/es/snackbar/index.mjs +4 -5
- package/es/space/Space.mjs +1 -2
- package/es/step/Step.mjs +1 -2
- package/es/style.css +1 -1
- package/es/swipe/Swipe.mjs +1 -2
- package/es/swipe-item/SwipeItem.mjs +1 -2
- package/es/switch/Switch.mjs +17 -20
- package/es/tabs/Tabs.mjs +1 -2
- package/es/time-picker/TimePicker.mjs +13 -26
- package/es/time-picker/clock.mjs +11 -22
- package/es/time-picker/utils.mjs +4 -8
- package/es/uploader/Uploader.mjs +1 -2
- package/es/utils/elements.mjs +1 -2
- package/es/utils/test.mjs +1 -4
- package/es/varlet.esm.js +5120 -5252
- package/es/watermark/Watermark.mjs +1 -2
- package/highlight/web-types.en-US.json +1 -1
- package/highlight/web-types.zh-CN.json +1 -1
- package/lib/varlet.cjs.js +501 -842
- package/package.json +7 -7
- package/umd/varlet.js +8 -8
package/es/slider/Slider.mjs
CHANGED
|
@@ -10,8 +10,7 @@ import { isArray, isNumber, toNumber, getRect, preventDefault, call, hasOwn, cla
|
|
|
10
10
|
import { props, Thumbs } from "./props.mjs";
|
|
11
11
|
import { onSmartMounted, onWindowResize, useEventListener } from "@varlet/use";
|
|
12
12
|
const { name, n, classes } = createNamespace("slider");
|
|
13
|
-
import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, resolveDirective as _resolveDirective, withDirectives as _withDirectives, resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, withModifiers as _withModifiers
|
|
14
|
-
const _withScopeId = (n2) => (_pushScopeId(""), n2 = n2(), _popScopeId(), n2);
|
|
13
|
+
import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, resolveDirective as _resolveDirective, withDirectives as _withDirectives, resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, withModifiers as _withModifiers } from "vue";
|
|
15
14
|
const _hoisted_1 = ["tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-disabled", "aria-valuetext", "onTouchstart", "onFocusin", "onFocusout"];
|
|
16
15
|
function __render__(_ctx, _cache) {
|
|
17
16
|
const _component_var_hover_overlay = _resolveComponent("var-hover-overlay");
|
package/es/snackbar/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import {
|
|
17
|
+
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
|
18
18
|
import VarSnackbarCore from "./core.mjs";
|
|
19
19
|
import VarSnackbar from "./Snackbar.mjs";
|
|
20
20
|
import context from "../context/index.mjs";
|
|
@@ -208,10 +208,9 @@ function updateUniqOption(reactiveSnackOptions, _update) {
|
|
|
208
208
|
firstOption._update = _update;
|
|
209
209
|
}
|
|
210
210
|
function getTop(position = "top") {
|
|
211
|
-
if (position === "bottom")
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
};
|
|
211
|
+
if (position === "bottom") return {
|
|
212
|
+
top: "85%"
|
|
213
|
+
};
|
|
215
214
|
return {
|
|
216
215
|
top: position === "top" ? "5%" : "45%"
|
|
217
216
|
};
|
package/es/space/Space.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { createVNode as _createVNode } from "vue";
|
|
2
|
-
import { defineComponent } from "vue";
|
|
1
|
+
import { defineComponent, createVNode as _createVNode } from "vue";
|
|
3
2
|
import { props } from "./props.mjs";
|
|
4
3
|
import { isArray, call } from "@varlet/shared";
|
|
5
4
|
import { createNamespace, flatFragment } from "../utils/components.mjs";
|
package/es/step/Step.mjs
CHANGED
|
@@ -5,8 +5,7 @@ import { useSteps } from "./provide.mjs";
|
|
|
5
5
|
import { toNumber } from "@varlet/shared";
|
|
6
6
|
import { createNamespace } from "../utils/components.mjs";
|
|
7
7
|
const { name, n, classes } = createNamespace("step");
|
|
8
|
-
import { resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderSlot as _renderSlot
|
|
9
|
-
const _withScopeId = (n2) => (_pushScopeId(""), n2 = n2(), _popScopeId(), n2);
|
|
8
|
+
import { resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderSlot as _renderSlot } from "vue";
|
|
10
9
|
const _hoisted_1 = { key: 3 };
|
|
11
10
|
function __render__(_ctx, _cache) {
|
|
12
11
|
const _component_var_icon = _resolveComponent("var-icon");
|