ztxkui 3.4.12 → 3.4.13
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.
|
@@ -124,7 +124,9 @@ function BasicDemo() {
|
|
|
124
124
|
console.log((_b = (_a = rangeValue === null || rangeValue === void 0 ? void 0 : rangeValue[0]) === null || _a === void 0 ? void 0 : _a.format) === null || _b === void 0 ? void 0 : _b.call(_a, 'YYYY-MM-DD'));
|
|
125
125
|
console.log((_d = (_c = rangeValue === null || rangeValue === void 0 ? void 0 : rangeValue[1]) === null || _c === void 0 ? void 0 : _c.format) === null || _d === void 0 ? void 0 : _d.call(_c, 'YYYY-MM-DD'));
|
|
126
126
|
} }, "\u83B7\u53D6\u6570\u636E")),
|
|
127
|
-
React.createElement(Input.TextArea, { className: "placeholder", autoSize: true
|
|
127
|
+
React.createElement(Input.TextArea, { className: "placeholder", autoSize: true, ref: function (el) {
|
|
128
|
+
console.log(el);
|
|
129
|
+
} }),
|
|
128
130
|
React.createElement("div", { style: { border: '1px solid red' } },
|
|
129
131
|
React.createElement(FormList, { gutter: 16 },
|
|
130
132
|
React.createElement(FormList.FormItem, { span: 6, title: "\u63D0\u5355\u53F7\u63D0\u5355\u53F7\u63D0\u5355\u53F7\u63D0\u5355\u53F7" }, "111111"),
|
|
@@ -7,7 +7,7 @@ declare function Input(props: IProps): JSX.Element;
|
|
|
7
7
|
declare namespace Input {
|
|
8
8
|
var Group: React.FC<import("antd/lib/input").GroupProps>;
|
|
9
9
|
var Search: React.ForwardRefExoticComponent<import("antd/lib/input").SearchProps & React.RefAttributes<AntInput>>;
|
|
10
|
-
var TextArea:
|
|
10
|
+
var TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<unknown>>;
|
|
11
11
|
var Password: React.ForwardRefExoticComponent<import("antd/lib/input").PasswordProps & React.RefAttributes<any>>;
|
|
12
12
|
}
|
|
13
13
|
export default Input;
|
|
@@ -15,7 +15,7 @@ import { Input as AntInput } from 'antd';
|
|
|
15
15
|
function Input(props) {
|
|
16
16
|
return React.createElement(AntInput, __assign({}, props));
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
var TextArea = React.forwardRef(function (props, ref) {
|
|
19
19
|
var onDoubleClickHandle = function (i) {
|
|
20
20
|
if (i.target.value) {
|
|
21
21
|
Modal.info({
|
|
@@ -26,8 +26,8 @@ function TextArea(props) {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
return React.createElement(AntInput.TextArea, __assign({ onDoubleClick: onDoubleClickHandle }, props));
|
|
30
|
-
}
|
|
29
|
+
return (React.createElement(AntInput.TextArea, __assign({ onDoubleClick: onDoubleClickHandle }, props, { ref: ref })));
|
|
30
|
+
});
|
|
31
31
|
Input.Group = AntInput.Group;
|
|
32
32
|
Input.Search = AntInput.Search;
|
|
33
33
|
Input.TextArea = TextArea;
|