this is the template code
<v-table ref="vTable" :tableColumns="tableColumns" :tableData="tableData"></v-table>
tableColumns: [
{ title: "", key: "name", align: "center", width: 200 },
{ title: "", key: "gender", align: "center", width: 100 },
{ title: "", key: "age", align: "center", width: 100 },
{ title: "", key: "height", align: "center", width: 100 },
{ title: "", key: "weight", align: "center", width: 100 },
{ title: "", key: "phone", align: "center" },
{ title: "", key: "idCard", align: "center" },
{ title: "", key: "address", align: "center" },
{ title: "", key: "date", align: "center" },
{
title: "",
key: "action",
width: 150,
align: "center",
render: (h, params) => {
return h("div", [
h("Button", {
props: { type: "primary", size: "small" },
style: { marginRight: "5px" },
on: {
click: () => {
}
}
}, "")
]);
}
}
],
tableData: [
{
name: "",
gender: "",
age: "18",
height: "210cm",
weight: "110kg",
phone: "12345678912",
idCard: "123456789123456",
address: "",
date: "2018-08-28"
}
]
if the font turns red if the age is over 18, how to achieve