Skip to content

Commit

Permalink
feat!: change apis name
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1030 committed Sep 14, 2022
1 parent badd517 commit bcbded8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/fomma/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ function reset() {
* @description: 使用naive自带的校验模式
* @param {Function} callBack 成功后的回调函数
*/
function nativeValidator(callBack: Function) {
function nativeValidate(callBack: Function) {
if (dataForm.value) {
dataForm.value.validate((errors: any) => {
if (!errors)
Expand All @@ -294,7 +294,7 @@ function nativeValidator(callBack: Function) {
* @description: 开启表单验证
* @return {boolean}
*/
function validator() {
function validate() {
const messageTools = {
error: (message: string) => alert(message),
}
Expand Down Expand Up @@ -328,8 +328,8 @@ defineExpose({
getFormData,
update,
reset,
nativeValidator,
validator,
nativeValidate,
validate,
_value,
})
</script>
Expand Down

0 comments on commit bcbded8

Please sign in to comment.