|
|
@ -1,9 +1,38 @@ |
|
|
|
|
|
|
|
import { |
|
|
|
|
|
|
|
ComboGroup, |
|
|
|
|
|
|
|
IconTextIconItem, |
|
|
|
|
|
|
|
SingleSelectItem, |
|
|
|
|
|
|
|
Combo, |
|
|
|
|
|
|
|
Button, |
|
|
|
|
|
|
|
ButtonGroup, |
|
|
|
|
|
|
|
Decorators, |
|
|
|
|
|
|
|
SingleSelectRadioItem, |
|
|
|
|
|
|
|
VerticalLayout, |
|
|
|
|
|
|
|
MultiSelectItem, |
|
|
|
|
|
|
|
Label, |
|
|
|
|
|
|
|
MultiSelectBar, |
|
|
|
|
|
|
|
TextButton, |
|
|
|
|
|
|
|
Loader, |
|
|
|
|
|
|
|
FloatLeftLayout, |
|
|
|
|
|
|
|
ButtonTree, |
|
|
|
|
|
|
|
AdaptiveLayout, |
|
|
|
|
|
|
|
TableLayout, |
|
|
|
|
|
|
|
AbsoluteLayout, |
|
|
|
|
|
|
|
Navigation, |
|
|
|
|
|
|
|
GridLayout, |
|
|
|
|
|
|
|
Widget, |
|
|
|
|
|
|
|
createWidget, |
|
|
|
|
|
|
|
createItems, |
|
|
|
|
|
|
|
deepClone, |
|
|
|
|
|
|
|
map, |
|
|
|
|
|
|
|
delay, |
|
|
|
|
|
|
|
random, |
|
|
|
|
|
|
|
makeArray, |
|
|
|
|
|
|
|
Msg |
|
|
|
|
|
|
|
} from "@fui/core"; |
|
|
|
|
|
|
|
|
|
|
|
import { ComboGroup, IconTextIconItem, SingleSelectItem, Combo, Button, ButtonGroup, SingleSelectRadioItem, VerticalLayout, MultiSelectItem, Label, MultiSelectBar, TextButton, Loader, FloatLeftLayout, ButtonTree, AdaptiveLayout, TableLayout, AbsoluteLayout, Navigation, GridLayout, shortcut, Widget, createWidget, createItems, deepClone, map, delay, random, makeArray, Msg } from "@fui/core" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Decorators.shortcut() |
|
|
|
|
|
|
|
|
|
|
|
@shortcut() |
|
|
|
|
|
|
|
export class ComboDemo extends Widget { |
|
|
|
export class ComboDemo extends Widget { |
|
|
|
static xtype = "demo.combo"; |
|
|
|
static xtype = "demo.combo"; |
|
|
|
|
|
|
|
|
|
|
@ -92,7 +121,8 @@ export class ComboDemo extends Widget { |
|
|
|
items: createItems(deepClone(this.years), { |
|
|
|
items: createItems(deepClone(this.years), { |
|
|
|
type: SingleSelectRadioItem.xtype, |
|
|
|
type: SingleSelectRadioItem.xtype, |
|
|
|
height: 25, |
|
|
|
height: 25, |
|
|
|
handler(v) {}, |
|
|
|
handler(v) { |
|
|
|
|
|
|
|
}, |
|
|
|
}), |
|
|
|
}), |
|
|
|
layouts: [ |
|
|
|
layouts: [ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -116,7 +146,8 @@ export class ComboDemo extends Widget { |
|
|
|
items: createItems(deepClone(this.years), { |
|
|
|
items: createItems(deepClone(this.years), { |
|
|
|
type: MultiSelectItem.xtype, |
|
|
|
type: MultiSelectItem.xtype, |
|
|
|
height: 25, |
|
|
|
height: 25, |
|
|
|
handler(v) {}, |
|
|
|
handler(v) { |
|
|
|
|
|
|
|
}, |
|
|
|
}), |
|
|
|
}), |
|
|
|
chooseType: 1, |
|
|
|
chooseType: 1, |
|
|
|
layouts: [ |
|
|
|
layouts: [ |
|
|
@ -296,7 +327,8 @@ export class ComboDemo extends Widget { |
|
|
|
type: SingleSelectItem.xtype, |
|
|
|
type: SingleSelectItem.xtype, |
|
|
|
iconWidth: 25, |
|
|
|
iconWidth: 25, |
|
|
|
height: 25, |
|
|
|
height: 25, |
|
|
|
handler(v) {}, |
|
|
|
handler(v) { |
|
|
|
|
|
|
|
}, |
|
|
|
}), |
|
|
|
}), |
|
|
|
chooseType: 1, |
|
|
|
chooseType: 1, |
|
|
|
layouts: [ |
|
|
|
layouts: [ |
|
|
@ -323,7 +355,8 @@ export class ComboDemo extends Widget { |
|
|
|
items: createItems(deepClone(this.child), { |
|
|
|
items: createItems(deepClone(this.child), { |
|
|
|
type: SingleSelectItem.xtype, |
|
|
|
type: SingleSelectItem.xtype, |
|
|
|
height: 25, |
|
|
|
height: 25, |
|
|
|
handler(v) {}, |
|
|
|
handler(v) { |
|
|
|
|
|
|
|
}, |
|
|
|
}), |
|
|
|
}), |
|
|
|
layouts: [ |
|
|
|
layouts: [ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -348,7 +381,8 @@ export class ComboDemo extends Widget { |
|
|
|
items: createItems(deepClone(this.months), { |
|
|
|
items: createItems(deepClone(this.months), { |
|
|
|
type: SingleSelectItem.xtype, |
|
|
|
type: SingleSelectItem.xtype, |
|
|
|
cls: "button-combo", |
|
|
|
cls: "button-combo", |
|
|
|
handler(v) {}, |
|
|
|
handler(v) { |
|
|
|
|
|
|
|
}, |
|
|
|
}), |
|
|
|
}), |
|
|
|
layouts: [ |
|
|
|
layouts: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|