带分页显示实例

{
    "params": {
        "width":590,
        "height":550,
        "titles":"第1页,第2页,第3页",
        "pages": [
            [

                    {
                        "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"
                    },
                    {
                        "type": "switches",
                        "list": "开关1,开关2,开关3",
                        "select": "0@2",
                        "id":"swk"
                    },
                    {
                        "type": "Label",
                        "text": "RadioGroup控件",
                        "size": 16,
                        "align": "left",
                        "color": "0,168,233"
                    },
                    {
                        "id": "ceshi4",
                        "type": "RadioGroup",
                        "list": "选项1,选项2,选项3",
                        "select": "1"
                    },
                    {
                        "type": "Label",
                        "text": "Edit控件(普通)",
                        "size": 16,
                        "align": "left",
                        "color": "0,168,233"
                    },
                    {
                        "id": "ceshi5",
                        "type": "Edit",
                        "prompt": "请输入一个字母",
                        "text": "默认值",
                        "kbtype": "ascii"
                    },
                    {
                        "type": "Label",
                        "text": "Edit控件(多行)",
                        "size": 16,
                        "align": "left",
                        "color": "0,168,233"
                    },
                    {
                        "id": "ceshi6",
                        "type": "Edit",
                        "prompt": "请输入一个字母",
                        "text": "默认值",
                        "row": "5",
                        "kbtype": "ascii"
                    },
                    {
                        "type": "Label",
                        "text": "Edit控件(滑块)",
                        "size": 16,
                        "align": "left",
                        "color": "0,168,233"
                    },
                    {
                        "type": "Edit",
                        "prompt": "请输入一个数字",
                        "text": "2",
                        "kbtype": "range",
                        "max": "100",
                        "min": "0",
                        "id":"hk"
                    },
                    {
                        "type": "Label",
                        "text": "Edit控件(数字)",
                        "size": 16,
                        "align": "left",
                        "color": "0,168,233"
                    },
                    {
                        "id": "ceshi7",
                        "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"
                    }
                ],
            [
                {
                    "type": "Label",
                    "size": 25,
                    "text": "第二页设置",
                    "align": "center",
                    "color": "0,0,0"
                },
                {
                    "text": "默认值",
                    "type": "Edit",
                    "kbtype": "ascii",
                    "prompt": "请输入一个字母"
                },
                {
                    "text": "默认值",
                    "type": "Edit",
                    "kbtype": "number",
                    "prompt": "请输入一个数字"
                }
            ],
            [
                {
                    "type": "Label",
                    "size": 25,
                    "text": "第三页设置",
                    "align": "center",
                    "color": "0,0,0"
                },
                {
                    "type": "CheckBoxGroup",
                    "list": "选项1,选项2,选项3,选项4,选项5,选项6,选项7",
                    "select": "3@5"
                },
                {
                    "list": "选项1,选项2,选项3",
                    "source": "test",
                    "type": "ComboBox",
                    "data": "子选项1,子选项2,子选项3,子选项4#子选项5,子选项6,子选项7#子选项8,子选项9",
                    "select": "1"
                },
                {
                    "dataSource": "test",
                    "type": "ComboBox",
                    "select": "1"
                }
            ]
        ]
    }
}
Copyright 北京帮你玩科技有限公司 2020 all right reserved,powered by Gitbook该文章修订时间: 2020-01-01 19:43:49

results matching ""

    No results matching ""