taro-react-uilib 1.2.0 → 1.2.1

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 CHANGED
@@ -1,3 +1,12 @@
1
+ ## [1.2.1](https://code.xhdev.xyz/h5group/taro-uilib/compare/v1.2.0...v1.2.1) (2023-04-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * 修复step box-sizinizing问题 ([82a8a60](https://code.xhdev.xyz/h5group/taro-uilib/commits/82a8a608a6992e2589a250983c5e4821e2b5e54c))
7
+
8
+
9
+
1
10
  # [1.2.0](https://code.xhdev.xyz/h5group/taro-uilib/compare/v1.1.1...v1.2.0) (2023-04-18)
2
11
 
3
12
 
@@ -132,6 +132,7 @@ $class-prefix-steps: #{$xh-prefix}-steps;
132
132
  height: 20px;
133
133
  background-color: #f65f04;
134
134
  border: 10px solid #fcdfcc;
135
+ box-sizing: content-box;
135
136
  }
136
137
  }
137
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taro-react-uilib",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "基于taro的跨端组件库",
5
5
  "templateInfo": {
6
6
  "name": "default",
@@ -0,0 +1,23 @@
1
+ import React, { ReactNode } from "react";
2
+ import { XHComponentCommonProps } from "@/types";
3
+ import "./index.scss";
4
+ export declare type AmountInputProps = {
5
+ space?: number;
6
+ value: string;
7
+ maxlength: number;
8
+ onFocus?: (e: any) => void;
9
+ unit?: string;
10
+ slot?: ReactNode;
11
+ shortcut?: string;
12
+ errTip?: string;
13
+ maxAmount?: number | string;
14
+ minAmount?: number | string;
15
+ onUpgrade?: () => void;
16
+ loanOnekey?: () => void;
17
+ placeholder?: string;
18
+ focus?: boolean;
19
+ /** 借款步长 */
20
+ step?: number;
21
+ } & XHComponentCommonProps;
22
+ declare const AmountInput: React.FC<AmountInputProps>;
23
+ export default AmountInput;
@@ -0,0 +1,24 @@
1
+ import { FC, MouseEvent, ReactNode } from "react";
2
+ import "./index.scss";
3
+ import { XHComponentCommonProps } from "../../types";
4
+ export declare type NumberKeyboardProps = {
5
+ show: boolean;
6
+ showClose?: boolean;
7
+ closeOnClickSpace?: boolean;
8
+ maxLength?: number;
9
+ onBlur?: (e: MouseEvent | Event) => void;
10
+ onClose?: (e: MouseEvent | Event) => void;
11
+ onChange?: (value: string) => void;
12
+ value: string;
13
+ header?: ReactNode;
14
+ onConfirm?: (value: string) => void;
15
+ recommend?: Array<number | string>;
16
+ } & XHComponentCommonProps;
17
+ export declare type KeyType = "number" | "delete" | "string" | "none" | "close";
18
+ export interface IKey {
19
+ text: number | string;
20
+ value: number | string;
21
+ type: KeyType;
22
+ }
23
+ declare const AmountKeyboard: FC<NumberKeyboardProps>;
24
+ export default AmountKeyboard;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { XHComponentCommonProps } from "@/types";
3
+ import "./index.scss";
4
+ export declare type BadgeProps = {
5
+ content?: string;
6
+ } & XHComponentCommonProps;
7
+ declare const Badge: React.FC<BadgeProps>;
8
+ export default Badge;