Skip to content

编辑渲染器(editAs) ​

编辑渲染器决定 Cell 在 edit 模式下对应的表单组件。

渲染器列表 ​

editAs渲染组件说明
inputel-input单行文本
textareael-input[textarea]多行文本
inputNumberel-input-number数字输入
selectel-select下拉选择(支持远程搜索)
radioel-radio-group单选(选项 ≤ 5 时适用)
checkboxel-checkbox-group多选,值为数组
datePickerel-date-picker日期选择
dateRangePickerel-date-picker[range]日期范围
switchel-switch开关
imageUploadel-upload(图片模式)图片上传,支持预览、单图/多图
fileUploadel-upload(文件模式)文件上传,展示文件列表

合法的 editAs 覆盖组合 ​

cell \ editAsinputtextareainputNumberselectradiocheckboxdatePickerdateRangePickerswitchimageUploadfileUpload
text✅✅—————————
number——✅————————
currency——✅————————
enum———✅✅✅—————
boolean————✅———✅——
datetime——————✅————
dateRange———————✅———
image—————————✅—
file——————————✅
link✅——————————
detail—✅—————————

注意

Runtime 加载时应校验组合合法性,非法组合开发模式下警告并回退到默认渲染器。

Released under the MIT License.