Commit 8a9475de by Lin

feat: 空列表图标替换/新分组创建限制

1 parent a227c996
......@@ -265,9 +265,9 @@ const handleCurrentChange = (val) => {
<!-- 自定义空状态 -->
<template #empty>
<div class="flex flex-col items-center justify-center py-12">
<div v-if="!loading" class="flex flex-col items-center justify-center py-12">
<img
src="/images/icon-empty.png"
src="/images/icon-empty-list.png"
alt="暂无数据"
class="w-[120px] h-[76px] opacity-80"
/>
......
......@@ -59,7 +59,7 @@
<template #empty>
<div class="flex flex-col items-center justify-center py-12">
<img
src="/images/icon-empty.png"
src="/images/icon-empty-list.png"
alt="暂无数据"
class="w-[120px] h-[76px] opacity-80"
/>
......@@ -116,7 +116,7 @@
<template #empty>
<div class="flex flex-col items-center justify-center py-12">
<img
src="/images/icon-empty.png"
src="/images/icon-empty-list.png"
alt="暂无数据"
class="w-[120px] h-[76px] opacity-80"
/>
......
......@@ -70,7 +70,7 @@
<template #empty>
<div class="flex flex-col items-center justify-center py-12">
<img
src="/images/icon-empty.png"
src="/images/icon-empty-list.png"
alt="暂无数据"
class="w-[120px] h-[76px] opacity-80"
/>
......
......@@ -45,6 +45,7 @@ const getCategoryList = async () => {
id: item.id,
name: item.name,
count: item.materialCount || 0,
sysCategory: item.sysCategory,
isEdit: false,
}));
......@@ -667,9 +668,9 @@ onMounted(() => {
<div class="flex flex-1 overflow-hidden bg-white p-6">
<!-- 左侧侧边栏 -->
<aside
class="mr-6 h-fit min-h-[712px] w-[278px] flex-shrink-0 rounded-[12px] border border-[#E1E3E6] p-[16px]"
class="mr-6 flex h-[calc(100%-40px)] w-[278px] flex-shrink-0 flex-col rounded-[12px] border border-[#E1E3E6] p-[16px]"
>
<div class="flex items-center justify-between mb-3 ">
<div class="flex items-center justify-between mb-3 flex-shrink-0">
<p class="text-[14px] font-normal text-[#2F3133]">
全部素材 · {{ totalMaterials }}
</p>
......@@ -681,7 +682,7 @@ onMounted(() => {
<span>新增分组</span>
</p>
</div>
<ul class="space-y-1">
<ul class="space-y-1 overflow-y-auto flex-1">
<!-- 空状态提示 -->
<li
v-if="categories.length === 0"
......@@ -717,7 +718,7 @@ onMounted(() => {
· {{ item.count }}
</span>
</p>
<p class="item-right flex-shrink-0" v-if="item.sysCategory != '1'">
<p class="item-right flex-shrink-0" v-if="item.sysCategory != '1' || item.name !='未分组'">
<img
class="w-[14px] h-[14px] cursor-pointer"
src="/images/icon-edit-know.png"
......@@ -894,7 +895,15 @@ onMounted(() => {
</div>
<div v-if="materials.length === 0">
<div class="flex justify-center items-center h-full">
<div class="text-gray-500">暂无素材</div>
<!-- 自定义空状态 -->
<div v-if="!loading" class="flex flex-col items-center justify-center py-12">
<img
src="/images/icon-empty-list.png"
alt="暂无数据"
class="w-[120px] h-[76px] opacity-80"
/>
<span class="text-[14px] text-[#9CA0A8] font-normal">暂无数据</span>
</div>
</div>
</div>
</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!