From 2c1e0ab7ac8335b2703ae93751430aea2afca1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AC=94=E8=AE=B0=E6=9C=AC=E9=87=8C=E7=9A=84=E6=B0=B8?= =?UTF-8?q?=E5=B9=B3?= Date: Thu, 10 Jul 2025 11:50:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9C=AC=E6=AC=A1=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=86=85=E5=AE=B9=E5=A6=82=E4=B8=8B=20?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=92=8C=E5=8A=9F=E8=83=BD=E8=A1=A5=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ContentLibrarySelectionDialog.tsx | 33 +++++++++++-------- .../pages/workspace/moments-sync/Detail.tsx | 2 +- .../workspace/moments-sync/MomentsSync.tsx | 13 +++++--- .../src/pages/workspace/moments-sync/new.tsx | 27 ++++++++++++--- .../traffic-distribution/NewDistribution.tsx | 6 ++-- .../TrafficDistribution.tsx | 7 ++-- nkebao/src/types/moments-sync.ts | 9 ++++- 7 files changed, 68 insertions(+), 29 deletions(-) diff --git a/nkebao/src/components/ContentLibrarySelectionDialog.tsx b/nkebao/src/components/ContentLibrarySelectionDialog.tsx index dcbbc0a1..1da62d47 100644 --- a/nkebao/src/components/ContentLibrarySelectionDialog.tsx +++ b/nkebao/src/components/ContentLibrarySelectionDialog.tsx @@ -2,7 +2,7 @@ import React, { useState, useEffect, useCallback } from 'react'; import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog'; import { Input } from '@/components/ui/input'; import { Button } from '@/components/ui/button'; -import { Checkbox } from '@/components/ui/checkbox'; +import { Badge } from '@/components/ui/badge'; import { Search, RefreshCw, Loader2 } from 'lucide-react'; import { fetchContentLibraryList } from '@/api/content'; import { ContentLibrary } from '@/api/content'; @@ -50,7 +50,7 @@ export function ContentLibrarySelectionDialog({ fetchLibraries(); setTempSelected(selectedLibraries); } - }, [open, searchQuery, selectedLibraries, fetchLibraries]); + }, [open, selectedLibraries, fetchLibraries]); const handleRefresh = () => { fetchLibraries(); @@ -86,7 +86,7 @@ export function ContentLibrarySelectionDialog({ return ( - + 选择内容库 @@ -136,17 +136,24 @@ export function ContentLibrarySelectionDialog({ libraries.map((library) => (