master
parent
513791e986
commit
6984ed9ffa
|
@ -26,7 +26,7 @@ export default {
|
||||||
// 也可以在页面中直接引入完整的路径, 而不必须在这里声明
|
// 也可以在页面中直接引入完整的路径, 而不必须在这里声明
|
||||||
imports: {
|
imports: {
|
||||||
'es.shim': '//jscdn.ink/es.shim/2.1.0/index.js',
|
'es.shim': '//jscdn.ink/es.shim/2.1.0/index.js',
|
||||||
vue: '//jscdn.ink/vue/3.2.47/vue.esm-browser.prod.js',
|
vue: '//jscdn.ink/vue/latest/vue.esm-browser.prod.js',
|
||||||
'vue-router': '//jscdn.ink/@bytedo/vue-router/4.1.6/vue-router.js',
|
'vue-router': '//jscdn.ink/@bytedo/vue-router/4.1.6/vue-router.js',
|
||||||
// 这个库被vue-router依赖, 可以注释掉vue-router代码中的 @vue/devtools-api 的引入
|
// 这个库被vue-router依赖, 可以注释掉vue-router代码中的 @vue/devtools-api 的引入
|
||||||
// 以达到减少不必须的体积的效果
|
// 以达到减少不必须的体积的效果
|
||||||
|
|
|
@ -3,9 +3,11 @@ import { createApp } from 'vue'
|
||||||
import 'es.shim'
|
import 'es.shim'
|
||||||
import '//jscdn.ink/@bd/ui/latest/form/input.js'
|
import '//jscdn.ink/@bd/ui/latest/form/input.js'
|
||||||
import '//jscdn.ink/@bd/ui/latest/form/button.js'
|
import '//jscdn.ink/@bd/ui/latest/form/button.js'
|
||||||
|
import '//jscdn.ink/@bd/ui/latest/form/checkbox.js'
|
||||||
import '//jscdn.ink/@bd/ui/latest/form/switch.js'
|
import '//jscdn.ink/@bd/ui/latest/form/switch.js'
|
||||||
import '//jscdn.ink/@bd/ui/latest/form/link.js'
|
import '//jscdn.ink/@bd/ui/latest/form/link.js'
|
||||||
import '//jscdn.ink/@bd/ui/latest/layer/index.js'
|
import '//jscdn.ink/@bd/ui/latest/layer/index.js'
|
||||||
|
// import 'http://127.0.0.1:8090/dist/layer/index.js'
|
||||||
import '//jscdn.ink/@bd/ui/latest/pager/index.js'
|
import '//jscdn.ink/@bd/ui/latest/pager/index.js'
|
||||||
import '//jscdn.ink/@bytedo/wcui/1.0.12/form/dropdown.js'
|
import '//jscdn.ink/@bytedo/wcui/1.0.12/form/dropdown.js'
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
placeholder="请输入开源库的名字"
|
placeholder="请输入开源库的名字"
|
||||||
@submit="search"
|
@submit="search"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<wc-switch v-model="onlyShowWaited" @change="search"
|
<wc-switch v-model="onlyShowWaited" @change="search"
|
||||||
>只显示待审核</wc-switch
|
>只显示待审核</wc-switch
|
||||||
>
|
>
|
||||||
|
@ -58,7 +59,7 @@
|
||||||
class="pager"
|
class="pager"
|
||||||
layout="prev,pages,next,info"
|
layout="prev,pages,next,info"
|
||||||
red
|
red
|
||||||
@page-change="pageChanged"
|
@page-changed="pageChanged"
|
||||||
:total="total"
|
:total="total"
|
||||||
:page="page"
|
:page="page"
|
||||||
/>
|
/>
|
||||||
|
@ -155,7 +156,8 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
pageChanged(ev) {
|
pageChanged(ev) {
|
||||||
this.page = ev.detail
|
this.page = ev.data
|
||||||
|
console.log('<><><>', this.page)
|
||||||
this.fetchPage()
|
this.fetchPage()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue