Files
gao-customer-h5/patches/tdesign-mobile-vue@1.16.0.patch
T
2026-09-01 01:14:54 +08:00

130 lines
4.1 KiB
Diff

diff --git a/es/swiper/props.mjs b/es/swiper/props.mjs
--- a/es/swiper/props.mjs
+++ b/es/swiper/props.mjs
@@ -55,5 +55,5 @@
},
navigation: {
- type: [Object, Function]
+ type: [Boolean, Object, Function]
},
nextMargin: {
diff --git a/esm/swiper/props.js b/esm/swiper/props.js
--- a/esm/swiper/props.js
+++ b/esm/swiper/props.js
@@ -55,5 +55,5 @@
},
navigation: {
- type: [Object, Function]
+ type: [Boolean, Object, Function]
},
nextMargin: {
diff --git a/lib/swiper/props.js b/lib/swiper/props.js
--- a/lib/swiper/props.js
+++ b/lib/swiper/props.js
@@ -55,5 +55,5 @@
},
navigation: {
- type: [Object, Function]
+ type: [Boolean, Object, Function]
},
nextMargin: {
diff --git a/cjs/swiper/props.js b/cjs/swiper/props.js
--- a/cjs/swiper/props.js
+++ b/cjs/swiper/props.js
@@ -59,5 +59,5 @@
},
navigation: {
- type: [Object, Function]
+ type: [Boolean, Object, Function]
},
nextMargin: {
diff --git a/es/swiper/type.d.ts b/es/swiper/type.d.ts
--- a/es/swiper/type.d.ts
+++ b/es/swiper/type.d.ts
@@ -10,6 +10,6 @@
height?: string | number;
interval?: number;
loop?: boolean;
- navigation?: SwiperNavigation | TNode;
+ navigation?: boolean | SwiperNavigation | TNode;
nextMargin?: string | number;
previousMargin?: string | number;
diff --git a/esm/swiper/type.d.ts b/esm/swiper/type.d.ts
--- a/esm/swiper/type.d.ts
+++ b/esm/swiper/type.d.ts
@@ -10,6 +10,6 @@
height?: string | number;
interval?: number;
loop?: boolean;
- navigation?: SwiperNavigation | TNode;
+ navigation?: boolean | SwiperNavigation | TNode;
nextMargin?: string | number;
previousMargin?: string | number;
diff --git a/lib/swiper/type.d.ts b/lib/swiper/type.d.ts
--- a/lib/swiper/type.d.ts
+++ b/lib/swiper/type.d.ts
@@ -10,6 +10,6 @@
height?: string | number;
interval?: number;
loop?: boolean;
- navigation?: SwiperNavigation | TNode;
+ navigation?: boolean | SwiperNavigation | TNode;
nextMargin?: string | number;
previousMargin?: string | number;
diff --git a/cjs/swiper/type.d.ts b/cjs/swiper/type.d.ts
--- a/cjs/swiper/type.d.ts
+++ b/cjs/swiper/type.d.ts
@@ -10,6 +10,6 @@
height?: string | number;
interval?: number;
loop?: boolean;
- navigation?: SwiperNavigation | TNode;
+ navigation?: boolean | SwiperNavigation | TNode;
nextMargin?: string | number;
previousMargin?: string | number;
diff --git a/es/shared/hover.mjs b/es/shared/hover.mjs
--- a/es/shared/hover.mjs
+++ b/es/shared/hover.mjs
@@ -50,29 +50,33 @@
add: function add() {
- if (ctx.current.disabledHover || !ctx.current.className) return;
- if (!el.classList.contains(ctx.current.className)) {
- el.classList.add(ctx.current.className);
+ var current = ctx.current;
+ if (!current || current.disabledHover || !current.className) return;
+ if (!el.classList.contains(current.className)) {
+ el.classList.add(current.className);
}
},
remove: function remove() {
- if (ctx.current.className) el.classList.remove(ctx.current.className);
+ var current = ctx.current;
+ if (current && current.className) el.classList.remove(current.className);
},
clearTimers: function clearTimers() {
ctx.timers.forEach(function (t) {
return window.clearTimeout(t);
});
ctx.timers = [];
},
downHandler: function downHandler() {
- if (ctx.current.disabledHover) return;
+ var current = ctx.current;
+ if (!current || current.disabledHover) return;
ctx.clearTimers();
ctx.timers.push(window.setTimeout(function () {
ctx.add();
- }, ctx.current.startTime));
+ }, current.startTime));
},
upHandler: function upHandler() {
- if (ctx.current.disabledHover) return;
+ var current = ctx.current;
+ if (!current || current.disabledHover) return;
ctx.clearTimers();
ctx.timers.push(window.setTimeout(function () {
ctx.remove();
- }, ctx.current.stayTime));
+ }, current.stayTime));
},