Page Not Found
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 95b56de03..99e5914eb 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - 弹幕库添加 maxWidth 选项,控制输入框最大宽度 - 弹幕库添加 mount 选项,控制输入框自定义挂载位置 - 弹幕库添加 beforeEmit 选项,控制弹幕发送前的校验 +- 弹幕库添加 theme 选项,控制输入框自定义挂载的主题色 ## [4.4.0] - 2022-05-15 diff --git a/docs/assets/example/danmuku.js b/docs/assets/example/danmuku.js index de5e47b84..464148c0a 100644 --- a/docs/assets/example/danmuku.js +++ b/docs/assets/example/danmuku.js @@ -25,6 +25,7 @@ var art = new Artplayer({ maxLength: 100, // 输入框最大可输入的字数,范围在[0 ~ 500] minWidth: 200, // 输入框最小宽度,范围在[0 ~ 500],填 0 则为无限制 maxWidth: 400, // 输入框最大宽度,范围在[minWidth ~ Infinity],填 0 则为 100% 宽度 + theme: 'dark', // 输入框自定义挂载时的主题色,默认为 dark,可以选填亮色 light beforeEmit: (danmu) => !!danmu.text.trim(), // 发送弹幕前的自定义校验,返回 true 则可以发送 // 通过 mount 选项可以自定义输入框挂载的位置,默认挂载于播放器底部,仅在当宽度小于最小值时生效 diff --git a/docs/document/404.html b/docs/document/404.html index d3eb950d3..cba01bbbb 100644 --- a/docs/document/404.html +++ b/docs/document/404.html @@ -5,13 +5,13 @@
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.