天翎MyApps技术社区 - 低代码平台 | 流程管理系统 | BPM软件

 找回密码
 注册成为天翎用户
查看: 2295|回复: 1

[M3] 首页widget 如何增加一个2:2的布局方式?

 关闭 [复制链接]
海南天语 发表于 2014-5-19 15:01:35 | 显示全部楼层 |阅读模式
本帖最后由 Jarod 于 2014-6-6 19:24 编辑

[M3]  首页widget 如何增加一个2:2的布局方式?
nice 发表于 2014-6-4 14:51:34 | 显示全部楼层
本帖最后由 nice 于 2014-6-4 14:56 编辑

因为我们的代码都封装的很好,所以
仅需要进入此js页面/obpm/src/main/webapp/portal/cool/resource/homepage/js/Jh.js
修改如下3步即可:
第一:
                layoutCss : {
                        0:"1:3",
                        1:"3:1",
                        2:"1:2:1",
                        3:"1:1:2",
                        4:"2:1:1",
                        5:"1:1:1",
                        6:"2:2"
                },
第二:
                layoutText : {
                        0 :"w250 w750 wnone",
                        1 :"w750 w250 wnone",
                        2 :"w250 w500 w250",
                        3 :"w250 w250 w500",
                        4 :"w500 w250 w250",
                        5 :"w250 w250 w250",
                        6 :"w500 w500 wnone"
第三:
_createLayoutTr:function(){//创建布局
                        var _td = me._createTd(Jh.Config.tdCls2),
                                _div = $("<div/>").addClass(Jh.Config.layCls)
                                                                  .append(me._createA("1:3"))
                                                                  .append(me._createA("3:1"))
                                                                   .append(me._createA("1:1:2"))
                                                                  .append(me._createA("1:2:1"))
                                                                  .append(me._createA("2:1:1"))
                                                                  .append(me._createA("1:1:1"))
                                                                  .append(me._createA("2:2"))
                                                                  .appendTo(_td),
效果如图:

xiaogu.jpg
此帖该结!

本版积分规则

QQ|手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-12 04:49

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表