@nutui/nutui-react 2.0.13 → 2.0.15-beta.0
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/CHANGELOG.md +19 -0
- package/dist/esm/Ellipsis.js +4 -2
- package/dist/esm/Popover.js +6 -1
- package/dist/esm/PullToRefresh.js +2 -1
- package/dist/esm/Signature.js +11 -6
- package/dist/esm/Skeleton/style/style.css +1 -1
- package/dist/esm/Sticky.js +1 -0
- package/dist/esm/can-use-dom.js +4 -0
- package/dist/esm/get-scroll-parent.js +1 -2
- package/dist/esm/types/src/packages/sidenavbar/sidenavbar.d.ts +4 -4
- package/dist/esm/types/src/packages/sidenavbar/sidenavbar.taro.d.ts +4 -4
- package/dist/esm/types/src/utils/use-isomprphic-layout-effect.d.ts +2 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +21 -12
- package/dist/nutui.react.umd.js +21 -12
- package/dist/packages/skeleton/skeleton.scss +3 -4
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/types/packages/loading/loading.d.ts +15 -3
- package/dist/types/packages/sidenavbar/sidenavbar.d.ts +4 -4
- package/dist/types/packages/space/space.d.ts +20 -4
- package/dist/types/utils/use-isomprphic-layout-effect.d.ts +2 -0
- package/package.json +1 -1
package/dist/style.mjs
CHANGED
|
@@ -3,8 +3,20 @@ import { BasicComponent } from '../../utils/typings';
|
|
|
3
3
|
export type LoadingType = 'spinner' | 'circular';
|
|
4
4
|
export type DirectionType = 'horizontal' | 'vertical';
|
|
5
5
|
export interface LoadingProps extends BasicComponent {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
/**
|
|
7
|
+
* loading图标的样式
|
|
8
|
+
* @default circular
|
|
9
|
+
*/
|
|
10
|
+
type: LoadingType
|
|
11
|
+
/**
|
|
12
|
+
* loading图标和文字的排列方式
|
|
13
|
+
* @default horizontal
|
|
14
|
+
*/
|
|
15
|
+
direction: DirectionType
|
|
16
|
+
/**
|
|
17
|
+
* 自定义loading的图标
|
|
18
|
+
* @default -
|
|
19
|
+
*/
|
|
20
|
+
icon?: ReactNode
|
|
9
21
|
}
|
|
10
22
|
export declare const Loading: FunctionComponent<Partial<LoadingProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -15,21 +15,21 @@ export interface SideNavBarProps extends Omit<React.HTMLAttributes<HTMLDivElemen
|
|
|
15
15
|
* 遮罩宽度百分比
|
|
16
16
|
* @default 80%
|
|
17
17
|
*/
|
|
18
|
-
width
|
|
18
|
+
width: string
|
|
19
19
|
/**
|
|
20
20
|
* 缩进宽度
|
|
21
21
|
* @default 20
|
|
22
22
|
*/
|
|
23
|
-
indent
|
|
23
|
+
indent: number
|
|
24
24
|
/**
|
|
25
25
|
* 弹出位置
|
|
26
26
|
* @default left
|
|
27
27
|
*/
|
|
28
|
-
position
|
|
28
|
+
position: 'left' | 'right'
|
|
29
29
|
/**
|
|
30
30
|
* 关闭遮罩时触发
|
|
31
31
|
* @default -
|
|
32
32
|
*/
|
|
33
33
|
onClose: () => void
|
|
34
34
|
}
|
|
35
|
-
export declare const SideNavBar: FunctionComponent<SideNavBarProps
|
|
35
|
+
export declare const SideNavBar: FunctionComponent<Partial<SideNavBarProps>>;
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
3
|
export interface SpaceProps extends BasicComponent {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
/**
|
|
5
|
+
* 间距方向
|
|
6
|
+
* @default horizontal
|
|
7
|
+
*/
|
|
8
|
+
direction: 'horizontal' | 'vertical'
|
|
9
|
+
/**
|
|
10
|
+
* 交叉轴对齐方式
|
|
11
|
+
* @default -
|
|
12
|
+
*/
|
|
13
|
+
align: 'start' | 'end' | 'center' | 'baseline'
|
|
14
|
+
/**
|
|
15
|
+
* 主轴对齐方式
|
|
16
|
+
* @default -
|
|
17
|
+
*/
|
|
18
|
+
justify: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly' | 'stretch'
|
|
19
|
+
/**
|
|
20
|
+
* 是否自动换行,仅在 horizontal 时有效
|
|
21
|
+
* @default -
|
|
22
|
+
*/
|
|
23
|
+
wrap: boolean
|
|
8
24
|
}
|
|
9
25
|
export declare const Space: FunctionComponent<Partial<SpaceProps> & React.HTMLAttributes<HTMLDivElement>>;
|