File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -125,12 +125,23 @@ export default {
125125 noSearchResults : "未找到匹配的元信息记录" ,
126126 createFirst : "创建第一条记录" ,
127127 } ,
128+
129+ // 成功提示
130+ success : {
131+ created : "元信息创建成功" ,
132+ updated : "元信息更新成功" ,
133+ deleted : "元信息删除成功" ,
134+ } ,
135+
136+ // 错误提示
128137 error : {
129138 loadFailed : "加载元信息列表失败" ,
130139 createFailed : "创建元信息失败" ,
131140 updateFailed : "更新元信息失败" ,
132141 deleteFailed : "删除元信息失败" ,
133142 } ,
143+
144+ // 操作按钮
134145 actions : {
135146 edit : "编辑" ,
136147 delete : "删除" ,
Original file line number Diff line number Diff line change @@ -142,21 +142,21 @@ onMounted(() => {
142142 </div >
143143
144144 <!-- 加载中指示器 -->
145- <div v-if =" loading && !paginatedMetaList.length" class =" flex justify-center my-8 " >
145+ <div v-if =" loading && !paginatedMetaList.length" class =" flex justify-center items-center py-12 bg-white dark:bg-gray-800 shadow-md rounded-lg flex-1 " >
146146 <IconRefresh class =" animate-spin h-8 w-8" :class =" darkMode ? 'text-blue-400' : 'text-blue-500'" />
147147 </div >
148148
149149 <!-- 数据展示区域 -->
150- <div v-if =" !loading || paginatedMetaList.length " class =" overflow-hidden bg-white dark:bg-gray-800 shadow-md rounded-lg flex-1" >
150+ <div v-else- if =" pagination.total > 0 " class =" overflow-hidden bg-white dark:bg-gray-800 shadow-md rounded-lg flex-1" >
151151 <div class =" flex flex-col h-full" >
152152 <FsMetaTable :dark-mode =" darkMode" :meta-list =" paginatedMetaList" :loading =" loading || searchLoading" @edit =" openEditForm" @delete =" confirmDelete" />
153153 </div >
154154 </div >
155155
156156 <!-- 空状态 -->
157157 <div
158- v-if = " !loading && pagination.total === 0 "
159- class =" flex flex-col items-center justify-center py-12 bg-white dark:bg-gray-800 shadow-md rounded-lg"
158+ v-else
159+ class =" flex flex-col items-center justify-center py-12 bg-white dark:bg-gray-800 shadow-md rounded-lg flex-1 "
160160 :class =" darkMode ? 'text-gray-400' : 'text-gray-500'"
161161 >
162162 <IconArchive class =" h-16 w-16 mb-4 opacity-50" />
You can’t perform that action at this time.
0 commit comments