Explorar o código

content editable: false, search: false

visuddhinanda %!s(int64=2) %!d(string=hai) anos
pai
achega
4ee5ff4ac2
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      dashboard/src/components/attachment/AttachmentList.tsx

+ 4 - 3
dashboard/src/components/attachment/AttachmentList.tsx

@@ -180,6 +180,8 @@ const AttachmentWidget = ({
             },
             },
           },
           },
           description: {
           description: {
+            editable: false,
+            search: false,
             render: (dom, entity, index, action, schema) => {
             render: (dom, entity, index, action, schema) => {
               return (
               return (
                 <Text type="secondary">
                 <Text type="secondary">
@@ -195,12 +197,10 @@ const AttachmentWidget = ({
                 </Text>
                 </Text>
               );
               );
             },
             },
-            editable: false,
-            search: false,
           },
           },
           content:
           content:
             list === "list"
             list === "list"
-              ? undefined
+              ? { editable: false, search: false }
               : {
               : {
                   editable: false,
                   editable: false,
                   search: false,
                   search: false,
@@ -323,6 +323,7 @@ const AttachmentWidget = ({
           },
           },
           content_type: {
           content_type: {
             // 自己扩展的字段,主要用于筛选,不在列表中显示
             // 自己扩展的字段,主要用于筛选,不在列表中显示
+            editable: false,
             title: "类型",
             title: "类型",
             valueType: "select",
             valueType: "select",
             valueEnum: {
             valueEnum: {