`);
_push(ssrRenderComponent(_component_a_row, { gutter: [32, 0] }, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(ssrRenderComponent(_component_a_col, {
xs: 24,
lg: 5,
class: "mb-6 lg:mb-0"
}, {
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
if (_push3) {
_push3(``);
} else {
return [
createVNode("div", { class: "category-sidebar" }, [
createVNode("div", { class: "category-sidebar-title" }, toDisplayString(__props.config.title), 1),
(openBlock(true), createBlock(Fragment, null, renderList(__props.config.categories, (cat) => {
return openBlock(), createBlock("div", {
key: cat.type,
class: ["category-item", { active: unref(activeType) === cat.type }],
onClick: ($event) => selectType(cat.type)
}, toDisplayString(cat.label), 11, ["onClick"]);
}), 128))
])
];
}
}),
_: 1
}, _parent2, _scopeId));
_push2(ssrRenderComponent(_component_a_col, {
xs: 24,
lg: 19
}, {
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
if (_push3) {
_push3(`
${ssrInterpolate(unref(currentCategoryLabel))}共 ${ssrInterpolate(unref(total))} 篇文章
`);
if (unref(loading)) {
_push3(`
`);
ssrRenderList(5, (i) => {
_push3(ssrRenderComponent(_component_a_skeleton, {
key: i,
active: "",
paragraph: { rows: 2 },
style: { "margin-bottom": "16px" }
}, null, _parent3, _scopeId2));
});
_push3(`
`);
} else {
_push3(`
`);
ssrRenderList(unref(articles), (article) => {
_push3(`
`);
if (article.image) {
_push3(`
`);
} else {
_push3(``);
}
_push3(`
${ssrInterpolate(article.title)}
${ssrInterpolate(article.overview)}
`);
if (article.type) {
_push3(`${ssrInterpolate(getCategoryLabel(article.type))}`);
} else {
_push3(``);
}
_push3(`${ssrInterpolate(article.source)}${ssrInterpolate(article.publishTime)}`);
if (article.views) {
_push3(`👁 ${ssrInterpolate(article.views)}`);
} else {
_push3(``);
}
_push3(`
`);
});
_push3(`
`);
if (unref(articles).length === 0) {
_push3(`
`);
_push3(ssrRenderComponent(_component_a_empty, { description: "暂无内容" }, null, _parent3, _scopeId2));
_push3(`
`);
} else {
_push3(``);
}
if (unref(total) > unref(pageSize)) {
_push3(``);
} else {
_push3(``);
}
_push3(`
`);
}
} else {
return [
createVNode("div", { class: "category-breadcrumb" }, [
createVNode("span", { class: "category-name" }, toDisplayString(unref(currentCategoryLabel)), 1),
createVNode("span", { class: "article-count" }, "共 " + toDisplayString(unref(total)) + " 篇文章", 1)
]),
unref(loading) ? (openBlock(), createBlock("div", {
key: 0,
class: "loading-state"
}, [
(openBlock(), createBlock(Fragment, null, renderList(5, (i) => {
return createVNode(_component_a_skeleton, {
key: i,
active: "",
paragraph: { rows: 2 },
style: { "margin-bottom": "16px" }
});
}), 64))
])) : (openBlock(), createBlock("div", { key: 1 }, [
createVNode("div", { class: "article-list" }, [
(openBlock(true), createBlock(Fragment, null, renderList(unref(articles), (article) => {
return openBlock(), createBlock("div", {
key: article.id,
class: "article-item",
onClick: ($event) => handleView(article)
}, [
article.image ? (openBlock(), createBlock("div", {
key: 0,
class: "article-thumb"
}, [
createVNode("img", {
src: article.image,
alt: article.title
}, null, 8, ["src", "alt"])
])) : createCommentVNode("", true),
createVNode("div", { class: "article-main" }, [
createVNode("h3", { class: "article-title" }, toDisplayString(article.title), 1),
createVNode("p", { class: "article-overview" }, toDisplayString(article.overview), 1),
createVNode("div", { class: "article-meta" }, [
article.type ? (openBlock(), createBlock("span", {
key: 0,
class: "meta-tag"
}, toDisplayString(getCategoryLabel(article.type)), 1)) : createCommentVNode("", true),
createVNode("span", { class: "meta-item" }, toDisplayString(article.source), 1),
createVNode("span", { class: "meta-item" }, toDisplayString(article.publishTime), 1),
article.views ? (openBlock(), createBlock("span", {
key: 1,
class: "meta-item"
}, "👁 " + toDisplayString(article.views), 1)) : createCommentVNode("", true)
])
])
], 8, ["onClick"]);
}), 128))
]),
unref(articles).length === 0 ? (openBlock(), createBlock("div", {
key: 0,
class: "empty-state"
}, [
createVNode(_component_a_empty, { description: "暂无内容" })
])) : createCommentVNode("", true),
unref(total) > unref(pageSize) ? (openBlock(), createBlock("div", {
key: 1,
class: "pagination-wrap"
}, [
createVNode(_component_a_pagination, {
current: unref(currentPage),
"onUpdate:current": ($event) => isRef(currentPage) ? currentPage.value = $event : null,
total: unref(total),
"page-size": unref(pageSize),
"show-quick-jumper": "",
onChange: handlePageChange
}, null, 8, ["current", "onUpdate:current", "total", "page-size"])
])) : createCommentVNode("", true)
]))
];
}
}),
_: 1
}, _parent2, _scopeId));
} else {
return [
createVNode(_component_a_col, {
xs: 24,
lg: 5,
class: "mb-6 lg:mb-0"
}, {
default: withCtx(() => [
createVNode("div", { class: "category-sidebar" }, [
createVNode("div", { class: "category-sidebar-title" }, toDisplayString(__props.config.title), 1),
(openBlock(true), createBlock(Fragment, null, renderList(__props.config.categories, (cat) => {
return openBlock(), createBlock("div", {
key: cat.type,
class: ["category-item", { active: unref(activeType) === cat.type }],
onClick: ($event) => selectType(cat.type)
}, toDisplayString(cat.label), 11, ["onClick"]);
}), 128))
])
]),
_: 1
}),
createVNode(_component_a_col, {
xs: 24,
lg: 19
}, {
default: withCtx(() => [
createVNode("div", { class: "category-breadcrumb" }, [
createVNode("span", { class: "category-name" }, toDisplayString(unref(currentCategoryLabel)), 1),
createVNode("span", { class: "article-count" }, "共 " + toDisplayString(unref(total)) + " 篇文章", 1)
]),
unref(loading) ? (openBlock(), createBlock("div", {
key: 0,
class: "loading-state"
}, [
(openBlock(), createBlock(Fragment, null, renderList(5, (i) => {
return createVNode(_component_a_skeleton, {
key: i,
active: "",
paragraph: { rows: 2 },
style: { "margin-bottom": "16px" }
});
}), 64))
])) : (openBlock(), createBlock("div", { key: 1 }, [
createVNode("div", { class: "article-list" }, [
(openBlock(true), createBlock(Fragment, null, renderList(unref(articles), (article) => {
return openBlock(), createBlock("div", {
key: article.id,
class: "article-item",
onClick: ($event) => handleView(article)
}, [
article.image ? (openBlock(), createBlock("div", {
key: 0,
class: "article-thumb"
}, [
createVNode("img", {
src: article.image,
alt: article.title
}, null, 8, ["src", "alt"])
])) : createCommentVNode("", true),
createVNode("div", { class: "article-main" }, [
createVNode("h3", { class: "article-title" }, toDisplayString(article.title), 1),
createVNode("p", { class: "article-overview" }, toDisplayString(article.overview), 1),
createVNode("div", { class: "article-meta" }, [
article.type ? (openBlock(), createBlock("span", {
key: 0,
class: "meta-tag"
}, toDisplayString(getCategoryLabel(article.type)), 1)) : createCommentVNode("", true),
createVNode("span", { class: "meta-item" }, toDisplayString(article.source), 1),
createVNode("span", { class: "meta-item" }, toDisplayString(article.publishTime), 1),
article.views ? (openBlock(), createBlock("span", {
key: 1,
class: "meta-item"
}, "👁 " + toDisplayString(article.views), 1)) : createCommentVNode("", true)
])
])
], 8, ["onClick"]);
}), 128))
]),
unref(articles).length === 0 ? (openBlock(), createBlock("div", {
key: 0,
class: "empty-state"
}, [
createVNode(_component_a_empty, { description: "暂无内容" })
])) : createCommentVNode("", true),
unref(total) > unref(pageSize) ? (openBlock(), createBlock("div", {
key: 1,
class: "pagination-wrap"
}, [
createVNode(_component_a_pagination, {
current: unref(currentPage),
"onUpdate:current": ($event) => isRef(currentPage) ? currentPage.value = $event : null,
total: unref(total),
"page-size": unref(pageSize),
"show-quick-jumper": "",
onChange: handlePageChange
}, null, 8, ["current", "onUpdate:current", "total", "page-size"])
])) : createCommentVNode("", true)
]))
]),
_: 1
})
];
}
}),
_: 1
}, _parent));
_push(`