feat:
1. add category
This commit is contained in:
@@ -71,9 +71,26 @@ export default {
|
||||
{
|
||||
label: "规格",
|
||||
prop: "specs",
|
||||
type: "input",
|
||||
addDisplay: false,
|
||||
editDisplay: false,
|
||||
type: "dynamic",
|
||||
span: 24,
|
||||
children:{
|
||||
rowAdd: (done)=>{
|
||||
done();
|
||||
},
|
||||
rowDel: (row, done) => {
|
||||
done();
|
||||
},
|
||||
column: [
|
||||
{
|
||||
label: "名称",
|
||||
prop: "attr",
|
||||
},
|
||||
{
|
||||
label: "值",
|
||||
prop: "value",
|
||||
}
|
||||
],
|
||||
},
|
||||
formatter: (row, value, cellValue) => {
|
||||
if (!Array.isArray(value)) return '';
|
||||
return value.map(s => `${s.attr}:${s.value}`).join('; ');
|
||||
|
||||
Reference in New Issue
Block a user