mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-23 08:48:28 +00:00
fix: switch input to textarea
This commit is contained in:
parent
1f85bfe944
commit
e0a0273309
1 changed files with 3 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ function PlotBlock() {
|
|||
React.useEffect(() => {
|
||||
// replace start
|
||||
/*
|
||||
d3.csv("/plotdata/congress.csv", d3.autoType).then((out) => data = out)
|
||||
d3.csv("/plotdata/congress.csv", d3.autoType).then((out) => data = out);
|
||||
return Plot.plot({
|
||||
aspectRatio: 1,
|
||||
x: { label: "Age (years)" },
|
||||
|
|
@ -92,8 +92,9 @@ function PlotBlock() {
|
|||
|
||||
return (
|
||||
<div className="plot-block">
|
||||
ß
|
||||
<div className="plot-window" ref={containerRef} />
|
||||
<input type="text" className="plot-config" onChange={(e) => setPlotDef(e.target.value)} />
|
||||
<textarea className="plot-config" onChange={(e) => setPlotDef(e.target.value)} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue