Доработки по коду
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) {
|
set init(val) {
|
||||||
this.state = val;
|
this.state = val;
|
||||||
this.callback.forEach((i) => {
|
for (const i of this.callback) {
|
||||||
i(val);
|
i(val);
|
||||||
});
|
}
|
||||||
},
|
},
|
||||||
callback: [],
|
callback: [],
|
||||||
addListener(callback) {
|
addListener(callback) {
|
||||||
|
@ -159,8 +159,8 @@ const init = async (items = [], options = {}, index = 0) => {
|
||||||
<div class="advdominion-lg__wrapper swiper-wrapper">
|
<div class="advdominion-lg__wrapper swiper-wrapper">
|
||||||
${items.join('')}
|
${items.join('')}
|
||||||
</div>
|
</div>
|
||||||
${options.pagination ? options.pagination : ''}
|
${options.pagination || ''}
|
||||||
${options.navigation ? options.navigation : ''}
|
${options.navigation || ''}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in New Issue