diff --git a/src/components/PageContent/index.vue b/src/components/PageContent/index.vue
index 3c40d283..5cc9489e 100644
--- a/src/components/PageContent/index.vue
+++ b/src/components/PageContent/index.vue
@@ -160,6 +160,17 @@
/>
+
+
+
+
+
+
@@ -332,6 +343,7 @@ export interface IContentConfig {
| "list"
| "url"
| "switch"
+ | "input"
| "price"
| "percent"
| "icon"
@@ -345,6 +357,7 @@ export interface IContentConfig {
inactiveValue?: boolean | string | number;
activeText?: string;
inactiveText?: string;
+ inputType?: string;
priceFormat?: string;
dateFormat?: string;
operat?: Array<
diff --git a/src/views/demo/curd/config/content2.ts b/src/views/demo/curd/config/content2.ts
index b4b02c7e..e2e53480 100644
--- a/src/views/demo/curd/config/content2.ts
+++ b/src/views/demo/curd/config/content2.ts
@@ -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",