mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 05:56:00 +00:00
23 lines
571 B
JavaScript
23 lines
571 B
JavaScript
import React from 'react';
|
|
|
|
export function TextField({ editorRef = undefined, ...other }) {
|
|
return <input type="text" {...other} ref={editorRef}></input>;
|
|
}
|
|
|
|
export function SelectField({ children = null, options = [], ...other }) {
|
|
return (
|
|
<select {...other}>
|
|
{children}
|
|
{options.map(x => (
|
|
<option value={x.value} key={x.value}>
|
|
{x.label}
|
|
</option>
|
|
))}
|
|
</select>
|
|
);
|
|
}
|
|
|
|
export function CheckboxField({ editorRef = undefined, ...other }) {
|
|
return <input type="checkbox" {...other} ref={editorRef}></input>;
|
|
}
|