Stack Overflow на русском Asked by user399220 on December 11, 2021
Как можно использовать в объекте data
множественный ключ? Скажем нужны два символа в 'views.Cards.State.b'
: x
или l
:
data: () => ({
states: [
{caption: 'views.Cards.State.a', code: 'a', color: 'accent'},
{caption: 'views.Cards.State.b', code: 'x|l', color: 'error'}
]
})
Вам нужна коллекция для хранения не одного значение, используйте массив
data: () => ({
states: [
{caption: 'views.Cards.State.a', code: 'a', color: 'accent'},
{caption: 'views.Cards.State.b', code: ['x', l], color: 'error'}
]
})
Answered by RavenTheX on December 11, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP