Browse Source

修改显示

lex-xin 8 months ago
parent
commit
46eaba8ab9
2 changed files with 8 additions and 3 deletions
  1. 4 0
      src/views/xiaoku-list/index.module.less
  2. 4 3
      src/views/xiaoku-list/index.tsx

+ 4 - 0
src/views/xiaoku-list/index.module.less

@@ -299,6 +299,10 @@
       max-height: calc(100vh - 64px - 160px - 40px);
     }
   }
+
+  .emptyScrollBar {
+    display: none;
+  }
 }
 
 .sectionContainer {

+ 4 - 3
src/views/xiaoku-list/index.tsx

@@ -76,7 +76,7 @@ export default defineComponent({
       state.loading = true;
       try {
         const { data } = await api_musicSheetPage({
-          keyword: state.keyword,
+          name: state.keyword,
           page: state.page,
           rows: state.rows
         });
@@ -178,6 +178,7 @@ export default defineComponent({
           <TheSearch
             round
             class={styles.searchInput}
+            placeholder='请输入曲目名称'
             onSearch={val => {
               if (val && val.trim()) {
                 state.isSearch = true;
@@ -202,7 +203,7 @@ export default defineComponent({
 
         {state.isSearch ? (
           <div class={styles.searchContainer}>
-            <NScrollbar>
+            <NScrollbar class={!state.loading && state.list.length === 0 ? styles.emptyScrollBar : ''}>
               <div class={styles.sectionContainer}>
                 {state.list.map((item: any) => (
                   <div
@@ -244,7 +245,7 @@ export default defineComponent({
 
             {!state.loading && state.list.length === 0 && (
               <div class={styles.empty}>
-                <TheEmpty></TheEmpty>
+                <TheEmpty description="暂无曲目"></TheEmpty>
               </div>
             )}
           </div>