单对象控件
控件名称 | 主要配置项说明 | 内部函数支持 | 脚本示例说明 | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 标签 |
|
| ||||||||||||||||||||
2 | 按钮 | setBadge(content) //设置徽标内容 setDisable() 设置按钮禁用 | |||||||||||||||||||||
3 | 日期框 | args.minDate 选择的最小日期 args.maxDate 选择的最大日期 | setValue getValue setDisplayType | ||||||||||||||||||||
4 | 文本框 | args.showWordLimit 显示字数统计 args.maxLength 最大长度 | setValue getValue setDisplayType | ||||||||||||||||||||
5 | 数字框 | setValue getValue setDisplayType | |||||||||||||||||||||
6 | 单选框 | setValue getDisplayValue() 获取选择的显示的值 | |||||||||||||||||||||
7 | 复选框 | setValue getDisplayValue() 获取选择的显示的值 | |||||||||||||||||||||
8 | 选择框 | setValue getDisplayValue() 获取显示的显示的值 | |||||||||||||||||||||
9 | 开关 | setValue getValue setDisplayType | |||||||||||||||||||||
10 | 文件上传 | setValue 三种状态下,调用脚本setvalue都会显示对应的控件状态 freshData(url) 单文件展示的时候,外部脚本更新图片类型附件file值 ,仅在edit 和 visit下起作用 | |||||||||||||||||||||
11 | 单元格 |
|
|
| |||||||||||||||||||
12 | 步进器 | args.max 最大值 args.min 最小值 args.step 步长 | setValue getValue setDisplayType | ||||||||||||||||||||
13 | 嵌入网页 | url // 链接地址 | getFormName setDisplayType | ||||||||||||||||||||
14 | 位置标记 | args.mapFlag // 默认显示地图 0409移除 args.viewZoom // 视野级别 args.returnType // 回填内容形式 args.selfPointUrl // 自定义图片地址 args.selfPointWidth // 自定义图片宽度 args.selfPointHeight // 自定义图片高度 | getValue() setValue() setDisplayType() getFormName() |
多对象控件
控件名称 | 主要配置项说明 | 内部函数支持 | |
---|---|---|---|
1 | 步骤条 | args.stepList // 步骤条全部数据 args.inactStepIcon // 默认图标 args.actStepIcon // 激活图标 args.actStepColor // 激活颜色 | setDisplayType() getFormName() getValue() setValue() setTimeIndex(ind) // @params ind: type Number 适用于未绑定任何属性自定义步骤条内容 脚本指定激活位置 |
2 | 搜索框 | setValue getValue | |
3 | 通知栏 | args.scrollable 单条消息展示的时候,是否横向滚动 args.wrapable 关闭横向滚动的时候,可以选择换行展示消息 | setValue getValue |
4 | 卡片 | getParentAddin updateShow getSelected getAll setDisplayType freshData getAddinById getRootAddin freshObj(res) | |
5 | 表格 | setRowData freshData | |
6 | 时间轴 | args.stepList // 步骤条全部数据 args.stepTitle // 标题 args.stepNote // 描述 Type: String args.stepTitle // 标题 Type: Array args.inactStepIcon // 默认图标 args.actStepIcon // 激活图标 args.actStepColor // 激活颜色 args.actStepIndex // 激活位置 | setDisplayType() getFormName() setTimeIndex(ind) // @params ind: type Number 脚本指定激活位置 freshData() |
7 | 下拉菜单 | args.menuList // 下拉菜单全部数据 args.actMenuColor // 选中颜色 args.menuDirection // 菜单方向 menuValue // 当前选中菜单项名称 | setDisplayType() getFormName() |
8 | 商品卡片 | args.cardList // 商品卡片全部数据 args.bindTargetClass // 目标类 args.titleAttr // 商品标题 args.discribeAttr // 商品描述 args.imgAttr // 商品图片 args.priceAttr // 商品价格 args.numAttr // 商品数量 args.tagAttr // 商品标签 args.extagAttr // 商品标识 | setDisplayType() getFormName() getSelected() freshData() getAll() // 0409的下个release版本支持 |
9 | 轮播 | args.swipeList // 轮播全部数据 args.autoPlayTimer // 轮播间隔 args.needLoop // 循环播放 | setDisplayType() getFormName() swipePrev() // 切换到上一张轮播 swipeNext() // 切换到下一张轮播 swipeToIndex(num) // 切换到指定位置轮播 @params num type: Number |
10 | 二维码 | args.needLogo // 显示LOGO args.logoUrl // LOGO地址 args.logoSize // LOGO比例 args.logoRadius // LOGO圆角大小 args.logoBackColor // LOGO背景颜色 codeStr // 二维码字符串 | setDisplayType() getFormName() getValue() setValue() freshData() |
11 | 日历 | args.needTitle // 显示标题 args.titleText // 标题文本 args.needSubtitle // 显示副标题 args.needMark // 显示水印 args.selfCalendarDate // 日期范围 args.actColor // 主题色 targetTimeStamp // 选中日期的时间戳 targetDate // 选中日期 | setDisplayType() getFormName() |
12 | 树选择 | args.treeList // 树选择全部数据 args.rootQuery // 根节点查询条件 args.childrenQuery // 子节点查询条件 args.multiSwitch // 是否多选 ↓ 需配合多选:args.activeIds = [] 单选:args.activeIds = 0 args.activeIds // 当前选中导航 args.activeIndex // 当前选中项 | setDisplayType() getFormName() 移除 getSelected() freshData() getAll() |
布局
控件名称 | 主要配置项说明 | 内部函数支持 | |
---|---|---|---|
1 | 标签页 | args.tabs // 标签页全部数据 args.border // 边框 args.title_fontColor // 标题字体颜色 | setDisplayType() setInheritStyle();//使颜色设置生效 |
2 | 单列 | ||
3 | 多列 |
可视化
控件名称 | 主要配置项说明 | 内部函数支持 | |
---|---|---|---|
1 | 动态数字框 | freshData setValue |
编码扩展
控件名称 | 主要配置项说明 | 内部函数支持 | |
---|---|---|---|
1 | 超级控件 | freshData() | |
2 | 自定义可视化 | getSelected() freshData() |