From 65275ff32aa0b21624cdf851119ce9150affbe2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Tue, 9 May 2023 12:18:10 +0300 Subject: [PATCH] Pt demo review --- doc/rating/pt/PTDoc.vue | 16 ++++--------- doc/selectbutton/pt/PTDoc.vue | 19 ++++++++------- doc/slider/pt/PTDoc.vue | 40 ++++++++++--------------------- doc/tristatecheckbox/pt/PTDoc.vue | 24 +++++++++---------- 4 files changed, 38 insertions(+), 61 deletions(-) diff --git a/doc/rating/pt/PTDoc.vue b/doc/rating/pt/PTDoc.vue index 65503ac6c..acdbe9ed7 100644 --- a/doc/rating/pt/PTDoc.vue +++ b/doc/rating/pt/PTDoc.vue @@ -4,9 +4,7 @@ @@ -23,9 +21,7 @@ export default { `, options: ` @@ -34,9 +30,7 @@ export default { @@ -57,9 +51,7 @@ export default { diff --git a/doc/selectbutton/pt/PTDoc.vue b/doc/selectbutton/pt/PTDoc.vue index e0e81805c..9f40b32bd 100644 --- a/doc/selectbutton/pt/PTDoc.vue +++ b/doc/selectbutton/pt/PTDoc.vue @@ -6,8 +6,8 @@ :options="options" aria-labelledby="basic" :pt="{ - label: ({ state }) => ({ - class: state.focusedIndex === 1 ? 'text-blue-300' : undefined + button: ({ context }) => ({ + class: context.active ? 'bg-cyan-400 border-cyan-400' : undefined }) }" /> @@ -28,10 +28,11 @@ export default { :options="options" aria-labelledby="basic" :pt="{ - label: ({ state }) => ({ - class: state.focusedIndex === 1 ? 'text-blue-300' : undefined + button: ({ context }) => ({ + class: context.active ? 'bg-cyan-400 border-cyan-400' : undefined }) - }"/>`, + }" +/>`, options: `