Prechádzať zdrojové kódy

feat:tablePlus配置

ananzhusen 8 mesiacov pred
rodič
commit
a3c8d325cf
1 zmenil súbory, kde vykonal 72 pridanie a 0 odobranie
  1. 72 0
      src/services/defaults.ts

+ 72 - 0
src/services/defaults.ts

@@ -1623,6 +1623,16 @@ export const formComponents = [
             look:true,
             text:true,
             custom: [
+              {
+                key: 'colWidth',
+                label: '列宽',
+                type: 'number',
+              },
+              {
+                key: 'rowHeight',
+                label: '行高',
+                type: 'number',
+              },
               {
                 key: 'rowHeaders',
                 label: '行头',
@@ -1761,6 +1771,16 @@ export const formComponents = [
           ],
           props: {
             custom: [
+              {
+                key: 'colWidth',
+                label: '列宽',
+                type: 'number',
+              },
+              {
+                key: 'rowHeight',
+                label: '行高',
+                type: 'number',
+              },
               {
                 key: 'stripe',
                 label: '显示斑马纹',
@@ -2048,6 +2068,26 @@ export const formComponents = [
         ],
           props: {
             custom: [
+              {
+                key: 'colWidth',
+                label: '列宽',
+                type: 'number',
+              },
+              {
+                key: 'rowHeight',
+                label: '行高',
+                type: 'number',
+              },
+              {
+                key: 'colWidth',
+                label: '列宽',
+                type: 'number',
+              },
+              {
+                key: 'rowHeight',
+                label: '行高',
+                type: 'number',
+              },
               {
                 key: 'colHeaders',
                 label: '有无表头',
@@ -2063,6 +2103,21 @@ export const formComponents = [
                 label: '最大展示数',
                 type: 'number',
               },
+              {
+                key: 'bordered',
+                label: '外边框',
+                type: 'bool',
+              },
+              {
+                key: 'hLine',
+                label: '水平线',
+                type: 'bool',
+              },
+              {
+                key: 'vLine',
+                label: '垂直线',
+                type: 'bool',
+              },
               {
                 key:'columns',
                 label: '列配置',
@@ -2101,6 +2156,8 @@ export const formComponents = [
           stripeColor: "#407FFF1F",
           ellipsis: true,
           whiteSpace: "break-all",
+          maxNum:11,
+          colHeaders:true,
           pagination: {
             current: 1,
             maxPageBtn: 5,
@@ -2262,6 +2319,16 @@ export const formComponents = [
           ],
           props: {
             custom: [
+              {
+                key: 'colWidth',
+                label: '列宽',
+                type: 'number',
+              },
+              {
+                key: 'rowHeight',
+                label: '行高',
+                type: 'number',
+              },
               {
                 key: 'stripe',
                 label: '显示斑马纹',
@@ -2297,6 +2364,11 @@ export const formComponents = [
                 label: '列配置',
                 type: 'code',
               },
+              {
+                key:'maxNum',
+                label: '最大展示数量',
+                type: 'number',
+              },
               {
                 key: 'data',
                 label: '数据',