ztxkui 3.4.6 → 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.
- package/dist/DemoCom/BasicDemo.js +1 -1
- package/dist/components/EnhanceSelect/index.js +1 -1
- package/dist/components/Input/input.d.ts +2 -2
- package/dist/components/Input/input.js +16 -1
- package/dist/components/business/Signatures/index.js +5 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -500,7 +500,8 @@ var Sinatures = function (_a) {
|
|
|
500
500
|
var _a;
|
|
501
501
|
var newRecords = preRecords.slice();
|
|
502
502
|
newRecords.splice(index, 1, __assign(__assign({}, newRecords[index]), (_a = {}, _a[type] = value ? 1 : 0, _a)));
|
|
503
|
-
onSigValuesChange
|
|
503
|
+
onSigValuesChange &&
|
|
504
|
+
onSigValuesChange(sigValuesChange('fileList', newRecords));
|
|
504
505
|
return newRecords;
|
|
505
506
|
});
|
|
506
507
|
}
|
|
@@ -536,13 +537,14 @@ var Sinatures = function (_a) {
|
|
|
536
537
|
function qunjSealChangeHandle(value) {
|
|
537
538
|
qunjSealChange && qunjSealChange(value);
|
|
538
539
|
setQunjSeal(value);
|
|
539
|
-
onSigValuesChange(sigValuesChange('qunjSeal', value));
|
|
540
|
+
onSigValuesChange && onSigValuesChange(sigValuesChange('qunjSeal', value));
|
|
540
541
|
}
|
|
541
542
|
/** 电子印章修改 */
|
|
542
543
|
function electronicSealChangeHandle(value) {
|
|
543
544
|
electronicSealChange && electronicSealChange(value);
|
|
544
545
|
setElectronicSeal(value);
|
|
545
|
-
onSigValuesChange
|
|
546
|
+
onSigValuesChange &&
|
|
547
|
+
onSigValuesChange(sigValuesChange('electronicSealIdList', value));
|
|
546
548
|
isSure && setIsSure(false);
|
|
547
549
|
}
|
|
548
550
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -47,6 +47,6 @@ export { default as UploadSingle } from './components/UploadSingle';
|
|
|
47
47
|
export { default as CodeQuery } from './components/business/CodeQuery';
|
|
48
48
|
export { default as DgColumns } from './components/business/DgColumns';
|
|
49
49
|
export { default as message } from './components/basic/message';
|
|
50
|
-
export { ConfigProvider, Drawer, Space, Grid, Divider, Dropdown, Badge, List, Result, Spin, Popconfirm, TreeSelect, Tree, Progress, Cascader, Tooltip, Descriptions, Image, Popover, Breadcrumb, Transfer, Row, Col, } from 'antd';
|
|
50
|
+
export { ConfigProvider, Drawer, Space, Grid, Divider, Dropdown, Badge, List, Result, Spin, Popconfirm, TreeSelect, Tree, Progress, Cascader, Tooltip, Descriptions, Image, Popover, Breadcrumb, Transfer, Row, Col, notification, } from 'antd';
|
|
51
51
|
export { default as zhCN } from 'antd/lib/locale/zh_CN';
|
|
52
52
|
export { default as Icon, createFromIconfontCN } from '@ant-design/icons';
|
package/dist/index.js
CHANGED
|
@@ -161,6 +161,6 @@ export { default as UploadSingle } from './components/UploadSingle';
|
|
|
161
161
|
export { default as CodeQuery } from './components/business/CodeQuery';
|
|
162
162
|
export { default as DgColumns } from './components/business/DgColumns';
|
|
163
163
|
export { default as message } from './components/basic/message';
|
|
164
|
-
export { ConfigProvider, Drawer, Space, Grid, Divider, Dropdown, Badge, List, Result, Spin, Popconfirm, TreeSelect, Tree, Progress, Cascader, Tooltip, Descriptions, Image, Popover, Breadcrumb, Transfer, Row, Col, } from 'antd';
|
|
164
|
+
export { ConfigProvider, Drawer, Space, Grid, Divider, Dropdown, Badge, List, Result, Spin, Popconfirm, TreeSelect, Tree, Progress, Cascader, Tooltip, Descriptions, Image, Popover, Breadcrumb, Transfer, Row, Col, notification, } from 'antd';
|
|
165
165
|
export { default as zhCN } from 'antd/lib/locale/zh_CN';
|
|
166
166
|
export { default as Icon, createFromIconfontCN } from '@ant-design/icons';
|