panel "noscroll" option and text "vertical" option, + some style clean
This commit is contained in:
parent
cbbe42d038
commit
d76786baf5
9 changed files with 38 additions and 23 deletions
|
|
@ -9,7 +9,7 @@ module.exports.options = {
|
|||
top:'auto',
|
||||
width:'auto',
|
||||
height:'auto',
|
||||
stretch:false,
|
||||
scroll:true,
|
||||
color:'auto',
|
||||
css:'',
|
||||
|
||||
|
|
@ -29,7 +29,7 @@ module.exports.create = function(widgetData,container) {
|
|||
</div>
|
||||
`)
|
||||
|
||||
if (widgetData.stretch) widget.addClass('stretch')
|
||||
if (!widgetData.scroll) widget.addClass('noscroll')
|
||||
|
||||
if (widgetData.tabs.length) {
|
||||
parsetabs(widgetData.tabs,widget)
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ module.exports.options = {
|
|||
top:'auto',
|
||||
width:'auto',
|
||||
height:'auto',
|
||||
vertical:false,
|
||||
color:'auto',
|
||||
css:'',
|
||||
|
||||
|
|
@ -28,6 +29,8 @@ module.exports.create = function(widgetData,container) {
|
|||
label = widgetData.label===false?widgetData.id:widgetData.label=='auto'?widgetData.id:widgetData.label=='auto'
|
||||
|
||||
|
||||
if (widgetData.vertical) widget.addClass('vertical')
|
||||
|
||||
widget.setValue = function(v,send,sync){
|
||||
widget.text(v)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue