From a98f513a24da088fe2786d034ec51485a7134c16 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Wed, 4 Mar 2020 17:37:53 +0800 Subject: [PATCH] feat: update mentions --- build/config.js | 2 +- components/input/Input.jsx | 5 ----- components/input/ResizableTextArea.jsx | 5 +++++ .../mentions/__test__/__snapshots__/demo.test.js.snap | 10 +++++----- components/mentions/demo/basic.md | 7 ++++++- components/vc-mentions/src/DropdownMenu.jsx | 5 +++-- components/vc-mentions/src/Mentions.jsx | 5 +++-- 7 files changed, 23 insertions(+), 16 deletions(-) diff --git a/build/config.js b/build/config.js index fbee0138a..922896706 100644 --- a/build/config.js +++ b/build/config.js @@ -1,5 +1,5 @@ module.exports = { dev: { - componentName: 'upload', // dev components + componentName: 'mentions', // dev components }, }; diff --git a/components/input/Input.jsx b/components/input/Input.jsx index 72e3c5ade..4b82589a1 100644 --- a/components/input/Input.jsx +++ b/components/input/Input.jsx @@ -192,11 +192,6 @@ export default { keydown: this.handleKeyDown, change: noop, }, - directives: [ - { - name: 'ant-input', - }, - ], }; return
-
-
+
+
-
+
diff --git a/components/mentions/demo/basic.md b/components/mentions/demo/basic.md index 607a23157..321f667ac 100644 --- a/components/mentions/demo/basic.md +++ b/components/mentions/demo/basic.md @@ -11,7 +11,7 @@ Basic usage. ```tpl