"use client" import { useState } from "react" import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "@/components/ui/dialog" import { Button } from "@/components/ui/button" import { Input } from "@/components/ui/input" import { Label } from "@/components/ui/label" import { Textarea } from "@/components/ui/textarea" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select" import { Switch } from "@/components/ui/switch" import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs" import { Settings, Code, Clock, Bell } from "lucide-react" interface CleaningRuleSettingsDialogProps { open: boolean onOpenChange: (open: boolean) => void rule?: { id: string name: string description: string type: string sourceTable: string targetTable: string status: string } } export function CleaningRuleSettingsDialog({ open, onOpenChange, rule }: CleaningRuleSettingsDialogProps) { const [activeTab, setActiveTab] = useState("basic") return ( 规则设置 - {rule?.name || "清洗规则"} 配置清洗规则的执行参数和调度策略 基本信息 清洗逻辑 调度配置 告警设置