kts-component-invoice-operate 3.2.225 → 3.2.226
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/index.esm.js
CHANGED
|
@@ -24909,6 +24909,8 @@ var LicensePlateNumber = function LicensePlateNumber(props) {
|
|
|
24909
24909
|
var onAdd = function onAdd() {
|
|
24910
24910
|
if (value.length < licenceLimit) {
|
|
24911
24911
|
setVal([].concat(_toConsumableArray(value), ['']));
|
|
24912
|
+
} else {
|
|
24913
|
+
message.warn('最多支持填写3个车牌号');
|
|
24912
24914
|
}
|
|
24913
24915
|
}; // 删除车牌号
|
|
24914
24916
|
|
|
@@ -24920,7 +24922,6 @@ var LicensePlateNumber = function LicensePlateNumber(props) {
|
|
|
24920
24922
|
}
|
|
24921
24923
|
};
|
|
24922
24924
|
|
|
24923
|
-
console.log(value.length);
|
|
24924
24925
|
return /*#__PURE__*/React.createElement(React.Fragment, null, value.length > 0 && value.map(function (item, key) {
|
|
24925
24926
|
return /*#__PURE__*/React.createElement(Col$1, {
|
|
24926
24927
|
span: 6
|
package/dist/index.js
CHANGED
|
@@ -24919,6 +24919,8 @@ var LicensePlateNumber = function LicensePlateNumber(props) {
|
|
|
24919
24919
|
var onAdd = function onAdd() {
|
|
24920
24920
|
if (value.length < licenceLimit) {
|
|
24921
24921
|
setVal([].concat(_toConsumableArray(value), ['']));
|
|
24922
|
+
} else {
|
|
24923
|
+
ktsComponentsAntdX3.message.warn('最多支持填写3个车牌号');
|
|
24922
24924
|
}
|
|
24923
24925
|
}; // 删除车牌号
|
|
24924
24926
|
|
|
@@ -24930,7 +24932,6 @@ var LicensePlateNumber = function LicensePlateNumber(props) {
|
|
|
24930
24932
|
}
|
|
24931
24933
|
};
|
|
24932
24934
|
|
|
24933
|
-
console.log(value.length);
|
|
24934
24935
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, value.length > 0 && value.map(function (item, key) {
|
|
24935
24936
|
return /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
24936
24937
|
span: 6
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import React, { useEffect } from "react";
|
|
3
3
|
import { decorator } from 'grey-react-box';
|
|
4
|
-
import { Form } from 'kts-components-antd-x3';
|
|
4
|
+
import { Form, message } from 'kts-components-antd-x3';
|
|
5
5
|
import { FormComponentProps } from 'kts-components-antd-x3/lib/form';
|
|
6
6
|
import Invoice from '../../..';
|
|
7
7
|
import './index.less';
|
|
@@ -336,6 +336,8 @@ const LicensePlateNumber: React.FC<PriceInputProps> = (props) => {
|
|
|
336
336
|
const onAdd = () => {
|
|
337
337
|
if (value.length < licenceLimit) {
|
|
338
338
|
setVal([...value, '']);
|
|
339
|
+
}else{
|
|
340
|
+
message.warn('最多支持填写3个车牌号')
|
|
339
341
|
}
|
|
340
342
|
}
|
|
341
343
|
// 删除车牌号
|
|
@@ -346,7 +348,6 @@ const LicensePlateNumber: React.FC<PriceInputProps> = (props) => {
|
|
|
346
348
|
}
|
|
347
349
|
}
|
|
348
350
|
|
|
349
|
-
console.log(value.length)
|
|
350
351
|
return <>
|
|
351
352
|
{
|
|
352
353
|
value.length > 0 && value.map((item: string[], key: number) => {
|