vant 3.6.3 → 3.6.4

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.
@@ -1,3 +1,21 @@
1
+ ### [v3.6.4](https://github.com/vant-ui/vant/compare/v3.6.3...v3.6.4)
2
+
3
+ `2022-10-07`
4
+
5
+ **Bug Fixes**
6
+
7
+ - Tabs: incorrect nav scroll animation in some cases [#11116](https://github.com/vant-ui/vant/issues/11116)
8
+ - Tabs: scroll position when using nav-bottom slot [#11115](https://github.com/vant-ui/vant/issues/11115)
9
+
10
+ **Document**
11
+
12
+ - add faq of uni-app [#11114](https://github.com/vant-ui/vant/issues/11114)
13
+ - changelog: vant@3.6.3 [#11086](https://github.com/vant-ui/vant/issues/11086)
14
+ - fix website redirect [#11097](https://github.com/vant-ui/vant/issues/11097)
15
+
16
+ **perf**
17
+
18
+ - cli: code split documents [#11111](https://github.com/vant-ui/vant/issues/11111)
1
19
  ### [v3.6.3](https://github.com/vant-ui/vant/compare/v3.6.2...v3.6.3)
2
20
 
3
21
  `2022-09-24`
@@ -25,30 +43,4 @@
25
43
  **release**
26
44
 
27
45
  - @vant/cli 4.0.4 [f0d3e0](https://github.com/vant-ui/vant/commit/f0d3e04fba4ecb05d7893d290d48089e860e3ee6)
28
- ### [v3.6.2](https://github.com/vant-ui/vant/compare/v3.6.1...v3.6.2)
29
-
30
- `2022-09-04`
31
-
32
- **Bug Fixes**
33
-
34
- - @vant/cli: add passive for global touchstart [#10979](https://github.com/vant-ui/vant/issues/10979)
35
- - area-data: update counties of Daxinganling region [#11000](https://github.com/vant-ui/vant/issues/11000)
36
- - Calendar: allow default date to be maxDate when enable allowSameDay [#10976](https://github.com/vant-ui/vant/issues/10976)
37
- - Calendar: range type defaultDate when set allowSameDay [#10971](https://github.com/vant-ui/vant/issues/10971)
38
- - indexBar: index-bar not positioned correctly when scrolled to the bottom [#10994](https://github.com/vant-ui/vant/issues/10994)
39
- - reduce passive event warning of touchmove event [#10975](https://github.com/vant-ui/vant/issues/10975)
40
- - Swipe: should not prevent touch move when reach edge [#10980](https://github.com/vant-ui/vant/issues/10980)
41
-
42
- **Document**
43
-
44
- - add function component style guide [#11003](https://github.com/vant-ui/vant/issues/11003)
45
- - add nuxt 3 guide [#10977](https://github.com/vant-ui/vant/issues/10977)
46
- - changelog: 3.6.1 [6a7376](https://github.com/vant-ui/vant/commit/6a7376d15d20bdd1641422ff2cb1c317fc987e89)
47
- - fix card overflow issue [#10988](https://github.com/vant-ui/vant/issues/10988)
48
- - prefer using externalVue in nuxt 3 [#10978](https://github.com/vant-ui/vant/issues/10978)
49
- - update quickstart guide [#11006](https://github.com/vant-ui/vant/issues/11006)
50
-
51
- **release**
52
-
53
- - @vant/area-data 1.3.2 [94c5af](https://github.com/vant-ui/vant/commit/94c5afe65caa97188fe3a800c52c629c1416ff41)
54
- - 3.6.2 [7afb74](https://github.com/vant-ui/vant/commit/7afb74345a39f23a3c62aa8b0e6d95de4c2b35de)
46
+ - 3.6.3 [808ae4](https://github.com/vant-ui/vant/commit/808ae4a0760339e7903df7318b5a5514e328fff4)
package/es/index.d.ts CHANGED
@@ -91,4 +91,4 @@ declare namespace _default {
91
91
  }
92
92
  export default _default;
93
93
  export function install(app: any): void;
94
- export const version: "3.6.3";
94
+ export const version: "3.6.4";
package/es/index.mjs CHANGED
@@ -84,7 +84,7 @@ import { Tag } from "./tag/index.mjs";
84
84
  import { Toast } from "./toast/index.mjs";
85
85
  import { TreeSelect } from "./tree-select/index.mjs";
86
86
  import { Uploader } from "./uploader/index.mjs";
87
- const version = "3.6.3";
87
+ const version = "3.6.4";
88
88
  function install(app) {
89
89
  const components = [
90
90
  ActionBar,
package/es/tabs/Tabs.mjs CHANGED
@@ -151,17 +151,19 @@ var stdin_default = defineComponent({
151
151
  const newTab = children[newIndex];
152
152
  const newName = getTabName(newTab, newIndex);
153
153
  const shouldEmitChange = state.currentIndex !== null;
154
- state.currentIndex = newIndex;
154
+ if (state.currentIndex !== newIndex) {
155
+ state.currentIndex = newIndex;
156
+ if (!skipScrollIntoView) {
157
+ scrollIntoView();
158
+ }
159
+ setLine();
160
+ }
155
161
  if (newName !== props.active) {
156
162
  emit("update:active", newName);
157
163
  if (shouldEmitChange) {
158
164
  emit("change", newName, newTab.title);
159
165
  }
160
166
  }
161
- if (!skipScrollIntoView) {
162
- scrollIntoView();
163
- }
164
- setLine();
165
167
  if (stickyFixed && !props.scrollspy) {
166
168
  setRootScrollTop(Math.ceil(getElementTop(root.value) - offsetTopPx.value));
167
169
  }
@@ -263,13 +265,14 @@ var stdin_default = defineComponent({
263
265
  }
264
266
  };
265
267
  const renderHeader = () => {
266
- var _a2, _b2;
268
+ var _a2, _b2, _c;
267
269
  const {
268
270
  type,
269
- border
271
+ border,
272
+ sticky
270
273
  } = props;
271
- return _createVNode("div", {
272
- "ref": wrapRef,
274
+ const Header = [_createVNode("div", {
275
+ "ref": sticky ? void 0 : wrapRef,
273
276
  "class": [bem("wrap"), {
274
277
  [BORDER_TOP_BOTTOM]: type === "line" && border
275
278
  }]
@@ -282,7 +285,13 @@ var stdin_default = defineComponent({
282
285
  }]),
283
286
  "style": navStyle.value,
284
287
  "aria-orientation": "horizontal"
285
- }, [(_a2 = slots["nav-left"]) == null ? void 0 : _a2.call(slots), renderNav(), renderLine(), (_b2 = slots["nav-right"]) == null ? void 0 : _b2.call(slots)])]);
288
+ }, [(_a2 = slots["nav-left"]) == null ? void 0 : _a2.call(slots), renderNav(), renderLine(), (_b2 = slots["nav-right"]) == null ? void 0 : _b2.call(slots)])]), (_c = slots["nav-bottom"]) == null ? void 0 : _c.call(slots)];
289
+ if (sticky) {
290
+ return _createVNode("div", {
291
+ "ref": wrapRef
292
+ }, [Header]);
293
+ }
294
+ return Header;
286
295
  };
287
296
  watch([() => props.color, windowWidth], setLine);
288
297
  watch(() => props.active, (value) => {
@@ -336,37 +345,31 @@ var stdin_default = defineComponent({
336
345
  currentName,
337
346
  scrollIntoView
338
347
  });
339
- return () => {
340
- var _a2;
341
- return _createVNode("div", {
342
- "ref": root,
343
- "class": bem([props.type])
344
- }, [props.sticky ? _createVNode(Sticky, {
345
- "container": root.value,
346
- "offsetTop": offsetTopPx.value,
347
- "onScroll": onStickyScroll
348
- }, {
349
- default: () => {
350
- var _a3;
351
- return [renderHeader(), (_a3 = slots["nav-bottom"]) == null ? void 0 : _a3.call(slots)];
352
- }
353
- }) : [renderHeader(), (_a2 = slots["nav-bottom"]) == null ? void 0 : _a2.call(slots)], _createVNode(TabsContent, {
354
- "ref": contentRef,
355
- "count": children.length,
356
- "inited": state.inited,
357
- "animated": props.animated,
358
- "duration": props.duration,
359
- "swipeable": props.swipeable,
360
- "lazyRender": props.lazyRender,
361
- "currentIndex": state.currentIndex,
362
- "onChange": setCurrentIndex
363
- }, {
364
- default: () => {
365
- var _a3;
366
- return [(_a3 = slots.default) == null ? void 0 : _a3.call(slots)];
367
- }
368
- })]);
369
- };
348
+ return () => _createVNode("div", {
349
+ "ref": root,
350
+ "class": bem([props.type])
351
+ }, [props.sticky ? _createVNode(Sticky, {
352
+ "container": root.value,
353
+ "offsetTop": offsetTopPx.value,
354
+ "onScroll": onStickyScroll
355
+ }, {
356
+ default: () => [renderHeader()]
357
+ }) : renderHeader(), _createVNode(TabsContent, {
358
+ "ref": contentRef,
359
+ "count": children.length,
360
+ "inited": state.inited,
361
+ "animated": props.animated,
362
+ "duration": props.duration,
363
+ "swipeable": props.swipeable,
364
+ "lazyRender": props.lazyRender,
365
+ "currentIndex": state.currentIndex,
366
+ "onChange": setCurrentIndex
367
+ }, {
368
+ default: () => {
369
+ var _a2;
370
+ return [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)];
371
+ }
372
+ })]);
370
373
  }
371
374
  });
372
375
  export {
package/lib/index.d.ts CHANGED
@@ -91,4 +91,4 @@ declare namespace _default {
91
91
  }
92
92
  export default _default;
93
93
  export function install(app: any): void;
94
- export const version: "3.6.3";
94
+ export const version: "3.6.4";
package/lib/index.js CHANGED
@@ -196,7 +196,7 @@ __reExport(stdin_exports, require("./tag"), module.exports);
196
196
  __reExport(stdin_exports, require("./toast"), module.exports);
197
197
  __reExport(stdin_exports, require("./tree-select"), module.exports);
198
198
  __reExport(stdin_exports, require("./uploader"), module.exports);
199
- const version = "3.6.3";
199
+ const version = "3.6.4";
200
200
  function install(app) {
201
201
  const components = [
202
202
  import_action_bar.ActionBar,
package/lib/tabs/Tabs.js CHANGED
@@ -180,17 +180,19 @@ var stdin_default = (0, import_vue2.defineComponent)({
180
180
  const newTab = children[newIndex];
181
181
  const newName = getTabName(newTab, newIndex);
182
182
  const shouldEmitChange = state.currentIndex !== null;
183
- state.currentIndex = newIndex;
183
+ if (state.currentIndex !== newIndex) {
184
+ state.currentIndex = newIndex;
185
+ if (!skipScrollIntoView) {
186
+ scrollIntoView();
187
+ }
188
+ setLine();
189
+ }
184
190
  if (newName !== props.active) {
185
191
  emit("update:active", newName);
186
192
  if (shouldEmitChange) {
187
193
  emit("change", newName, newTab.title);
188
194
  }
189
195
  }
190
- if (!skipScrollIntoView) {
191
- scrollIntoView();
192
- }
193
- setLine();
194
196
  if (stickyFixed && !props.scrollspy) {
195
197
  (0, import_utils.setRootScrollTop)(Math.ceil((0, import_utils.getElementTop)(root.value) - offsetTopPx.value));
196
198
  }
@@ -292,13 +294,14 @@ var stdin_default = (0, import_vue2.defineComponent)({
292
294
  }
293
295
  };
294
296
  const renderHeader = () => {
295
- var _a2, _b2;
297
+ var _a2, _b2, _c;
296
298
  const {
297
299
  type,
298
- border
300
+ border,
301
+ sticky
299
302
  } = props;
300
- return (0, import_vue.createVNode)("div", {
301
- "ref": wrapRef,
303
+ const Header = [(0, import_vue.createVNode)("div", {
304
+ "ref": sticky ? void 0 : wrapRef,
302
305
  "class": [bem("wrap"), {
303
306
  [import_utils.BORDER_TOP_BOTTOM]: type === "line" && border
304
307
  }]
@@ -311,7 +314,13 @@ var stdin_default = (0, import_vue2.defineComponent)({
311
314
  }]),
312
315
  "style": navStyle.value,
313
316
  "aria-orientation": "horizontal"
314
- }, [(_a2 = slots["nav-left"]) == null ? void 0 : _a2.call(slots), renderNav(), renderLine(), (_b2 = slots["nav-right"]) == null ? void 0 : _b2.call(slots)])]);
317
+ }, [(_a2 = slots["nav-left"]) == null ? void 0 : _a2.call(slots), renderNav(), renderLine(), (_b2 = slots["nav-right"]) == null ? void 0 : _b2.call(slots)])]), (_c = slots["nav-bottom"]) == null ? void 0 : _c.call(slots)];
318
+ if (sticky) {
319
+ return (0, import_vue.createVNode)("div", {
320
+ "ref": wrapRef
321
+ }, [Header]);
322
+ }
323
+ return Header;
315
324
  };
316
325
  (0, import_vue2.watch)([() => props.color, import_utils.windowWidth], setLine);
317
326
  (0, import_vue2.watch)(() => props.active, (value) => {
@@ -365,36 +374,30 @@ var stdin_default = (0, import_vue2.defineComponent)({
365
374
  currentName,
366
375
  scrollIntoView
367
376
  });
368
- return () => {
369
- var _a2;
370
- return (0, import_vue.createVNode)("div", {
371
- "ref": root,
372
- "class": bem([props.type])
373
- }, [props.sticky ? (0, import_vue.createVNode)(import_sticky.Sticky, {
374
- "container": root.value,
375
- "offsetTop": offsetTopPx.value,
376
- "onScroll": onStickyScroll
377
- }, {
378
- default: () => {
379
- var _a3;
380
- return [renderHeader(), (_a3 = slots["nav-bottom"]) == null ? void 0 : _a3.call(slots)];
381
- }
382
- }) : [renderHeader(), (_a2 = slots["nav-bottom"]) == null ? void 0 : _a2.call(slots)], (0, import_vue.createVNode)(import_TabsContent.default, {
383
- "ref": contentRef,
384
- "count": children.length,
385
- "inited": state.inited,
386
- "animated": props.animated,
387
- "duration": props.duration,
388
- "swipeable": props.swipeable,
389
- "lazyRender": props.lazyRender,
390
- "currentIndex": state.currentIndex,
391
- "onChange": setCurrentIndex
392
- }, {
393
- default: () => {
394
- var _a3;
395
- return [(_a3 = slots.default) == null ? void 0 : _a3.call(slots)];
396
- }
397
- })]);
398
- };
377
+ return () => (0, import_vue.createVNode)("div", {
378
+ "ref": root,
379
+ "class": bem([props.type])
380
+ }, [props.sticky ? (0, import_vue.createVNode)(import_sticky.Sticky, {
381
+ "container": root.value,
382
+ "offsetTop": offsetTopPx.value,
383
+ "onScroll": onStickyScroll
384
+ }, {
385
+ default: () => [renderHeader()]
386
+ }) : renderHeader(), (0, import_vue.createVNode)(import_TabsContent.default, {
387
+ "ref": contentRef,
388
+ "count": children.length,
389
+ "inited": state.inited,
390
+ "animated": props.animated,
391
+ "duration": props.duration,
392
+ "swipeable": props.swipeable,
393
+ "lazyRender": props.lazyRender,
394
+ "currentIndex": state.currentIndex,
395
+ "onChange": setCurrentIndex
396
+ }, {
397
+ default: () => {
398
+ var _a2;
399
+ return [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)];
400
+ }
401
+ })]);
399
402
  }
400
403
  });
package/lib/vant.cjs.js CHANGED
@@ -6184,17 +6184,19 @@ var stdin_default$11 = vue.defineComponent({
6184
6184
  const newTab = children[newIndex];
6185
6185
  const newName = getTabName(newTab, newIndex);
6186
6186
  const shouldEmitChange = state.currentIndex !== null;
6187
- state.currentIndex = newIndex;
6187
+ if (state.currentIndex !== newIndex) {
6188
+ state.currentIndex = newIndex;
6189
+ if (!skipScrollIntoView) {
6190
+ scrollIntoView();
6191
+ }
6192
+ setLine();
6193
+ }
6188
6194
  if (newName !== props.active) {
6189
6195
  emit("update:active", newName);
6190
6196
  if (shouldEmitChange) {
6191
6197
  emit("change", newName, newTab.title);
6192
6198
  }
6193
6199
  }
6194
- if (!skipScrollIntoView) {
6195
- scrollIntoView();
6196
- }
6197
- setLine();
6198
6200
  if (stickyFixed && !props.scrollspy) {
6199
6201
  setRootScrollTop(Math.ceil(getElementTop(root.value) - offsetTopPx.value));
6200
6202
  }
@@ -6296,13 +6298,14 @@ var stdin_default$11 = vue.defineComponent({
6296
6298
  }
6297
6299
  };
6298
6300
  const renderHeader = () => {
6299
- var _a2, _b2;
6301
+ var _a2, _b2, _c;
6300
6302
  const {
6301
6303
  type,
6302
- border
6304
+ border,
6305
+ sticky
6303
6306
  } = props;
6304
- return vue.createVNode("div", {
6305
- "ref": wrapRef,
6307
+ const Header = [vue.createVNode("div", {
6308
+ "ref": sticky ? void 0 : wrapRef,
6306
6309
  "class": [bem$W("wrap"), {
6307
6310
  [BORDER_TOP_BOTTOM]: type === "line" && border
6308
6311
  }]
@@ -6315,7 +6318,13 @@ var stdin_default$11 = vue.defineComponent({
6315
6318
  }]),
6316
6319
  "style": navStyle.value,
6317
6320
  "aria-orientation": "horizontal"
6318
- }, [(_a2 = slots["nav-left"]) == null ? void 0 : _a2.call(slots), renderNav(), renderLine(), (_b2 = slots["nav-right"]) == null ? void 0 : _b2.call(slots)])]);
6321
+ }, [(_a2 = slots["nav-left"]) == null ? void 0 : _a2.call(slots), renderNav(), renderLine(), (_b2 = slots["nav-right"]) == null ? void 0 : _b2.call(slots)])]), (_c = slots["nav-bottom"]) == null ? void 0 : _c.call(slots)];
6322
+ if (sticky) {
6323
+ return vue.createVNode("div", {
6324
+ "ref": wrapRef
6325
+ }, [Header]);
6326
+ }
6327
+ return Header;
6319
6328
  };
6320
6329
  vue.watch([() => props.color, windowWidth], setLine);
6321
6330
  vue.watch(() => props.active, (value) => {
@@ -6369,37 +6378,31 @@ var stdin_default$11 = vue.defineComponent({
6369
6378
  currentName,
6370
6379
  scrollIntoView
6371
6380
  });
6372
- return () => {
6373
- var _a2;
6374
- return vue.createVNode("div", {
6375
- "ref": root,
6376
- "class": bem$W([props.type])
6377
- }, [props.sticky ? vue.createVNode(Sticky, {
6378
- "container": root.value,
6379
- "offsetTop": offsetTopPx.value,
6380
- "onScroll": onStickyScroll
6381
- }, {
6382
- default: () => {
6383
- var _a3;
6384
- return [renderHeader(), (_a3 = slots["nav-bottom"]) == null ? void 0 : _a3.call(slots)];
6385
- }
6386
- }) : [renderHeader(), (_a2 = slots["nav-bottom"]) == null ? void 0 : _a2.call(slots)], vue.createVNode(stdin_default$12, {
6387
- "ref": contentRef,
6388
- "count": children.length,
6389
- "inited": state.inited,
6390
- "animated": props.animated,
6391
- "duration": props.duration,
6392
- "swipeable": props.swipeable,
6393
- "lazyRender": props.lazyRender,
6394
- "currentIndex": state.currentIndex,
6395
- "onChange": setCurrentIndex
6396
- }, {
6397
- default: () => {
6398
- var _a3;
6399
- return [(_a3 = slots.default) == null ? void 0 : _a3.call(slots)];
6400
- }
6401
- })]);
6402
- };
6381
+ return () => vue.createVNode("div", {
6382
+ "ref": root,
6383
+ "class": bem$W([props.type])
6384
+ }, [props.sticky ? vue.createVNode(Sticky, {
6385
+ "container": root.value,
6386
+ "offsetTop": offsetTopPx.value,
6387
+ "onScroll": onStickyScroll
6388
+ }, {
6389
+ default: () => [renderHeader()]
6390
+ }) : renderHeader(), vue.createVNode(stdin_default$12, {
6391
+ "ref": contentRef,
6392
+ "count": children.length,
6393
+ "inited": state.inited,
6394
+ "animated": props.animated,
6395
+ "duration": props.duration,
6396
+ "swipeable": props.swipeable,
6397
+ "lazyRender": props.lazyRender,
6398
+ "currentIndex": state.currentIndex,
6399
+ "onChange": setCurrentIndex
6400
+ }, {
6401
+ default: () => {
6402
+ var _a2;
6403
+ return [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)];
6404
+ }
6405
+ })]);
6403
6406
  }
6404
6407
  });
6405
6408
  const TAB_STATUS_KEY = Symbol();
@@ -14945,7 +14948,7 @@ const Lazyload = {
14945
14948
  });
14946
14949
  }
14947
14950
  };
14948
- const version = "3.6.3";
14951
+ const version = "3.6.4";
14949
14952
  function install(app) {
14950
14953
  const components = [
14951
14954
  ActionBar,
package/lib/vant.es.js CHANGED
@@ -6182,17 +6182,19 @@ var stdin_default$11 = defineComponent({
6182
6182
  const newTab = children[newIndex];
6183
6183
  const newName = getTabName(newTab, newIndex);
6184
6184
  const shouldEmitChange = state.currentIndex !== null;
6185
- state.currentIndex = newIndex;
6185
+ if (state.currentIndex !== newIndex) {
6186
+ state.currentIndex = newIndex;
6187
+ if (!skipScrollIntoView) {
6188
+ scrollIntoView();
6189
+ }
6190
+ setLine();
6191
+ }
6186
6192
  if (newName !== props.active) {
6187
6193
  emit("update:active", newName);
6188
6194
  if (shouldEmitChange) {
6189
6195
  emit("change", newName, newTab.title);
6190
6196
  }
6191
6197
  }
6192
- if (!skipScrollIntoView) {
6193
- scrollIntoView();
6194
- }
6195
- setLine();
6196
6198
  if (stickyFixed && !props.scrollspy) {
6197
6199
  setRootScrollTop(Math.ceil(getElementTop(root.value) - offsetTopPx.value));
6198
6200
  }
@@ -6294,13 +6296,14 @@ var stdin_default$11 = defineComponent({
6294
6296
  }
6295
6297
  };
6296
6298
  const renderHeader = () => {
6297
- var _a2, _b2;
6299
+ var _a2, _b2, _c;
6298
6300
  const {
6299
6301
  type,
6300
- border
6302
+ border,
6303
+ sticky
6301
6304
  } = props;
6302
- return createVNode("div", {
6303
- "ref": wrapRef,
6305
+ const Header = [createVNode("div", {
6306
+ "ref": sticky ? void 0 : wrapRef,
6304
6307
  "class": [bem$W("wrap"), {
6305
6308
  [BORDER_TOP_BOTTOM]: type === "line" && border
6306
6309
  }]
@@ -6313,7 +6316,13 @@ var stdin_default$11 = defineComponent({
6313
6316
  }]),
6314
6317
  "style": navStyle.value,
6315
6318
  "aria-orientation": "horizontal"
6316
- }, [(_a2 = slots["nav-left"]) == null ? void 0 : _a2.call(slots), renderNav(), renderLine(), (_b2 = slots["nav-right"]) == null ? void 0 : _b2.call(slots)])]);
6319
+ }, [(_a2 = slots["nav-left"]) == null ? void 0 : _a2.call(slots), renderNav(), renderLine(), (_b2 = slots["nav-right"]) == null ? void 0 : _b2.call(slots)])]), (_c = slots["nav-bottom"]) == null ? void 0 : _c.call(slots)];
6320
+ if (sticky) {
6321
+ return createVNode("div", {
6322
+ "ref": wrapRef
6323
+ }, [Header]);
6324
+ }
6325
+ return Header;
6317
6326
  };
6318
6327
  watch([() => props.color, windowWidth], setLine);
6319
6328
  watch(() => props.active, (value) => {
@@ -6367,37 +6376,31 @@ var stdin_default$11 = defineComponent({
6367
6376
  currentName,
6368
6377
  scrollIntoView
6369
6378
  });
6370
- return () => {
6371
- var _a2;
6372
- return createVNode("div", {
6373
- "ref": root,
6374
- "class": bem$W([props.type])
6375
- }, [props.sticky ? createVNode(Sticky, {
6376
- "container": root.value,
6377
- "offsetTop": offsetTopPx.value,
6378
- "onScroll": onStickyScroll
6379
- }, {
6380
- default: () => {
6381
- var _a3;
6382
- return [renderHeader(), (_a3 = slots["nav-bottom"]) == null ? void 0 : _a3.call(slots)];
6383
- }
6384
- }) : [renderHeader(), (_a2 = slots["nav-bottom"]) == null ? void 0 : _a2.call(slots)], createVNode(stdin_default$12, {
6385
- "ref": contentRef,
6386
- "count": children.length,
6387
- "inited": state.inited,
6388
- "animated": props.animated,
6389
- "duration": props.duration,
6390
- "swipeable": props.swipeable,
6391
- "lazyRender": props.lazyRender,
6392
- "currentIndex": state.currentIndex,
6393
- "onChange": setCurrentIndex
6394
- }, {
6395
- default: () => {
6396
- var _a3;
6397
- return [(_a3 = slots.default) == null ? void 0 : _a3.call(slots)];
6398
- }
6399
- })]);
6400
- };
6379
+ return () => createVNode("div", {
6380
+ "ref": root,
6381
+ "class": bem$W([props.type])
6382
+ }, [props.sticky ? createVNode(Sticky, {
6383
+ "container": root.value,
6384
+ "offsetTop": offsetTopPx.value,
6385
+ "onScroll": onStickyScroll
6386
+ }, {
6387
+ default: () => [renderHeader()]
6388
+ }) : renderHeader(), createVNode(stdin_default$12, {
6389
+ "ref": contentRef,
6390
+ "count": children.length,
6391
+ "inited": state.inited,
6392
+ "animated": props.animated,
6393
+ "duration": props.duration,
6394
+ "swipeable": props.swipeable,
6395
+ "lazyRender": props.lazyRender,
6396
+ "currentIndex": state.currentIndex,
6397
+ "onChange": setCurrentIndex
6398
+ }, {
6399
+ default: () => {
6400
+ var _a2;
6401
+ return [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)];
6402
+ }
6403
+ })]);
6401
6404
  }
6402
6405
  });
6403
6406
  const TAB_STATUS_KEY = Symbol();
@@ -14943,7 +14946,7 @@ const Lazyload = {
14943
14946
  });
14944
14947
  }
14945
14948
  };
14946
- const version = "3.6.3";
14949
+ const version = "3.6.4";
14947
14950
  function install(app) {
14948
14951
  const components = [
14949
14952
  ActionBar,