更新依赖

master
yutent 2023-05-25 17:30:41 +08:00
parent 8048ce5751
commit 513791e986
4 changed files with 7 additions and 4 deletions

View File

@ -25,11 +25,13 @@ export default {
// 有用到其他的库, 可以手动添加,
// 也可以在页面中直接引入完整的路径, 而不必须在这里声明
imports: {
'es.shim': '//jscdn.ink/es.shim/2.1.0/index.js',
vue: '//jscdn.ink/vue/3.2.47/vue.esm-browser.prod.js',
'vue-router': '//jscdn.ink/@bytedo/vue-router/4.1.6/vue-router.js',
// 这个库被vue-router依赖, 可以注释掉vue-router代码中的 @vue/devtools-api 的引入
// 以达到减少不必须的体积的效果
fetch: '//jscdn.ink/@bytedo/fetch/latest/next.js',
'@bd/core': '//jscdn.ink/@bd/core/latest/index.js'
'@bd/core': '//jscdn.ink/wkit/latest/index.js',
wkit: '//jscdn.ink/wkit/latest/index.js'
}
}

View File

@ -6,6 +6,6 @@
"build": "fite build"
},
"devDependencies": {
"fite": "^0.6.0"
"fite": "^1.1.6"
}
}

View File

@ -1,6 +1,6 @@
import { createApp } from 'vue'
import '//jscdn.ink/es.shim/2.1.0/index.js'
import 'es.shim'
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/switch.js'

View File

@ -6,13 +6,14 @@
placeholder="请输入开源库的名字"
@submit="search"
/>
<wc-switch v-model="onlyShowWaited" @input="search"
<wc-switch v-model="onlyShowWaited" @change="search"
>只显示待审核</wc-switch
>
<wc-link type="info" @click="openDialog">
没找到你想的库?点击申请收录
</wc-link>
</div>
<wc-table class="list" :thead="thead">
<wc-tr v-for="it of list" :key="it.id">
<wc-td align="center">