jQuery MiniUI

 找回密码
 立即注册
查看: 1856|回复: 3
打印 上一主题 下一主题

mini.open问题 [复制链接]

Rank: 4

跳转到指定楼层
楼主
发表于 2021-3-12 15:18:07 |只看该作者 |倒序浏览
如何重写mini.open方法,可以把项目中open全部加上全屏按钮

Rank: 8Rank: 8

沙发
发表于 2021-3-12 16:27:12 |只看该作者
  1.    <style>
  2.     span.mini-tools-add
  3.     {
  4.         width:16px;height:16px;
  5.         background:url(add.gif) no-repeat;
  6.     }
  7.     span.mini-tools-edit
  8.     {
  9.         width:16px;height:16px;
  10.         background:url(edit.gif) no-repeat;
  11.     }   
  12.     span.mini-tools-remove
  13.     {
  14.         width:16px;height:16px;
  15.         background:url(remove.gif) no-repeat;
  16.     }        
  17.     </style>

  18. var miniOpen = function (url, width, height, onload, ondestroy) {
  19.             return mini.open({
  20.                 url: url,
  21.                 width: width,
  22.                 height: height,
  23.                 buttons: "close collapse add edit remove",
  24.                 onbuttonclick: function (e) {
  25.                     alert(e.name);
  26.                 },
  27.                 onload: onload,
  28.                 ondestroy: ondestroy
  29.             })
  30.         }
复制代码

Rank: 4

板凳
发表于 2021-3-12 17:42:15 |只看该作者
felt 发表于 2021-3-12 16:27

这样我知道,我是说有米有类似jq,那种extend的写法,可以重写的

Rank: 8Rank: 8

地板
发表于 2021-3-15 13:22:58 |只看该作者
lys373113838 发表于 2021-3-12 17:42
这样我知道,我是说有米有类似jq,那种extend的写法,可以重写的

没有这样的方法,直接这样使用就好

Archiver|普加软件

GMT+8, 2024-7-3 00:16 , Processed in 1.062696 second(s), 9 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部