Skip to content

Conversation

codders
Copy link
Contributor

@codders codders commented Jun 27, 2025

Vue supports passing arrays and objects as the value of :class= attributes in templates, and adding class= attributes to the output HTML based on the data in the array / object.

Add handling for array- / object-valued :class= attributes.

Bug: T398012

@codders codders requested a review from lucaswerkmeister June 27, 2025 07:22
@lucaswerkmeister lucaswerkmeister force-pushed the feat/handle-member-expression-v-for-data-20250627 branch from f37c5a1 to cb3073f Compare June 27, 2025 10:14
@lucaswerkmeister lucaswerkmeister force-pushed the feat/object-valued-class-attributes-20250627 branch from e2d2239 to 6c04111 Compare June 27, 2025 10:21
@codders codders force-pushed the feat/handle-member-expression-v-for-data-20250627 branch 2 times, most recently from 7fd666f to facd231 Compare June 27, 2025 14:38
@codders codders force-pushed the feat/object-valued-class-attributes-20250627 branch from 6c04111 to ec7a51b Compare June 27, 2025 14:47
Base automatically changed from feat/handle-member-expression-v-for-data-20250627 to master June 27, 2025 15:18
Vue supports passing arrays and objects as the value of `:class=`
attributes in templates, and adding `class=` attributes to the
output HTML based on the data in the array / object.

Add handling for array- / object-valued `:class=` attributes.

Bug: T398012
@lucaswerkmeister lucaswerkmeister force-pushed the feat/object-valued-class-attributes-20250627 branch from ec7a51b to f7260e1 Compare June 27, 2025 15:21
@lucaswerkmeister lucaswerkmeister merged commit e214234 into master Jun 27, 2025
8 checks passed
@lucaswerkmeister lucaswerkmeister deleted the feat/object-valued-class-attributes-20250627 branch June 27, 2025 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants