Comparing version 0.0.36 to 0.0.37
@@ -150,5 +150,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
_DuoyunCarouselElement_add.set(this, (direction) => { | ||
if (!this.data) | ||
var _a; | ||
const total = (_a = this.data) === null || _a === void 0 ? void 0 : _a.length; | ||
if (!total) | ||
return; | ||
const total = this.data.length; | ||
this.setState({ currentIndex: (total + this.state.currentIndex + direction) % total, direction }); | ||
@@ -195,2 +196,3 @@ __classPrivateFieldGet(this, _DuoyunCarouselElement_reset, "f").call(this); | ||
const { currentIndex, direction } = this.state; | ||
debugger; | ||
return html ` | ||
@@ -197,0 +199,0 @@ <ul class="list" role="region"> |
{ | ||
"name": "duoyun-ui", | ||
"version": "0.0.36", | ||
"version": "0.0.37", | ||
"description": "WebComponts UI", | ||
@@ -5,0 +5,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1289314
20406