这是一个 CSS 问题。在 Quill for 下拉列表中,选项的值在 ::before 中命名。除了 ['small', 'large', 'huge'] 之外,其他值默认为 'Normal'
要修复它,您可以覆盖“正常”
示例:
.ql-picker-item[data-value='10px']::before,
.ql-picker-label[data-value='10px']::before {
content: '10px' !important;
}
.ql-picker-item[data-value='12px']::before,
.ql-picker-label[data-value='12px']::before {
content: '12px' !important;
}
相应地添加您的自定义值
快乐编码:)