wip: add to cart btn, haptic touch
This commit is contained in:
@@ -33,6 +33,8 @@ const btnClassList = computed(() => {
|
||||
function inc() {
|
||||
if (props.disabled) return;
|
||||
|
||||
window.Telegram.WebApp.HapticFeedback.selectionChanged();
|
||||
|
||||
if (props.max && model.value + 1 > props.max) {
|
||||
model.value = props.max;
|
||||
return;
|
||||
@@ -44,6 +46,8 @@ function inc() {
|
||||
function dec() {
|
||||
if (props.disabled) return;
|
||||
|
||||
window.Telegram.WebApp.HapticFeedback.selectionChanged();
|
||||
|
||||
if (model.value - 1 >= 1) {
|
||||
model.value--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user