diff --git a/components/input/Input.jsx b/components/input/Input.jsx index 2c973bd1b..877b1c98a 100644 --- a/components/input/Input.jsx +++ b/components/input/Input.jsx @@ -109,7 +109,9 @@ export default { callback && callback(); }); } else { - this.$forceUpdate(); + // 不在严格受控 + // https://github.com/vueComponent/ant-design-vue/issues/2207,modal 是 新 new 实例,更新队列和当前不在同一个更新队列中 + // this.$forceUpdate(); } }, onChange(e) { diff --git a/components/input/TextArea.jsx b/components/input/TextArea.jsx index 9f2a17613..88a77f42c 100644 --- a/components/input/TextArea.jsx +++ b/components/input/TextArea.jsx @@ -52,7 +52,9 @@ export default { callback && callback(); }); } else { - this.$forceUpdate(); + // 不在严格受控 + // https://github.com/vueComponent/ant-design-vue/issues/2207,modal 是 新 new 实例,更新队列和当前不在同一个更新队列中 + // this.$forceUpdate(); } }, handleKeyDown(e) { diff --git a/webpack.config.js b/webpack.config.js index e65efd898..f56482829 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -79,6 +79,7 @@ module.exports = { resolve: { alias: { 'ant-design-vue': path.join(__dirname, './components'), + vue$: 'vue/dist/vue.esm.js', }, extensions: ['.js', '.jsx', '.vue'], },