mirror of https://github.com/fantasticit/think.git
fix: add key
parent
d0165bad1e
commit
881b1c6846
|
@ -60,7 +60,12 @@ export const CalloutBubbleMenu: React.FC<{ editor: Editor }> = ({ editor }) => {
|
||||||
<Text type="secondary">字体颜色</Text>
|
<Text type="secondary">字体颜色</Text>
|
||||||
<div>
|
<div>
|
||||||
{TEXT_COLORS.map((color) => (
|
{TEXT_COLORS.map((color) => (
|
||||||
<div className={styles.color} style={{ color: color }} onClick={setColor('textColor', color)}>
|
<div
|
||||||
|
key={color}
|
||||||
|
className={styles.color}
|
||||||
|
style={{ color: color }}
|
||||||
|
onClick={setColor('textColor', color)}
|
||||||
|
>
|
||||||
A
|
A
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
@ -72,6 +77,7 @@ export const CalloutBubbleMenu: React.FC<{ editor: Editor }> = ({ editor }) => {
|
||||||
<div>
|
<div>
|
||||||
{BORDER_COLORS.map((color) => (
|
{BORDER_COLORS.map((color) => (
|
||||||
<div
|
<div
|
||||||
|
key={color}
|
||||||
className={styles.color}
|
className={styles.color}
|
||||||
style={{ backgroundColor: color }}
|
style={{ backgroundColor: color }}
|
||||||
onClick={setColor('borderColor', color)}
|
onClick={setColor('borderColor', color)}
|
||||||
|
@ -84,6 +90,7 @@ export const CalloutBubbleMenu: React.FC<{ editor: Editor }> = ({ editor }) => {
|
||||||
<div>
|
<div>
|
||||||
{BACKGROUND_COLORS.map((color) => (
|
{BACKGROUND_COLORS.map((color) => (
|
||||||
<div
|
<div
|
||||||
|
key={color}
|
||||||
className={styles.color}
|
className={styles.color}
|
||||||
style={{ backgroundColor: color }}
|
style={{ backgroundColor: color }}
|
||||||
onClick={setColor('backgroundColor', color)}
|
onClick={setColor('backgroundColor', color)}
|
||||||
|
|
Loading…
Reference in New Issue