feat(PageContent): 支持input属性修改

This commit is contained in:
cshaptx4869
2024-05-22 16:30:49 +08:00
parent 0ca4d4f149
commit 8d6473173c
2 changed files with 23 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ const contentConfig: IContentConfig = {
gender: 1,
status: 1,
status2: 1,
sort: 99,
createTime: 1715647982437,
},
{
@@ -36,13 +37,14 @@ const contentConfig: IContentConfig = {
gender: 0,
status: 0,
status2: 0,
sort: 0,
createTime: 1715648977426,
},
],
});
},
modifyAction(data) {
// console.log("modifyAction:", data);
console.log("modifyAction:", data);
return Promise.resolve(null);
},
cols: [
@@ -89,6 +91,13 @@ const contentConfig: IContentConfig = {
activeText: "启用",
inactiveText: "禁用",
},
{
label: "排序",
align: "center",
prop: "sort",
templet: "input",
inputType: "number",
},
{
label: "创建时间",
align: "center",