How to judge the condition in the attribute of vue tag

< el-checkbox indeterminate= "v-fi" v prop.newItem model = "prop.newItem" > New product < / el-checkbox >
indeterminate

can you judge the condition

Aug.11,2021

: indeterminate= "1 > 2"


can be judged.

<el-checkbox :indeterminate="2 > 1" v-model="prop.newItem" ></el-checkbox>

is equivalent to

<el-checkbox :indeterminate="true" v-model="prop.newItem" ></el-checkbox>

: indeterminate=' judgment condition'

Menu