parent
fe79f36f31
commit
b1a4003570
|
@ -10,7 +10,9 @@
|
||||||
:label="label"
|
:label="label"
|
||||||
:sortable="sortable"
|
:sortable="sortable"
|
||||||
:filter-method="filterMethod"
|
:filter-method="filterMethod"
|
||||||
:show-overflow-tooltip="showOverflowTooltip">
|
:filtered-value = "filteredValue "
|
||||||
|
:show-overflow-tooltip="showOverflowTooltip"
|
||||||
|
>
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<slot :row="scope.row" :$index="scope.$index" v-if="!editable">
|
<slot :row="scope.row" :$index="scope.$index" v-if="!editable">
|
||||||
<span @click="$emit('click', scope.row)">{{ scope.row[prop] }}</span>
|
<span @click="$emit('click', scope.row)">{{ scope.row[prop] }}</span>
|
||||||
|
@ -42,6 +44,7 @@ export default {
|
||||||
width: [String, Number],
|
width: [String, Number],
|
||||||
minWidth: [String, Number],
|
minWidth: [String, Number],
|
||||||
filterMethod: Function,
|
filterMethod: Function,
|
||||||
|
filteredValue:Array,
|
||||||
fixed: String,
|
fixed: String,
|
||||||
// 排序列, 后端mapper处理filters
|
// 排序列, 后端mapper处理filters
|
||||||
filters: Array,
|
filters: Array,
|
||||||
|
|
|
@ -53,6 +53,7 @@
|
||||||
<ms-table-column
|
<ms-table-column
|
||||||
prop="status"
|
prop="status"
|
||||||
:filters="statusFilters"
|
:filters="statusFilters"
|
||||||
|
:filtered-value="['Prepare', 'Underway', 'Finished', 'Completed']"
|
||||||
column-key="status"
|
column-key="status"
|
||||||
:field="item"
|
:field="item"
|
||||||
:fields-width="fieldsWidth"
|
:fields-width="fieldsWidth"
|
||||||
|
|
Loading…
Reference in New Issue