taro-react-uilib 1.3.0-7 → 1.3.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 +15 -0
- package/dist/styles/components/amountkeyboard.scss +1 -0
- package/dist/styles/components/badge.scss +1 -1
- package/dist/styles/components/font/.DS_Store +0 -0
- package/dist/styles/components/navbar.scss +5 -2
- package/package.json +1 -1
- package/types/components/ActionSheet/index.d.ts +43 -0
- package/types/components/Rank/index.d.ts +14 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [1.3.0](https://code.xhdev.xyz/h5group/taro-uilib/compare/v1.3.0-7...v1.3.0) (2023-06-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* navbar arrow ([085dd2b](https://code.xhdev.xyz/h5group/taro-uilib/commits/085dd2bc98df7a1249b86808378e7933e0fcdab2))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* badge、amountkeyboard在抖音上的边框问题 ([b7d1179](https://code.xhdev.xyz/h5group/taro-uilib/commits/b7d117931cb355f402bc28b1da174a8e51617286))
|
|
12
|
+
* navbar适配 ([ee6ab17](https://code.xhdev.xyz/h5group/taro-uilib/commits/ee6ab17e766d849c9223582e8e3431315163b289))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
1
16
|
# [1.3.0-7](https://code.xhdev.xyz/h5group/taro-uilib/compare/v1.3.0-6...v1.3.0-7) (2023-06-06)
|
|
2
17
|
|
|
3
18
|
|
|
Binary file
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
justify-content: center;
|
|
12
12
|
align-items: center;
|
|
13
13
|
flex-shrink: 0;
|
|
14
|
+
position: relative;
|
|
14
15
|
&.h5 {
|
|
15
16
|
padding: 10px;
|
|
16
17
|
}
|
|
@@ -18,8 +19,10 @@
|
|
|
18
19
|
&-back {
|
|
19
20
|
position: absolute;
|
|
20
21
|
left: 20px;
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
font-size: 38px;
|
|
23
|
+
margin-top: 5px;
|
|
24
|
+
margin-left: 10px;
|
|
25
|
+
font-weight: 800;
|
|
23
26
|
font-family: 'icon-back';
|
|
24
27
|
&.hidden {
|
|
25
28
|
display: none;
|
package/package.json
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React, { ReactNode, ReactElement } from "react";
|
|
2
|
+
import "./index.scss";
|
|
3
|
+
export interface ActionSheetOption {
|
|
4
|
+
text: ReactNode;
|
|
5
|
+
value: string | number;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export declare type ActionValue = string | ActionSheetOption;
|
|
9
|
+
export interface ActionProps<T extends ActionValue = ActionValue> {
|
|
10
|
+
visible?: boolean;
|
|
11
|
+
title?: ReactNode;
|
|
12
|
+
data: T[];
|
|
13
|
+
defaultValueData?: (string | number)[];
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
onConfirm?: (selectedValue: T, index: number) => void;
|
|
17
|
+
onCancel?: (bottom?: boolean) => void;
|
|
18
|
+
onClose?: () => void;
|
|
19
|
+
onClick?: (flag: boolean) => void;
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
description?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* @summary controlled模式下,组件为受控组件,需要外部来显示和隐藏
|
|
24
|
+
* @description submit 模式下会显示提交按钮,可以自定义,也可以显示取消按钮但是得传进来一个Toggle事件用来显示隐藏
|
|
25
|
+
*/
|
|
26
|
+
mode?: "controlled";
|
|
27
|
+
cancelText?: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* submit模式下,默认不展示取消按钮,可以设置
|
|
30
|
+
*/
|
|
31
|
+
showCancel?: boolean;
|
|
32
|
+
submitText?: string;
|
|
33
|
+
renderItem?: (item: T, index: number) => ReactNode;
|
|
34
|
+
ItemWrapper?: React.FC<{}>;
|
|
35
|
+
onSubmit?: () => void;
|
|
36
|
+
justifyContent?: "start" | "end";
|
|
37
|
+
/**
|
|
38
|
+
* 显示右上角的关闭、默认只有不显示下面的取消的时候才出现
|
|
39
|
+
*/
|
|
40
|
+
showClose?: boolean;
|
|
41
|
+
}
|
|
42
|
+
declare const ActionSheet: <T extends ActionValue>(props: ActionProps<T>) => ReactElement;
|
|
43
|
+
export default ActionSheet;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.scss";
|
|
3
|
+
declare type RankProps = {
|
|
4
|
+
defalutScore?: number;
|
|
5
|
+
onChange: (rank: number) => void;
|
|
6
|
+
max?: number;
|
|
7
|
+
size?: number;
|
|
8
|
+
tip?: string;
|
|
9
|
+
style?: React.CSSProperties & {
|
|
10
|
+
"--color-primary": string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
declare const Rank: React.FC<RankProps>;
|
|
14
|
+
export default Rank;
|