chunk-77d5b6e2.507c6972.js.map 8.9 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/Tab.vue?bbab","webpack:///./node_modules/_core-js@3.6.4@core-js/modules/es.function.name.js","webpack:///./src/views/Tab.vue?2cb6","webpack:///src/views/Tab.vue","webpack:///./src/views/Tab.vue?b4d0","webpack:///./src/views/Tab.vue"],"names":["DESCRIPTORS","defineProperty","f","FunctionPrototype","Function","prototype","FunctionPrototypeToString","toString","nameRE","NAME","configurable","get","call","this","match","error","render","_vm","_h","$createElement","_c","_self","style","height","attrs","key","mode","on","callback","changeHandle","_l","item","i","name","$route","meta","_e","keepAlive","_v","staticRenderFns","data","links","methods","console","log","val","v","$router","push","tabClick","component"],"mappings":"yIAAA,yBAAwrB,EAAG,G,qBCA3rB,IAAIA,EAAc,EAAQ,QACtBC,EAAiB,EAAQ,QAAuCC,EAEhEC,EAAoBC,SAASC,UAC7BC,EAA4BH,EAAkBI,SAC9CC,EAAS,wBACTC,EAAO,QAIPT,GAAiBS,KAAQN,GAC3BF,EAAeE,EAAmBM,EAAM,CACtCC,cAAc,EACdC,IAAK,WACH,IACE,OAAOL,EAA0BM,KAAKC,MAAMC,MAAMN,GAAQ,GAC1D,MAAOO,GACP,MAAO,Q,yCCjBf,IAAIC,EAAS,WAAa,IAAIC,EAAIJ,KAASK,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACE,MAAM,CAAGC,OAAQ,SAAUC,MAAM,CAAC,iBAAmBP,EAAIQ,IAAI,YAAcR,EAAIS,KAAK,UAAW,GAAOC,GAAG,CAAC,UAAYV,EAAIW,SAAS,UAAYX,EAAIW,SAAS,OAASX,EAAIY,eAAe,CAACZ,EAAIa,GAAIb,EAAS,OAAE,SAASc,EAAKC,GAAG,OAAOZ,EAAG,aAAa,CAACK,IAAIO,EAAER,MAAM,CAAC,IAAMO,EAAKE,OAAO,CAACb,EAAG,aAAa,CAAEH,EAAIiB,OAAOC,KAAc,UAAEf,EAAG,eAAeH,EAAImB,MAAM,GAAKnB,EAAIiB,OAAOC,KAAKE,UAA6BpB,EAAImB,KAAtBhB,EAAG,gBAAyB,MAAKA,EAAG,aAAa,CAACK,IAAI,IAAID,MAAM,CAAC,IAAM,UAAU,CAACP,EAAIqB,GAAG,sBAAsBlB,EAAG,aAAa,CAACK,IAAI,IAAID,MAAM,CAAC,IAAM,UAAU,CAACP,EAAIqB,GAAG,sBAAsBlB,EAAG,aAAa,CAACK,IAAI,IAAID,MAAM,CAAC,IAAM,UAAU,CAACP,EAAIqB,GAAG,sBAAsBlB,EAAG,aAAa,CAACK,IAAI,IAAID,MAAM,CAAC,IAAM,UAAU,CAACP,EAAIqB,GAAG,sBAAsBlB,EAAG,aAAa,CAACK,IAAI,IAAID,MAAM,CAAC,IAAM,UAAU,CAACP,EAAIqB,GAAG,sBAAsBlB,EAAG,aAAa,CAACK,IAAI,KAAKD,MAAM,CAAC,IAAM,WAAW,CAACP,EAAIqB,GAAG,uBAAuBlB,EAAG,aAAa,CAACK,IAAI,KAAKD,MAAM,CAAC,IAAM,WAAW,CAACP,EAAIqB,GAAG,wBAAwB,IACjjCC,EAAkB,GC8BtB,G,UAAA,CACEN,KAAM,MACNO,KAFF,WAGI,MAAO,CACLd,KAAM,MACND,IAAN,EACMgB,MAAO,CACb,CACQ,KAAR,QACQ,KAAR,SAEA,CACQ,KAAR,SACQ,KAAR,aAKEC,QAAS,CACPd,SADJ,SACA,GACMe,QAAQC,IAAIC,IAEdhB,aAJJ,SAIA,GACMc,QAAQC,IAAIE,GACZ,IAAN,qBACA,mBACA,OACQjC,KAAKkC,QAAQC,KAAK,CAA1B,UAGIC,SAZJ,SAYA,GACMN,QAAQC,IAAIE,OC9D+Z,I,wBCQ7aI,EAAY,eACd,EACAlC,EACAuB,GACA,EACA,KACA,WACA,MAIa,aAAAW,E","file":"js/chunk-77d5b6e2.507c6972.js","sourcesContent":["import mod from \"-!../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/_css-loader@3.4.2@css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../node_modules/_vue-loader@15.8.3@vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.8.3@vue-loader/lib/index.js??vue-loader-options!./Tab.vue?vue&type=style&index=0&id=8540b4fa&lang=less&scoped=true&\"; export default mod; export * from \"-!../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/_css-loader@3.4.2@css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../node_modules/_vue-loader@15.8.3@vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.8.3@vue-loader/lib/index.js??vue-loader-options!./Tab.vue?vue&type=style&index=0&id=8540b4fa&lang=less&scoped=true&\"","var DESCRIPTORS = require('../internals/descriptors');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar FunctionPrototype = Function.prototype;\nvar FunctionPrototypeToString = FunctionPrototype.toString;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// Function instances `.name` property\n// https://tc39.github.io/ecma262/#sec-function-instances-name\nif (DESCRIPTORS && !(NAME in FunctionPrototype)) {\n defineProperty(FunctionPrototype, NAME, {\n configurable: true,\n get: function () {\n try {\n return FunctionPrototypeToString.call(this).match(nameRE)[1];\n } catch (error) {\n return '';\n }\n }\n });\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-tabs',{style:({ height: '200px'}),attrs:{\"defaultActiveKey\":_vm.key,\"tabPosition\":_vm.mode,\"animated\":false},on:{\"prevClick\":_vm.callback,\"nextClick\":_vm.callback,\"change\":_vm.changeHandle}},[_vm._l((_vm.links),function(item,i){return _c('a-tab-pane',{key:i,attrs:{\"tab\":item.name}},[_c('keep-alive',[(_vm.$route.meta.keepAlive)?_c('router-view'):_vm._e()],1),(!_vm.$route.meta.keepAlive)?_c('router-view'):_vm._e()],1)}),_c('a-tab-pane',{key:\"5\",attrs:{\"tab\":\"Tab 5\"}},[_vm._v(\"Content of tab 5\")]),_c('a-tab-pane',{key:\"6\",attrs:{\"tab\":\"Tab 6\"}},[_vm._v(\"Content of tab 6\")]),_c('a-tab-pane',{key:\"7\",attrs:{\"tab\":\"Tab 7\"}},[_vm._v(\"Content of tab 7\")]),_c('a-tab-pane',{key:\"8\",attrs:{\"tab\":\"Tab 8\"}},[_vm._v(\"Content of tab 8\")]),_c('a-tab-pane',{key:\"9\",attrs:{\"tab\":\"Tab 9\"}},[_vm._v(\"Content of tab 9\")]),_c('a-tab-pane',{key:\"10\",attrs:{\"tab\":\"Tab 10\"}},[_vm._v(\"Content of tab 10\")]),_c('a-tab-pane',{key:\"11\",attrs:{\"tab\":\"Tab 11\"}},[_vm._v(\"Content of tab 11\")])],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <a-tabs\n :defaultActiveKey=\"key\"\n :tabPosition=\"mode\"\n :style=\"{ height: '200px'}\"\n @prevClick=\"callback\"\n @nextClick=\"callback\"\n @change=\"changeHandle\"\n :animated=\"false\"\n >\n <a-tab-pane :tab=\"item.name\" v-for=\"(item, i) in links\" :key=\"i\">\n \n <keep-alive>\n <router-view v-if=\"$route.meta.keepAlive\"></router-view>\n </keep-alive>\n <router-view v-if=\"!$route.meta.keepAlive\"></router-view>\n\n </a-tab-pane>\n\n <a-tab-pane tab=\"Tab 5\" key=\"5\">Content of tab 5</a-tab-pane>\n <a-tab-pane tab=\"Tab 6\" key=\"6\">Content of tab 6</a-tab-pane>\n <a-tab-pane tab=\"Tab 7\" key=\"7\">Content of tab 7</a-tab-pane>\n <a-tab-pane tab=\"Tab 8\" key=\"8\">Content of tab 8</a-tab-pane>\n <a-tab-pane tab=\"Tab 9\" key=\"9\">Content of tab 9</a-tab-pane>\n <a-tab-pane tab=\"Tab 10\" key=\"10\">Content of tab 10</a-tab-pane>\n <a-tab-pane tab=\"Tab 11\" key=\"11\">Content of tab 11</a-tab-pane>\n </a-tabs>\n</template>\n\n<script>\n\nexport default {\n name: 'tab',\n data() {\n return {\n mode: 'top',\n key:0,\n links: [\n {\n name: \"child\",\n path: 'child'\n },\n {\n name: \"second\",\n path: 'second'\n },\n ]\n };\n },\n methods: {\n callback(val) {\n console.log(val);\n },\n changeHandle(v){\n console.log(v)\n let name = this.links[v].name\n let routeName = this.$route.name\n if(routeName !== name){\n this.$router.push({ name: name })\n }\n },\n tabClick(v){\n console.log(v)\n }\n },\n}\n</script>\n\n<style lang=\"less\" scoped>\n.test{\n color: pink;\n} \n</style>","import mod from \"-!../../node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.8.3@vue-loader/lib/index.js??vue-loader-options!./Tab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.8.3@vue-loader/lib/index.js??vue-loader-options!./Tab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Tab.vue?vue&type=template&id=8540b4fa&scoped=true&\"\nimport script from \"./Tab.vue?vue&type=script&lang=js&\"\nexport * from \"./Tab.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Tab.vue?vue&type=style&index=0&id=8540b4fa&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/_vue-loader@15.8.3@vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8540b4fa\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}