tfp
Version:
A Web UI framework for TaskBuilder
102 lines (101 loc) • 2.27 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _default = {
"name": "Slider",
"comment": "滑块",
"cssFiles": "style.{bgColorMode}.css",
"attrs": [{
"name": "inputSetting",
"comment": "输入项设置",
"type": "group",
"items": [{
"name": "value",
"comment": "组件值",
"type": "Number",
"default": 0
}, {
"name": "comment",
"comment": "组件备注",
"type": "String"
}, // {
// "name": "placeHolder",
// "comment": "输入提示",
// "type": "String",
// "isHtmlAttr": true
// },
// {
// "name": "dataType",
// "comment": "数据类型",
// "type": "Select",
// "default": "text",
// "options": [
// {
// "value": "text",
// "text": "文本"
// },
// {
// "value": "int",
// "text": "整数"
// },
// {
// "value": "float",
// "text": "小数"
// },
// {
// "value": "money",
// "text": "金额"
// }
// ]
// },
{
"name": "dataBindingFormat",
"comment": "数据绑定格式",
"type": "Number"
}, {
"name": "formula",
"comment": "自动计算表达式",
"type": "Formula"
}, {
"name": "required",
"comment": "必填",
"type": "Switch"
}, {
"name": "readonly",
"comment": "只读",
"type": "Switch",
"isHtmlAttr": true
}, {
"name": "disabled",
"comment": "禁用",
"type": "Switch",
"isHtmlAttr": true
}]
}],
"styles": ["size", "position", "font", "margin", "border", "other"],
"defaultStyles": {
"position": "relative",
"width": "200px",
"height": "30px",
"line-height": "30px",
"padding-left": "2px",
"padding-right": "2px"
},
"events": [{
"name": "onClick",
"comment": "点击时"
}, {
"name": "onFocus",
"comment": "获得焦点时"
}, {
"name": "onBlur",
"comment": "失去焦点时"
}, {
"name": "onChange",
"comment": "值发生变化时",
"isNotHtmlEvent": true
}]
};
exports["default"] = _default;