kts-component-invoice-operate 3.0.4 → 3.0.5
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
|
@@ -10881,14 +10881,14 @@ var useEndowCodeButton = (function () {
|
|
|
10881
10881
|
onClick: onClick,
|
|
10882
10882
|
disabled: disabled
|
|
10883
10883
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
10884
|
-
}, [onClick, disabled]);
|
|
10884
|
+
}, [onClick, disabled, model]);
|
|
10885
10885
|
var button = React.useMemo(function () {
|
|
10886
10886
|
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
10887
10887
|
return React.createElement(Button, {
|
|
10888
10888
|
onClick: onClick,
|
|
10889
10889
|
disabled: disabled
|
|
10890
10890
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
10891
|
-
}, [onClick, disabled]);
|
|
10891
|
+
}, [onClick, disabled, model]);
|
|
10892
10892
|
return {
|
|
10893
10893
|
menuItem: menuItem,
|
|
10894
10894
|
button: button
|
package/dist/index.js
CHANGED
|
@@ -10891,14 +10891,14 @@ var useEndowCodeButton = (function () {
|
|
|
10891
10891
|
onClick: onClick,
|
|
10892
10892
|
disabled: disabled
|
|
10893
10893
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
10894
|
-
}, [onClick, disabled]);
|
|
10894
|
+
}, [onClick, disabled, model]);
|
|
10895
10895
|
var button = React__default['default'].useMemo(function () {
|
|
10896
10896
|
if (model === 'readOnly') return React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
10897
10897
|
return React__default['default'].createElement(ktsComponentsAntdX3.Button, {
|
|
10898
10898
|
onClick: onClick,
|
|
10899
10899
|
disabled: disabled
|
|
10900
10900
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
10901
|
-
}, [onClick, disabled]);
|
|
10901
|
+
}, [onClick, disabled, model]);
|
|
10902
10902
|
return {
|
|
10903
10903
|
menuItem: menuItem,
|
|
10904
10904
|
button: button
|
package/package.json
CHANGED
|
@@ -43,7 +43,7 @@ export default () => {
|
|
|
43
43
|
批量赋码
|
|
44
44
|
</Menu.Item>
|
|
45
45
|
)
|
|
46
|
-
}, [onClick, disabled])
|
|
46
|
+
}, [onClick, disabled, model])
|
|
47
47
|
|
|
48
48
|
const button = React.useMemo(() => {
|
|
49
49
|
if (model === 'readOnly') return <></>;
|
|
@@ -52,7 +52,7 @@ export default () => {
|
|
|
52
52
|
批量赋码
|
|
53
53
|
</Button>
|
|
54
54
|
)
|
|
55
|
-
}, [onClick, disabled])
|
|
55
|
+
}, [onClick, disabled, model])
|
|
56
56
|
|
|
57
57
|
return { menuItem, button };
|
|
58
58
|
};
|