style:代码格式更改

This commit is contained in:
jstao 2022-04-12 10:08:25 +08:00
parent 0bcc6fbbf4
commit f988dfb0c4
3 changed files with 25 additions and 40 deletions

View File

@ -4,30 +4,30 @@
*/
import { Button, Tabbar, TabbarItem, Sticky, NavBar, Icon, Search, DropdownMenu, DropdownItem, Image, Lazyload, Tabs, Tab, Toast, Field, Cell, CellGroup, Form, List } from 'vant'
const pluginsVant = [
Button,
Tabbar,
TabbarItem,
Sticky,
NavBar,
Icon,
Search,
DropdownMenu,
DropdownItem,
Image,
Lazyload,
Tabs,
Tab,
Toast,
Field,
Cell,
CellGroup,
Form,
List
Button,
Tabbar,
TabbarItem,
Sticky,
NavBar,
Icon,
Search,
DropdownMenu,
DropdownItem,
Image,
Lazyload,
Tabs,
Tab,
Toast,
Field,
Cell,
CellGroup,
Form,
List
]
export const vantPlugins = {
install: function(vm) {
pluginsVant.forEach((item:any) => {
vm.component(item.name, item);
});
}
install: function(vm) {
pluginsVant.forEach((item:any) => {
vm.component(item.name, item);
});
}
};

View File

@ -14,8 +14,6 @@ const childRoutes = Object.keys(viewRouterModules).map((path)=>{
}
})
console.log(childRoutes,'childRouter');
// 根路由
const rootRoutes = Object.keys(mainRouterModules).map((path) => {
const name = path.match(/\.\.\/layout\/(.*)\.vue$/)[1].toLowerCase();
@ -33,8 +31,6 @@ const rootRoutes = Object.keys(mainRouterModules).map((path) => {
const routes: Array<RouteRecordRaw> = rootRoutes
const router = createRouter({
history: createWebHashHistory(),
routes,

View File

@ -26,15 +26,6 @@
}
const { list } = useShowList()
// const store = useStore()
// const name = computed(() => store.state.userNmae)
// const handleBtn = () =>{
// store.commit('getUserNmae', 'Vue')
// }
</script>
<template>
@ -50,9 +41,7 @@
</div>
</div>
<div class="py-5">
<van-list
finished-text="没有更多了"
>
<van-list finished-text="没有更多了">
<van-cell v-for="(item, index) in list" :key="index" :title="item.title" icon="success" />
</van-list>
</div>