Skip to content

Commit ca2df2e

Browse files
committed
fix form
1 parent 1c71349 commit ca2df2e

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codingapi/ui-framework",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"description": "A UI Framework built with React and Typescript",
55
"keywords": ["ui", "framework", "react", "typescript"],
66
"homepage": "https://github.com/codingapi/ui-framework",

rollup.config.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import typescript from 'rollup-plugin-typescript2';
55
import postcss from 'rollup-plugin-postcss';
66
import del from 'rollup-plugin-delete';
77
import pkg from './package.json';
8-
import alias from '@rollup/plugin-alias';
9-
import path from 'path';
108

119
export default {
1210
input: 'src/index.ts',
@@ -25,11 +23,6 @@ export default {
2523
plugins: [
2624
del({ targets: 'dist/*' }),
2725
peerDepsExternal(),
28-
alias({
29-
entries: [
30-
{ find: '@', replacement: path.resolve(__dirname, 'src') }
31-
]
32-
}),
3326
resolve(),
3427
commonjs(),
3528
typescript({

src/Form/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,15 @@ export interface SelectOptionFormEditProps {
9999

100100
// Form表单字段属性
101101
export interface FormItemProps {
102+
key?:string;
102103
// 是否隐藏字段
103104
hidden?: boolean;
104105
// 是否禁用
105106
disabled?: boolean;
106107
// 是否必填,当为true时会自动给rules添加required校验
107108
required?: boolean;
108109
// 表单字段名
109-
name?: NamePath;
110+
name: NamePath;
110111
// 表单字段标签
111112
label?: React.ReactNode;
112113
// 帮助提示信息,出现组件的底部

0 commit comments

Comments
 (0)