ztxkui 4.2.23-554 → 4.2.23-555
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.
|
@@ -60,7 +60,7 @@ var InputModal = function (_a) {
|
|
|
60
60
|
onBlur && onBlur(e.target.value);
|
|
61
61
|
};
|
|
62
62
|
return (React.createElement(React.Fragment, null,
|
|
63
|
-
React.createElement(Input, __assign({}, props, { onBlur: handleBlur, onDoubleClick: handleDoubleClick, onChange: function (e) { return onChange && onChange(e.target.value); } })),
|
|
63
|
+
React.createElement(Input, __assign({}, props, { onBlur: handleBlur, onDoubleClick: handleDoubleClick, onChange: function (e) { return onChange && onChange(e.target.value); }, isInputModal: false })),
|
|
64
64
|
React.createElement(Modal, { title: isModalDisabled ? i18next.t('内容') : i18next.t('请输入内容'), visible: visible, loading: false, destroyOnClose: true, onCancel: close, footer: isModalDisabled ? undefined : (React.createElement(React.Fragment, null,
|
|
65
65
|
React.createElement(Button, { onClick: handleClear }, i18next.t('清空内容')),
|
|
66
66
|
React.createElement(Button, { type: "primary", onClick: handleSure }, i18next.t('确认')))) },
|
|
@@ -58,7 +58,7 @@ function Input(props) {
|
|
|
58
58
|
// 受控模式
|
|
59
59
|
onChangeLastest.current && onChangeLastest.current(e);
|
|
60
60
|
}, [onChangeLastest]);
|
|
61
|
-
var showInputModal = isInputModal
|
|
61
|
+
var showInputModal = typeof isInputModal === 'boolean' ? isInputModal : inTable;
|
|
62
62
|
var inputModal = useInputModal({
|
|
63
63
|
disabled: props.disabled || props.readOnly,
|
|
64
64
|
eventMode: true,
|