点击替换形状
起点颜色:
updateGradient({ color: [value, gradient.color[1]] })"
/>
终点颜色:
updateGradient({ color: [gradient.color[0], value] })"
/>
渐变角度:
updateGradient({ rotate: value as number })"
/>
emitRichTextCommand('fontname', value as string)"
:options="[
...availableFonts,
...WEB_FONTS
]"
>
emitRichTextCommand('fontsize', value as string)"
:options="fontSizeOptions.map(item => ({
label: item, value: item
}))"
>
emitRichTextCommand('color', value)"
/>
emitRichTextCommand('backcolor', value)"
/>
emitRichTextCommand('align', value)"
>
updateTextAlign(value as 'top' | 'middle' | 'bottom')"
>