From 52a0e5a8c70dcc07b87140e33318acefcbdd3ef9 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Tue, 12 Jan 2021 20:24:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(NumberKeyboard):=20delete=E3=80=81extra-key?= =?UTF-8?q?=20slot=20not=20work?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/number-keyboard/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/number-keyboard/index.js b/src/number-keyboard/index.js index 49cb57bf9..823b0d579 100644 --- a/src/number-keyboard/index.js +++ b/src/number-keyboard/index.js @@ -171,18 +171,18 @@ export default createComponent({ const renderKeys = () => { return keys.value.map((key) => { - const slots = {}; + const keySlots = {}; if (key.type === 'delete') { - slots.default = slots.delete; + keySlots.default = slots.delete; } if (key.type === 'extra') { - slots.default = slots['extra-key']; + keySlots.default = slots['extra-key']; } return (