tfp
Version:
A Web UI framework for TaskBuilder
179 lines • 4.33 kB
JavaScript
export default {
"name": "List",
"comment": "列表",
"cssFiles": "style.{bgColorMode}.css",
"attrs": [
{
"name": "inputSetting",
"comment": "列表设置",
"type": "group",
"items": [
{
"name": "value",
"comment": "当前选中选项值",
"type": "String",
"isHtmlAttr": true
},
{
"name": "options",
"comment": "选项设置",
"type": "Dataset",
"isPro": true,
"keyCol": "name",
"width": "640px",
"height": "600px",
"columns": [
{
"id": "value",
"name": "选项值",
"type": "String",
"required": true
},
{
"id": "text",
"name": "选项文本",
"type": "String",
"required": true
},
{
"id": "target",
"name": "目标页面",
"type": "Select",
"default": "self",
"options": [
{
"value": "self",
"text": "当前页面"
},
{
"value": "page",
"text": "新页面"
},
{
"value": "dialog",
"text": "对话框"
},
{
"value": "window",
"text": "新窗口"
}
]
},
{
"id": "targetTitle",
"name": "目标页面标题",
"type": "String"
},
{
"id": "href",
"name": "目标页面地址",
"type": "String",
"isHtmlAttr": true,
"special": true
},
{
"id": "dialogWidth",
"name": "对话框宽度",
"type": "Int"
},
{
"id": "dialogHeight",
"name": "对话框高度",
"type": "Int"
},
{
"id": "onClick",
"name": "点击后执行的脚本",
"type": "Event",
"width": "180px",
"wrap": true
}
]
},
{
"name": "orderType",
"comment": "列表类型",
"type": "Select",
"default": "none",
"options": [
{
"value": "none",
"text": "无序列表"
},
{
"value": "order",
"text": "有序列表"
}
]
},
{
"name": "icon",
"comment": "列表图标",
"type": "String"
},
{
"name": "color",
"comment": "选中字体颜色",
"type": "String"
},
{
"name": "bgColor",
"comment": "选中背景颜色",
"type": "String"
}
]
},
{
"name": "dataSourceSetting",
"comment": "数据源设置",
"type": "group",
"items": [
{
"name": "loadDataListService",
"comment": "可选项数据加载服务",
"type": "Service"
},
{
"name": "dataListBindingMember",
"comment": "可选项数据绑定成员",
"type": "String"
},
{
"name": "dataListValueFormat",
"comment": "选项值数据格式",
"type": "String"
},
{
"name": "dataListTextFormat",
"comment": "选项文本数据格式",
"type": "String"
}
]
}
],
"styles": ["size", "position", "font", "margin", "border", "other"],
"defaultStyles": {
"width": "180px",
"height": "120px",
"overflow": "auto"
},
"events": [{
"name": "onClickOption",
"comment": "点击列表项时",
"isNotHtmlEvent": true,
"args": [
{
"name": "index",
"comment": "选项索引",
"type": "Int",
"required": true
},
{
"name": "value",
"comment": "选项值",
"type": "String",
"required": true
}
]
}]
}