Skip to content

refactor(Form): 重构form表单校验功能 #190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 46 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
50a01fa
fix: 修复updateOn为change时,popover闪一下问题
AlanLee97 Dec 31, 2021
81e570f
fix: 修复提交验证失效问题
AlanLee97 Dec 31, 2021
57a7b7e
fix: 修改getDfcUID方法名为getFormControlUID
AlanLee97 Jan 7, 2022
49e38cf
Merge branch 'feature/form' of https://github.com/AlanLee97/vue-devui…
AlanLee97 Jan 10, 2022
fabf3ae
fix: 增加css样式的devui前缀
AlanLee97 Jan 10, 2022
42b94ed
fix: 修复增加devui-前缀后引发的样式问题
AlanLee97 Jan 11, 2022
cec44ee
fix: 调整文档样式
AlanLee97 Jan 11, 2022
4895d39
feat: 重构部分模板驱动校验
AlanLee97 Jan 17, 2022
f9e0b22
fix: 调试表单提交验证
AlanLee97 Jan 17, 2022
7551659
feat: 完成表单提交验证
AlanLee97 Jan 18, 2022
8726952
fix: 调试 Form验证与提交
AlanLee97 Jan 18, 2022
cbc0001
fix: 完成Form验证与提交
AlanLee97 Jan 19, 2022
4a6b31f
fix: 加入错误提示边框颜色
AlanLee97 Jan 20, 2022
3b9e919
feat: 完成重置表单的样式
AlanLee97 Jan 21, 2022
9ec7fb1
fix: 修复 检验结果用popover提示,点击popover外部元素隐藏popover之后,再重新传入visible不会重新显示pop…
AlanLee97 Jan 26, 2022
5cf399d
fix: 调整popover位置
AlanLee97 Jan 26, 2022
d9d702f
fix: 调整popover位置
AlanLee97 Jan 27, 2022
564ffbb
fix: 调整响应式表单验证消息提示样式
AlanLee97 Jan 27, 2022
da72d7b
fix: 调整响应式表单校验的popover提示的位置
AlanLee97 Jan 27, 2022
a34871f
fix: 加入messageChange,使用useValidate
AlanLee97 Jan 28, 2022
cd1046f
fix: 增加响应式表单校验(文档部分)
AlanLee97 Jan 29, 2022
23ff761
fix: 通过watch表单数据formData变化来校验表单域
AlanLee97 Feb 1, 2022
d1d4381
fix: 完成在dForm层统一设置messageShowType
AlanLee97 Feb 2, 2022
a84b2ad
fix: 修复校验错误时没有显示红框
AlanLee97 Feb 2, 2022
92a6a48
fix: 修复 表单重置时错误提示没有被情况的问题;修复重置表单时,数组类型的值不正确的问题
AlanLee97 Feb 4, 2022
4840a08
fix: 修复helpTips的popover不显示问题
AlanLee97 Feb 4, 2022
d4a0908
fix: 把v-d-validate-rules替换成v-d-validate
AlanLee97 Feb 4, 2022
b6a4664
Merge branch 'DevCloudFE:dev' into dev
AlanLee97 Feb 4, 2022
99cc9e5
Merge branch 'dev' into feat/form-v2-dev
AlanLee97 Feb 4, 2022
45a13a5
fix: 调整样式
AlanLee97 Feb 4, 2022
6012780
docs: 调整表单宽度
AlanLee97 Feb 4, 2022
7ab281d
fix: 调整样式
AlanLee97 Feb 4, 2022
49b0d4f
fix: 增加MessageType类型
AlanLee97 Feb 6, 2022
e10b191
fix: asyncDebounceTime增加默认值
AlanLee97 Feb 6, 2022
0435333
fix: 修复提交校验不为submit也能校验的问题
AlanLee97 Feb 7, 2022
61143a6
fix: 将校验触发规则字段改为updateOn
AlanLee97 Feb 7, 2022
13d51b4
fix: 修复form-control中指定messageShowType失效问题
AlanLee97 Feb 7, 2022
37cd84c
fix: 更新updateOn的值
AlanLee97 Feb 7, 2022
13f374a
fix: 去除modelName属性
AlanLee97 Feb 7, 2022
e881953
fix: popover增加icon
AlanLee97 Feb 7, 2022
cc0857a
docs: 重构表单验证功能后调整文档demo
AlanLee97 Feb 7, 2022
ca947ee
fix: 整理代码,删除无用代码
AlanLee97 Feb 7, 2022
9f2de6b
docs: 调整文档格式,删除无用空行
AlanLee97 Feb 7, 2022
cb08a46
fix: trigger改为updateOn
AlanLee97 Feb 7, 2022
ff142a9
Merge branch 'DevCloudFE:dev' into dev
AlanLee97 Feb 8, 2022
913e8fb
Merge branch 'dev' into feature/form-v2
AlanLee97 Feb 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/devui-vue/devui/form/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import FormLabel from './src/form-label/form-label';
import FormItem from './src/form-item/form-item';
import FormControl from './src/form-control/form-control';
import FormOperation from './src/form-operation/form-operation';
import dValidateRules from './src/directive/d-validate-rules';
import dValidate from './src/directive/d-validate';

Form.install = function(app: App) {
app.component(Form.name, Form);
app.directive('d-validate-rules', dValidateRules);
app.directive('d-validate', dValidate);
}

FormLabel.install = function(app: App) {
Expand Down
Loading