mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-05 09:47:20 +00:00
update Radio and Radio.Gruop by Jeffery
This commit is contained in:
parent
91f8e2dd78
commit
b2ad9a1d1d
@ -8116,53 +8116,35 @@
|
|||||||
"propType": "string",
|
"propType": "string",
|
||||||
"description": "自定义类名"
|
"description": "自定义类名"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "id",
|
|
||||||
"propType": "string",
|
|
||||||
"description": "组件input的id"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "style",
|
"name": "style",
|
||||||
"propType": "object",
|
"propType": "object",
|
||||||
"description": "自定义内敛样式"
|
"description": "自定义内敛样式"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "id",
|
||||||
|
"propType": "string",
|
||||||
|
"description": "input元素id"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "checked",
|
"name": "checked",
|
||||||
"propType": "bool",
|
"propType": "bool",
|
||||||
"description": "设置radio是否选中"
|
"description": "是否选中"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "defaultChecked",
|
"name": "defaultChecked",
|
||||||
"propType": "bool",
|
"propType": "bool",
|
||||||
"description": "设置radio是否默认选中"
|
"description": "是否默认选中"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "label",
|
"name": "label",
|
||||||
"propType": {
|
"propType": "string",
|
||||||
"type": "instanceOf",
|
|
||||||
"value": "node"
|
|
||||||
},
|
|
||||||
"description": "通过属性配置label"
|
"description": "通过属性配置label"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "onChange",
|
|
||||||
"propType": "func",
|
|
||||||
"description": "状态变化时触发的事件\n@param {Boolean} checked 是否选中\n@param {Event} e Dom 事件对象"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "onMouseEnter",
|
|
||||||
"propType": "func",
|
|
||||||
"description": "鼠标进入enter事件\n@param {Event} e Dom 事件对象"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "onMouseLeave",
|
|
||||||
"propType": "func",
|
|
||||||
"description": "鼠标离开事件\n@param {Event} e Dom 事件对象"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "disabled",
|
"name": "disabled",
|
||||||
"propType": "bool",
|
"propType": "bool",
|
||||||
"description": "radio是否被禁用"
|
"description": "是否被禁用"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "value",
|
"name": "value",
|
||||||
@ -8174,7 +8156,7 @@
|
|||||||
"bool"
|
"bool"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "radio 的value"
|
"description": "value"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "name",
|
"name": "name",
|
||||||
@ -8190,21 +8172,28 @@
|
|||||||
{
|
{
|
||||||
"name": "renderPreview",
|
"name": "renderPreview",
|
||||||
"propType": "func",
|
"propType": "func",
|
||||||
"description": "预览态模式下渲染的内容\n@param {number} value 评分值"
|
"description": "预览态模式下渲染的内容"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "tabIndex",
|
"name": "onChange",
|
||||||
"defaultValue": 0
|
"propType": "func",
|
||||||
|
"description": "状态变化时触发的事件\n@param {Boolean} checked 是否选中\n@param {Event} e Dom 事件对象"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "prefix",
|
"name": "onMouseEnter",
|
||||||
"defaultValue": "next-"
|
"propType": "func",
|
||||||
|
"description": "鼠标进入enter事件\n@param {Event} e Dom 事件对象"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "onMouseLeave",
|
||||||
|
"propType": "func",
|
||||||
|
"description": "鼠标离开事件\n@param {Event} e Dom 事件对象"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"componentName": "RadioGroup",
|
"componentName": "Radio.Group",
|
||||||
"title": "RadioGroup",
|
"title": "Radio.Group",
|
||||||
"docUrl": "",
|
"docUrl": "",
|
||||||
"screenshot": "",
|
"screenshot": "",
|
||||||
"npm": {
|
"npm": {
|
||||||
@ -8216,12 +8205,6 @@
|
|||||||
"subName": "Group"
|
"subName": "Group"
|
||||||
},
|
},
|
||||||
"props": [
|
"props": [
|
||||||
{
|
|
||||||
"name": "prefix",
|
|
||||||
"propType": "string",
|
|
||||||
"description": "样式类名的品牌前缀",
|
|
||||||
"defaultValue": "next-"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "className",
|
"name": "className",
|
||||||
"propType": "string",
|
"propType": "string",
|
||||||
@ -8237,6 +8220,31 @@
|
|||||||
"propType": "string",
|
"propType": "string",
|
||||||
"description": "name"
|
"description": "name"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "size",
|
||||||
|
"propType": {
|
||||||
|
"type": "oneOf",
|
||||||
|
"value": [
|
||||||
|
"large",
|
||||||
|
"medium",
|
||||||
|
"small"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "尺寸",
|
||||||
|
"defaultValue": "medium"
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "shape",
|
||||||
|
"propType": {
|
||||||
|
"type": "oneOf",
|
||||||
|
"value": [
|
||||||
|
"normal",
|
||||||
|
"button"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "展示形态"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "value",
|
"name": "value",
|
||||||
"propType": {
|
"propType": {
|
||||||
@ -8247,7 +8255,7 @@
|
|||||||
"bool"
|
"bool"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "radio group的选中项的值"
|
"description": "选中项的值"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "defaultValue",
|
"name": "defaultValue",
|
||||||
@ -8259,52 +8267,23 @@
|
|||||||
"bool"
|
"bool"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "radio group的默认值"
|
"description": "默认值"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "component",
|
"name": "component",
|
||||||
"propType": {
|
"propType": "string",
|
||||||
"type": "oneOfType",
|
|
||||||
"value": [
|
|
||||||
"string",
|
|
||||||
"func"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"description": "设置标签类型",
|
"description": "设置标签类型",
|
||||||
"defaultValue": "div"
|
"defaultValue": "div"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "onChange",
|
|
||||||
"propType": "func",
|
|
||||||
"description": "选中值改变时的事件\n@param {String/Number} value 选中项的值\n@param {Event} e Dom 事件对象"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "disabled",
|
"name": "disabled",
|
||||||
"propType": "bool",
|
"propType": "bool",
|
||||||
"description": "表示radio被禁用"
|
"description": "是否被禁用"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "shape",
|
"name": "dataSource",
|
||||||
"propType": {
|
"propType": "object",
|
||||||
"type": "oneOf",
|
"description": "可选项列表"
|
||||||
"value": [
|
|
||||||
"button"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"description": "可以设置成 button 展示形状\n@enumdesc 按钮状"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "size",
|
|
||||||
"propType": {
|
|
||||||
"type": "oneOf",
|
|
||||||
"value": [
|
|
||||||
"large",
|
|
||||||
"medium",
|
|
||||||
"small"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"description": "与 `shape` 属性配套使用,shape设为button时有效\n@enumdesc 大, 中, 小",
|
|
||||||
"defaultValue": "medium"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "itemDirection",
|
"name": "itemDirection",
|
||||||
@ -8315,7 +8294,7 @@
|
|||||||
"ver"
|
"ver"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "子项目的排列方式\n- hoz: 水平排列 (default)\n- ver: 垂直排列",
|
"description": "子项目的排列方式",
|
||||||
"defaultValue": "hoz"
|
"defaultValue": "hoz"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -8328,8 +8307,25 @@
|
|||||||
"name": "renderPreview",
|
"name": "renderPreview",
|
||||||
"propType": "func",
|
"propType": "func",
|
||||||
"description": "预览态模式下渲染的内容\n@param {number} value 评分值"
|
"description": "预览态模式下渲染的内容\n@param {number} value 评分值"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "onChange",
|
||||||
|
"propType": "func",
|
||||||
|
"description": "选中值改变时的事件\n@param {String/Number} value 选中项的值\n@param {Event} e Dom 事件对象"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"configure": {
|
||||||
|
"component": {
|
||||||
|
"isContainer": true
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"isExtends": true,
|
||||||
|
"override": [{
|
||||||
|
"name": "dataSource",
|
||||||
|
"setter": "JsonSetter"
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"componentName": "Range",
|
"componentName": "Range",
|
||||||
@ -13938,6 +13934,23 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"componentName": "Radio.Group",
|
||||||
|
"title": "单选框组",
|
||||||
|
"icon": "",
|
||||||
|
"package": "@alife/next",
|
||||||
|
"library": "Next",
|
||||||
|
"snippets": [
|
||||||
|
{
|
||||||
|
"title": "单选框组",
|
||||||
|
"screenshot": "https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_radio.png",
|
||||||
|
"schema": {
|
||||||
|
"componentName": "Radio.Group",
|
||||||
|
"props": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"componentName": "Range",
|
"componentName": "Range",
|
||||||
"title": "区段选择器",
|
"title": "区段选择器",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user