mirror of
https://github.com/HamCQ/Handbook.git
synced 2026-10-02 04:47:21 +00:00
1 line
1.2 KiB
JavaScript
1 line
1.2 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{261:function(t,e,a){},285:function(t,e,a){"use strict";a(261)},299:function(t,e,a){"use strict";a.r(e);var s={props:{category:{type:String,default:""},categoriesData:{type:Array,default:[]},length:{type:[String,Number],default:"all"}},computed:{categories(){return"all"===this.length?this.categoriesData:this.categoriesData.slice(0,this.length)}}},r=(a(285),a(4)),i=Object(r.a)(s,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"categories-wrapper card-box"},[e("router-link",{staticClass:"title iconfont icon-wenjianjia",attrs:{to:"/categories/",title:"全部分类"}},[t._v(t._s("all"===t.length?"全部分类":"文章分类"))]),t._v(" "),e("div",{staticClass:"categories"},[t._l(t.categories,(function(a,s){return e("router-link",{key:s,class:{active:a.key===t.category},attrs:{to:"/categories/?category="+encodeURIComponent(a.key)}},[t._v("\n "+t._s(a.key)+"\n "),e("span",[t._v(t._s(a.length))])])})),t._v(" "),"all"!==t.length&&t.length<t.categoriesData.length?e("router-link",{staticClass:"more",attrs:{to:"/categories/"}},[t._v("更多 ...")]):t._e()],2)],1)}),[],!1,null,null,null);e.default=i.exports}}]); |