From eb713f80e6f02136987676ec426d58c22c59648f Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Fri, 26 Aug 2016 14:01:14 +0800 Subject: [PATCH] update custom background table --- examples/docs/table.md | 6 +++--- packages/table/src/table-body.js | 28 +++++++++++++++++++++++----- packages/table/src/table.vue | 5 ++++- packages/theme-default/src/table.css | 16 ---------------- 4 files changed, 30 insertions(+), 25 deletions(-) diff --git a/examples/docs/table.md b/examples/docs/table.md index b3525db33..59f5998e1 100644 --- a/examples/docs/table.md +++ b/examples/docs/table.md @@ -248,9 +248,9 @@ ## 带状态表格 -通过在`data`对象数组中加入字段,可以给行加上状态,Element 提供了四种状态:`$positive`、`$info`、`$warning`以及`$negative`,在对象新增字段中把状态设为`true`表示启用该状态。 +可以为行添加自定义背景色,表明该行处于某种状态。若某一行拥有`custom-criteria`数组中的某个字段且值为`true`,则为该行添加`custom-background-colors`数组中对应的背景色。 - + @@ -258,7 +258,7 @@ ```html