kts-component-invoice-operate 3.1.15 → 3.1.17
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
|
@@ -2,10 +2,11 @@ import 'kts-components-antd-x3/dist/kts-components-antd-x3.css';
|
|
|
2
2
|
import React, { createElement } from 'react';
|
|
3
3
|
import GreyReactBox, { decorator } from 'grey-react-box';
|
|
4
4
|
import { chain as chain$1, bignumber, create, all } from 'mathjs';
|
|
5
|
-
import { message, Form, Input, Icon, Tag, Select, Button, Tooltip, Switch as Switch$1, Typography, Menu, Dropdown, AutoComplete, Spin, Checkbox, Drawer, Descriptions, Empty, Divider, Popover, Table, Tree, Modal, Row, Col } from 'kts-components-antd-x3';
|
|
5
|
+
import { message, Form, Input, Icon, Tag, Select, Button, Tooltip, Switch as Switch$1, Typography, Menu, Dropdown, AutoComplete, Spin, Checkbox, Drawer, Descriptions, Empty, Divider, Popover, Table as Table$1, Tree, Modal, Row, Col } from 'kts-components-antd-x3';
|
|
6
6
|
import { v4 } from 'uuid';
|
|
7
7
|
import classnames from 'classnames';
|
|
8
8
|
import { TableManual, Switch, Form as Form$1, Drawer as Drawer$1 } from 'kts-xui';
|
|
9
|
+
import { Table } from 'kts-components-antd-x4-v4';
|
|
9
10
|
import { Input as Input$1, NumberPicker } from '@formily/antd-components';
|
|
10
11
|
import { createAsyncFormActions, FormEffectHooks, SchemaForm, FormButtonGroup, SchemaMarkupField } from '@formily/antd';
|
|
11
12
|
|
|
@@ -1700,7 +1701,9 @@ function TableVirtual (props) {
|
|
|
1700
1701
|
setSelf(e);
|
|
1701
1702
|
}
|
|
1702
1703
|
}, /*#__PURE__*/React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1703
|
-
dataSource: dataSource
|
|
1704
|
+
dataSource: dataSource,
|
|
1705
|
+
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
1706
|
+
tableComponent: Table
|
|
1704
1707
|
})));
|
|
1705
1708
|
}
|
|
1706
1709
|
|
|
@@ -2154,7 +2157,6 @@ function TableRow(props) {
|
|
|
2154
2157
|
return undefined;
|
|
2155
2158
|
}
|
|
2156
2159
|
}, [props['data-row-key'], goodsMap]);
|
|
2157
|
-
console.log('===> discount', discount);
|
|
2158
2160
|
return /*#__PURE__*/React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
2159
2161
|
className: classnames(props.className, discount)
|
|
2160
2162
|
}));
|
|
@@ -11759,7 +11761,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
11759
11761
|
}
|
|
11760
11762
|
});
|
|
11761
11763
|
}, [controller]);
|
|
11762
|
-
return /*#__PURE__*/React.createElement(Table, {
|
|
11764
|
+
return /*#__PURE__*/React.createElement(Table$1, {
|
|
11763
11765
|
bordered: true,
|
|
11764
11766
|
size: "small",
|
|
11765
11767
|
columns: columns,
|
|
@@ -11877,7 +11879,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
11877
11879
|
}
|
|
11878
11880
|
});
|
|
11879
11881
|
}, [controller]);
|
|
11880
|
-
return /*#__PURE__*/React.createElement(Table, {
|
|
11882
|
+
return /*#__PURE__*/React.createElement(Table$1, {
|
|
11881
11883
|
bordered: true,
|
|
11882
11884
|
size: "small",
|
|
11883
11885
|
columns: columns,
|
package/dist/index.js
CHANGED
|
@@ -10,6 +10,7 @@ var ktsComponentsAntdX3 = require('kts-components-antd-x3');
|
|
|
10
10
|
var uuid = require('uuid');
|
|
11
11
|
var classnames = require('classnames');
|
|
12
12
|
var ktsXui = require('kts-xui');
|
|
13
|
+
var ktsComponentsAntdX4V4 = require('kts-components-antd-x4-v4');
|
|
13
14
|
var antdComponents = require('@formily/antd-components');
|
|
14
15
|
var antd = require('@formily/antd');
|
|
15
16
|
|
|
@@ -1710,7 +1711,9 @@ function TableVirtual (props) {
|
|
|
1710
1711
|
setSelf(e);
|
|
1711
1712
|
}
|
|
1712
1713
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1713
|
-
dataSource: dataSource
|
|
1714
|
+
dataSource: dataSource,
|
|
1715
|
+
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
1716
|
+
tableComponent: ktsComponentsAntdX4V4.Table
|
|
1714
1717
|
})));
|
|
1715
1718
|
}
|
|
1716
1719
|
|
|
@@ -2164,7 +2167,6 @@ function TableRow(props) {
|
|
|
2164
2167
|
return undefined;
|
|
2165
2168
|
}
|
|
2166
2169
|
}, [props['data-row-key'], goodsMap]);
|
|
2167
|
-
console.log('===> discount', discount);
|
|
2168
2170
|
return /*#__PURE__*/React__default['default'].createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
2169
2171
|
className: classnames__default['default'](props.className, discount)
|
|
2170
2172
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kts-component-invoice-operate",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.17",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -30,8 +30,9 @@
|
|
|
30
30
|
"classnames": "^2.3.1",
|
|
31
31
|
"grey-react-box": "^0.2.22",
|
|
32
32
|
"kts-components-antd-x3": "^3.26.20-5",
|
|
33
|
-
"kts-components-antd-x4": "
|
|
34
|
-
"kts-
|
|
33
|
+
"kts-components-antd-x4": "5.0.0",
|
|
34
|
+
"kts-components-antd-x4-v4": "npm:kts-components-antd-x4@^4.0.3",
|
|
35
|
+
"kts-xui": "^2.0.3",
|
|
35
36
|
"mathjs": "^9.4.2",
|
|
36
37
|
"next": "^11.0.1",
|
|
37
38
|
"nzh": "^1.0.4",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { TableManual
|
|
3
|
+
import { TableManual, TableProps } from "kts-xui";
|
|
4
|
+
import { Table } from 'kts-components-antd-x4-v4';
|
|
4
5
|
import './index.less';
|
|
5
6
|
|
|
6
7
|
export default function <T extends object = any>(props: TableProps<T>) {
|
|
@@ -97,9 +98,11 @@ export default function <T extends object = any>(props: TableProps<T>) {
|
|
|
97
98
|
|
|
98
99
|
return (
|
|
99
100
|
<span className="kts-invoice-operate-goods-table-virtual" ref={(e) => { setSelf(e) }} >
|
|
100
|
-
<
|
|
101
|
+
<TableManual
|
|
101
102
|
{...props}
|
|
102
103
|
dataSource={dataSource}
|
|
104
|
+
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
105
|
+
tableComponent={Table as any}
|
|
103
106
|
/>
|
|
104
107
|
</span>
|
|
105
108
|
)
|