feat(测试跟踪): 测试计划表格筛选加默认值

--user=郭雨琦
This commit is contained in:
guoyuqi 2022-04-15 18:17:36 +08:00 committed by 刘瑞斌
parent fe79f36f31
commit b1a4003570
2 changed files with 5 additions and 1 deletions

View File

@ -10,7 +10,9 @@
:label="label"
:sortable="sortable"
:filter-method="filterMethod"
:show-overflow-tooltip="showOverflowTooltip">
:filtered-value = "filteredValue "
:show-overflow-tooltip="showOverflowTooltip"
>
<template v-slot:default="scope">
<slot :row="scope.row" :$index="scope.$index" v-if="!editable">
<span @click="$emit('click', scope.row)">{{ scope.row[prop] }}</span>
@ -42,6 +44,7 @@ export default {
width: [String, Number],
minWidth: [String, Number],
filterMethod: Function,
filteredValue:Array,
fixed: String,
// mapperfilters
filters: Array,

View File

@ -53,6 +53,7 @@
<ms-table-column
prop="status"
:filters="statusFilters"
:filtered-value="['Prepare', 'Underway', 'Finished', 'Completed']"
column-key="status"
:field="item"
:fields-width="fieldsWidth"