Skip to content

Commit

Permalink
style:组件对齐云舍4.1主题 (baidu#4337)
Browse files Browse the repository at this point in the history
* Select Options等组件样式对齐4.0

* 更新测试快照

* 修改部分测试用例

* feat:4.0样式修改

* 修改checkboxes hover问题

* Feat image 4.0 (baidu#4242)

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* fix: 点状步骤条样式修改

* fix: inputTree组件对齐4.0标准

* fix: textarea组件对齐4.0标准

* fix: textarea组件对齐4.0标准

* fix: inputImage组件对齐4.0标准

* fix: inputImage组件对齐4.0标准

* fix: inputImage组件对齐4.0标准

* fix: inputImage组件对齐4.0标准

* fix: image组件样式优化

* fix: image组件样式优化

* fix: image组件样式优化

* fix: image组件样式优化

Co-authored-by: qiaoganggang <qiaoganggang@baidu.com>

* fix: textarea组件对齐4.0标准 (baidu#4149)

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* fix: 点状步骤条样式修改

* fix: inputTree组件对齐4.0标准

* fix: inputTree组件对齐4.0标准

* fix: textarea组件对齐4.0标准

* fix: textarea组件对齐4.0标准

Co-authored-by: qiaoganggang <qiaoganggang@baidu.com>

* fix: inputTree 组价对齐4.0标准 (baidu#4148)

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* fix: 点状步骤条样式修改

* fix: inputTree组件对齐4.0标准

* fix: inputTree组件对齐4.0标准

* fix: inputtree组件图标颜色修改

Co-authored-by: qiaoganggang <qiaoganggang@baidu.com>

* feat: 部分组件样式问题修复 (baidu#4154)

* feat: input-text 样式

* feat: input-range 样式

* feat: table  样式 1

* feat: search-box

* feat: curd icon

* feat: table 空状态

* feat: input-text 多选,最大宽度设置

* feat: search-box 搜索图标颜色

* feat: crud 编辑、过滤、搜索、排序 图标样式修改

* feat: 更新快照

* feat: 更新快照 2

* feat: curd fix

* feat: curd edit icon fix

* feat: input-password 不可见 icon 修改

* feat: input-password snapshot update

* docs:完善对话框size参数说明

* feat: Log 组件支持虚拟渲染及限制最大行数

* 修复不支持 loading 问题

* 换一下名字

Co-authored-by: liuzedong02 <liuzedong02@baidu.com>
Co-authored-by: liweijian <liweijian@hkmtl.com>
Co-authored-by: wuduoyi <wuduoyi@baidu.com>
Co-authored-by: RUNZE LU <36724300+lurunze1226@users.noreply.github.com>

* fix:修复删除图标颜色问题 (baidu#4245)

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* fix: 点状步骤条样式修改

* fix: inputTree组件对齐4.0标准

* fix: textarea组件对齐4.0标准

* fix: textarea组件对齐4.0标准

* fix: inputImage组件对齐4.0标准

* fix: inputImage组件对齐4.0标准

* fix: inputImage组件对齐4.0标准

* fix: inputImage组件对齐4.0标准

* fix: image组件样式优化

* fix: image组件样式优化

* fix: image组件样式优化

* fix: image组件样式优化

* fix: 修复conditionbuilder组价图标颜色问题

Co-authored-by: qiaoganggang <qiaoganggang@baidu.com>

* form表单对齐云社4.0 (baidu#4248)

* feat: form增加表单项 label文本对齐方式选项

* fix: remark 支持在表单内配置

* style: form 间距对齐云社4.0

Co-authored-by: sarding <hongfuquan@baidu.com>

* Fix chart radios name (baidu#4251)

* fix:  Chart 单选框 修改为  ChartRadios 图表单选框

* fix: input-password 修改 可见 图标

Co-authored-by: liuzedong02 <liuzedong02@baidu.com>

* feat: checkboxes内边距&nestedSelect箭头修改 (baidu#4254)

Co-authored-by: xujiahao01 <xujiahao01@baidu.com>

* Feature style 4.0 cxd (baidu#4261)

* feat: 日期&折叠面板&提示样式对齐

* fix:测试用例修复

* feat: timeRange开始和结束分开&日期样式优化

* styles: 日历样式修复

Co-authored-by: hongyang03 <hongyang03@baidu.com>

* 整体字体大小调整 (baidu#4264)

* feat: form增加表单项 label文本对齐方式选项

* fix: remark 支持在表单内配置

* style: form 间距对齐云社4.0

* 修改表单的字体

Co-authored-by: sarding <hongfuquan@baidu.com>

* inputfile  和 drawer对齐云社4.0 (baidu#4249)

* fix: drawer 和 inputfile 关闭图标对齐云社4.0

* fix:修改 drawer的图标大小 和边框圆角

* drawer  样式调整

Co-authored-by: sarding <hongfuquan@baidu.com>

* Fix style (baidu#4265)

* fix: input-password icon 高度

* fix: input-password icon 换行问题

Co-authored-by: liuzedong02 <liuzedong02@baidu.com>

* fix: curd 图标垂直居中 (baidu#4271)

Co-authored-by: liuzedong02 <liuzedong02@baidu.com>

* fix:修复nestedSelect无法动态调整位置及溢出问题 (baidu#4292)

Co-authored-by: xujiahao01 <xujiahao01@baidu.com>

* style: 优化switch组件动效 (baidu#4302)

* style:优化date组件最小宽度 (baidu#4303)

* style:cxd主题移动端基础字号调整为16px (baidu#4305)

* marge master into style-cxd (baidu#4306)

* docs:完善对话框size参数说明

* feat: Log 组件支持虚拟渲染及限制最大行数

* 修复不支持 loading 问题

* 换一下名字

* fix: 公式编辑器 variableMode 失效 (baidu#4252)

* 提交事件支持禁用默认提示

* fix:修改执行方式

* 修改测试api

* 去掉无效引用

* fix: 修复datetime移动端报错

* chore: jssdk 的 responseAdaptor 扩充参数,支持拿 response 整个对象,包括返回的 headers 和… (baidu#4229)

* chore: jssdk 的 responseAdpator 扩充参数,支持拿 response 整个对象,包括返回的 headers 和状态码信息

* chore: jssdk 的 responseAdpator 扩充参数,支持拿 response 整个对象,包括返回的 headers 和状态码信息

* docs: 切换主题文档描述不正确问题

* 优化逻辑

* 调整格式

* 处理异步

* 增加兼容逻辑

* feat: 更新实时日志组件,增加可操作按钮:停止、显示行号等 (baidu#4250)

* feat: 更新实时日志组件,增加可操作按钮:停止、显示行号等

* 日志容器针对操作按钮增加相对定位

* 改变工具栏为侧边隐藏样式

* 调整 log 操作按钮位置避免遮挡内容

* 补充翻译

* 修复 Log 行样式丢失

Co-authored-by: lvchenguang <lvchenguang@zhihu.com>
Co-authored-by: wuduoyi <wuduoyi@baidu.com>

* fixup (baidu#4263)

Co-authored-by: zhyc <zhyc@hzsuoyi.com>

* fix baidu#4240: 修复input-datetime组件timeConstraints属性不生效问题,修复时间选取后自动滚动位置错误 (baidu#4253)

* chore: action countDown 在actionType为ajax时,请求通过再执行倒计时操作、dialog header 传递动作属性 (baidu#4000)

* LocationPicker ak支持数据解析,可用于统一地图配置

* drawer header传递动作属性,在header中也可以提交、关闭等操作

* action countDown 在actionType为ajax时,请求通过再执行倒计时操作

* dialog header 传递动作属性

* 修一些编码规范问题

Co-authored-by: metooweb <1058776960@qq.com>
Co-authored-by: wuduoyi <wuduoyi@baidu.com>

* chore: 修几个单元测试报错 (baidu#4272)

* feat:toast支持取消合并state

* fix: 修正ContextMenu 二次触发时遮挡问题 (baidu#4282)

* fix(ContextMenu): 增加判空处理 (baidu#4283)

* 人员选择组件支持部门、角色、岗位选择 (baidu#4285)

* 人员选择组件

* 修复ts报错

Co-authored-by: zhangxulong <zhangxulong@baidu.com>

* fix:修复事件动作对禁用状态控制失效问题&更新文档示例 (baidu#4278)

* fix:修复事件动作对禁用状态控制失效问题&更新文档示例

* fix:修复事件动作对禁用状态控制失效问题

* fix:修复事件动作对禁用状态控制失效问题

* fix:动作执行时对组件查找失败的容错 (baidu#4290)

* feat:Table2支持配置单元格样式、行操作按钮 (baidu#4268)

Co-authored-by: wanglinfang <wanglinfang@baidu.com>

* fix baidu#4270: checkboxes组件checkAll属性失效问题 (baidu#4287)

* feat:事件干预支持表达式 (baidu#4295)

* fix baidu#4258: sdk方式下toast配置不生效问题 (baidu#4274)

* feat: 添加 json-schema 渲染器 (baidu#4269)

* feat: 添加 json-schema 渲染器

* draft: 组件层添加 form 逻辑

* 补充组件form相关逻辑

* json-schema-editor 组件内部实现调整

* 添加 json-schema 渲染器

* 补充外部 value 变化更新成员的逻辑

* 补充外部 value 变化更新成员的逻辑

* 优化 json-schema 交互

* 修改 snapshot

* 可能死循环

* 补充文档

* 优化逻辑

* 具备远程获取能力

* 固定值优化

* fix(custom): 完善custom自定义组件,增加属性变动更新逻辑 (baidu#4288)

* fix(custom): 完善custom自定义组件,增加属性变动更新逻辑

* fix(custom): update

* fix(custom): 更新测试用例

* 类型只有一个时不显示切换按钮

* fix: Pagination 切换页码后每页显示重置问题 (baidu#4298)

Co-authored-by: liweijian <liweijian@hkmtl.com>
Co-authored-by: wuduoyi <wuduoyi@baidu.com>
Co-authored-by: RUNZE LU <36724300+lurunze1226@users.noreply.github.com>
Co-authored-by: Allen <yupeng.fe@qq.com>
Co-authored-by: pianruijie <13522335863@163.com>
Co-authored-by: zhangtao07 <zhang.tao.1006@163.com>
Co-authored-by: liaoxuezhi <2betop.cn@gmail.com>
Co-authored-by: hsm-lv <80095014+hsm-lv@users.noreply.github.com>
Co-authored-by: mr-chenguang <37072324+lcgash@users.noreply.github.com>
Co-authored-by: lvchenguang <lvchenguang@zhihu.com>
Co-authored-by: decarp <zhycde@gmail.com>
Co-authored-by: zhyc <zhyc@hzsuoyi.com>
Co-authored-by: metooweb <2947550545@qq.com>
Co-authored-by: metooweb <1058776960@qq.com>
Co-authored-by: 刘丹 <365533093@qq.com>
Co-authored-by: 龙少 <1769057083@qq.com>
Co-authored-by: zhangxulong <zhangxulong@baidu.com>
Co-authored-by: wanglinfang2014 <w.l.fang@foxmail.com>
Co-authored-by: wanglinfang <wanglinfang@baidu.com>

* fix:transfer组件云舍样式完善 (baidu#4310)

Co-authored-by: sqzhou <zhoushengqiang01@MacBook-Pro-2.local>

* merge master (baidu#4335)

* docs:完善对话框size参数说明

* feat: Log 组件支持虚拟渲染及限制最大行数

* 修复不支持 loading 问题

* 换一下名字

* fix: 公式编辑器 variableMode 失效 (baidu#4252)

* 提交事件支持禁用默认提示

* fix:修改执行方式

* 修改测试api

* 去掉无效引用

* fix: 修复datetime移动端报错

* chore: jssdk 的 responseAdaptor 扩充参数,支持拿 response 整个对象,包括返回的 headers 和… (baidu#4229)

* chore: jssdk 的 responseAdpator 扩充参数,支持拿 response 整个对象,包括返回的 headers 和状态码信息

* chore: jssdk 的 responseAdpator 扩充参数,支持拿 response 整个对象,包括返回的 headers 和状态码信息

* docs: 切换主题文档描述不正确问题

* 优化逻辑

* 调整格式

* 处理异步

* 增加兼容逻辑

* feat: 更新实时日志组件,增加可操作按钮:停止、显示行号等 (baidu#4250)

* feat: 更新实时日志组件,增加可操作按钮:停止、显示行号等

* 日志容器针对操作按钮增加相对定位

* 改变工具栏为侧边隐藏样式

* 调整 log 操作按钮位置避免遮挡内容

* 补充翻译

* 修复 Log 行样式丢失

Co-authored-by: lvchenguang <lvchenguang@zhihu.com>
Co-authored-by: wuduoyi <wuduoyi@baidu.com>

* fixup (baidu#4263)

Co-authored-by: zhyc <zhyc@hzsuoyi.com>

* fix baidu#4240: 修复input-datetime组件timeConstraints属性不生效问题,修复时间选取后自动滚动位置错误 (baidu#4253)

* chore: action countDown 在actionType为ajax时,请求通过再执行倒计时操作、dialog header 传递动作属性 (baidu#4000)

* LocationPicker ak支持数据解析,可用于统一地图配置

* drawer header传递动作属性,在header中也可以提交、关闭等操作

* action countDown 在actionType为ajax时,请求通过再执行倒计时操作

* dialog header 传递动作属性

* 修一些编码规范问题

Co-authored-by: metooweb <1058776960@qq.com>
Co-authored-by: wuduoyi <wuduoyi@baidu.com>

* chore: 修几个单元测试报错 (baidu#4272)

* feat:toast支持取消合并state

* fix: 修正ContextMenu 二次触发时遮挡问题 (baidu#4282)

* fix(ContextMenu): 增加判空处理 (baidu#4283)

* 人员选择组件支持部门、角色、岗位选择 (baidu#4285)

* 人员选择组件

* 修复ts报错

Co-authored-by: zhangxulong <zhangxulong@baidu.com>

* fix:修复事件动作对禁用状态控制失效问题&更新文档示例 (baidu#4278)

* fix:修复事件动作对禁用状态控制失效问题&更新文档示例

* fix:修复事件动作对禁用状态控制失效问题

* fix:修复事件动作对禁用状态控制失效问题

* fix:动作执行时对组件查找失败的容错 (baidu#4290)

* feat:Table2支持配置单元格样式、行操作按钮 (baidu#4268)

Co-authored-by: wanglinfang <wanglinfang@baidu.com>

* fix baidu#4270: checkboxes组件checkAll属性失效问题 (baidu#4287)

* feat:事件干预支持表达式 (baidu#4295)

* fix baidu#4258: sdk方式下toast配置不生效问题 (baidu#4274)

* feat: 添加 json-schema 渲染器 (baidu#4269)

* feat: 添加 json-schema 渲染器

* draft: 组件层添加 form 逻辑

* 补充组件form相关逻辑

* json-schema-editor 组件内部实现调整

* 添加 json-schema 渲染器

* 补充外部 value 变化更新成员的逻辑

* 补充外部 value 变化更新成员的逻辑

* 优化 json-schema 交互

* 修改 snapshot

* 可能死循环

* 补充文档

* 优化逻辑

* 具备远程获取能力

* 固定值优化

* fix(custom): 完善custom自定义组件,增加属性变动更新逻辑 (baidu#4288)

* fix(custom): 完善custom自定义组件,增加属性变动更新逻辑

* fix(custom): update

* fix(custom): 更新测试用例

* 类型只有一个时不显示切换按钮

* fix: Pagination 切换页码后每页显示重置问题 (baidu#4298)

* feat:transfer组件功能完善 (baidu#3696)

* feat:transfer组件功能完善

* update-snapshot

* feat:transfer组件功能完善

* update-snapshot

* feat:transfer组件功能完善

* feat:transfer组件云舍4.0功能

* feat:transfer组件云舍4.0功能

* feat:transfer组件云舍4.0功能

* feat:transfer组件云舍4.0功能

* feat:transfer组件云舍4.0功能

* feat:transfer组件云舍4.0功能

* feat:transfer组件云舍4.0功能

* feat:transfer组件云舍4.0功能

* feat:transfer组件云舍4.0功能

* feat:transfer组件云舍4.0功能

* feat:transfer组件云舍4.0功能

* update-snapshot

* feat:transfer组件云舍4.0功能

* feat:transfer组件云舍4.0功能

* feat:transfer组件云舍4.0功能

* feat:transfer组件云舍4.0功能

* update-snapshot

Co-authored-by: sqzhou <zhoushengqiang01@baidu.com>

* feat: 表单label支持左右对齐方式 (baidu#4311)

* fix: 修复 replaceText 不支持 schemaApi 问题 (baidu#4300)

* fix: deferloadOptions 在defer模式下的处理问题

* fix: 按钮disabledOn属性失效问题 (baidu#4324)

* fix: Service组件条件轮询会多调用一次api; docs: 补充轮询相关属性示例 (baidu#4317)

* fix: 公式变量检索问题 (baidu#4325)

* fix baidu#1536: actionType为ajax时sendOn属性未生效问题 (baidu#4326)

* fix:修复disabled失效问题 (baidu#4329)

* fix:修复disabled失效问题

* test:补充事件动作测试用例

* fix:样式问题

Co-authored-by: liweijian <liweijian@hkmtl.com>
Co-authored-by: wuduoyi <wuduoyi@baidu.com>
Co-authored-by: RUNZE LU <36724300+lurunze1226@users.noreply.github.com>
Co-authored-by: Allen <yupeng.fe@qq.com>
Co-authored-by: pianruijie <13522335863@163.com>
Co-authored-by: zhangtao07 <zhang.tao.1006@163.com>
Co-authored-by: liaoxuezhi <2betop.cn@gmail.com>
Co-authored-by: hsm-lv <80095014+hsm-lv@users.noreply.github.com>
Co-authored-by: mr-chenguang <37072324+lcgash@users.noreply.github.com>
Co-authored-by: lvchenguang <lvchenguang@zhihu.com>
Co-authored-by: decarp <zhycde@gmail.com>
Co-authored-by: zhyc <zhyc@hzsuoyi.com>
Co-authored-by: metooweb <2947550545@qq.com>
Co-authored-by: metooweb <1058776960@qq.com>
Co-authored-by: 刘丹 <365533093@qq.com>
Co-authored-by: 龙少 <1769057083@qq.com>
Co-authored-by: zhangxulong <zhangxulong@baidu.com>
Co-authored-by: wanglinfang2014 <w.l.fang@foxmail.com>
Co-authored-by: wanglinfang <wanglinfang@baidu.com>
Co-authored-by: zhou999 <zhousq809@163.com>
Co-authored-by: sqzhou <zhoushengqiang01@baidu.com>

Co-authored-by: xujiahao01 <xujiahao01@baidu.com>
Co-authored-by: qiaogg <43558337+qiaogg@users.noreply.github.com>
Co-authored-by: qiaoganggang <qiaoganggang@baidu.com>
Co-authored-by: sansiro <sansiro@sansiro.me>
Co-authored-by: liuzedong02 <liuzedong02@baidu.com>
Co-authored-by: liweijian <liweijian@hkmtl.com>
Co-authored-by: wuduoyi <wuduoyi@baidu.com>
Co-authored-by: RUNZE LU <36724300+lurunze1226@users.noreply.github.com>
Co-authored-by: sarding <37691952+sarding@users.noreply.github.com>
Co-authored-by: sarding <hongfuquan@baidu.com>
Co-authored-by: 徐佳豪 <53201551+blue-squirrel@users.noreply.github.com>
Co-authored-by: HongYang <33488114+hy993658052@users.noreply.github.com>
Co-authored-by: hongyang03 <hongyang03@baidu.com>
Co-authored-by: Allen <yupeng.fe@qq.com>
Co-authored-by: pianruijie <13522335863@163.com>
Co-authored-by: zhangtao07 <zhang.tao.1006@163.com>
Co-authored-by: liaoxuezhi <2betop.cn@gmail.com>
Co-authored-by: hsm-lv <80095014+hsm-lv@users.noreply.github.com>
Co-authored-by: mr-chenguang <37072324+lcgash@users.noreply.github.com>
Co-authored-by: lvchenguang <lvchenguang@zhihu.com>
Co-authored-by: decarp <zhycde@gmail.com>
Co-authored-by: zhyc <zhyc@hzsuoyi.com>
Co-authored-by: metooweb <2947550545@qq.com>
Co-authored-by: metooweb <1058776960@qq.com>
Co-authored-by: 刘丹 <365533093@qq.com>
Co-authored-by: 龙少 <1769057083@qq.com>
Co-authored-by: zhangxulong <zhangxulong@baidu.com>
Co-authored-by: wanglinfang2014 <w.l.fang@foxmail.com>
Co-authored-by: wanglinfang <wanglinfang@baidu.com>
Co-authored-by: zhou999 <zhousq809@163.com>
Co-authored-by: sqzhou <zhoushengqiang01@MacBook-Pro-2.local>
Co-authored-by: sqzhou <zhoushengqiang01@baidu.com>
  • Loading branch information
1 parent 8e73fc0 commit ab00612
Show file tree
Hide file tree
Showing 92 changed files with 1,630 additions and 626 deletions.
1 change: 1 addition & 0 deletions __tests__/renderers/CRUD.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ test('Renderer:crud', async () => {
)
);

await wait(300);
await waitFor(() => {
expect(getByText('Internet Explorer 4.0')).toBeInTheDocument();
expect(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ exports[`Renderer:chained-select 1`] = `
class="cxd-Select-arrow"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
</div>
Expand All @@ -106,8 +106,8 @@ exports[`Renderer:chained-select 1`] = `
class="cxd-Select-arrow"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
</div>
Expand All @@ -132,8 +132,8 @@ exports[`Renderer:chained-select 1`] = `
class="cxd-Select-arrow"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
</div>
Expand Down
12 changes: 6 additions & 6 deletions __tests__/renderers/Form/__snapshots__/city.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ exports[`Renderer:city 1`] = `
class="cxd-Select-arrow"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
</div>
Expand Down Expand Up @@ -115,8 +115,8 @@ exports[`Renderer:city 1`] = `
class="cxd-Select-arrow"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
</div>
Expand Down Expand Up @@ -149,8 +149,8 @@ exports[`Renderer:city 1`] = `
class="cxd-Select-arrow"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ exports[`Renderer:condition-builder 1`] = `
class="cxd-Select-arrow"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
</div>
Expand Down
10 changes: 5 additions & 5 deletions __tests__/renderers/Form/__snapshots__/dateRange.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ exports[`Renderer:dateRange 1`] = `
<input
autocomplete="off"
class="cxd-DateRangePicker-input isActive"
placeholder="选择开始时间"
placeholder="开始时间"
type="text"
value="2019-06-06"
/>
<span
class="cxd-DateRangePicker-input-separator"
>
~
-
</span>
<input
autocomplete="off"
class="cxd-DateRangePicker-input"
placeholder="选择结束时间"
placeholder="结束时间"
type="text"
value="2019-06-26"
/>
Expand All @@ -87,8 +87,8 @@ exports[`Renderer:dateRange 1`] = `
class="cxd-DateRangePicker-toggler"
>
<icon-mock
classname="icon icon-clock"
icon="clock"
classname="icon icon-date"
icon="date"
/>
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions __tests__/renderers/Form/__snapshots__/datetime.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ exports[`Renderer:date 1`] = `
class="cxd-DatePicker-toggler"
>
<icon-mock
classname="icon icon-clock"
icon="clock"
classname="icon icon-date"
icon="date"
/>
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ exports[`Renderer:inputDate 1`] = `
class="cxd-DatePicker-toggler"
>
<icon-mock
classname="icon icon-clock"
icon="clock"
classname="icon icon-date"
icon="date"
/>
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions __tests__/renderers/Form/__snapshots__/repeat.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ exports[`Renderer:repeat 1`] = `
class="cxd-Select-arrow"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
<div
Expand Down
40 changes: 20 additions & 20 deletions __tests__/renderers/Form/__snapshots__/select.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ exports[`Renderer: chained select 1`] = `
class="cxd-SelectControl cxd-Form-control"
>
<div
class="cxd-ResultBox cxd-TransferDropDown cxd-Form-control is-clickable"
class="cxd-ResultBox cxd-TransferDropDown cxd-Form-control is-clickable is-group"
tabindex="-1"
>
<span
Expand All @@ -77,8 +77,8 @@ exports[`Renderer: chained select 1`] = `
class="cxd-TransferDropDown-icon"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
</div>
Expand Down Expand Up @@ -226,8 +226,8 @@ exports[`Renderer:select associated 1`] = `
class="cxd-TransferDropDown-icon"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
</div>
Expand Down Expand Up @@ -375,8 +375,8 @@ exports[`Renderer:select chained 1`] = `
class="cxd-TransferDropDown-icon"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
</div>
Expand Down Expand Up @@ -524,8 +524,8 @@ exports[`Renderer:select group 1`] = `
class="cxd-TransferDropDown-icon"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
</div>
Expand Down Expand Up @@ -681,8 +681,8 @@ exports[`Renderer:select menutpl 1`] = `
class="cxd-Select-arrow"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
</div>
Expand Down Expand Up @@ -830,8 +830,8 @@ exports[`Renderer:select table 1`] = `
class="cxd-TransferDropDown-icon"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
</div>
Expand Down Expand Up @@ -955,7 +955,7 @@ exports[`Renderer:select table with labelField & valueField 1`] = `
class="cxd-SelectControl cxd-Form-control has-popover"
>
<div
class="cxd-ResultBox cxd-TransferDropDown cxd-Form-control is-active is-clickable"
class="cxd-ResultBox cxd-TransferDropDown cxd-Form-control is-active is-clickable is-group"
style="position: relative;"
tabindex="-1"
>
Expand All @@ -968,8 +968,8 @@ exports[`Renderer:select table with labelField & valueField 1`] = `
class="cxd-TransferDropDown-icon"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
<div
Expand Down Expand Up @@ -1419,8 +1419,8 @@ exports[`Renderer:select tree 1`] = `
class="cxd-TransferDropDown-icon"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
</div>
Expand Down Expand Up @@ -1566,8 +1566,8 @@ exports[`Renderer:select virtual 1`] = `
class="cxd-Select-arrow"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
<div
Expand Down
4 changes: 2 additions & 2 deletions __tests__/renderers/Form/__snapshots__/service.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ exports[`Renderer:service 1`] = `
class="cxd-Select-arrow"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
classname="icon icon-right-arrow-bold"
icon="right-arrow-bold"
/>
</span>
</div>
Expand Down
41 changes: 19 additions & 22 deletions __tests__/renderers/Form/__snapshots__/text.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,9 @@ exports[`Renderer:text type is password 1`] = `
<a
class="cxd-TextControl-revealPassword"
>
<i
class="fa fa-eye-slash"
<icon-mock
classname="icon icon-invisible"
icon="invisible"
/>
</a>
</div>
Expand Down Expand Up @@ -1793,16 +1794,15 @@ exports[`Renderer:text with options and multiple: first option selected 1`] = `
<div
class="cxd-TextControl-value"
>
<span
class="cxd-TextControl-valueIcon"
>
×
</span>
<span
class="cxd-TextControl-valueLabel"
>
OptionA
</span>
<icon-mock
classname="cxd-TextControl-valueIcon icon icon-close"
icon="close"
/>
</div>
<input
aria-autocomplete="list"
Expand Down Expand Up @@ -2167,16 +2167,15 @@ exports[`Renderer:text with options and multiple: options is opened again, and f
<div
class="cxd-TextControl-value"
>
<span
class="cxd-TextControl-valueIcon"
>
×
</span>
<span
class="cxd-TextControl-valueLabel"
>
OptionA
</span>
<icon-mock
classname="cxd-TextControl-valueIcon icon icon-close"
icon="close"
/>
</div>
<input
aria-autocomplete="list"
Expand Down Expand Up @@ -2357,30 +2356,28 @@ exports[`Renderer:text with options and multiple: second option selected 1`] = `
<div
class="cxd-TextControl-value"
>
<span
class="cxd-TextControl-valueIcon"
>
×
</span>
<span
class="cxd-TextControl-valueLabel"
>
OptionA
</span>
<icon-mock
classname="cxd-TextControl-valueIcon icon icon-close"
icon="close"
/>
</div>
<div
class="cxd-TextControl-value"
>
<span
class="cxd-TextControl-valueIcon"
>
×
</span>
<span
class="cxd-TextControl-valueLabel"
>
OptionB
</span>
<icon-mock
classname="cxd-TextControl-valueIcon icon icon-close"
icon="close"
/>
</div>
<input
aria-autocomplete="list"
Expand Down
1 change: 1 addition & 0 deletions __tests__/renderers/Form/combo.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ test('Renderer:combo multiple', async () => {

const formDebug = JSON.parse(container.querySelector('pre code')!.innerHTML);

await wait(300);
expect(formDebug).toEqual({
combo: [
{
Expand Down
1 change: 1 addition & 0 deletions __tests__/renderers/Form/formula.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ test('Renderer:formula', async () => {
value: 2
}
});
await wait(300);
await waitFor(() => {
expect(inputs[2].value).toBe('3');
expect(inputs[3].value).toBe('4');
Expand Down
1 change: 1 addition & 0 deletions __tests__/renderers/Form/inputArray.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ test('Renderer:inputArray', async () => {

const formDebug = JSON.parse(document.querySelector('pre code')!.innerHTML);

await wait(500);
expect(formDebug).toEqual({
array: ['amis']
});
Expand Down
Loading

0 comments on commit ab00612

Please sign in to comment.