fix keyvalue
This commit is contained in:
parent
0342d40082
commit
bdb9216c17
|
|
@ -67,7 +67,7 @@ export const Field: FC<FieldProp> = (arg) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<LabelDiv
|
<LabelDiv
|
||||||
mode={sub_type === "table-edit" ? "div" : "label"}
|
mode={sub_type === "table-edit" ? "div" : field.label ? "label" : "div"}
|
||||||
{...props}
|
{...props}
|
||||||
className={cx(
|
className={cx(
|
||||||
"field",
|
"field",
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,10 @@ export const KeyValue = ({
|
||||||
return (
|
return (
|
||||||
<div className="c-flex c-relative c-flex-1" ref={ref}>
|
<div className="c-flex c-relative c-flex-1" ref={ref}>
|
||||||
<table
|
<table
|
||||||
|
onClick={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
|
e.preventDefault();
|
||||||
|
}}
|
||||||
className={cx(
|
className={cx(
|
||||||
"c-flex-1",
|
"c-flex-1",
|
||||||
css`
|
css`
|
||||||
|
|
@ -141,7 +145,7 @@ const KVRow = ({
|
||||||
"kv-key",
|
"kv-key",
|
||||||
css`
|
css`
|
||||||
border-right: 1px solid #ececeb;
|
border-right: 1px solid #ececeb;
|
||||||
width: 30%;
|
width: 35%;
|
||||||
`,
|
`,
|
||||||
idx > 0 &&
|
idx > 0 &&
|
||||||
css`
|
css`
|
||||||
|
|
@ -150,7 +154,6 @@ const KVRow = ({
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
tabIndex={0}
|
|
||||||
type="text"
|
type="text"
|
||||||
spellCheck={false}
|
spellCheck={false}
|
||||||
value={k}
|
value={k}
|
||||||
|
|
@ -177,7 +180,6 @@ const KVRow = ({
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
tabIndex={0}
|
|
||||||
type="text"
|
type="text"
|
||||||
spellCheck={false}
|
spellCheck={false}
|
||||||
value={v || ""}
|
value={v || ""}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue