File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
lowcoder/src/pages/datasource/form Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -329,9 +329,9 @@ export interface DataSourcePluginMeta extends DataSourcePluginBasicInfo {
329
329
}
330
330
| OAuthConfig
331
331
) ;
332
-
333
332
sslConfig ?: SSLConfig ;
334
- }
333
+ headers : KeyValue ;
334
+ } ,
335
335
> ;
336
336
queryConfig : DynamicConfigObject | QueryConfig ;
337
337
shouldValidateDataSourceConfig : boolean ;
Original file line number Diff line number Diff line change @@ -308,6 +308,12 @@ export const PluginDataSourceForm = (props: DatasourceFormProps) => {
308
308
</ React . Fragment >
309
309
) ;
310
310
} ) }
311
+ < FormKeyValueItem
312
+ name = { "headers" }
313
+ label = { "Headers" }
314
+ initialValue = { dataSourceConfig ?. headers }
315
+ labelWidth = { 122 }
316
+ />
311
317
</ FormSection >
312
318
< FormSection $size = { props . size } >
313
319
< FormSectionLabel > { trans ( "query.authentication" ) } </ FormSectionLabel >
@@ -317,7 +323,7 @@ export const PluginDataSourceForm = (props: DatasourceFormProps) => {
317
323
options = { AuthTypeOptions }
318
324
initialValue = { dataSourceConfig ?. authConfig ?. type ?? "NO_AUTH" }
319
325
afterChange = { ( value ) => setAuthType ( value ) }
320
- labelWidth = { 142 }
326
+ labelWidth = { 122 }
321
327
/>
322
328
{ showUserAuthSourceSelector ( ) }
323
329
{ showAuthItem ( authType ) }
You can’t perform that action at this time.
0 commit comments