feat: 支持 uTools list 模板

This commit is contained in:
muwoo
2021-07-09 12:37:35 +08:00
parent f34d93691d
commit b08f4fab54
11 changed files with 144 additions and 10 deletions

View File

@@ -162,6 +162,10 @@ export default {
}
},
changeCurrent(index) {
const webview = document.getElementById('webview');
webview && webview.send('changeCurrent', index);
if (!this.options) return;
if (this.currentSelect + index > this.options.length - 1 || this.currentSelect + index < 0) return;
this.currentSelect = this.currentSelect + index;
},