add inputtype

This commit is contained in:
tracy
2020-06-12 16:33:16 +08:00
committed by osborn
parent 6b1040b8a2
commit 8e8999dd7a
4 changed files with 82 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import { Panel, Group, scroller, vlayout, layoutConfig, LayoutSpec, Input, Gravity, log, input, text, Color, Text } from "doric";
import { Panel, Group, scroller, vlayout, layoutConfig, LayoutSpec, Input, Gravity, log, input, text, Color, Text, InputType } from "doric";
import { title } from "./utils";
@Entry
class TextDemo extends Panel {
@@ -7,6 +7,35 @@ class TextDemo extends Panel {
vlayout(
[
title("Text Demo"),
input({
width : 100,
height:100,
inputType: InputType.Number,
hintText: "number"
}),
// input({
// width : 100,
// height:100,
// inputType: InputType.NumberSigned,
// hintText: "NumberSigned"
// }),
// input({
// width : 100,
// height:100,
// inputType: InputType.Alphabet,
// hintText: "Alphabet"
// }),
// input({
// width : 100,
// height:100,
// inputType: InputType.Phone,
// hintText: "Phone"
// }),
text({
text: "This is normal text",
}),