@unicom-cloud/ui 0.8.85 → 0.8.86
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/package.json +1 -1
- package/space/index.js +61 -65
- package/style.css +1 -1
- package/types/common/space/index.d.ts +4 -2
- package/types/common/space/interface.d.ts +10 -0
- package/types/pc/space/index.d.ts +1 -1
- package/types/pc/space/interface.d.ts +10 -0
- package/version/index.js +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { RefAttributes } from 'react';
|
|
2
|
+
import { JSX } from 'react/jsx-dev-runtime';
|
|
1
3
|
import { SpaceProps } from './interface';
|
|
2
|
-
declare const Space: import("react").ForwardRefExoticComponent<SpaceProps &
|
|
3
|
-
declare const SpaceVertical: import("react").ForwardRefExoticComponent<Omit<
|
|
4
|
+
declare const Space: import("react").ForwardRefExoticComponent<SpaceProps & RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const SpaceVertical: import("react").ForwardRefExoticComponent<Omit<JSX.IntrinsicAttributes & SpaceProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
4
6
|
export { SpaceVertical };
|
|
5
7
|
export default Space;
|
|
@@ -23,6 +23,16 @@ export interface SpaceProps {
|
|
|
23
23
|
* @en Whether to wrap line automatic
|
|
24
24
|
*/
|
|
25
25
|
wrap?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @zh 主轴方向上对齐方式
|
|
28
|
+
* @en Alignment of items
|
|
29
|
+
*/
|
|
30
|
+
justifyContent?: 'start' | 'end' | 'center' | 'baseline';
|
|
31
|
+
/**
|
|
32
|
+
* @zh 交叉轴方向对齐方式
|
|
33
|
+
* @en Alignment of items
|
|
34
|
+
*/
|
|
35
|
+
alignItems?: 'start' | 'end' | 'center' | 'baseline';
|
|
26
36
|
/**
|
|
27
37
|
* @zh 设置分隔符
|
|
28
38
|
* @en Set separator
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SpaceVertical } from '../../common/space';
|
|
2
2
|
import { SpaceProps } from './interface';
|
|
3
|
-
declare const Space: import("react").ForwardRefExoticComponent<SpaceProps & import("react").RefAttributes<
|
|
3
|
+
declare const Space: import("react").ForwardRefExoticComponent<SpaceProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export { SpaceVertical };
|
|
5
5
|
export default Space;
|
|
@@ -6,5 +6,15 @@ export type { SpaceGap };
|
|
|
6
6
|
*/
|
|
7
7
|
export interface SpaceProps extends SpaceProps_ {
|
|
8
8
|
style?: CSSProperties;
|
|
9
|
+
/**
|
|
10
|
+
* @zh 间距。(已弃用,请用 gap 属性)
|
|
11
|
+
* @defaultValue small
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
9
14
|
size?: SpaceGap | SpaceGap[];
|
|
15
|
+
/**
|
|
16
|
+
* @zh 交叉轴方向对齐方式。(已弃用,请用 alignItems 属性)
|
|
17
|
+
* @deprecated
|
|
18
|
+
*/
|
|
19
|
+
align?: 'start' | 'end' | 'center' | 'baseline';
|
|
10
20
|
}
|
package/version/index.js
CHANGED