带分页显示实例

第一页

第二页

第三页

script.json 文件内容:

需要创建 script.json 文件并将以下代码复制到创建的文件中

{
    "params": {
        "width": 590,
        "height": 700,
        "titles": "第1页,第2页,第3页",
        "pages": [
            [{
                    "type": "Label",
                    "text": "第一页设置",
                    "size": 18,
                    "align": "center",
                    "color": "0,168,233"
                },
                {
                    "type": "Image",
                    "src": "https://www.touchsprite.com/wp-content/uploads/2020/03/svc-ts-website_2020-03-26_15-55-13-926x363.jpg"
                },
                {
                    "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": "CheckBoxGroup控件",
                    "size": 16,
                    "align": "left",
                    "color": "0,168,233"
                },
                {
                    "id": "ceshi9",
                    "type": "CheckBoxGroup",
                    "list": "选项1,选项2,选项3,选项4",
                    "select": "0@3"
                }
            ],
            [{
                    "type": "Label",
                    "size": 25,
                    "text": "第二页设置",
                    "align": "center",
                    "color": "0,0,0"
                },
                {
                    "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"
                },
                {
                    "id": "ceshi8",
                    "type": "Edit",
                    "prompt": "请输入密码",
                    "text": "hhkjkjh",
                    "kbtype": "password"
                },
                {
                    "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",
                    "size": 25,
                    "text": "第三页设置",
                    "align": "center",
                    "color": "0,0,0"

                },
                {
                    "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",
                    "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"
                }
            ]
        ]
    }
}
Copyright 北京帮你玩科技有限公司 2021 all right reserved,powered by Gitbook该文章修订时间: 2021-01-15 17:46:04

results matching ""

    No results matching ""