463
个编辑
无编辑摘要 |
无编辑摘要 |
||
第4行: | 第4行: | ||
--大小写有区别! | --大小写有区别! | ||
--[[ | --[[ | ||
selectHeight = nil: | selectHeight = nil: 选择的最大高度,如100px。若有设置而内容太长挤不进去,则右方会多一个滚动条 | ||
textHeight = nil: | textHeight = nil: 内容的最大高度,如10em。同上。 | ||
selectWidth = nil: | selectWidth = nil: 选择的最大宽度,如50%。若有设置而内容太长挤不进去,则下方会多一个滚动条 | ||
textWidth = nil: | 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('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 = {} | ||