clone 开源的 Shopping
This commit is contained in:
51
mobile-web/src/config/components.js
Normal file
51
mobile-web/src/config/components.js
Normal file
@@ -0,0 +1,51 @@
|
||||
|
||||
import headerNav from '../components/header/nav';
|
||||
|
||||
import navigate from '../components/footer/navigate.vue'
|
||||
import productcard from '../components/common/productcard.vue'
|
||||
import {
|
||||
Tag,
|
||||
Col,
|
||||
Icon,
|
||||
Cell,
|
||||
CellGroup,
|
||||
Swipe,
|
||||
Toast,
|
||||
SwipeItem,
|
||||
GoodsAction,
|
||||
GoodsActionBigBtn,
|
||||
GoodsActionMiniBtn,
|
||||
Actionsheet,
|
||||
Sku,
|
||||
Card,Button,SwipeCell,Dialog,Tab, Tabs,Row,Checkbox, CheckboxGroup, SubmitBar,NavBar,Tabbar, TabbarItem,Panel,List,Step, Steps,Field ,
|
||||
Badge, BadgeGroup,Popup,Stepper,RadioGroup, Radio,Picker,Uploader,Info
|
||||
} from 'vant';
|
||||
|
||||
const components=[
|
||||
Tag,
|
||||
Col,
|
||||
Icon,
|
||||
Cell,
|
||||
CellGroup,
|
||||
Swipe,
|
||||
SwipeItem,
|
||||
GoodsAction,
|
||||
GoodsActionBigBtn,
|
||||
GoodsActionMiniBtn,
|
||||
Actionsheet,
|
||||
Sku,
|
||||
Card,
|
||||
Button,
|
||||
SwipeCell ,
|
||||
Dialog ,
|
||||
headerNav,
|
||||
Tab, Tabs,Toast,Row,Checkbox, CheckboxGroup, SubmitBar,NavBar ,Tabbar, TabbarItem,navigate,Panel,List ,Step, Steps,Field ,
|
||||
Badge, BadgeGroup,Popup,productcard,Stepper,RadioGroup, Radio,Picker,Uploader,Info
|
||||
]
|
||||
|
||||
|
||||
export default (Vue)=>{
|
||||
components.forEach(Component => {
|
||||
Vue.component(Component.name, Component)
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user