鍍金池/ 問答/HTML5  HTML/ 如何驗(yàn)證<el-table>中的自定義列

如何驗(yàn)證<el-table>中的自定義列

請問,如何才能驗(yàn)證<el-table>中的自定義列

<el-table v-bind:data="points"
                  style="width: 100%"
                  stripe
                  border>
            <el-table-column label="測試列1"
                             align="center"
                             width="180">
                <template scope="scope">
                        <el-input v-model="scope.row.Input_Value"></el-input>
                </template>
            </el-table-column>
        </el-table>
 var app = new Vue({
        el: "#app",
        data: {
            points: [
            { Input_Value:1 },
            { Input_Value:2 },
            { Input_Value:3 }
            ] 
        } 
    });

需要驗(yàn)證scope.row.Input_Value不能為空

回答
編輯回答
貓小柒

https://github.com/huangshuwe...
這個(gè)里面可以編輯每一個(gè)cell,可以看一下

2017年1月22日 06:04
編輯回答
別硬撐

同樣遇到~表單里面有表格,表格里面的每一項(xiàng)都可編輯可驗(yàn)證~

2017年4月5日 09:07
編輯回答
風(fēng)畔

大佬,這個(gè)問題你解決了嗎?

2017年4月19日 23:10
編輯回答
我以為

我目前就是循環(huán)表格數(shù)組,去判斷每一行的值是否符合規(guī)則

2017年8月11日 10:11