模块:收纳表:修订间差异

跳到导航 跳到搜索
添加31字节 、​ 2022年6月7日 (星期二)
无编辑摘要
无编辑摘要
无编辑摘要
第4行: 第4行:
--大小写有区别!
--大小写有区别!
--[[  
--[[  
selectHeight    = nil:  选择栏的高度,如100px。若有设置而内容太长挤不进去,则右方会多一个滚动条
selectHeight    = nil:  选择的最大高度,如100px。若有设置而内容太长挤不进去,则右方会多一个滚动条
textHeight      = nil:  内容框的高度,如10em。同上。
textHeight      = nil:  内容的最大高度,如10em。同上。
selectWidth    = nil:  选择栏的宽度,如50%。若有设置而内容太长挤不进去,则下方会多一个滚动条
selectWidth    = nil:  选择的最大宽度,如50%。若有设置而内容太长挤不进去,则下方会多一个滚动条
textWidth      = nil:  内容框的宽度,如75ch。同上。
textWidth      = nil:  内容的最大宽度,如75ch。同上。
splitCount      = 5:    决定每行有几个物件
splitCount      = 5:    决定每行有几个物件
textDisplay    = down: 内容相对于选择栏的位置,可输入
textDisplay    = down: 内容相对于选择栏的位置,可输入
第77行: 第77行:
     if args['textHeight'] ~= nil then
     if args['textHeight'] ~= nil then
         tabs_contents
         tabs_contents
            :css('height', args['textHeight'])
             :css('overflow-y', 'auto')
             :css('overflow-y', 'auto')
     end
     end
第89行: 第88行:
         tabs_contents:tag('div')
         tabs_contents:tag('div')
             :addClass('tab-c')
             :addClass('tab-c')
            :css('height', args['textHeight'])
             :wikitext(args['content' .. tabIndex])
             :wikitext(args['content' .. tabIndex])
     end
     end
第98行: 第98行:


function p.selectTable(frame)
function p.selectTable(frame)
     local args = {splitCount=5}
     local args = {splitCount=5, textHeight='auto'}
     local tabIndices = {}
     local tabIndices = {}


导航菜单