@varlet/ui 3.10.6 → 3.10.8
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/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/slider/Slider.mjs +2 -1
- package/es/snackbar/style/index.mjs +1 -1
- package/es/tabs-items/TabsItems.mjs +2 -1
- package/es/tabs-items/props.mjs +4 -0
- package/es/varlet.esm.js +139 -133
- package/highlight/web-types.en-US.json +10 -1
- package/highlight/web-types.zh-CN.json +10 -1
- package/lib/varlet.cjs.js +9 -3
- package/package.json +7 -7
- package/types/tabsItems.d.ts +3 -0
- package/umd/varlet.js +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
|
-
"version": "3.10.
|
|
4
|
+
"version": "3.10.8",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -8173,6 +8173,15 @@
|
|
|
8173
8173
|
"kind": "expression"
|
|
8174
8174
|
}
|
|
8175
8175
|
},
|
|
8176
|
+
{
|
|
8177
|
+
"name": "animated",
|
|
8178
|
+
"description": "Whether to enable content switching animation",
|
|
8179
|
+
"default": "true",
|
|
8180
|
+
"value": {
|
|
8181
|
+
"type": "boolean",
|
|
8182
|
+
"kind": "expression"
|
|
8183
|
+
}
|
|
8184
|
+
},
|
|
8176
8185
|
{
|
|
8177
8186
|
"name": "loop",
|
|
8178
8187
|
"description": "Whether to allow cycle switching",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
|
-
"version": "3.10.
|
|
4
|
+
"version": "3.10.8",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -8387,6 +8387,15 @@
|
|
|
8387
8387
|
"kind": "expression"
|
|
8388
8388
|
}
|
|
8389
8389
|
},
|
|
8390
|
+
{
|
|
8391
|
+
"name": "animated",
|
|
8392
|
+
"description": "是否启用内容切换动画",
|
|
8393
|
+
"default": "true",
|
|
8394
|
+
"value": {
|
|
8395
|
+
"type": "boolean",
|
|
8396
|
+
"kind": "expression"
|
|
8397
|
+
}
|
|
8398
|
+
},
|
|
8390
8399
|
{
|
|
8391
8400
|
"name": "loop",
|
|
8392
8401
|
"description": "是否允许循环切换",
|
package/lib/varlet.cjs.js
CHANGED
|
@@ -24829,7 +24829,7 @@ function __render__$e(_ctx, _cache) {
|
|
|
24829
24829
|
{
|
|
24830
24830
|
ref: "sliderEl",
|
|
24831
24831
|
class: vue.normalizeClass(_ctx.classes(_ctx.n(`${_ctx.direction}-block`), [_ctx.isDisabled, _ctx.n("--disabled")], [_ctx.errorMessage, _ctx.n(`${_ctx.direction}--error`)])),
|
|
24832
|
-
onClick: _cache[
|
|
24832
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
24833
24833
|
},
|
|
24834
24834
|
[
|
|
24835
24835
|
vue.createElementVNode(
|
|
@@ -24882,6 +24882,7 @@ function __render__$e(_ctx, _cache) {
|
|
|
24882
24882
|
"aria-disabled": _ctx.isDisabled,
|
|
24883
24883
|
"aria-valuetext": `${item.text}`,
|
|
24884
24884
|
onTouchstart: vue.withModifiers(($event) => _ctx.start($event, item.enumValue), ["stop"]),
|
|
24885
|
+
onTouchmove: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.move && _ctx.move(...args), ["stop"])),
|
|
24885
24886
|
onFocusin: ($event) => _ctx.handleFocus(item),
|
|
24886
24887
|
onFocusout: ($event) => _ctx.handleBlur(item)
|
|
24887
24888
|
}, [
|
|
@@ -27041,6 +27042,10 @@ const props$3 = {
|
|
|
27041
27042
|
type: Boolean,
|
|
27042
27043
|
default: true
|
|
27043
27044
|
},
|
|
27045
|
+
animated: {
|
|
27046
|
+
type: Boolean,
|
|
27047
|
+
default: true
|
|
27048
|
+
},
|
|
27044
27049
|
loop: Boolean,
|
|
27045
27050
|
"onUpdate:active": defineListenerProp()
|
|
27046
27051
|
};
|
|
@@ -27071,6 +27076,7 @@ function __render__$4(_ctx, _cache) {
|
|
|
27071
27076
|
ref: "swipe",
|
|
27072
27077
|
class: vue.normalizeClass(_ctx.n()),
|
|
27073
27078
|
loop: _ctx.loop,
|
|
27079
|
+
duration: _ctx.animated ? void 0 : 0,
|
|
27074
27080
|
touchable: _ctx.canSwipe,
|
|
27075
27081
|
indicator: false,
|
|
27076
27082
|
onChange: _ctx.handleSwipeChange
|
|
@@ -27080,7 +27086,7 @@ function __render__$4(_ctx, _cache) {
|
|
|
27080
27086
|
]),
|
|
27081
27087
|
_: 3
|
|
27082
27088
|
/* FORWARDED */
|
|
27083
|
-
}, 8, ["class", "loop", "touchable", "onChange"]);
|
|
27089
|
+
}, 8, ["class", "loop", "duration", "touchable", "onChange"]);
|
|
27084
27090
|
}
|
|
27085
27091
|
const __sfc__$4 = vue.defineComponent({
|
|
27086
27092
|
name: name$3,
|
|
@@ -32017,7 +32023,7 @@ withInstall(stdin_default$1);
|
|
|
32017
32023
|
withPropsDefaultsSetter(stdin_default$1, props);
|
|
32018
32024
|
const _WatermarkComponent = stdin_default$1;
|
|
32019
32025
|
var stdin_default = stdin_default$1;
|
|
32020
|
-
const version = "3.10.
|
|
32026
|
+
const version = "3.10.8";
|
|
32021
32027
|
function install(app) {
|
|
32022
32028
|
stdin_default$60.install && app.use(stdin_default$60);
|
|
32023
32029
|
stdin_default$5_.install && app.use(stdin_default$5_);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.8",
|
|
4
4
|
"description": "A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Vue3",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"@popperjs/core": "^2.11.6",
|
|
45
45
|
"dayjs": "^1.10.4",
|
|
46
46
|
"decimal.js": "^10.2.1",
|
|
47
|
-
"@varlet/icons": "3.10.
|
|
48
|
-
"@varlet/shared": "3.10.
|
|
49
|
-
"@varlet/use": "3.10.
|
|
47
|
+
"@varlet/icons": "3.10.8",
|
|
48
|
+
"@varlet/shared": "3.10.8",
|
|
49
|
+
"@varlet/use": "3.10.8"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "^18.7.20",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"vue": "3.5.13",
|
|
63
63
|
"vue-router": "4.5.0",
|
|
64
64
|
"zod": "^3.23.8",
|
|
65
|
-
"@varlet/cli": "3.10.
|
|
66
|
-
"@varlet/ui": "3.10.
|
|
67
|
-
"@varlet/touch-emulator": "3.10.
|
|
65
|
+
"@varlet/cli": "3.10.8",
|
|
66
|
+
"@varlet/ui": "3.10.8",
|
|
67
|
+
"@varlet/touch-emulator": "3.10.8"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"vue": "^3.2.0"
|
package/types/tabsItems.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ export declare const tabsItemsProps: Record<keyof TabsItemsProps, any>
|
|
|
6
6
|
|
|
7
7
|
export interface TabsItemsProps extends BasicAttributes {
|
|
8
8
|
active?: string | number
|
|
9
|
+
canSwipe?: boolean
|
|
10
|
+
animated?: boolean
|
|
11
|
+
loop?: boolean
|
|
9
12
|
'onUpdate:active'?: ListenerProp<(active: string | number) => void>
|
|
10
13
|
}
|
|
11
14
|
|