mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-08-30 05:09:46 +08:00
[更新]增加图文选择器
This commit is contained in:
parent
9b5756e7d7
commit
981670fd7a
@ -40,7 +40,6 @@
|
|||||||
|
|
||||||
{block name="script"}
|
{block name="script"}
|
||||||
<script>
|
<script>
|
||||||
require(['jquery'], function () {
|
|
||||||
require(['jquery.masonry'], function (Masonry) {
|
require(['jquery.masonry'], function (Masonry) {
|
||||||
var container = document.querySelector('#news_box');
|
var container = document.querySelector('#news_box');
|
||||||
var msnry = new Masonry(container, {itemSelector: '.news_item', columnWidth: 0});
|
var msnry = new Masonry(container, {itemSelector: '.news_item', columnWidth: 0});
|
||||||
@ -59,6 +58,5 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
{/block}
|
{/block}
|
Loading…
x
Reference in New Issue
Block a user