Commit Graph

2388 Commits

Author SHA1 Message Date
RickCole21 b3f6ca2389 完善一下联动文档 2020-08-14 18:32:06 +08:00
RickCole21 e8db70d7bc fix doc 2020-08-14 16:31:45 +08:00
RickCole21 1caa1bb50a rebuild pages 2020-08-14 16:26:41 +08:00
RickCole21 7ffa86be8f 更新 gh-pages 2020-08-14 16:25:25 +08:00
RickCole be264b0f23
Merge pull request #852 from 306392691/master
为NestedSelect添加checkAll和checkAllLabel选项
2020-08-14 15:03:05 +08:00
chenyang.e fbd29830ec 为NestedSelect添加checkAll和checkAllLabel选项 2020-08-14 14:31:13 +08:00
吴多益 6e31b279b3
Merge pull request #850 from nwind/master
补充 getComponentByName 的说明
2020-08-13 21:34:26 +08:00
wuduoyi 83c9949b94 Merge remote-tracking branch 'upstream/master'
* upstream/master:
2020-08-13 21:33:30 +08:00
wuduoyi 731aca9764 getComponentByName 的说明 2020-08-13 21:33:00 +08:00
liaoxuezhi a6c4d7c2aa
Merge pull request #848 from nwind/master
补充 editor 属性文档
2020-08-13 21:09:20 +08:00
wuduoyi e6f39fa102 补充 editor 属性文档 2020-08-13 19:01:07 +08:00
liaoxuezhi d1b23bd62f
Merge pull request #843 from nwind/master
完善 select 文档
2020-08-12 16:58:58 +08:00
wuduoyi ff24c3f825 完善 select 文档 2020-08-12 16:39:54 +08:00
wuduoyi 3df0ffc033 Merge remote-tracking branch 'upstream/master'
* upstream/master:
  select 的item 高度根据样式动态计算
  移动位置
2020-08-12 15:39:26 +08:00
liaoxuezhi 60178b7abc select 的item 高度根据样式动态计算 2020-08-12 15:07:35 +08:00
liaoxuezhi 040ff9bf77 移动位置 2020-08-12 14:42:32 +08:00
liaoxuezhi 8225f96447
Merge pull request #842 from nwind/master
fork 一份 react-tiny-virtual-list 到内部支持宽度自动撑开
2020-08-12 14:23:35 +08:00
wuduoyi 5019dd9f41 Merge remote-tracking branch 'upstream/master'
* upstream/master:
  tree 样式优化
  Bump tinymce from 5.2.2 to 5.4.1
2020-08-12 14:00:14 +08:00
吴多益 4eb7e22c92
Merge pull request #841 from baidu/dependabot/npm_and_yarn/tinymce-5.4.1
Bump tinymce from 5.2.2 to 5.4.1
2020-08-12 13:59:59 +08:00
wuduoyi 82e6ea11ce fork 一份 react-tiny-virtual-list 到内部支持宽度自动撑开 2020-08-12 13:58:57 +08:00
liaoxuezhi dda1091935 tree 样式优化 2020-08-12 09:04:07 +08:00
dependabot[bot] 4b3bf99e9a
Bump tinymce from 5.2.2 to 5.4.1
Bumps [tinymce](https://github.com/tinymce/tinymce-dist) from 5.2.2 to 5.4.1.
- [Release notes](https://github.com/tinymce/tinymce-dist/releases)
- [Changelog](https://github.com/tinymce/tinymce-dist/blob/master/changelog.txt)
- [Commits](https://github.com/tinymce/tinymce-dist/compare/5.2.2...5.4.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-11 15:21:19 +00:00
liaoxuezhi 9d878c562a
Merge pull request #840 from nwind/master
优化 select 在大数据量下的性能
2020-08-11 22:15:10 +08:00
wuduoyi cbd56a798e 优化 select 在大数据量下的性能 2020-08-11 22:07:32 +08:00
2betop d89dce3e53 修复日期重置到当月第一天的问题 2020-08-11 16:46:23 +08:00
2betop 2a7212bff8 Merge remote-tracking branch 'baidu/master' 2020-08-11 16:32:04 +08:00
RickCole a9b8f02103
Merge pull request #838 from DuLinRain/patch-2
丰富props配置的使用说明
2020-08-11 10:06:42 +08:00
2betop 56b79c6ca1 Merge remote-tracking branch 'baidu/master' 2020-08-11 09:22:03 +08:00
RickCole 23fc3cbdbb
Merge pull request #839 from RickCole21/master
补一下file
2020-08-10 23:54:58 +08:00
rickcole c267b3f4a2 fix 2020-08-10 23:53:40 +08:00
rickcole 669c80ec2b 补一下file 2020-08-10 23:49:39 +08:00
DuLinRain 63b9711343
丰富props配置的使用说明 2020-08-10 23:20:07 +08:00
liaoxuezhi 846067c05a 以防万一 2020-08-10 21:59:42 +08:00
liaoxuezhi 9b43a888dd
Merge pull request #836 from RickCole21/master
修复 image 添加 autoFill,导致表单提交一直 loading 的问题
2020-08-10 21:08:19 +08:00
rickcole fab33f9d5b 调整autofill的位置 2020-08-10 20:18:42 +08:00
rickcole 590b50d774 Merge remote-tracking branch 'upstream/master' 2020-08-10 19:21:41 +08:00
RickCole f9207d33e8
Merge pull request #830 from DuLinRain/patch-1
fix: validateOnChange=false时,提交后修改内容,表单不校验
2020-08-10 19:21:14 +08:00
2betop 75f747f56d Merge remote-tracking branch 'baidu/master' 2020-08-10 17:54:46 +08:00
2betop b7681c0e0d 修复 transfer 把外面高度撑开的问题 2020-08-10 17:54:25 +08:00
rickcole 3ea958f009 修复image验证导致表单提交loading问题 2020-08-10 17:16:01 +08:00
RickCole21 a14fff73a2 add doc:crud.defaultParams、选择器表单项默认值数据格式一致性问题 2020-08-10 16:20:04 +08:00
liaoxuezhi cc9fc91200
Merge pull request #833 from feizhen/editor-json-worker-fix
fix(components): 修复monaco-editor加载json worker报错问题
2020-08-10 15:16:30 +08:00
madisonlin a2f76d7455 fix(components): 修复monaco-editor加载json worker报错问题
使用monaco-editor编辑json文件,且开启json验证时,有可能因为加载不到json worker,
monaco.languages对象下会没有json属性,会报undefined错误,进而导致整个编辑器无法使用
2020-08-10 09:56:00 +08:00
liaoxuezhi b53c2094b9 调整样式 2020-08-09 21:50:37 +08:00
liaoxuezhi 3eac7cf838 transfer 添加 maxheight 2020-08-09 17:16:41 +08:00
DuLinRain b9b1f539bf
fix: validateOnChange=false时,提交后修改内容,表单不校验
当配置validateOnChange=false时,如果该xiang填写正确,点击提交。这时候修改该项目的内容,让其不符合校验规则,再次点击提交,表单不会校验该项内容。

我认为this.model.valid保存的是发生变化前该项目的状态,当发生变化时,该项model也应该重置。

复现demo:  

gif:   https://github.com/DuLinRain/pictures/blob/master/amis-bug1.gif?raw=true  
mp4:   https://github.com/DuLinRain/pictures/blob/master/amis-bug1.mp4?raw=true

复现代码如下:

{
    "$schema": "https://houtai.baidu.com/v2/schemas/page.json#",
    "title": "表单验证示例",
    "toolbar": "<a target='_blank' href='/docs/renderers/Form/FormItem'>文档</a>",
    "body": [
        {
            "type": "form",
            "autoFocus": false,
            "messages": {
                "validateFailed": "请仔细检查表单规则,部分表单项没通过验证"
            },
            "title": "表单",
            "actions": [
                {
                    "type": "submit",
                    "label": "提交"
                }
            ],
            "api": "/api/mock2/form/saveFormFailed?waitSeconds=2",
            "mode": "horizontal",
            "controls": [
                {
                    "name": "minLength",
                    "type": "text",
                    "label": "长度限制",
                    "validations": "minLength:10",
                    "validateOnChange": false
                }
            ]
        }
    ]
}
2020-08-08 21:57:21 +08:00
RickCole21 f7c2e14c6d fix setValues 2020-08-07 18:00:58 +08:00
2betop ee56c44fd9 Merge remote-tracking branch 'baidu/master' 2020-08-07 16:30:39 +08:00
2betop 0ca0e93b52 form 刷新数据验证状态不更新的问题 2020-08-07 16:30:21 +08:00
RickCole21 a6079a7f0a fix algolia 2020-08-07 16:20:17 +08:00