Archived
Доработки по коду
This commit is contained in:
1 parent
7495ba6122
commit
f0e0a7b0c1
1 file changed
+4
-4
@@ -133,9 +133,9 @@ const init = async (items = [], options = {}, index = 0) => {
|
||||
},
|
||||
set init(val) {
|
||||
this.state = val;
|
||||
this.callback.forEach((i) => {
|
||||
for (const i of this.callback) {
|
||||
i(val);
|
||||
});
|
||||
}
|
||||
},
|
||||
callback: [],
|
||||
addListener(callback) {
|
||||
@@ -159,8 +159,8 @@ const init = async (items = [], options = {}, index = 0) => {
|
||||
<div class="advdominion-lg__wrapper swiper-wrapper">
|
||||
${items.join('')}
|
||||
</div>
|
||||
${options.pagination ? options.pagination : ''}
|
||||
${options.navigation ? options.navigation : ''}
|
||||
${options.pagination || ''}
|
||||
${options.navigation || ''}
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
|
||||
Reference in new issue
Block a user