ztxkui 3.4.8 → 3.4.9
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,7 @@ 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" }),
|
|
127
|
+
React.createElement(Input.TextArea, { className: "placeholder", autoSize: true }),
|
|
128
128
|
React.createElement("div", { style: { border: '1px solid red' } },
|
|
129
129
|
React.createElement(FormList, { gutter: 16 },
|
|
130
130
|
React.createElement(FormList.FormItem, { span: 6, title: "\u63D0\u5355\u53F7\u63D0\u5355\u53F7\u63D0\u5355\u53F7\u63D0\u5355\u53F7" }, "111111"),
|
|
@@ -99,7 +99,7 @@ function textContent(children) {
|
|
|
99
99
|
* 如果数据不能在接口层面满足以上形式,那么组件提供transformData属性,转换接口数据格式
|
|
100
100
|
*/
|
|
101
101
|
function EnhanceSelect(_a) {
|
|
102
|
-
var list = _a.list, defaultList = _a.defaultList, params = _a.params, url = _a.url, _b = _a.method, method = _b === void 0 ? 'GET' : _b, _c = _a.timeout, timeout = _c === void 0 ?
|
|
102
|
+
var list = _a.list, defaultList = _a.defaultList, params = _a.params, url = _a.url, _b = _a.method, method = _b === void 0 ? 'GET' : _b, _c = _a.timeout, timeout = _c === void 0 ? 60000 : _c, _d = _a.dataKey, dataKey = _d === void 0 ? 'id' : _d, componentKey = _a.componentKey, _e = _a.titleKey, titleKey = _e === void 0 ? 'name' : _e, showAll = _a.showAll, isCatch = _a.isCatch, onCompleted = _a.onCompleted, onChange = _a.onChange, onSearch = _a.onSearch, request = _a.request, remoteSearch = _a.remoteSearch, remoteSearchKey = _a.remoteSearchKey, remoteSearchDataKey = _a.remoteSearchDataKey, _f = _a.isRemoteSearchDataKey, isRemoteSearchDataKey = _f === void 0 ? true : _f, transformData = _a.transformData, joinKey = _a.joinKey, _g = _a.joinStr, joinStr = _g === void 0 ? '-' : _g, lineFeedKey = _a.lineFeedKey, _h = _a.lineFeedStr, lineFeedStr = _h === void 0 ? '-' : _h, mustHasParams = _a.mustHasParams, disabledValues = _a.disabledValues, searchDeleteKeys = _a.searchDeleteKeys, isHandAddItem = _a.isHandAddItem, isPage = _a.isPage, _j = _a.currentSize, currentSize = _j === void 0 ? 30 : _j, isCopy = _a.isCopy, restProps = __rest(_a, ["list", "defaultList", "params", "url", "method", "timeout", "dataKey", "componentKey", "titleKey", "showAll", "isCatch", "onCompleted", "onChange", "onSearch", "request", "remoteSearch", "remoteSearchKey", "remoteSearchDataKey", "isRemoteSearchDataKey", "transformData", "joinKey", "joinStr", "lineFeedKey", "lineFeedStr", "mustHasParams", "disabledValues", "searchDeleteKeys", "isHandAddItem", "isPage", "currentSize", "isCopy"]);
|
|
103
103
|
var currentClick = useRef(true);
|
|
104
104
|
// 下拉数据源
|
|
105
105
|
var _k = useFetchState([]), selectList = _k[0], setSelectList = _k[1];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Input as AntInput } from 'antd';
|
|
3
|
-
import { InputProps } from 'antd/lib/input';
|
|
3
|
+
import { InputProps, TextAreaProps } from 'antd/lib/input';
|
|
4
4
|
export interface IProps extends InputProps {
|
|
5
5
|
}
|
|
6
6
|
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: (props: TextAreaProps) => JSX.Element;
|
|
11
11
|
var Password: React.ForwardRefExoticComponent<import("antd/lib/input").PasswordProps & React.RefAttributes<any>>;
|
|
12
12
|
}
|
|
13
13
|
export default Input;
|
|
@@ -10,12 +10,27 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import React from 'react';
|
|
13
|
+
import Modal from '../Modal';
|
|
13
14
|
import { Input as AntInput } from 'antd';
|
|
14
15
|
function Input(props) {
|
|
15
16
|
return React.createElement(AntInput, __assign({}, props));
|
|
16
17
|
}
|
|
18
|
+
function TextArea(props) {
|
|
19
|
+
var onDoubleClickHandle = function (i) {
|
|
20
|
+
console.log(i.target.value);
|
|
21
|
+
if (i.target.value) {
|
|
22
|
+
Modal.info({
|
|
23
|
+
title: '',
|
|
24
|
+
width: '80%',
|
|
25
|
+
content: (React.createElement("div", { style: { maxHeight: '60vh', overflow: 'auto' } }, i.target.value)),
|
|
26
|
+
icon: null,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
return React.createElement(AntInput.TextArea, __assign({ onDoubleClick: onDoubleClickHandle }, props));
|
|
31
|
+
}
|
|
17
32
|
Input.Group = AntInput.Group;
|
|
18
33
|
Input.Search = AntInput.Search;
|
|
19
|
-
Input.TextArea =
|
|
34
|
+
Input.TextArea = TextArea;
|
|
20
35
|
Input.Password = AntInput.Password;
|
|
21
36
|
export default Input;
|