Skip to content

Commit

Permalink
bump version 1.13.4
Browse files Browse the repository at this point in the history
  • Loading branch information
staugur committed Jan 15, 2022
1 parent b8790f8 commit e0cfaf3
Show file tree
Hide file tree
Showing 6 changed files with 178 additions and 126 deletions.
7 changes: 7 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
更新日志
=========

v1.13.4
--------

Released in 2022-01-15

- uploader.js set version 1.2.0, update style

v1.13.3
--------

Expand Down
10 changes: 6 additions & 4 deletions docs/linktoken.rst
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,13 @@ NO.2 初始化

- style

引入uploader.js(或压缩版)时,脚本会自动给绑定的elem元素附加内联样式以美化,
不过会有一段空窗期元素是原始状态,所以建议您设置style=false,
会取消自动设置elem的内联样式,以便您自己定义样式。
设置绑定元素样式,在 v1.13.4 之前默认会自动填充样式用以美化,不过因为引用js会有一段空窗期,
这期间(秒级)元素是原始状态,所以建议您设置style=false关闭此效果。

如何自定义,可以参考下方【关于style选项的小技巧】。
v1.13.4 考虑到不太恰当,故取消自动设置,默认不设置样式,用户可以主动设置style=true
开启效果。

开启style可以自定义两个颜色,具体请参考下方【关于style选项的小技巧】。

- size

Expand Down
6 changes: 3 additions & 3 deletions misc/linktoken.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@
$("#msg").text(res.src);
}
</script>
<script src="http://127.0.0.1:9514/static/sdk/uploader.min.js" data-url="http://127.0.0.1:9514/api/upload"
<script src="http://127.0.0.1:9514/static/sdk/uploader.js" data-url="http://127.0.0.1:9514/api/upload"
data-token="xx"
data-auto="true" data-success="onSuccess" data-style="false">
data-auto="true" data-success="onSuccess">
</script>

<!--手动方式-->
<!--
<script src="http://127.0.0.1:9514/static/sdk/uploader.min.js" data-url="http://127.0.0.1:9514/api/upload"
<script src="http://127.0.0.1:9514/static/sdk/uploader.js" data-url="http://127.0.0.1:9514/api/upload"
data-style="false"></script>
<script>
let up = up2picbed({
Expand Down
Loading

0 comments on commit e0cfaf3

Please sign in to comment.