ns = params_kw.copy() kb_id = ns.get('kb_id', '') body = """{ "widgettype": "VBox", "options": {"width": "100%", "padding": "0", "spacing": "16px"}, "subwidgets": [ {"widgettype": "Text", "options": {"text": "📤 上传文件", "cfontsize": 20, "fontWeight": "bold", "color": "#333"}}, { "widgettype": "VBox", "options": { "id": "drop_zone", "width": "100%", "cheight": 12, "bgcolor": "#f8f9fa", "padding": "32px", "css": "card", "border": "2px dashed #3b82f6", "alignItems": "center", "justifyContent": "center" }, "subwidgets": [ {"widgettype": "Text", "options": {"text": "📂", "cfontsize": 40}}, {"widgettype": "Text", "options": {"text": "点击选择文件上传", "cfontsize": 16, "color": "#555"}}, {"widgettype": "Text", "options": {"text": "支持: TXT, PDF, JPG, PNG, MP3, WAV, MP4", "cfontsize": 12, "color": "#999"}} ] } ] }""" import json return json.loads(body)