diff --git a/client/src/components/Numpad/Numpad.vue b/client/src/components/Numpad/Numpad.vue index 4f1498f..7651167 100644 --- a/client/src/components/Numpad/Numpad.vue +++ b/client/src/components/Numpad/Numpad.vue @@ -3,10 +3,10 @@ {{ key }} - + - + @@ -19,9 +19,26 @@ const keys = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '.', '0', '00'] const emit = defineEmits(['input', 'delete', 'confirm']) +function vibrate() { + try { + uni.vibrateShort({ type: 'light' }) + } catch {} +} + function onKeyTap(key: string) { + vibrate() emit('input', key) } + +function onDelete() { + vibrate() + emit('delete') +} + +function onConfirm() { + vibrate() + emit('confirm') +} diff --git a/client/src/components/TransactionItem/TransactionItem.vue b/client/src/components/TransactionItem/TransactionItem.vue index e666c43..dfe60ea 100644 --- a/client/src/components/TransactionItem/TransactionItem.vue +++ b/client/src/components/TransactionItem/TransactionItem.vue @@ -1,18 +1,33 @@