463
个编辑
无编辑摘要 |
无编辑摘要 |
||
第9行: | 第9行: | ||
textWidth = nil: 内容框的宽度,如75ch。同上。 | textWidth = nil: 内容框的宽度,如75ch。同上。 | ||
splitCount = 5: 决定每行有几个物件 | splitCount = 5: 决定每行有几个物件 | ||
textDisplay = | textDisplay = down: 内容相对于选择栏的位置,可输入 | ||
top(内容在选择栏上) | top(内容在选择栏上) | ||
down(内容在选择栏下) | down(内容在选择栏下) | ||
left( | left(内容在选择栏左,此时若用户无指定,则selectWidth会被预设成20%、textWidth被设成60%、textHeight, selectHeight皆被设成400px) | ||
right(内容在选择栏右,同上) | right(内容在选择栏右,同上) | ||
--]] | --]] | ||
第33行: | 第33行: | ||
:css('display', 'inline-grid') | :css('display', 'inline-grid') | ||
:css('height', '400px') | :css('height', '400px') | ||
:css('overflow-y', 'auto') | |||
:css('width', '20%') | :css('width', '20%') | ||
end | end | ||
第68行: | 第69行: | ||
tabs_contents | tabs_contents | ||
:css('display', 'inline-grid') | :css('display', 'inline-grid') | ||
:css(' | :css('overflow-y', 'auto') | ||
:css('width', '60%') | :css('width', '60%') | ||
end | end | ||
第117行: | 第118行: | ||
:addClass('tabs-container') | :addClass('tabs-container') | ||
if args['textDisplay'] == ' | if args['textDisplay'] == 'top' or args['textDisplay'] == 'left' then | ||
mainDiv:node(renderContent(tabIndices, args)) | mainDiv:node(renderContent(tabIndices, args)) | ||
mainDiv:node(renderSelect(tabIndices, args)) | mainDiv:node(renderSelect(tabIndices, args)) |