cordova-11/www/js/2.js

1 line
3.0 KiB
JavaScript
Raw Normal View History

2022-05-25 07:48:07 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[2],{"1b46":function(t,a,e){},b169:function(t,a,e){"use strict";e("1b46")},ec95:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"home"},[e("div",{staticClass:"navBar"},[e("div",{staticClass:"nav_header"},[e("Header")],1),e("div",{staticClass:"subNav"},[e("q-tabs",{staticClass:"text-white",attrs:{"inline-label":"","mobile-arrows":"",align:"left","indicator-color":"transparent","active-color":"white","active-bg-color":"primary"},model:{value:t.activeTab,callback:function(a){t.activeTab=a},expression:"activeTab"}},t._l(t.customRoutes,(function(a,n){return e("q-tab",{key:n,attrs:{name:n,label:a.originName},on:{click:function(e){return t.clickTab(a)}}})})),1),e("q-tab-panels",{staticClass:"bg-custom text-white",attrs:{animated:""},model:{value:t.activeTab,callback:function(a){t.activeTab=a},expression:"activeTab"}},t._l(t.customRoutes,(function(a,n){return e("q-tab-panel",{key:a.name,attrs:{name:n}},[e("q-carousel",{staticClass:"bg-custom my-carouse",attrs:{"transition-prev":"slide-right","transition-next":"slide-left",swipeable:"",animated:"","control-color":"white",navigation:""},on:{transition:t.transition},scopedSlots:t._u([{key:"navigation-icon",fn:function(t){var a=t.active,n=t.btnProps,i=t.onClick;return[e("q-btn",a?{staticClass:"my-active",attrs:{size:"8px",color:"white",flat:"",round:"",dense:""},on:{click:i}}:{staticClass:"my-normal",attrs:{size:"5px",icon:n.icon,color:"white",flat:"",round:"",dense:""},on:{click:i}})]}}],null,!0),model:{value:t.slide,callback:function(a){t.slide=a},expression:"slide"}},t._l(t.sliceArray(a.children,12),(function(a,n){return e("q-carousel-slide",{key:n,staticClass:"column no-wrap nopadding",attrs:{name:n}},[e("div",{staticClass:"nav_content"},t._l(a,(function(a,n){return e("div",{key:n,staticClass:"item",style:a.style},[e("div",{staticClass:"box",on:{click:function(e){return t.toPath(a.path)}}},[a.meta.icon?e("q-icon",{attrs:{name:"app:icon-"+a.meta.icon}}):e("q-icon",{attrs:{name:"app:icon-a-tubiaochangyong121"}}),e("p",{staticClass:"name"},[t._v(t._s(a.originName))])],1)])})),0)])})),1)],1)})),1)],1)])])},i=[],s=e("2f62"),o=e("8e33"),c={name:"",data(){return{activeTab:0,slide:0,lorem:"Lorem ipsum dolor.",tabList:[],list:[]}},components:{Header:o["default"]},computed:{...Object(s["b"])(["customRoutes","permissionRoutes"])},methods:{sliceArray(t,a){const e=[];for(let n=0;n<Math.ceil(t.length/a);n++){let i=n*a,s=i+a;e.push(t.slice(i,s))}return e},transition(t){},clickTab(t){this.slide=0},toPath(t){this.$router.push(t)}},mounted(){console.log(this.permissionRoutes)}},l=c,r=(e("b169"),e("2877")),u=e("429b"),d=e("7460"),b=e("adad"),m=e("823b"),p=e("880c"),v=e("9c40"),f=e("62cd"),h=e("0016"),k=e("eebe"),C=e.n(k),w=Object(r["a"])(l,n,i,!1,null,"d4bed5fe",null);a["default"]=w.exports;C()(w,"components",{QTabs:u["a"],QTab:d["a"],QTabPanels:b["a"],QTabPanel:m["a"],QCarousel:p["a"],QBtn:v["a"],QCarouselSlide:f["a"],QIcon:h["a"]})}}]);