@canlooks/can-ui 0.0.31 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/form/formItem.d.ts +2 -2
- package/dist/cjs/utils/form.d.ts +1 -2
- package/dist/esm/components/form/formItem.d.ts +2 -2
- package/dist/esm/utils/form.d.ts +1 -2
- package/documentation/dist/assets/{index-GDZgs7Pa.js → index-BRy0zMx7.js} +1 -1
- package/documentation/dist/index.html +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode, ElementType, Ref } from 'react';
|
|
2
2
|
import { FormRef, FormSharedProps, FormValue } from './form';
|
|
3
3
|
import { ColorPropsValue, MergeProps, Size } from '../../types';
|
|
4
4
|
import { FieldPath } from '../../utils';
|
|
@@ -12,7 +12,7 @@ export type FormItemRules<I = any> = {
|
|
|
12
12
|
export type FieldProps<I = any> = {
|
|
13
13
|
checked?: boolean;
|
|
14
14
|
value?: I;
|
|
15
|
-
onChange?(e:
|
|
15
|
+
onChange?(e: any): void;
|
|
16
16
|
};
|
|
17
17
|
export type StyleProps = {
|
|
18
18
|
size?: Size;
|
package/dist/cjs/utils/form.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Id } from '../types';
|
|
2
|
-
import { ChangeEvent } from 'react';
|
|
3
2
|
/**
|
|
4
3
|
* 从onChange回调中获取表单字段的值
|
|
5
4
|
* @param e
|
|
6
5
|
* @param prevValue 传入当前的值作为参考
|
|
7
6
|
*/
|
|
8
|
-
export declare function getValueOnChange(e:
|
|
7
|
+
export declare function getValueOnChange(e: any, prevValue?: any): any;
|
|
9
8
|
export type FieldPath = Id | Id[];
|
|
10
9
|
/**
|
|
11
10
|
* 将name字段统一转换成字符串方便处理
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode, ElementType, Ref } from 'react';
|
|
2
2
|
import { FormRef, FormSharedProps, FormValue } from './form';
|
|
3
3
|
import { ColorPropsValue, MergeProps, Size } from '../../types';
|
|
4
4
|
import { FieldPath } from '../../utils';
|
|
@@ -12,7 +12,7 @@ export type FormItemRules<I = any> = {
|
|
|
12
12
|
export type FieldProps<I = any> = {
|
|
13
13
|
checked?: boolean;
|
|
14
14
|
value?: I;
|
|
15
|
-
onChange?(e:
|
|
15
|
+
onChange?(e: any): void;
|
|
16
16
|
};
|
|
17
17
|
export type StyleProps = {
|
|
18
18
|
size?: Size;
|
package/dist/esm/utils/form.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Id } from '../types';
|
|
2
|
-
import { ChangeEvent } from 'react';
|
|
3
2
|
/**
|
|
4
3
|
* 从onChange回调中获取表单字段的值
|
|
5
4
|
* @param e
|
|
6
5
|
* @param prevValue 传入当前的值作为参考
|
|
7
6
|
*/
|
|
8
|
-
export declare function getValueOnChange(e:
|
|
7
|
+
export declare function getValueOnChange(e: any, prevValue?: any): any;
|
|
9
8
|
export type FieldPath = Id | Id[];
|
|
10
9
|
/**
|
|
11
10
|
* 将name字段统一转换成字符串方便处理
|
|
@@ -7006,7 +7006,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7006
7006
|
display: flex !important;
|
|
7007
7007
|
}
|
|
7008
7008
|
}
|
|
7009
|
-
`})]),RJt="0.0.
|
|
7009
|
+
`})]),RJt="0.0.31";/*!
|
|
7010
7010
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
7011
7011
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
7012
7012
|
* Copyright 2024 Fonticons, Inc.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="shortcut icon" href="/logo.png">
|
|
6
6
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
7
7
|
<title>Canlooks UI</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-BRy0zMx7.js"></script>
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="app"></div>
|