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