update demo

This commit is contained in:
pengfei.zhou
2020-06-13 11:58:24 +08:00
committed by osborn
parent 4a788eb4bb
commit 662909438b
9 changed files with 63 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
import { Panel, Group, scroller, vlayout, layoutConfig, LayoutSpec, Input, Gravity, log, Color, input, text } from "doric";
import { Panel, Group, scroller, vlayout, layoutConfig, LayoutSpec, Input, Gravity, log, Color, input, text, InputType } from "doric";
import { title, colors } from "./utils";
@@ -44,7 +44,8 @@ class InputDemo extends Panel {
multiline: false,
textSize: 20,
maxLength: 20,
padding: { top: 10, bottom: 11 }
padding: { top: 10, bottom: 11 },
inputType: InputType.Decimal
});
scroller(
vlayout(
@@ -71,7 +72,7 @@ class InputDemo extends Panel {
{
space: 10,
layoutConfig: layoutConfig().most().configHeight(LayoutSpec.MOST),
onClick: () => {
onClick: () => {
(inputView as Input).releaseFocus(context);
}
}