添加获取主色调注释

This commit is contained in:
liuzhihang 2022-10-16 23:37:03 +08:00
parent c394a89157
commit f74e027292
2 changed files with 12 additions and 1 deletions

View File

@ -445,4 +445,12 @@ spec:
- label: 开启
value: true
- label: 关闭
value: false
value: false
- group: test
label: 测试集合属性
formSchema:
- $formkit: list
name: 集合
label: 集合
children:

View File

@ -61,6 +61,9 @@ function _typeof(e) {
function checkOpen() {
}
// https://blog.zhheo.com/p/c86d8f1f.html
// ?imageAve 使用 七牛云获取图片主色调,阿里云 oss 则是 @imageAve
// TODO 可以切换为使用本地 JS 获取色调
function coverColor() {
var _document$getElementB,
path = null === (_document$getElementB = document.getElementById("post-cover")) || void 0 === _document$getElementB ? void 0 : _document$getElementB.src,