Доработки по коду
This commit is contained in:
parent
7495ba6122
commit
f0e0a7b0c1
8
index.js
8
index.js
|
@ -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>
|
||||
`
|
||||
|
|
Loading…
Reference in New Issue