Subscribe on changes!

vue template模板中不支持 es6的新语法"?."表达式

avatar
Nov 1st 2022

What problem does this feature solve?

现在只能这样子:

<el-button v-if="tableData && tableData.length > 0" type="primary" @click="handleNew">点击

What does the proposed API look like?

希望能成下面(tableData?.length > 0):

<el-button v-if="tableData?.length > 0" type="primary" @click="handleNew">点击

avatar
Nov 1st 2022

Cannot reproduce. Reproduction

Please provide a minimum reproduction if you insist.