Browse Source

fix: input box cursor error #2207

pull/2222/head
tanjinzhou 5 years ago
parent
commit
352eb84eff
  1. 4
      components/input/Input.jsx
  2. 4
      components/input/TextArea.jsx
  3. 1
      webpack.config.js

4
components/input/Input.jsx

@ -109,7 +109,9 @@ export default {
callback && callback(); callback && callback();
}); });
} else { } else {
this.$forceUpdate(); //
// https://github.com/vueComponent/ant-design-vue/issues/2207modal new
// this.$forceUpdate();
} }
}, },
onChange(e) { onChange(e) {

4
components/input/TextArea.jsx

@ -52,7 +52,9 @@ export default {
callback && callback(); callback && callback();
}); });
} else { } else {
this.$forceUpdate(); //
// https://github.com/vueComponent/ant-design-vue/issues/2207modal new
// this.$forceUpdate();
} }
}, },
handleKeyDown(e) { handleKeyDown(e) {

1
webpack.config.js

@ -79,6 +79,7 @@ module.exports = {
resolve: { resolve: {
alias: { alias: {
'ant-design-vue': path.join(__dirname, './components'), 'ant-design-vue': path.join(__dirname, './components'),
vue$: 'vue/dist/vue.esm.js',
}, },
extensions: ['.js', '.jsx', '.vue'], extensions: ['.js', '.jsx', '.vue'],
}, },

Loading…
Cancel
Save