1
0
mirror of https://gitee.com/zoujingli/ThinkAdmin.git synced 2025-04-06 03:58:04 +08:00

Update admin.js

This commit is contained in:
Anyon 2020-10-22 10:26:09 +08:00
parent bdd9c242cc
commit 16738ff333

@ -702,8 +702,9 @@ $(function () {
/*! 注册 data-iframe 事件行为 */ /*! 注册 data-iframe 事件行为 */
$body.on('click', '[data-iframe]', function () { $body.on('click', '[data-iframe]', function () {
var width = this.dataset.width || '800px', height = this.dataset.height || '580px'; $(this).attr('data-index', $.form.iframe(this.dataset.iframe, this.dataset.title || '窗口', this.dataset.area || [
$(this).attr('data-index', $.form.iframe(this.dataset.iframe, this.dataset.title || '窗口', this.dataset.area || [width, height])); this.dataset.width || '800px', this.dataset.height || '580px'
]));
}); });
/*! 注册 data-icon 事件行为 */ /*! 注册 data-icon 事件行为 */