Browse Source

feat:注释

ananzhusen 10 months ago
parent
commit
aa490f8793
1 changed files with 174 additions and 174 deletions
  1. 174 174
      src/services/defaults.ts

+ 174 - 174
src/services/defaults.ts

@@ -2271,180 +2271,180 @@ export const formComponents = [
           }
           }
         },
         },
       },
       },
-      {
-        name: '多功能表格',
-        icon: 'l-biaoge',
-        data: {
-          name: 'tablePlus',
-          width: 0,
-          height: 0,
-          disableAnchor: true,
-          disableSize: true,
-          bordered:true,
-          hLine:true,
-          vLine:true,
-          colWidth: 180,
-          rowHeight: 30,
-          color: "#bdc7db",
-          stripe: true,
-          stripeColor: "#407FFF1F",
-          ellipsis: true,
-          whiteSpace: "break-all",
-          columns:[{
-            type: 'select',
-            dropdownList: [{text:'选项一'},{text:'选项二'},{text:'选项三'}]
-          },{
-            type: 'numeric'
-          },{
-            fnJs:`
-              if(data==='一级告警'){
-                return {
-                  text:data,
-                  textColor: '#FF5D3CFF',
-                }
-              }else if(data==='二级告警'){
-                return {
-                  text:data,
-                  textColor: '#E6A82EFF',
-                }
-              }else if(data==='三级告警'){
-                return {
-                  text:data,
-                  textColor: '#58CC84FF',
-                }
-              }
-            `
-          },
-          ,{
-            // fnJs:`
-            //   if(data==='一级告警'){
-            //     return {
-            //       text:data,
-            //       textColor: '#FF5D3CFF',
-            //     }
-            //   }else if(data==='二级告警'){
-            //     return {
-            //       text:data,
-            //       textColor: '#E6A82EFF',
-            //     }
-            //   }else if(data==='三级告警'){
-            //     return {
-            //       text:data,
-            //       textColor: '#58CC84FF',
-            //     }
-            //   }
-            // `
-          }],
-          data: [
-            [
-              "场景",
-              "图纸id",
-              "名称",
-              "操作"
-            ],
-            [
-              "智慧物联",
-              "01840e23-efb8-70d4-804b-9402de84d2d7",
-              "一级告警",
-             "1"
-            ],
-            [
-              "智慧园区",
-              "01871289-7110-708d-80f2-c654ea652d7e",
-              "一级告警",
-              "2"
-            ],
-            [
-              "智慧物联",
-              "01864ef5-f3b8-7046-8062-680466d5157b",
-              "二级告警",
-              "3"
-            ],
-            [
-              "无",
-              "018f94fe-12f4-7e6e-90c2-e7354270e7e1",
-              "三级告警",
-           ""
-            ],
-            [
-              "电力能源",
-              "01831702-3460-7028-808d-77e4cee1a1bd",
-              "二级告警",
-             ""
-            ],
-            [
-              "智慧物联",
-              "01840e82-bd40-70d4-804b-9402de84d2f1",
-              "三级告警",
-             ""
-            ]
-          ],
-          styles: [
-            {
-              "row": 0,
-              "textColor": "#ffffff66"
-            },{
-              "col": 3,
-              "pens": [
-                  {
-                      "background": "#4583FF33",
-                      "disableAnchor": true,
-                      "height": 20,
-                      "isBottom": false,
-                      "lineWidth": 1,
-                      "name": "rectangle",
-                      "width": 20
-                  }
-              ],
-              "width": 40
-          }
-          ],
-          props: {
-            custom: [
-              {
-                key: 'stripe',
-                label: '显示斑马纹',
-                type: 'bool',
-              },
-              {
-                key: 'stripeColor',
-                label: '斑马纹颜色',
-                type: 'color',
-              },
-              {
-                key: 'bordered',
-                label: '外边框',
-                type: 'bool',
-              },
-              {
-                key: 'hLine',
-                label: '水平线',
-                type: 'bool',
-              },
-              {
-                key: 'vLine',
-                label: '垂直线',
-                type: 'bool',
-              },
-              {
-                key: 'pagination',
-                label: '分页配置',
-                type: 'code',
-              },
-              {
-                key: 'data',
-                label: '数据',
-                type: 'code',
-              },
-              {
-                key: 'styles',
-                label: '样式',
-                type: 'code',
-              },
-            ],
-          }
-        },
-      },
+      // {
+      //   name: '多功能表格',
+      //   icon: 'l-biaoge',
+      //   data: {
+      //     name: 'tablePlus',
+      //     width: 0,
+      //     height: 0,
+      //     disableAnchor: true,
+      //     disableSize: true,
+      //     bordered:true,
+      //     hLine:true,
+      //     vLine:true,
+      //     colWidth: 180,
+      //     rowHeight: 30,
+      //     color: "#bdc7db",
+      //     stripe: true,
+      //     stripeColor: "#407FFF1F",
+      //     ellipsis: true,
+      //     whiteSpace: "break-all",
+      //     columns:[{
+      //       type: 'select',
+      //       dropdownList: [{text:'选项一'},{text:'选项二'},{text:'选项三'}]
+      //     },{
+      //       type: 'numeric'
+      //     },{
+      //       fnJs:`
+      //         if(data==='一级告警'){
+      //           return {
+      //             text:data,
+      //             textColor: '#FF5D3CFF',
+      //           }
+      //         }else if(data==='二级告警'){
+      //           return {
+      //             text:data,
+      //             textColor: '#E6A82EFF',
+      //           }
+      //         }else if(data==='三级告警'){
+      //           return {
+      //             text:data,
+      //             textColor: '#58CC84FF',
+      //           }
+      //         }
+      //       `
+      //     },
+      //     ,{
+      //       // fnJs:`
+      //       //   if(data==='一级告警'){
+      //       //     return {
+      //       //       text:data,
+      //       //       textColor: '#FF5D3CFF',
+      //       //     }
+      //       //   }else if(data==='二级告警'){
+      //       //     return {
+      //       //       text:data,
+      //       //       textColor: '#E6A82EFF',
+      //       //     }
+      //       //   }else if(data==='三级告警'){
+      //       //     return {
+      //       //       text:data,
+      //       //       textColor: '#58CC84FF',
+      //       //     }
+      //       //   }
+      //       // `
+      //     }],
+      //     data: [
+      //       [
+      //         "场景",
+      //         "图纸id",
+      //         "名称",
+      //         "操作"
+      //       ],
+      //       [
+      //         "智慧物联",
+      //         "01840e23-efb8-70d4-804b-9402de84d2d7",
+      //         "一级告警",
+      //        "1"
+      //       ],
+      //       [
+      //         "智慧园区",
+      //         "01871289-7110-708d-80f2-c654ea652d7e",
+      //         "一级告警",
+      //         "2"
+      //       ],
+      //       [
+      //         "智慧物联",
+      //         "01864ef5-f3b8-7046-8062-680466d5157b",
+      //         "二级告警",
+      //         "3"
+      //       ],
+      //       [
+      //         "无",
+      //         "018f94fe-12f4-7e6e-90c2-e7354270e7e1",
+      //         "三级告警",
+      //      ""
+      //       ],
+      //       [
+      //         "电力能源",
+      //         "01831702-3460-7028-808d-77e4cee1a1bd",
+      //         "二级告警",
+      //        ""
+      //       ],
+      //       [
+      //         "智慧物联",
+      //         "01840e82-bd40-70d4-804b-9402de84d2f1",
+      //         "三级告警",
+      //        ""
+      //       ]
+      //     ],
+      //     styles: [
+      //       {
+      //         "row": 0,
+      //         "textColor": "#ffffff66"
+      //       },{
+      //         "col": 3,
+      //         "pens": [
+      //             {
+      //                 "background": "#4583FF33",
+      //                 "disableAnchor": true,
+      //                 "height": 20,
+      //                 "isBottom": false,
+      //                 "lineWidth": 1,
+      //                 "name": "rectangle",
+      //                 "width": 20
+      //             }
+      //         ],
+      //         "width": 40
+      //     }
+      //     ],
+      //     props: {
+      //       custom: [
+      //         {
+      //           key: 'stripe',
+      //           label: '显示斑马纹',
+      //           type: 'bool',
+      //         },
+      //         {
+      //           key: 'stripeColor',
+      //           label: '斑马纹颜色',
+      //           type: 'color',
+      //         },
+      //         {
+      //           key: 'bordered',
+      //           label: '外边框',
+      //           type: 'bool',
+      //         },
+      //         {
+      //           key: 'hLine',
+      //           label: '水平线',
+      //           type: 'bool',
+      //         },
+      //         {
+      //           key: 'vLine',
+      //           label: '垂直线',
+      //           type: 'bool',
+      //         },
+      //         {
+      //           key: 'pagination',
+      //           label: '分页配置',
+      //           type: 'code',
+      //         },
+      //         {
+      //           key: 'data',
+      //           label: '数据',
+      //           type: 'code',
+      //         },
+      //         {
+      //           key: 'styles',
+      //           label: '样式',
+      //           type: 'code',
+      //         },
+      //       ],
+      //     }
+      //   },
+      // },
       {
       {
         name: '树',
         name: '树',
         icon: 'l-shu', //l-shu
         icon: 'l-shu', //l-shu