UI 实例

{
    "params": [{
                    "type": "Label",
                    "text": "标题1",
                    "size": 18,
                    "align": "center",
                    "color": "0,168,233"
                }, {
                    "type": "Image",
                    "src": "http://www.touchsprite.com/wp-content/uploads/2016/10/banner2_790x230-790x0.png"
                }, {
                    "type": "Label",
                    "text": "switches控件",
                    "size": 16,
                    "align": "left",
                    "color": "0,168,233"
                }, {
                    "id": "kg",
                    "type": "switches",
                    "list": "开关1,开关2,开关3",
                    "select": "0@2"
                }, {
                    "type": "Label",
                    "text": "RadioGroup控件",
                    "size": 16,
                    "align": "left",
                    "color": "0,168,233"
                }, {
                    "id": "dx",
                    "type": "RadioGroup",
                    "list": "选项1,选项2,选项3",
                    "select": "1"
                }, {
                    "type": "Label",
                    "text": "Edit控件(普通)",
                    "size": 16,
                    "align": "left",
                    "color": "0,168,233"
                }, {
                    "id": "input",
                    "type": "Edit",
                    "prompt": "请输入一个字母",
                    "text": "默认值",
                    "kbtype": "ascii"
                }, {
                    "type": "Label",
                    "text": "Edit控件(多行)",
                    "size": 16,
                    "align": "left",
                    "color": "0,168,233"
                }, {
                    "id": "shuru",
                    "type": "Edit",
                    "prompt": "请输入一个字母",
                    "text": "默认值",
                    "row": "5",
                    "kbtype": "ascii"
                }, {
                    "type": "Label",
                    "text": "Edit控件(滑块)",
                    "size": 16,
                    "align": "left",
                    "color": "0,168,233"
                }, {
                    "id": "num",
                    "type": "Edit",
                    "prompt": "请输入一个数字",
                    "text": "2",
                    "kbtype": "range",
                    "max": "100",
                    "min": "0"
                }, {
                    "type": "Label",
                    "text": "Edit控件(数字)",
                    "size": 16,
                    "align": "left",
                    "color": "0,168,233"
                }, {
                    "id": "num1",
                    "type": "Edit",
                    "prompt": "请输入一个数字",
                    "text": "123456",
                    "kbtype": "number"
                }, {
                    "type": "Label",
                    "text": "Edit控件(密码)",
                    "size": 16,
                    "align": "left",
                    "color": "0,168,233"
                }, {
                    "id": "ceshi8",
                    "type": "Edit",
                    "prompt": "请输入密码",
                    "text": "hhkjkjh",
                    "kbtype": "password"
                }, {
                    "type": "Label",
                    "text": "CheckBoxGroup控件",
                    "size": 16,
                    "align": "left",
                    "color": "0,168,233"
                }, {
                    "id": "ceshi9",
                    "type": "CheckBoxGroup",
                    "list": "选项1,选项2,选项3,选项4",
                    "select": "0@3"
                }, {
                    "type": "Label",
                    "text": "ComboBox控件(二级)",
                    "size": 16,
                    "align": "left",
                    "color": "0,168,233"
                }, {
                    "id": "ceshi10",
                    "type": "ComboBox",
                    "list": "选项1,选项2,选项3",
                    "select": "2#1",
                    "data": "子选项1,子选项2,子选项3,子选项4#子选项5,子选项6,子选项7#子选项8,子选项9",
                    "source": "test"
                }, {
                    "type": "Label",
                    "text": "ComboBox控件(一级)",
                    "size": 16,
                    "align": "left",
                    "color": "0,168,233"
                }, {
                    "id": "ceshi11",
                    "type": "ComboBox",
                    "list": "选项1,选项2,选项3,选项4,选项5,选项6,选项7",
                    "select": "1"
                }]
    }
Copyright 北京帮你玩科技有限公司 2020 all right reserved,powered by Gitbook该文章修订时间: 2020-01-01 19:43:49

results matching ""

    No results matching ""