From 76c0b08bde1b52c69c57f0893156c70c6384be3f Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 8 Jul 2021 10:16:05 +0800 Subject: [PATCH] chore(Picker): deprecatation warning of valueKey (#8994) --- src/area/Area.tsx | 2 +- src/number-keyboard/demo/index.vue | 48 ++++++++++++------- .../test/__snapshots__/demo.spec.ts.snap | 36 +++++++++----- src/picker/Picker.tsx | 26 +++++----- 4 files changed, 70 insertions(+), 42 deletions(-) diff --git a/src/area/Area.tsx b/src/area/Area.tsx index bb4faae93..03a1b1dcd 100644 --- a/src/area/Area.tsx +++ b/src/area/Area.tsx @@ -327,7 +327,7 @@ export default defineComponent({ ref={pickerRef} class={bem()} columns={columns} - valueKey="name" + columnsFieldNames={{ text: 'name' }} onChange={onChange} onConfirm={onConfirm} {...pick(props, INHERIT_PROPS)} diff --git a/src/number-keyboard/demo/index.vue b/src/number-keyboard/demo/index.vue index 0946da258..c75b4a93a 100644 --- a/src/number-keyboard/demo/index.vue +++ b/src/number-keyboard/demo/index.vue @@ -1,23 +1,35 @@