diff --git a/src/meui/components/tab/index.js b/src/meui/components/tab/index.js new file mode 100644 index 0000000..1ba5cf7 --- /dev/null +++ b/src/meui/components/tab/index.js @@ -0,0 +1,3 @@ +import Tab from './src/tab.vue' +import TabItem from './src/tab-item.vue' +export {Tab, TabItem} diff --git a/src/meui/components/tab/src/tab-item.vue b/src/meui/components/tab/src/tab-item.vue new file mode 100644 index 0000000..7453d95 --- /dev/null +++ b/src/meui/components/tab/src/tab-item.vue @@ -0,0 +1,21 @@ + + + + + + diff --git a/src/meui/components/tab/src/tab.vue b/src/meui/components/tab/src/tab.vue new file mode 100644 index 0000000..4ba3db6 --- /dev/null +++ b/src/meui/components/tab/src/tab.vue @@ -0,0 +1,31 @@ + + + + + + diff --git a/src/meui/index.js b/src/meui/index.js index bfca35b..91a6338 100644 --- a/src/meui/index.js +++ b/src/meui/index.js @@ -18,6 +18,7 @@ import ActionSheet from './components/actionsheet'; import {CityPicker} from './components/cityPicker'; +import {Tab, TabItem} from './components/tab'; import {Popup} from './components/popup'; import {Swiper} from './components/swiper'; import PreviewImage from './components/previewImage'; @@ -40,6 +41,8 @@ const install = function (Vue) { Vue.component(CityPicker.name, CityPicker); + Vue.component(Tab.name, Tab); + Vue.component(TabItem.name, TabItem); Vue.component(Popup.name, Popup); Vue.component(Swiper.name, Swiper); diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 07fd2e2..b339b26 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -71,7 +71,7 @@ export default { title:'基础组件', active:false, list:[ - {title:'Tab - 选项卡',path:'/Index/Popup'}, + {title:'Tab - 选项卡',path:'/Index/Tab'}, {title:'Popup - 弹层',path:'/Index/Popup'}, {title:'Swiper - 轮播',path:'/Index/Swiper'}, {title:'Lightbox - 图片查看',path:'/Index/PreviewImage'}, diff --git a/src/pages/tab/tab.vue b/src/pages/tab/tab.vue new file mode 100644 index 0000000..46fb2a1 --- /dev/null +++ b/src/pages/tab/tab.vue @@ -0,0 +1,26 @@ + + + + + + + diff --git a/src/router/index.js b/src/router/index.js index 704750f..ab0307c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -14,6 +14,7 @@ import Index from '@/pages/index/index'; import CityPicker from '@/pages/cityPicker/cityPicker'; + import Tab from '@/pages/tab/tab'; import Popup from '@/pages/popup/popup'; import Swiper from '@/pages/swiper/swiper'; import PreviewImage from '@/pages/previewImage/previewImage'; @@ -39,6 +40,7 @@ var router = new Router({ {path: 'PullRefresh',component: PullRefresh,meta:{title:'PullRefresh'}}, {path: 'CityPicker',component: CityPicker,meta:{title:'CityPicker'}}, {path: 'Flex',component: Flex,meta:{title:'Flex'}}, + {path: 'Tab',component: Tab,meta:{title:'Tab'}}, {path: 'Popup',component: Popup,meta:{title:'Popup'}}, {path: 'Swiper',component: Swiper,meta:{title:'Swiper'}}, {path: 'PreviewImage',component: PreviewImage,meta:{title:'PreviewImage'}},