You can pass an object with the keys being the classes and the value being true or false to enable/disable it.
<h1 :class="{'flex-auto text-xl font-semibold text-gray-800 player-name': true 'dynamic': someDataProperty}">
{{player.name}}
</h1>
I set the classes you had normally to the boolean literal 'true' so they are always enabled, and I set the dynamic property to a data property which should be a boolean.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…