diff --git a/components/input/__tests__/index.test.js b/components/input/__tests__/index.test.js index 3ca8f6d82a..02de583e3f 100644 --- a/components/input/__tests__/index.test.js +++ b/components/input/__tests__/index.test.js @@ -11,12 +11,6 @@ describe('Input', () => { focusTest(TextArea); focusTest(Password); - it('should support maxLength', async () => { - const wrapper = mount(Input, { attrs: { maxLength: 3 }, sync: false }); - await asyncExpect(() => { - expect(wrapper.html()).toMatchSnapshot(); - }, 0); - }); it('select()', () => { const wrapper = mount(Input); wrapper.vm.select(); @@ -62,13 +56,6 @@ describe('TextArea', () => { expect(wrapper.html()).toMatchSnapshot(); }); }); - - it('should support maxLength', async () => { - const wrapper = mount(TextArea, { attrs: { maxLength: 10 }, sync: false }); - await asyncExpect(() => { - expect(wrapper.html()).toMatchSnapshot(); - }); - }); }); describe('As Form Control', () => { diff --git a/components/input/inputProps.js b/components/input/inputProps.js index 0158a09ed6..5c52b6799d 100644 --- a/components/input/inputProps.js +++ b/components/input/inputProps.js @@ -30,7 +30,6 @@ export default { default: true, type: Boolean, }, - maxLength: PropTypes.number, loading: PropTypes.bool, className: PropTypes.string, }; diff --git a/examples/App.vue b/examples/App.vue index 535d215986..a6f9c7e2ad 100644 --- a/examples/App.vue +++ b/examples/App.vue @@ -9,24 +9,45 @@ 中文 -