tfp
Version:
A Web UI framework for TaskBuilder
94 lines (93 loc) • 2.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _default = {
"name": "DateTime",
"comment": "日期时间",
"cssFiles": ["style.{bgColorMode}.css", "../popuplist/style.css"],
"jsFiles": "../popuplist/index.js",
"attrs": [{
"name": "inputSetting",
"comment": "输入项设置",
"type": "group",
"items": [{
"name": "value",
"comment": "组件值",
"type": "String"
}, {
"name": "comment",
"comment": "组件备注",
"type": "String"
}, {
"name": "dataBindingFormat",
"comment": "数据绑定格式",
"type": "String"
}, {
"name": "formula",
"comment": "自动计算表达式",
"type": "Formula"
}, {
"name": "required",
"comment": "必填",
"type": "Switch"
}, {
"name": "readonly",
"comment": "只读",
"type": "Switch",
"isHtmlAttr": true
}, {
"name": "disabled",
"comment": "禁用",
"type": "Switch",
"isHtmlAttr": true
}]
}, {
"name": "dateTimeSetting",
"comment": "日期时间设置",
"type": "group",
"items": [{
"name": "startYear",
"comment": "开始年份",
"type": "Int"
}, {
"name": "endYear",
"comment": "截止年份",
"type": "Int"
}, {
"name": "showIcon",
"comment": "显示图标",
"type": "Switch",
"default": true
}, {
"name": "showSecond",
"comment": "显示秒",
"type": "Switch"
}, {
"name": "defaultNow",
"comment": "默认当前时间",
"type": "Switch"
}]
}],
"styles": ["size", "position", "font", "margin", "border", "other"],
"defaultStyles": {
"width": "160px",
"height": "30px"
},
"events": [{
"name": "onClick",
"comment": "点击时"
}, {
"name": "onFocus",
"comment": "获得焦点时"
}, {
"name": "onBlur",
"comment": "失去焦点时"
}, {
"name": "onChange",
"comment": "值发生变化时",
"isNotHtmlEvent": true
}]
};
exports["default"] = _default;