feat(form): export FormItemRule and FormRules (#345)

* fix: tsconfig support ts

* feat: form export FormItemRule and FormRules type
This commit is contained in:
caoyugang_1 2021-07-01 22:41:29 +08:00 committed by GitHub
parent cff915f954
commit efc0ba1e58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View File

@ -10,6 +10,7 @@
- `n-menu` add `dropdown-placement` prop.
- `n-upload` add `before-upload` prop.
- Support the enter key on the numeric keypad.
- `n-form` export `FormItemRule` & `FormRules` type.
### Fixes

View File

@ -10,6 +10,7 @@
- `n-menu` 新增 `dropdown-placement` 属性
- `n-upload` 新增 `before-upload` 属性
- 支持小键盘的 enter 键
- `n-form` 导出 `FormItemRule` & `FormRules` 类型
### Fixes

View File

@ -10,7 +10,12 @@ export type {
FormItemGiProps,
FormItemGiProps as FormItemGridItemProps
} from './src/FormItemGridItem'
export type { FormInst, FormItemInst } from './src/interface'
export type {
FormInst,
FormItemInst,
FormItemRule,
FormRules
} from './src/interface'
// deprecated
export { default as NFormItemCol } from './src/FormItemCol'