[英]How to write to bootstrap-vue table fields with non-latin letters?
I want to write a table in the Cyrillic alphabet, but in the program the key of the object should be only in the Latin alphabet.我想用西里尔字母写一个表,但是在程序中object的键应该只有拉丁字母。
Code:代码:
export default {
data() {
return {
wmsFields: ['№', 'Наименование', 'Код', 'Баркод', 'Кол-во', 'Остаток 1С', 'Ряд', 'Стеллаж', 'Полка'],
wms: [
{No: '1', Naimenovanie: 'Jon doe', Kod: '13232', barkod: 'asas'...},
]
}
}
You can write like this and then use value of the key for elements key:您可以这样写,然后将键的值用于元素键:
Template :模板:
<tr key="wmsField.key"></tr>
Script :脚本:
export default {
data() {
return {
wmsFields: [
{ key: "number", value: '№' },
{ key: "name", value:'Наименование' },
{ key: 'code', value: 'Код'}, ....],
wms: [
{No: '1', Naimenovanie: 'Jon doe', Kod: '13232', barkod: 'asas'...},
]
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.