zh-lx / pinyin-pro

中文转拼音、拼音音调、拼音声母、拼音韵母、多音字拼音、姓氏拼音、拼音匹配、中文分词
https://pinyin-pro.cn
MIT License
3.82k stars 332 forks source link

html api :建议传入的自定义 class 为 false 或 null 或空字符串的时候,不添加 class 属性 #269

Closed recrute closed 1 month ago

recrute commented 1 month ago

功能描述

html api :建议传入的自定义 class 为 false 或 null 或空字符串的时候,不添加 class 属性

resultClass?: string; pinyinClass?: string; chineseClass?: string; nonChineseClass?: string;

建议上述这几个参数,如果用户传入了 false 或 null 或空字符串的时候,不设置 class 属性,

现在版本会出现 class=false, class=null, class=""

zh-lx commented 1 month ago

resolved in #271

zh-lx commented 1 month ago

已在 3.24.2 版本中支持