@nutui/nutui-react-taro 2.3.9 → 2.3.10
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 +13 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Address.js +3 -3
- package/dist/esm/Barrage/style/style.css +1 -1
- package/dist/esm/Barrage.js +4 -2
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/Cascader.js +2 -2
- package/dist/esm/DatePicker/style/style.css +1 -1
- package/dist/esm/Form.js +1 -1
- package/dist/esm/FormItem.js +1 -1
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/NumberKeyboard/style/style.css +1 -1
- package/dist/esm/Picker/style/style.css +1 -1
- package/dist/esm/Popover/style/style.css +1 -1
- package/dist/esm/Popup/style/style.css +1 -1
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/ShortPassword.js +1 -1
- package/dist/esm/SideNavBar/style/style.css +1 -1
- package/dist/esm/Sticky.js +1 -1
- package/dist/esm/Tabs/style/style.css +1 -1
- package/dist/esm/Tabs.js +1 -1
- package/dist/esm/TimeSelect/style/style.css +1 -1
- package/dist/esm/Tour/style/style.css +1 -1
- package/dist/esm/{address.taro-B54ZOtmo.js → address.taro-zQuxQEce.js} +1 -1
- package/dist/esm/barrage.taro-6nbq7wtt.js +118 -0
- package/dist/esm/{cascader.taro-BxyK5ybo.js → cascader.taro-M2nZWxiB.js} +1 -1
- package/dist/esm/{formitem.taro-atY4A0pS.js → formitem.taro-PPkTQGfW.js} +39 -10
- package/dist/esm/nutui-react.es.js +7 -7
- package/dist/esm/{shortpassword.taro-bZCwIpEn.js → shortpassword.taro-ECs_E1Xn.js} +18 -5
- package/dist/esm/{sticky.taro-MmKUU2Wv.js → sticky.taro-p-evMNR-.js} +1 -1
- package/dist/esm/{tabs.taro-w8ra49Qb.js → tabs.taro-Yj7vgtSg.js} +1 -1
- package/dist/esm/types/src/packages/formitem/formitem.d.ts +6 -2
- package/dist/esm/types/src/packages/formitem/formitem.taro.d.ts +6 -2
- package/dist/esm/types/src/packages/shortpassword/shortpassword.d.ts +3 -2
- package/dist/esm/types/src/packages/shortpassword/shortpassword.taro.d.ts +3 -2
- package/dist/esm/types/src/packages/shortpassword/types.d.ts +4 -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 +141 -80
- package/dist/nutui.react.umd.js +141 -80
- package/dist/packages/barrage/barrage.scss +1 -1
- package/dist/packages/popup/popup.scss +1 -0
- package/dist/packages/tabs/tabs.scss +14 -14
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/types/packages/formitem/formitem.d.ts +6 -2
- package/dist/types/packages/formitem/formitem.taro.d.ts +14 -2
- package/dist/types/packages/shortpassword/shortpassword.d.ts +3 -2
- package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +3 -2
- package/dist/types/packages/shortpassword/types.d.ts +4 -0
- package/package.json +1 -1
- package/dist/esm/barrage.taro-HsivAhbE.js +0 -91
|
@@ -9,7 +9,7 @@ import classNames from "classnames";
|
|
|
9
9
|
import { Loading, Checklist } from "@nutui/icons-react-taro";
|
|
10
10
|
import { ScrollView } from "@tarojs/components";
|
|
11
11
|
import { P as Popup } from "./popup.taro-ObEUml4r.js";
|
|
12
|
-
import { T as Tabs } from "./tabs.taro-
|
|
12
|
+
import { T as Tabs } from "./tabs.taro-Yj7vgtSg.js";
|
|
13
13
|
import { C as ComponentDefaults } from "./typings-buMpDfSR.js";
|
|
14
14
|
import { u as usePropsValue } from "./use-props-value-vKr0R0AX.js";
|
|
15
15
|
const formatTree = (tree, parent, config) => tree.map((node) => {
|
|
@@ -1066,6 +1066,7 @@ class FormStore {
|
|
|
1066
1066
|
constructor() {
|
|
1067
1067
|
// 初始化数据
|
|
1068
1068
|
__publicField(this, "initialValues", {});
|
|
1069
|
+
__publicField(this, "updateList", []);
|
|
1069
1070
|
// 存放表单中所有的数据 eg. {password: "ddd",username: "123"}
|
|
1070
1071
|
__publicField(this, "store", {});
|
|
1071
1072
|
// 所有的组件实例
|
|
@@ -1135,6 +1136,15 @@ class FormStore {
|
|
|
1135
1136
|
}
|
|
1136
1137
|
});
|
|
1137
1138
|
});
|
|
1139
|
+
this.updateList.forEach((item) => {
|
|
1140
|
+
let shouldUpdate = item.condition;
|
|
1141
|
+
if (typeof item.condition === "function") {
|
|
1142
|
+
shouldUpdate = item.condition();
|
|
1143
|
+
}
|
|
1144
|
+
if (shouldUpdate) {
|
|
1145
|
+
item.entity.onStoreChange("update");
|
|
1146
|
+
}
|
|
1147
|
+
});
|
|
1138
1148
|
});
|
|
1139
1149
|
__publicField(this, "setCallback", (callback) => {
|
|
1140
1150
|
this.callbacks = {
|
|
@@ -1201,6 +1211,16 @@ class FormStore {
|
|
|
1201
1211
|
entity.onStoreChange("reset");
|
|
1202
1212
|
});
|
|
1203
1213
|
});
|
|
1214
|
+
// 监听事件
|
|
1215
|
+
__publicField(this, "registerUpdate", (field, shouldUpdate) => {
|
|
1216
|
+
this.updateList.push({
|
|
1217
|
+
entity: field,
|
|
1218
|
+
condition: shouldUpdate
|
|
1219
|
+
});
|
|
1220
|
+
return () => {
|
|
1221
|
+
this.updateList = this.updateList.filter((i) => i.entity !== field);
|
|
1222
|
+
};
|
|
1223
|
+
});
|
|
1204
1224
|
__publicField(this, "dispatch", ({ name }) => {
|
|
1205
1225
|
this.validateFields([name]);
|
|
1206
1226
|
});
|
|
@@ -1212,7 +1232,8 @@ class FormStore {
|
|
|
1212
1232
|
setInitialValues: this.setInitialValues,
|
|
1213
1233
|
dispatch: this.dispatch,
|
|
1214
1234
|
store: this.store,
|
|
1215
|
-
fieldEntities: this.fieldEntities
|
|
1235
|
+
fieldEntities: this.fieldEntities,
|
|
1236
|
+
registerUpdate: this.registerUpdate
|
|
1216
1237
|
};
|
|
1217
1238
|
}
|
|
1218
1239
|
});
|
|
@@ -1264,13 +1285,16 @@ const defaultProps = {
|
|
|
1264
1285
|
label: "",
|
|
1265
1286
|
rules: [{ required: false, message: "" }],
|
|
1266
1287
|
errorMessageAlign: "left",
|
|
1267
|
-
validateTrigger: "onChange"
|
|
1288
|
+
validateTrigger: "onChange",
|
|
1289
|
+
shouldUpdate: false,
|
|
1290
|
+
noStyle: false
|
|
1268
1291
|
};
|
|
1269
1292
|
class FormItem extends React__default.Component {
|
|
1270
1293
|
constructor(props) {
|
|
1271
1294
|
super(props);
|
|
1272
1295
|
__publicField(this, "cancelRegister");
|
|
1273
1296
|
__publicField(this, "componentRef");
|
|
1297
|
+
__publicField(this, "eventOff");
|
|
1274
1298
|
// children添加value属性和onChange事件
|
|
1275
1299
|
__publicField(this, "getControlled", (children) => {
|
|
1276
1300
|
var _a;
|
|
@@ -1344,7 +1368,6 @@ class FormItem extends React__default.Component {
|
|
|
1344
1368
|
}
|
|
1345
1369
|
});
|
|
1346
1370
|
__publicField(this, "renderLayout", (childNode) => {
|
|
1347
|
-
var _a;
|
|
1348
1371
|
const { label, name, required: required4, rules: rules2, className, style, errorMessageAlign } = {
|
|
1349
1372
|
...defaultProps,
|
|
1350
1373
|
...this.props
|
|
@@ -1368,10 +1391,7 @@ class FormItem extends React__default.Component {
|
|
|
1368
1391
|
"div",
|
|
1369
1392
|
{ className: "nut-cell-value nut-form-item-body" },
|
|
1370
1393
|
React__default.createElement("div", { className: "nut-form-item-body-slots" }, childNode),
|
|
1371
|
-
React__default.createElement("div", { className: "nut-form-item-body-tips", style: {
|
|
1372
|
-
textAlign: errorMessageAlign,
|
|
1373
|
-
display: (item == null ? void 0 : item.length) ? "initial" : "none"
|
|
1374
|
-
} }, (_a = item == null ? void 0 : item[0]) == null ? void 0 : _a.message)
|
|
1394
|
+
item && item.length > 0 && React__default.createElement("div", { className: "nut-form-item-body-tips", style: { textAlign: errorMessageAlign } }, item[0].message)
|
|
1375
1395
|
)
|
|
1376
1396
|
);
|
|
1377
1397
|
});
|
|
@@ -1381,19 +1401,28 @@ class FormItem extends React__default.Component {
|
|
|
1381
1401
|
};
|
|
1382
1402
|
}
|
|
1383
1403
|
componentDidMount() {
|
|
1384
|
-
const { registerField } = this.context.getInternal(SECRET);
|
|
1404
|
+
const { registerField, registerUpdate } = this.context.getInternal(SECRET);
|
|
1385
1405
|
this.cancelRegister = registerField(this);
|
|
1406
|
+
this.eventOff = registerUpdate(this, this.props.shouldUpdate);
|
|
1386
1407
|
}
|
|
1387
1408
|
componentWillUnmount() {
|
|
1388
1409
|
if (this.cancelRegister) {
|
|
1389
1410
|
this.cancelRegister();
|
|
1390
1411
|
}
|
|
1412
|
+
if (this.eventOff) {
|
|
1413
|
+
this.eventOff();
|
|
1414
|
+
}
|
|
1391
1415
|
}
|
|
1392
1416
|
render() {
|
|
1393
1417
|
const { children } = this.props;
|
|
1394
1418
|
const child = Array.isArray(children) ? children[0] : children;
|
|
1395
|
-
|
|
1396
|
-
|
|
1419
|
+
let returnChildNode;
|
|
1420
|
+
if (!this.props.shouldUpdate) {
|
|
1421
|
+
returnChildNode = React__default.cloneElement(child, this.getControlled(child));
|
|
1422
|
+
} else {
|
|
1423
|
+
returnChildNode = child(this.context);
|
|
1424
|
+
}
|
|
1425
|
+
return React__default.createElement(React__default.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
|
|
1397
1426
|
}
|
|
1398
1427
|
}
|
|
1399
1428
|
__publicField(FormItem, "defaultProps", defaultProps);
|
|
@@ -11,7 +11,7 @@ import { G as G2 } from "./griditem.taro-TJDJVeQy.js";
|
|
|
11
11
|
import { L } from "./layout.taro-lnN-wB0Y.js";
|
|
12
12
|
import { R } from "./row.taro-IxNlKKQM.js";
|
|
13
13
|
import { S } from "./space.taro-q3R_yq79.js";
|
|
14
|
-
import { S as S2 } from "./sticky.taro-
|
|
14
|
+
import { S as S2 } from "./sticky.taro-p-evMNR-.js";
|
|
15
15
|
import { S as S3 } from "./safearea.taro-afu_mY7g.js";
|
|
16
16
|
import { B as B2 } from "./backtop.taro-Y3vOJiXq.js";
|
|
17
17
|
import { E } from "./elevator.taro-2nbUM3vH.js";
|
|
@@ -23,16 +23,16 @@ import { S as S6 } from "./subsidenavbar.taro-Zy52MDDG.js";
|
|
|
23
23
|
import { T } from "./tabbar.taro-QE0rjSKE.js";
|
|
24
24
|
import { T as T2 } from "./tabbaritem.taro-t9C07OYX.js";
|
|
25
25
|
import { T as T3 } from "./tabpane.taro-5k7wWimS.js";
|
|
26
|
-
import { T as T4 } from "./tabs.taro-
|
|
27
|
-
import { A } from "./address.taro-
|
|
26
|
+
import { T as T4 } from "./tabs.taro-Yj7vgtSg.js";
|
|
27
|
+
import { A } from "./address.taro-zQuxQEce.js";
|
|
28
28
|
import { C as C5 } from "./calendar.taro-iNNHje7V.js";
|
|
29
29
|
import { C as C6 } from "./calendaritem.taro-o6Z8OOGY.js";
|
|
30
30
|
import { C as C7 } from "./calendarcard.taro-9s7naGmU.js";
|
|
31
|
-
import { C as C8 } from "./cascader.taro-
|
|
31
|
+
import { C as C8 } from "./cascader.taro-M2nZWxiB.js";
|
|
32
32
|
import { C as C9, a } from "./checkbox.taro-xMxWdpyI.js";
|
|
33
33
|
import { D as D2 } from "./datepicker.taro-DrXkqJkN.js";
|
|
34
34
|
import { default as default2 } from "./Form.js";
|
|
35
|
-
import { F as F2 } from "./formitem.taro-
|
|
35
|
+
import { F as F2 } from "./formitem.taro-PPkTQGfW.js";
|
|
36
36
|
import { I as I2 } from "./input.taro-YoPsV-op.js";
|
|
37
37
|
import { I as I3 } from "./inputnumber.taro-7QptygT3.js";
|
|
38
38
|
import { M } from "./menu.taro-ODwHYGFM.js";
|
|
@@ -43,7 +43,7 @@ import { R as R2, a as a2 } from "./radio.taro-EKJXMjnX.js";
|
|
|
43
43
|
import { R as R3 } from "./range.taro-mDYY3SXA.js";
|
|
44
44
|
import { R as R4 } from "./rate.taro-_5Mjd_EO.js";
|
|
45
45
|
import { S as S7 } from "./searchbar.taro-hVzdT6nI.js";
|
|
46
|
-
import { S as S8 } from "./shortpassword.taro-
|
|
46
|
+
import { S as S8 } from "./shortpassword.taro-ECs_E1Xn.js";
|
|
47
47
|
import { S as S9 } from "./signature.taro-y3qxnKMv.js";
|
|
48
48
|
import { S as S10 } from "./switch.taro-L0BAbMeu.js";
|
|
49
49
|
import { T as T5 } from "./textarea.taro-9zQLTCwU.js";
|
|
@@ -87,7 +87,7 @@ import { T as T8 } from "./tag.taro-5KC_wObY.js";
|
|
|
87
87
|
import { T as T9 } from "./tour.taro-CGEjzzN_.js";
|
|
88
88
|
import { V } from "./video.taro-csvHwS2v.js";
|
|
89
89
|
import { V as V2 } from "./virtuallist.taro-AeTVtFFa.js";
|
|
90
|
-
import { B as B5 } from "./barrage.taro-
|
|
90
|
+
import { B as B5 } from "./barrage.taro-6nbq7wtt.js";
|
|
91
91
|
import { C as C14 } from "./card.taro-p4PTy-IU.js";
|
|
92
92
|
import { T as T10 } from "./timedetail.taro-TF9Wcblh.js";
|
|
93
93
|
import { T as T11 } from "./timeselect.taro-j8LgSCe5.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, { useMemo, useEffect } from "react";
|
|
1
|
+
import React__default, { useMemo, useImperativeHandle, useEffect } from "react";
|
|
2
2
|
import { Tips } from "@nutui/icons-react-taro";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { P as Popup } from "./popup.taro-ObEUml4r.js";
|
|
@@ -14,9 +14,9 @@ const defaultProps = {
|
|
|
14
14
|
length: 6,
|
|
15
15
|
autoFocus: false
|
|
16
16
|
};
|
|
17
|
-
const
|
|
17
|
+
const InternalShortPassword = (props, ref) => {
|
|
18
18
|
const { locale } = useConfig();
|
|
19
|
-
const { title, description, tips, visible, value, error, hideFooter, length, plain, style, className, closeable, autoFocus, onFocus, onChange, onConfirm, onTips, onCancel, onClose, onComplete, onOverlayClick, onCloseIconClick, ...rest } = {
|
|
19
|
+
const { title, description, tips, visible: deleteVisible, value, error, hideFooter, length, plain, style, className, closeable, autoFocus, onFocus, onChange, onConfirm, onTips, onCancel, onClose, onComplete, onOverlayClick, onCloseIconClick, ...rest } = {
|
|
20
20
|
...defaultProps,
|
|
21
21
|
...props
|
|
22
22
|
};
|
|
@@ -27,6 +27,20 @@ const ShortPassword = (props) => {
|
|
|
27
27
|
const format = (val) => {
|
|
28
28
|
return val.slice(0, comLen);
|
|
29
29
|
};
|
|
30
|
+
const [visible, setVisible] = usePropsValue({
|
|
31
|
+
value: props.visible,
|
|
32
|
+
defaultValue: false,
|
|
33
|
+
finalValue: false
|
|
34
|
+
});
|
|
35
|
+
const actions = {
|
|
36
|
+
open: () => {
|
|
37
|
+
setVisible(true);
|
|
38
|
+
},
|
|
39
|
+
close: () => {
|
|
40
|
+
setVisible(false);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
useImperativeHandle(ref, () => actions);
|
|
30
44
|
const [inputValue, setInputValue] = usePropsValue({ value, onChange });
|
|
31
45
|
useEffect(() => {
|
|
32
46
|
if (visible && autoFocus) {
|
|
@@ -83,8 +97,7 @@ const ShortPassword = (props) => {
|
|
|
83
97
|
)
|
|
84
98
|
);
|
|
85
99
|
};
|
|
86
|
-
ShortPassword
|
|
87
|
-
ShortPassword.displayName = "NutShortPassword";
|
|
100
|
+
const ShortPassword = React__default.forwardRef(InternalShortPassword);
|
|
88
101
|
export {
|
|
89
102
|
ShortPassword as S
|
|
90
103
|
};
|
|
@@ -178,7 +178,7 @@ const Tabs = (props) => {
|
|
|
178
178
|
View,
|
|
179
179
|
{ ref: (ref) => titleItemsRef.current.push(ref), id: `scrollIntoView${index}`, onClick: (e) => {
|
|
180
180
|
tabChange(item);
|
|
181
|
-
}, className: classNames(`${classPrefix}-titles-item
|
|
181
|
+
}, className: classNames(`${classPrefix}-titles-item`, {
|
|
182
182
|
[`nut-tabs-titles-item-active`]: !item.disabled && String(item.value) === String(value),
|
|
183
183
|
[`nut-tabs-titles-item-disabled`]: item.disabled,
|
|
184
184
|
[`nut-tabs-titles-item-${align}`]: align
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { BaseFormField } from './types';
|
|
3
3
|
import { Context } from '../form/context';
|
|
4
4
|
import { BasicComponent } from '@/utils/typings';
|
|
5
5
|
type TextAlign = 'start' | 'end' | 'left' | 'right' | 'center' | 'justify' | 'match-parent';
|
|
6
|
-
export interface FormItemProps extends BasicComponent, BaseFormField {
|
|
6
|
+
export interface FormItemProps extends Omit<BasicComponent, 'children'>, BaseFormField {
|
|
7
7
|
required: boolean;
|
|
8
8
|
initialValue: any;
|
|
9
9
|
trigger: string;
|
|
@@ -12,6 +12,9 @@ export interface FormItemProps extends BasicComponent, BaseFormField {
|
|
|
12
12
|
onClick: (event: React.MouseEvent, componentRef: React.MutableRefObject<any>) => void;
|
|
13
13
|
errorMessageAlign: TextAlign;
|
|
14
14
|
validateTrigger: string | string[];
|
|
15
|
+
shouldUpdate: boolean;
|
|
16
|
+
noStyle: boolean;
|
|
17
|
+
children: ReactNode | ((obj: any) => React.ReactNode);
|
|
15
18
|
}
|
|
16
19
|
export declare class FormItem extends React.Component<Partial<FormItemProps>, {
|
|
17
20
|
resetCount: number;
|
|
@@ -21,6 +24,7 @@ export declare class FormItem extends React.Component<Partial<FormItemProps>, {
|
|
|
21
24
|
context: React.ContextType<typeof Context>;
|
|
22
25
|
private cancelRegister;
|
|
23
26
|
private componentRef;
|
|
27
|
+
private eventOff;
|
|
24
28
|
constructor(props: FormItemProps);
|
|
25
29
|
componentDidMount(): void;
|
|
26
30
|
componentWillUnmount(): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { BaseFormField } from './types';
|
|
3
3
|
import { Context } from '../form/context';
|
|
4
4
|
import { BasicComponent } from '@/utils/typings';
|
|
5
5
|
type TextAlign = 'start' | 'end' | 'left' | 'right' | 'center' | 'justify' | 'match-parent';
|
|
6
|
-
export interface FormItemProps extends BasicComponent, BaseFormField {
|
|
6
|
+
export interface FormItemProps extends Omit<BasicComponent, 'children'>, BaseFormField {
|
|
7
7
|
required: boolean;
|
|
8
8
|
initialValue: any;
|
|
9
9
|
trigger: string;
|
|
@@ -12,6 +12,9 @@ export interface FormItemProps extends BasicComponent, BaseFormField {
|
|
|
12
12
|
onClick: (event: React.MouseEvent, componentRef: React.MutableRefObject<any>) => void;
|
|
13
13
|
errorMessageAlign: TextAlign;
|
|
14
14
|
validateTrigger: string | string[];
|
|
15
|
+
shouldUpdate: boolean;
|
|
16
|
+
noStyle: boolean;
|
|
17
|
+
children: ReactNode | ((obj: any) => React.ReactNode);
|
|
15
18
|
}
|
|
16
19
|
export declare class FormItem extends React.Component<Partial<FormItemProps>, {
|
|
17
20
|
resetCount: number;
|
|
@@ -21,6 +24,7 @@ export declare class FormItem extends React.Component<Partial<FormItemProps>, {
|
|
|
21
24
|
context: React.ContextType<typeof Context>;
|
|
22
25
|
private cancelRegister;
|
|
23
26
|
private componentRef;
|
|
27
|
+
private eventOff;
|
|
24
28
|
constructor(props: FormItemProps);
|
|
25
29
|
componentDidMount(): void;
|
|
26
30
|
componentWillUnmount(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React, { ForwardRefRenderFunction, ReactNode } from 'react';
|
|
2
2
|
import { PopupProps } from '@/packages/popup/index';
|
|
3
3
|
export interface ShortPasswordProps extends PopupProps {
|
|
4
4
|
value: string;
|
|
@@ -19,4 +19,5 @@ export interface ShortPasswordProps extends PopupProps {
|
|
|
19
19
|
onTips: () => void;
|
|
20
20
|
onComplete: (value: string) => void;
|
|
21
21
|
}
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const InternalShortPassword: ForwardRefRenderFunction<unknown, Partial<ShortPasswordProps>>;
|
|
23
|
+
export declare const ShortPassword: React.ForwardRefExoticComponent<Partial<ShortPasswordProps> & React.RefAttributes<unknown>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React, { ForwardRefRenderFunction, ReactNode } from 'react';
|
|
2
2
|
import { PopupProps } from '@/packages/popup/popup.taro';
|
|
3
3
|
export interface ShortPasswordProps extends PopupProps {
|
|
4
4
|
value: string;
|
|
@@ -19,4 +19,5 @@ export interface ShortPasswordProps extends PopupProps {
|
|
|
19
19
|
onTips: () => void;
|
|
20
20
|
onComplete: (value: string) => void;
|
|
21
21
|
}
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const InternalShortPassword: ForwardRefRenderFunction<unknown, Partial<ShortPasswordProps>>;
|
|
23
|
+
export declare const ShortPassword: React.ForwardRefExoticComponent<Partial<ShortPasswordProps> & React.RefAttributes<unknown>>;
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/tr-TR.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED