From 44d7223f44ed850d63444d2693af16b9d353724e Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Fri, 3 Jan 2025 11:40:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A1=A8=E5=A4=B4?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E8=87=AA=E5=AE=9A=E4=B9=89=20icon=20?= =?UTF-8?q?=E6=97=B6,=20=E6=96=87=E6=9C=AC=E6=8D=A2=E8=A1=8C=E9=AB=98?= =?UTF-8?q?=E5=BA=A6=E8=87=AA=E9=80=82=E5=BA=94=E4=B8=8D=E5=87=86=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../multi-line-text-spec.ts.snap | 16258 +++++++++------- .../spreadsheet/multi-line-text-spec.ts | 76 + packages/s2-core/src/cell/header-cell.ts | 6 +- packages/s2-core/src/facet/base-facet.ts | 3 + packages/s2-react/playground/config.tsx | 15 + packages/s2-react/playground/index.tsx | 4 + 6 files changed, 9259 insertions(+), 7103 deletions(-) diff --git a/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap b/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap index 7376c72761..56b4947d47 100644 --- a/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap +++ b/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap @@ -4874,13 +4874,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 1`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should calculate correctly max text width for default sort header action icons 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 80, "multiLineActualTexts": Array [ "序号", ], @@ -4891,50 +4891,53 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 80, "multiLineActualTexts": Array [ "省份", ], "originalText": "省份", - "width": 96, + "width": 102.57, }, Object { - "actualText": "城市城市城...", - "actualTextHeight": 16, - "actualTextWidth": 71, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 80, "multiLineActualTexts": Array [ - "城市城市城...", + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 96, + "width": 102.57, }, Object { "actualText": "类别类别类别类别类别类别类别类别类别类别", "actualTextHeight": 16, "actualTextWidth": 241, - "height": 30, + "height": 96, "multiLineActualTexts": Array [ "类别类别类别类别类别类别类别类别类别类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 272, + "width": 285.14, }, Object { "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 30, + "height": 96, "multiLineActualTexts": Array [ "子类别", ], "originalText": "子类别", - "width": 272, + "width": 285.14, }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 2`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should calculate correctly max text width for default sort header action icons 2`] = ` Array [ Object { "actualText": "1", @@ -4951,7 +4954,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 96, "multiLineActualTexts": Array [ "2", ], @@ -4972,204 +4975,422 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 3`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should calculate correctly max text width for default sort header action icons 3`] = ` Array [ Object { "actualText": "家具", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 96, "multiLineActualTexts": Array [ "家具", ], "originalText": "家具", - "width": 192, + "width": 205.14, }, Object { "actualText": "桌子", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 96, "multiLineActualTexts": Array [ "桌子", ], "originalText": "桌子", - "width": 96, + "width": 102.57, }, Object { - "actualText": "数量数量数...", - "actualTextHeight": 15, - "actualTextWidth": 71, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 80, "multiLineActualTexts": Array [ - "数量数量数...", + "数量数量数量", + "数量数量数量", + "数量数量数量", + "数量数量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 96, + "width": 102.57, }, Object { "actualText": "沙发", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 96, "multiLineActualTexts": Array [ "沙发", ], "originalText": "沙发", - "width": 96, + "width": 102.57, }, Object { - "actualText": "数量数量数...", - "actualTextHeight": 15, - "actualTextWidth": 71, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 80, "multiLineActualTexts": Array [ - "数量数量数...", + "数量数量数量", + "数量数量数量", + "数量数量数量", + "数量数量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 96, + "width": 102.57, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 4`] = ` -Array [ Object { - "actualText": "浙江省", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 120, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 64, + "actualTextWidth": 340, + "height": 96, "multiLineActualTexts": Array [ - "浙江省", + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", ], - "originalText": "浙江省", - "width": 96, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 102.57, }, Object { - "actualText": "浙江省浙江...", - "actualTextHeight": 16, - "actualTextWidth": 71, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 80, + "actualTextWidth": 365, + "height": 96, "multiLineActualTexts": Array [ - "浙江省浙江...", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 96, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 102.57, }, Object { - "actualText": "四川省", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 120, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 80, "multiLineActualTexts": Array [ - "四川省", + "数量数量数量", + "数量数量数量", + "数量数量数量", + "数量数量", ], - "originalText": "四川省", - "width": 96, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 5`] = ` -Array [ Object { - "actualText": "2367236723...", - "actualTextHeight": 15, - "actualTextWidth": 77, - "height": 30, + "actualText": "办公用品", + "actualTextHeight": 16, + "actualTextWidth": 49, + "height": 96, "multiLineActualTexts": Array [ - "2367236723...", + "办公用品", ], - "originalText": 236723672361111, - "width": 96, + "originalText": "办公用品", + "width": 205.14, }, Object { - "actualText": "3877", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "笔", + "actualTextHeight": 16, + "actualTextWidth": 13, + "height": 96, "multiLineActualTexts": Array [ - "3877", + "笔", ], - "originalText": 3877, - "width": 96, + "originalText": "笔", + "width": 102.57, }, Object { - "actualText": "4342", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 80, "multiLineActualTexts": Array [ - "4342", + "数量数量数量", + "数量数量数量", + "数量数量数量", + "数量数量", ], - "originalText": 4342, - "width": 96, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualText": "纸张", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 96, "multiLineActualTexts": Array [ - "-", + "纸张", ], - "originalText": "-", - "width": 96, + "originalText": "纸张", + "width": 102.57, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 80, "multiLineActualTexts": Array [ - "-", + "数量数量数量", + "数量数量数量", + "数量数量数量", + "数量数量", ], - "originalText": "-", - "width": 96, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should calculate correctly max text width for default sort header action icons 4`] = ` +Array [ Object { - "actualText": "1723", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "浙江省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, "multiLineActualTexts": Array [ - "1723", + "浙江省", ], - "originalText": 1723, - "width": 96, + "originalText": "浙江省", + "width": 102.57, }, Object { - "actualText": "1822", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "1822", + "绍兴市", ], - "originalText": 1822, - "width": 96, + "originalText": "绍兴市", + "width": 102.57, }, Object { - "actualText": "1943", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "1943", + "宁波市", ], - "originalText": 1943, - "width": 96, + "originalText": "宁波市", + "width": 102.57, }, Object { - "actualText": "2330", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 102.57, + }, + Object { + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "杭州市", + ], + "originalText": "杭州市", + "width": 102.57, + }, + Object { + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 80, + "actualTextWidth": 365, + "height": 96, + "multiLineActualTexts": Array [ + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 102.57, + }, + Object { + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 96, + "multiLineActualTexts": Array [ + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市杭", + "州市", + ], + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 102.57, + }, + Object { + "actualText": "四川省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, + "multiLineActualTexts": Array [ + "四川省", + ], + "originalText": "四川省", + "width": 102.57, + }, + Object { + "actualText": "成都市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "成都市", + ], + "originalText": "成都市", + "width": 102.57, + }, + Object { + "actualText": "绵阳市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "绵阳市", + ], + "originalText": "绵阳市", + "width": 102.57, + }, + Object { + "actualText": "南充市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "南充市", + ], + "originalText": "南充市", + "width": 102.57, + }, + Object { + "actualText": "乐山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "乐山市", + ], + "originalText": "乐山市", + "width": 102.57, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should calculate correctly max text width for default sort header action icons 5`] = ` +Array [ + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 30, + "multiLineActualTexts": Array [ + "2367236723611", + "11", + ], + "originalText": 236723672361111, + "width": 102.57, + }, + Object { + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "3877", + ], + "originalText": 3877, + "width": 102.57, + }, + Object { + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4342", + ], + "originalText": 4342, + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 96, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "1723", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1723", + ], + "originalText": 1723, + "width": 102.57, + }, + Object { + "actualText": "1822", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1822", + ], + "originalText": 1822, + "width": 102.57, + }, + Object { + "actualText": "1943", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1943", + ], + "originalText": 1943, + "width": 102.57, + }, + Object { + "actualText": "2330", + "actualTextHeight": 15, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ "2330", ], "originalText": 2330, - "width": 96, + "width": 102.57, }, Object { "actualText": "632", @@ -5180,7 +5401,7 @@ Array [ "632", ], "originalText": 632, - "width": 96, + "width": 102.57, }, Object { "actualText": "7234", @@ -5191,7 +5412,7 @@ Array [ "7234", ], "originalText": 7234, - "width": 96, + "width": 102.57, }, Object { "actualText": "834", @@ -5202,7 +5423,7 @@ Array [ "834", ], "originalText": 834, - "width": 96, + "width": 102.57, }, Object { "actualText": "5343", @@ -5213,18 +5434,18 @@ Array [ "5343", ], "originalText": 5343, - "width": 96, + "width": 102.57, }, Object { "actualText": "-", "actualTextHeight": 15, "actualTextWidth": 4, - "height": 30, + "height": 96, "multiLineActualTexts": Array [ "-", ], "originalText": "-", - "width": 96, + "width": 102.57, }, Object { "actualText": "2451", @@ -5235,7 +5456,7 @@ Array [ "2451", ], "originalText": 2451, - "width": 96, + "width": 102.57, }, Object { "actualText": "2244", @@ -5246,7 +5467,7 @@ Array [ "2244", ], "originalText": 2244, - "width": 96, + "width": 102.57, }, Object { "actualText": "2333", @@ -5257,7 +5478,7 @@ Array [ "2333", ], "originalText": 2333, - "width": 96, + "width": 102.57, }, Object { "actualText": "2445", @@ -5268,681 +5489,2589 @@ Array [ "2445", ], "originalText": 2445, - "width": 96, + "width": 102.57, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 20, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "-", ], - "originalText": "序号", - "width": 80, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "province", - "actualTextHeight": 16, - "actualTextWidth": 51, - "height": 20, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "province", + "-", ], - "originalText": "province", - "width": 119.66, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "city", - "actualTextHeight": 16, - "actualTextWidth": 21, - "height": 20, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "city", + "-", ], - "originalText": "city", - "width": 119.66, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "type", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 20, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "type", + "-", ], - "originalText": "type", - "width": 319.32, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "sub_type", - "actualTextHeight": 16, - "actualTextWidth": 53, - "height": 20, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 96, "multiLineActualTexts": Array [ - "sub_type", + "778977897789", + "778977897789", + "7789", ], - "originalText": "sub_type", - "width": 319.32, + "originalText": "7789778977897789778977897789", + "width": 102.57, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 120, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "1", + "-", ], - "originalText": "1", - "width": 80, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "2", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 120, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "2", + "-", ], - "originalText": "2", - "width": 80, + "originalText": "-", + "width": 102.57, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 3`] = ` -Array [ Object { - "actualText": "家具", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 20, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "-", ], - "originalText": "家具", - "width": 239.34, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "桌子", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 20, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "-", ], - "originalText": "桌子", - "width": 119.67, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "number", + "actualText": "1304", "actualTextHeight": 15, - "actualTextWidth": 41, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "number", + "1304", ], - "originalText": "number", - "width": 119.67, + "originalText": 1304, + "width": 102.57, }, Object { - "actualText": "沙发", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 20, + "actualText": "1145", + "actualTextHeight": 15, + "actualTextWidth": 26, + "height": 30, "multiLineActualTexts": Array [ - "沙发", + "1145", ], - "originalText": "沙发", - "width": 119.67, + "originalText": 1145, + "width": 102.57, }, Object { - "actualText": "number", + "actualText": "1432", "actualTextHeight": 15, - "actualTextWidth": 41, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "number", + "1432", ], - "originalText": "number", - "width": 119.67, + "originalText": 1432, + "width": 102.57, }, Object { - "actualText": "办公用品", - "actualTextHeight": 16, - "actualTextWidth": 49, - "height": 20, + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "945", ], - "originalText": "办公用品", - "width": 239.34, + "originalText": 945, + "width": 102.57, }, Object { - "actualText": "笔", - "actualTextHeight": 16, - "actualTextWidth": 13, - "height": 20, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 96, "multiLineActualTexts": Array [ - "笔", + "-", ], - "originalText": "笔", - "width": 119.67, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "number", + "actualText": "2335", "actualTextHeight": 15, - "actualTextWidth": 41, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "number", + "2335", ], - "originalText": "number", - "width": 119.67, + "originalText": 2335, + "width": 102.57, }, Object { - "actualText": "纸张", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 20, + "actualText": "245", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "245", ], - "originalText": "纸张", - "width": 119.67, + "originalText": 245, + "width": 102.57, }, Object { - "actualText": "number", + "actualText": "2457", "actualTextHeight": 15, - "actualTextWidth": 41, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "number", + "2457", ], - "originalText": "number", - "width": 119.67, + "originalText": 2457, + "width": 102.57, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 4`] = ` -Array [ Object { - "actualText": "浙江省", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 120, + "actualText": "2458", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "2458", ], - "originalText": "浙江省", - "width": 119.66, + "originalText": 2458, + "width": 102.57, }, Object { - "actualText": "宁波市", + "actualText": "1354", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "1354", ], - "originalText": "宁波市", - "width": 119.66, + "originalText": 1354, + "width": 102.57, }, Object { - "actualText": "舟山市", + "actualText": "1523", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "1523", ], - "originalText": "舟山市", - "width": 119.66, + "originalText": 1523, + "width": 102.57, }, Object { - "actualText": "杭州市", + "actualText": "1634", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "1634", ], - "originalText": "杭州市", - "width": 119.66, + "originalText": 1634, + "width": 102.57, }, Object { - "actualText": "绍兴市", + "actualText": "1343", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "1343", ], - "originalText": "绍兴市", - "width": 119.66, + "originalText": 1343, + "width": 102.57, }, Object { - "actualText": "四川省", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 120, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 96, "multiLineActualTexts": Array [ - "四川省", + "-", ], - "originalText": "四川省", - "width": 119.66, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "成都市", + "actualText": "4004", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "成都市", + "4004", ], - "originalText": "成都市", - "width": 119.66, + "originalText": 4004, + "width": 102.57, }, Object { - "actualText": "绵阳市", + "actualText": "3077", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "绵阳市", + "3077", ], - "originalText": "绵阳市", - "width": 119.66, + "originalText": 3077, + "width": 102.57, }, Object { - "actualText": "南充市", + "actualText": "3551", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "南充市", + "3551", ], - "originalText": "南充市", - "width": 119.66, + "originalText": 3551, + "width": 102.57, }, Object { - "actualText": "乐山市", + "actualText": "352", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "乐山市", + "352", ], - "originalText": "乐山市", - "width": 119.66, + "originalText": 352, + "width": 102.57, }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 5`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should calculate correctly max text width for default sort header action icons and valuesInCols=false 1`] = ` Array [ Object { - "actualText": "3877", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 112, "multiLineActualTexts": Array [ - "3877", + "序号", ], - "originalText": 3877, - "width": 119.67, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "4342", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 112, "multiLineActualTexts": Array [ - "4342", + "省份", ], - "originalText": 4342, - "width": 119.67, + "originalText": "省份", + "width": 96, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 112, "multiLineActualTexts": Array [ - "-", + "城市城市城市", + "城市城市城市", + "城市城市城市", + "城市城市城市", ], - "originalText": "-", - "width": 119.67, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 96, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualText": "数值", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 112, "multiLineActualTexts": Array [ - "-", + "数值", ], - "originalText": "-", - "width": 119.67, + "originalText": "数值", + "width": 96, }, Object { - "actualText": "1723", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 16, + "actualTextWidth": 241, + "height": 112, "multiLineActualTexts": Array [ - "1723", + "类别类别类别类别类别类别类别类别类别类别", ], - "originalText": 1723, - "width": 119.67, + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 368, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should calculate correctly max text width for default sort header action icons and valuesInCols=false 2`] = ` +Array [ Object { - "actualText": "1822", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 7, + "height": 364, "multiLineActualTexts": Array [ - "1822", + "1", ], - "originalText": 1822, - "width": 119.67, + "originalText": "1", + "width": 80, }, Object { - "actualText": "1943", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 7, + "height": 112, "multiLineActualTexts": Array [ - "1943", + "2", ], - "originalText": 1943, - "width": 119.67, + "originalText": "2", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should calculate correctly max text width for default sort header action icons and valuesInCols=false 3`] = ` +Array [ Object { - "actualText": "2330", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "家具", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 112, "multiLineActualTexts": Array [ - "2330", + "家具", ], - "originalText": 2330, - "width": 119.67, + "originalText": "家具", + "width": 192, }, Object { - "actualText": "7234", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 25, + "height": 112, "multiLineActualTexts": Array [ - "7234", + "桌子", ], - "originalText": 7234, - "width": 119.67, + "originalText": "桌子", + "width": 96, }, Object { - "actualText": "834", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualTextWidth": 25, + "height": 112, "multiLineActualTexts": Array [ - "834", + "沙发", ], - "originalText": 834, - "width": 119.67, + "originalText": "沙发", + "width": 96, }, Object { - "actualText": "5343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 80, + "actualTextWidth": 341, + "height": 112, "multiLineActualTexts": Array [ - "5343", + "家具家具家具", + "家具家具家具", + "家具家具家具", + "家具家具家具", + "家具家具", ], - "originalText": 5343, - "width": 119.67, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 96, }, Object { - "actualText": "632", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 112, "multiLineActualTexts": Array [ - "632", + "桌子桌子桌子", + "桌子桌子桌子", + "桌子桌子桌子", + "桌子桌子桌子", + "桌子桌子桌子", ], - "originalText": 632, - "width": 119.67, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 96, }, Object { - "actualText": "2451", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "办公用品", + "actualTextHeight": 16, + "actualTextWidth": 49, + "height": 112, "multiLineActualTexts": Array [ - "2451", + "办公用品", ], - "originalText": 2451, - "width": 119.67, - }, + "originalText": "办公用品", + "width": 192, + }, Object { - "actualText": "2244", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 13, + "height": 112, "multiLineActualTexts": Array [ - "2244", + "笔", ], - "originalText": 2244, - "width": 119.67, + "originalText": "笔", + "width": 96, }, Object { - "actualText": "2333", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 25, + "height": 112, "multiLineActualTexts": Array [ - "2333", + "纸张", ], - "originalText": 2333, - "width": 119.67, + "originalText": "纸张", + "width": 96, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should calculate correctly max text width for default sort header action icons and valuesInCols=false 4`] = ` +Array [ Object { - "actualText": "2445", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "浙江省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 364, "multiLineActualTexts": Array [ - "2445", + "浙江省", ], - "originalText": 2445, - "width": 119.67, + "originalText": "浙江省", + "width": 96, }, Object { - "actualText": "1145", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 30, + "actualTextWidth": 37, + "height": 91, "multiLineActualTexts": Array [ - "1145", + "绍兴市", ], - "originalText": 1145, - "width": 119.67, + "originalText": "绍兴市", + "width": 96, }, Object { - "actualText": "1432", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 75, + "actualTextWidth": 269, + "height": 91, "multiLineActualTexts": Array [ - "1432", + "数量数量数", + "量数量数量", + "数量数量数", + "量数量数量", + "数量", ], - "originalText": 1432, - "width": 119.67, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 96, }, Object { - "actualText": "945", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualTextWidth": 37, + "height": 91, "multiLineActualTexts": Array [ - "945", + "宁波市", ], - "originalText": 945, - "width": 119.67, + "originalText": "宁波市", + "width": 96, }, Object { - "actualText": "1304", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 75, + "actualTextWidth": 269, + "height": 91, "multiLineActualTexts": Array [ - "1304", + "数量数量数", + "量数量数量", + "数量数量数", + "量数量数量", + "数量", ], - "originalText": 1304, - "width": 119.67, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 96, }, Object { - "actualText": "2335", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 91, "multiLineActualTexts": Array [ - "2335", + "舟山市", ], - "originalText": 2335, - "width": 119.67, + "originalText": "舟山市", + "width": 96, }, Object { - "actualText": "245", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 75, + "actualTextWidth": 269, + "height": 91, "multiLineActualTexts": Array [ - "245", + "数量数量数", + "量数量数量", + "数量数量数", + "量数量数量", + "数量", ], - "originalText": 245, - "width": 119.67, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 96, }, Object { - "actualText": "2457", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 91, "multiLineActualTexts": Array [ - "2457", + "杭州市", ], - "originalText": 2457, - "width": 119.67, + "originalText": "杭州市", + "width": 96, }, Object { - "actualText": "2458", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 75, + "actualTextWidth": 269, + "height": 91, "multiLineActualTexts": Array [ - "2458", + "数量数量数", + "量数量数量", + "数量数量数", + "量数量数量", + "数量", ], - "originalText": 2458, - "width": 119.67, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 96, }, Object { - "actualText": "1523", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 80, + "actualTextWidth": 365, + "height": 112, "multiLineActualTexts": Array [ - "1523", + "浙江省浙江省", + "浙江省浙江省", + "浙江省浙江省", + "浙江省浙江省", + "浙江省浙江省", ], - "originalText": 1523, - "width": 119.67, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 96, }, Object { - "actualText": "1634", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 112, "multiLineActualTexts": Array [ - "1634", + "杭州市杭州市", + "杭州市杭州市", + "杭州市杭州市", + "杭州市杭州市", + "杭州市杭州市", ], - "originalText": 1634, - "width": 119.67, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 96, }, Object { - "actualText": "1343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 75, + "actualTextWidth": 269, + "height": 112, "multiLineActualTexts": Array [ - "1343", + "数量数量数", + "量数量数量", + "数量数量数", + "量数量数量", + "数量", ], - "originalText": 1343, - "width": 119.67, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 96, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should calculate correctly max text width for default sort header action icons and valuesInCols=false 5`] = ` +Array [ Object { - "actualText": "1354", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 99, + "height": 91, "multiLineActualTexts": Array [ - "1354", + "23672367236", + "1111", ], - "originalText": 1354, - "width": 119.67, + "originalText": 236723672361111, + "width": 96, }, Object { - "actualText": "4004", + "actualText": "3877", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 91, "multiLineActualTexts": Array [ - "4004", + "3877", ], - "originalText": 4004, - "width": 119.67, + "originalText": 3877, + "width": 96, }, Object { - "actualText": "3077", + "actualText": "4342", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 91, "multiLineActualTexts": Array [ - "3077", + "4342", ], - "originalText": 3077, - "width": 119.67, + "originalText": 4342, + "width": 96, }, Object { - "actualText": "3551", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 4, + "height": 91, "multiLineActualTexts": Array [ - "3551", + "-", ], - "originalText": 3551, - "width": 119.67, + "originalText": "-", + "width": 96, }, Object { - "actualText": "352", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualTextWidth": 4, + "height": 112, "multiLineActualTexts": Array [ - "352", + "-", ], - "originalText": 352, - "width": 119.67, + "originalText": "-", + "width": 96, + }, + Object { + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 91, + "multiLineActualTexts": Array [ + "632", + ], + "originalText": 632, + "width": 96, + }, + Object { + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 91, + "multiLineActualTexts": Array [ + "7234", + ], + "originalText": 7234, + "width": 96, + }, + Object { + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 91, + "multiLineActualTexts": Array [ + "834", + ], + "originalText": 834, + "width": 96, + }, + Object { + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 91, + "multiLineActualTexts": Array [ + "5343", + ], + "originalText": 5343, + "width": 96, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 112, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 96, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 91, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 96, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 91, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 96, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 91, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 96, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 91, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 96, + }, + Object { + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 112, + "multiLineActualTexts": Array [ + "77897789778", + "97789778977", + "897789", + ], + "originalText": "7789778977897789778977897789", + "width": 96, + }, + Object { + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 91, + "multiLineActualTexts": Array [ + "1304", + ], + "originalText": 1304, + "width": 96, + }, + Object { + "actualText": "1145", + "actualTextHeight": 15, + "actualTextWidth": 26, + "height": 91, + "multiLineActualTexts": Array [ + "1145", + ], + "originalText": 1145, + "width": 96, + }, + Object { + "actualText": "1432", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 91, + "multiLineActualTexts": Array [ + "1432", + ], + "originalText": 1432, + "width": 96, + }, + Object { + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 91, + "multiLineActualTexts": Array [ + "945", + ], + "originalText": 945, + "width": 96, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 112, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 96, + }, + Object { + "actualText": "1354", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 91, + "multiLineActualTexts": Array [ + "1354", + ], + "originalText": 1354, + "width": 96, + }, + Object { + "actualText": "1523", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 91, + "multiLineActualTexts": Array [ + "1523", + ], + "originalText": 1523, + "width": 96, + }, + Object { + "actualText": "1634", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 91, + "multiLineActualTexts": Array [ + "1634", + ], + "originalText": 1634, + "width": 96, + }, + Object { + "actualText": "1343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 91, + "multiLineActualTexts": Array [ + "1343", + ], + "originalText": 1343, + "width": 96, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 112, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 96, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should calculate correctly max text width for headerActionIcons 1`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 144, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, + Object { + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 144, + "multiLineActualTexts": Array [ + "省份", + ], + "originalText": "省份", + "width": 102.57, + }, + Object { + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 128, + "actualTextWidth": 296, + "height": 144, + "multiLineActualTexts": Array [ + "城市城", + "市城市", + "城市城", + "市城市", + "城市城", + "市城市", + "城市城", + "市城市", + ], + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 102.57, + }, + Object { + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 32, + "actualTextWidth": 242, + "height": 176, + "multiLineActualTexts": Array [ + "类别类别类别类别类别类别类别类别类别", + "类别", + ], + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 285.14, + }, + Object { + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 176, + "multiLineActualTexts": Array [ + "子类别", + ], + "originalText": "子类别", + "width": 285.14, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should calculate correctly max text width for headerActionIcons 2`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 120, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": "1", + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should calculate correctly max text width for headerActionIcons 3`] = ` +Array [ + Object { + "actualText": "家具", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 176, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 205.14, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 176, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 102.57, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 120, + "actualTextWidth": 272, + "height": 144, + "multiLineActualTexts": Array [ + "数量数", + "量数量", + "数量数", + "量数量", + "数量数", + "量数量", + "数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 176, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 102.57, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 120, + "actualTextWidth": 272, + "height": 144, + "multiLineActualTexts": Array [ + "数量数", + "量数量", + "数量数", + "量数量", + "数量数", + "量数量", + "数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, + }, + Object { + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 160, + "actualTextWidth": 346, + "height": 176, + "multiLineActualTexts": Array [ + "家具家", + "具家具", + "家具家", + "具家具", + "家具家", + "具家具", + "家具家", + "具家具", + "家具家", + "具", + ], + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 102.57, + }, + Object { + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 160, + "actualTextWidth": 370, + "height": 176, + "multiLineActualTexts": Array [ + "桌子桌", + "子桌子", + "桌子桌", + "子桌子", + "桌子桌", + "子桌子", + "桌子桌", + "子桌子", + "桌子桌", + "子桌子", + ], + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 102.57, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 120, + "actualTextWidth": 272, + "height": 144, + "multiLineActualTexts": Array [ + "数量数", + "量数量", + "数量数", + "量数量", + "数量数", + "量数量", + "数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 16, + "actualTextWidth": 49, + "height": 176, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 205.14, + }, + Object { + "actualText": "笔", + "actualTextHeight": 16, + "actualTextWidth": 13, + "height": 176, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", + "width": 102.57, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 120, + "actualTextWidth": 272, + "height": 144, + "multiLineActualTexts": Array [ + "数量数", + "量数量", + "数量数", + "量数量", + "数量数", + "量数量", + "数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, + }, + Object { + "actualText": "纸张", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 176, + "multiLineActualTexts": Array [ + "纸张", + ], + "originalText": "纸张", + "width": 102.57, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 120, + "actualTextWidth": 272, + "height": 144, + "multiLineActualTexts": Array [ + "数量数", + "量数量", + "数量数", + "量数量", + "数量数", + "量数量", + "数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should calculate correctly max text width for headerActionIcons 4`] = ` +Array [ + Object { + "actualText": "浙江省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 102.57, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 102.57, + }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 102.57, + }, + Object { + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 102.57, + }, + Object { + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "杭州市", + ], + "originalText": "杭州市", + "width": 102.57, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should calculate correctly max text width for headerActionIcons 5`] = ` +Array [ + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 30, + "multiLineActualTexts": Array [ + "2367236723611", + "11", + ], + "originalText": 236723672361111, + "width": 102.57, + }, + Object { + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "3877", + ], + "originalText": 3877, + "width": 102.57, + }, + Object { + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4342", + ], + "originalText": 4342, + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "632", + ], + "originalText": 632, + "width": 102.57, + }, + Object { + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "7234", + ], + "originalText": 7234, + "width": 102.57, + }, + Object { + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "834", + ], + "originalText": 834, + "width": 102.57, + }, + Object { + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "5343", + ], + "originalText": 5343, + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1304", + ], + "originalText": 1304, + "width": 102.57, + }, + Object { + "actualText": "1145", + "actualTextHeight": 15, + "actualTextWidth": 26, + "height": 30, + "multiLineActualTexts": Array [ + "1145", + ], + "originalText": 1145, + "width": 102.57, + }, + Object { + "actualText": "1432", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1432", + ], + "originalText": 1432, + "width": 102.57, + }, + Object { + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "945", + ], + "originalText": 945, + "width": 102.57, + }, + Object { + "actualText": "1354", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1354", + ], + "originalText": 1354, + "width": 102.57, + }, + Object { + "actualText": "1523", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1523", + ], + "originalText": 1523, + "width": 102.57, + }, + Object { + "actualText": "1634", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1634", + ], + "originalText": 1634, + "width": 102.57, + }, + Object { + "actualText": "1343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1343", + ], + "originalText": 1343, + "width": 102.57, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 1`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, + Object { + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "省份", + ], + "originalText": "省份", + "width": 96, + }, + Object { + "actualText": "城市城市城...", + "actualTextHeight": 16, + "actualTextWidth": 71, + "height": 30, + "multiLineActualTexts": Array [ + "城市城市城...", + ], + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 96, + }, + Object { + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 16, + "actualTextWidth": 241, + "height": 30, + "multiLineActualTexts": Array [ + "类别类别类别类别类别类别类别类别类别类别", + ], + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 272, + }, + Object { + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "子类别", + ], + "originalText": "子类别", + "width": 272, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 2`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 120, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": "1", + "width": 80, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": "2", + "width": 80, + }, + Object { + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 120, + "multiLineActualTexts": Array [ + "3", + ], + "originalText": "3", + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 3`] = ` +Array [ + Object { + "actualText": "家具", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 192, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 96, + }, + Object { + "actualText": "数量数量数...", + "actualTextHeight": 15, + "actualTextWidth": 71, + "height": 30, + "multiLineActualTexts": Array [ + "数量数量数...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 96, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 96, + }, + Object { + "actualText": "数量数量数...", + "actualTextHeight": 15, + "actualTextWidth": 71, + "height": 30, + "multiLineActualTexts": Array [ + "数量数量数...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 96, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 4`] = ` +Array [ + Object { + "actualText": "浙江省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 96, + }, + Object { + "actualText": "浙江省浙江...", + "actualTextHeight": 16, + "actualTextWidth": 71, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省浙江...", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 96, + }, + Object { + "actualText": "四川省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, + "multiLineActualTexts": Array [ + "四川省", + ], + "originalText": "四川省", + "width": 96, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 5`] = ` +Array [ + Object { + "actualText": "2367236723...", + "actualTextHeight": 15, + "actualTextWidth": 77, + "height": 30, + "multiLineActualTexts": Array [ + "2367236723...", + ], + "originalText": 236723672361111, + "width": 96, + }, + Object { + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "3877", + ], + "originalText": 3877, + "width": 96, + }, + Object { + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4342", + ], + "originalText": 4342, + "width": 96, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 96, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 96, + }, + Object { + "actualText": "1723", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1723", + ], + "originalText": 1723, + "width": 96, + }, + Object { + "actualText": "1822", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1822", + ], + "originalText": 1822, + "width": 96, + }, + Object { + "actualText": "1943", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1943", + ], + "originalText": 1943, + "width": 96, + }, + Object { + "actualText": "2330", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2330", + ], + "originalText": 2330, + "width": 96, + }, + Object { + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "632", + ], + "originalText": 632, + "width": 96, + }, + Object { + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "7234", + ], + "originalText": 7234, + "width": 96, + }, + Object { + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "834", + ], + "originalText": 834, + "width": 96, + }, + Object { + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "5343", + ], + "originalText": 5343, + "width": 96, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 96, + }, + Object { + "actualText": "2451", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2451", + ], + "originalText": 2451, + "width": 96, + }, + Object { + "actualText": "2244", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2244", + ], + "originalText": 2244, + "width": 96, + }, + Object { + "actualText": "2333", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2333", + ], + "originalText": 2333, + "width": 96, + }, + Object { + "actualText": "2445", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2445", + ], + "originalText": 2445, + "width": 96, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 1`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 20, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, + Object { + "actualText": "province", + "actualTextHeight": 16, + "actualTextWidth": 51, + "height": 20, + "multiLineActualTexts": Array [ + "province", + ], + "originalText": "province", + "width": 119.66, + }, + Object { + "actualText": "city", + "actualTextHeight": 16, + "actualTextWidth": 21, + "height": 20, + "multiLineActualTexts": Array [ + "city", + ], + "originalText": "city", + "width": 119.66, + }, + Object { + "actualText": "type", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 20, + "multiLineActualTexts": Array [ + "type", + ], + "originalText": "type", + "width": 319.32, + }, + Object { + "actualText": "sub_type", + "actualTextHeight": 16, + "actualTextWidth": 53, + "height": 20, + "multiLineActualTexts": Array [ + "sub_type", + ], + "originalText": "sub_type", + "width": 319.32, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 2`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 120, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": "1", + "width": 80, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 120, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": "2", + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 3`] = ` +Array [ + Object { + "actualText": "家具", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 20, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 239.34, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 20, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 119.67, + }, + Object { + "actualText": "number", + "actualTextHeight": 15, + "actualTextWidth": 41, + "height": 20, + "multiLineActualTexts": Array [ + "number", + ], + "originalText": "number", + "width": 119.67, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 20, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 119.67, + }, + Object { + "actualText": "number", + "actualTextHeight": 15, + "actualTextWidth": 41, + "height": 20, + "multiLineActualTexts": Array [ + "number", + ], + "originalText": "number", + "width": 119.67, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 16, + "actualTextWidth": 49, + "height": 20, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 239.34, + }, + Object { + "actualText": "笔", + "actualTextHeight": 16, + "actualTextWidth": 13, + "height": 20, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", + "width": 119.67, + }, + Object { + "actualText": "number", + "actualTextHeight": 15, + "actualTextWidth": 41, + "height": 20, + "multiLineActualTexts": Array [ + "number", + ], + "originalText": "number", + "width": 119.67, + }, + Object { + "actualText": "纸张", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 20, + "multiLineActualTexts": Array [ + "纸张", + ], + "originalText": "纸张", + "width": 119.67, + }, + Object { + "actualText": "number", + "actualTextHeight": 15, + "actualTextWidth": 41, + "height": 20, + "multiLineActualTexts": Array [ + "number", + ], + "originalText": "number", + "width": 119.67, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 4`] = ` +Array [ + Object { + "actualText": "浙江省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 119.66, + }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 119.66, + }, + Object { + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 119.66, + }, + Object { + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "杭州市", + ], + "originalText": "杭州市", + "width": 119.66, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 119.66, + }, + Object { + "actualText": "四川省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, + "multiLineActualTexts": Array [ + "四川省", + ], + "originalText": "四川省", + "width": 119.66, + }, + Object { + "actualText": "成都市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "成都市", + ], + "originalText": "成都市", + "width": 119.66, + }, + Object { + "actualText": "绵阳市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "绵阳市", + ], + "originalText": "绵阳市", + "width": 119.66, + }, + Object { + "actualText": "南充市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "南充市", + ], + "originalText": "南充市", + "width": 119.66, + }, + Object { + "actualText": "乐山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "乐山市", + ], + "originalText": "乐山市", + "width": 119.66, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 5`] = ` +Array [ + Object { + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "3877", + ], + "originalText": 3877, + "width": 119.67, + }, + Object { + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4342", + ], + "originalText": 4342, + "width": 119.67, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 119.67, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 119.67, + }, + Object { + "actualText": "1723", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1723", + ], + "originalText": 1723, + "width": 119.67, + }, + Object { + "actualText": "1822", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1822", + ], + "originalText": 1822, + "width": 119.67, + }, + Object { + "actualText": "1943", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1943", + ], + "originalText": 1943, + "width": 119.67, + }, + Object { + "actualText": "2330", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2330", + ], + "originalText": 2330, + "width": 119.67, + }, + Object { + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "7234", + ], + "originalText": 7234, + "width": 119.67, + }, + Object { + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "834", + ], + "originalText": 834, + "width": 119.67, + }, + Object { + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "5343", + ], + "originalText": 5343, + "width": 119.67, + }, + Object { + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "632", + ], + "originalText": 632, + "width": 119.67, + }, + Object { + "actualText": "2451", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2451", + ], + "originalText": 2451, + "width": 119.67, + }, + Object { + "actualText": "2244", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2244", + ], + "originalText": 2244, + "width": 119.67, + }, + Object { + "actualText": "2333", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2333", + ], + "originalText": 2333, + "width": 119.67, + }, + Object { + "actualText": "2445", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2445", + ], + "originalText": 2445, + "width": 119.67, + }, + Object { + "actualText": "1145", + "actualTextHeight": 15, + "actualTextWidth": 26, + "height": 30, + "multiLineActualTexts": Array [ + "1145", + ], + "originalText": 1145, + "width": 119.67, + }, + Object { + "actualText": "1432", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1432", + ], + "originalText": 1432, + "width": 119.67, + }, + Object { + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "945", + ], + "originalText": 945, + "width": 119.67, + }, + Object { + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1304", + ], + "originalText": 1304, + "width": 119.67, + }, + Object { + "actualText": "2335", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2335", + ], + "originalText": 2335, + "width": 119.67, + }, + Object { + "actualText": "245", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "245", + ], + "originalText": 245, + "width": 119.67, + }, + Object { + "actualText": "2457", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2457", + ], + "originalText": 2457, + "width": 119.67, + }, + Object { + "actualText": "2458", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2458", + ], + "originalText": 2458, + "width": 119.67, + }, + Object { + "actualText": "1523", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1523", + ], + "originalText": 1523, + "width": 119.67, + }, + Object { + "actualText": "1634", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1634", + ], + "originalText": 1634, + "width": 119.67, + }, + Object { + "actualText": "1343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1343", + ], + "originalText": 1343, + "width": 119.67, + }, + Object { + "actualText": "1354", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1354", + ], + "originalText": 1354, + "width": 119.67, + }, + Object { + "actualText": "4004", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4004", + ], + "originalText": 4004, + "width": 119.67, + }, + Object { + "actualText": "3077", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "3077", + ], + "originalText": 3077, + "width": 119.67, + }, + Object { + "actualText": "3551", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "3551", + ], + "originalText": 3551, + "width": 119.67, + }, + Object { + "actualText": "352", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "352", + ], + "originalText": 352, + "width": 119.67, }, ] `; @@ -19191,13 +21320,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should calculate correctly max text width for default sort header action icons 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 80, "multiLineActualTexts": Array [ "序号", ], @@ -19207,13 +21336,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should calculate correctly max text width for default sort header action icons 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -19224,7 +21353,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 91, "multiLineActualTexts": Array [ "2", ], @@ -19235,7 +21364,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -19297,71 +21426,16 @@ Array [ "originalText": 8, "width": 80, }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "10", - ], - "originalText": 10, - "width": 80, - }, - Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "11", - ], - "originalText": 11, - "width": 80, - }, - Object { - "actualText": "12", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "12", - ], - "originalText": 12, - "width": 80, - }, - Object { - "actualText": "13", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "13", - ], - "originalText": 13, - "width": 80, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should calculate correctly max text width for default sort header action icons 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 80, "multiLineActualTexts": Array [ "序号", ], @@ -19372,7 +21446,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 80, "multiLineActualTexts": Array [ "省份", ], @@ -19380,23 +21454,29 @@ Array [ "width": 103.8, }, Object { - "actualText": "城市城市城市...", - "actualTextHeight": 16, - "actualTextWidth": 83, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 80, "multiLineActualTexts": Array [ - "城市城市城市...", + "城市城市城市", + "城市城市城市", + "城市城市城市", + "城市城市城市", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "类别类别类别...", - "actualTextHeight": 16, - "actualTextWidth": 83, - "height": 30, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 64, + "actualTextWidth": 244, + "height": 80, "multiLineActualTexts": Array [ - "类别类别类别...", + "类别类别类别", + "类别类别类别", + "类别类别类别", + "类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, @@ -19405,7 +21485,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 30, + "height": 80, "multiLineActualTexts": Array [ "子类别", ], @@ -19413,226 +21493,119 @@ Array [ "width": 103.8, }, Object { - "actualText": "数量数量数量...", - "actualTextHeight": 16, - "actualTextWidth": 83, - "height": 30, - "multiLineActualTexts": Array [ - "数量数量数量...", - ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103.8, - }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 5`] = ` -Array [ - Object { - "actualText": "1", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "1", - ], - "originalText": 1, - "width": 80, - }, - Object { - "actualText": "2", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "2", - ], - "originalText": 2, - "width": 80, - }, - Object { - "actualText": "3", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "3", - ], - "originalText": 3, - "width": 80, - }, - Object { - "actualText": "4", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "4", - ], - "originalText": 4, - "width": 80, - }, - Object { - "actualText": "5", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "5", - ], - "originalText": 5, - "width": 80, - }, - Object { - "actualText": "6", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "6", - ], - "originalText": 6, - "width": 80, - }, - Object { - "actualText": "7", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "7", - ], - "originalText": 7, - "width": 80, - }, - Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "8", - ], - "originalText": 8, - "width": 80, - }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 64, + "actualTextWidth": 268, + "height": 80, "multiLineActualTexts": Array [ - "10", + "数量数量数量", + "数量数量数量", + "数量数量数量", + "数量数量", ], - "originalText": 10, - "width": 80, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calculate correctly max text width for default sort header action icons 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calculate correctly max text width for default sort header action icons 5`] = ` +Array [ Object { - "actualText": "11", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "11", + "1", ], - "originalText": 11, + "originalText": 1, "width": 80, }, Object { - "actualText": "12", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualTextWidth": 7, + "height": 91, "multiLineActualTexts": Array [ - "12", + "2", ], - "originalText": 12, + "originalText": 2, "width": 80, }, Object { - "actualText": "13", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "13", + "3", ], - "originalText": 13, + "originalText": 3, "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "4", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "浙江省浙江省...", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 83, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省...", + "5", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "6", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "7", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "8", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -19640,21 +21613,25 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ - "浙江省", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", ], - "originalText": "浙江省", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -19720,7 +21697,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -19728,12 +21705,16 @@ Array [ "width": 103.8, }, Object { - "actualText": "杭州市杭州市...", - "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 30, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ - "杭州市杭州市...", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市杭", + "州市", ], "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, @@ -19742,51 +21723,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "宁波市", - ], - "originalText": "宁波市", - "width": 103.8, - }, - Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "舟山市", - ], - "originalText": "舟山市", - "width": 103.8, - }, - Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "杭州市", - ], - "originalText": "杭州市", - "width": 103.8, - }, - Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -19848,22 +21785,11 @@ Array [ "originalText": "宁波市", "width": 103.8, }, - Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "舟山市", - ], - "originalText": "舟山市", - "width": 103.8, - }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -19871,12 +21797,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具家具家具...", - "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 30, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 91, "multiLineActualTexts": Array [ - "家具家具家具...", + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, @@ -19885,40 +21814,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -19950,63 +21846,41 @@ Array [ Object { "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 103.8, - }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "家具", ], - "originalText": "办公用品", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "家具", ], - "originalText": "办公用品", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "家具", ], - "originalText": "办公用品", + "originalText": "家具", "width": 103.8, }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], @@ -20014,12 +21888,16 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子桌子桌子...", - "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ - "桌子桌子桌子...", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, @@ -20028,7 +21906,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], @@ -20091,89 +21969,38 @@ Array [ "width": 103.8, }, Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "23672367236...", - "actualTextHeight": 15, - "actualTextWidth": 84, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "23672367236...", + "2367236723611", + "11", ], "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "77897789778...", - "actualTextHeight": 15, - "actualTextWidth": 84, - "height": 30, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 91, "multiLineActualTexts": Array [ - "77897789778...", + "7789778977897", + "7897789778977", + "89", ], "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "23672367236...", - "actualTextHeight": 15, - "actualTextWidth": 84, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "23672367236...", + "2367236723611", + "11", ], "originalText": 236723672361111, "width": 103.8, @@ -20233,71 +22060,16 @@ Array [ "originalText": 7234, "width": 103.8, }, - Object { - "actualText": "834", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "834", - ], - "originalText": 834, - "width": 103.8, - }, - Object { - "actualText": "945", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "945", - ], - "originalText": 945, - "width": 103.8, - }, - Object { - "actualText": "1304", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "1304", - ], - "originalText": 1304, - "width": 103.8, - }, - Object { - "actualText": "1145", - "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 30, - "multiLineActualTexts": Array [ - "1145", - ], - "originalText": 1145, - "width": 103.8, - }, - Object { - "actualText": "1432", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "1432", - ], - "originalText": 1432, - "width": 103.8, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should calculate correctly max text width for headerActionIcons 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 144, "multiLineActualTexts": Array [ "序号", ], @@ -20307,7 +22079,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should calculate correctly max text width for headerActionIcons 2`] = ` Array [ Object { "actualText": "1", @@ -20324,7 +22096,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 91, "multiLineActualTexts": Array [ "2", ], @@ -20375,49 +22147,16 @@ Array [ "originalText": 6, "width": 80, }, - Object { - "actualText": "7", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "7", - ], - "originalText": 7, - "width": 80, - }, - Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "8", - ], - "originalText": 8, - "width": 80, - }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should calculate correctly max text width for headerActionIcons 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 144, "multiLineActualTexts": Array [ "序号", ], @@ -20428,7 +22167,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 144, "multiLineActualTexts": Array [ "省份", ], @@ -20436,27 +22175,36 @@ Array [ "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 128, + "actualTextWidth": 296, + "height": 144, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市...", + "城市城", + "市城市", + "城市城", + "市城市", + "城市城", + "市城市", + "城市城", + "市城市", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 64, - "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "actualTextHeight": 112, + "actualTextWidth": 247, + "height": 144, + "multiLineActualTexts": Array [ + "类别类", + "别类别", + "类别类", + "别类别", + "类别类", + "别类别", + "类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, @@ -20465,22 +22213,27 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 144, "multiLineActualTexts": Array [ "子类别", ], "originalText": "子类别", "width": 103.8, - }, - Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, - "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 128, + "actualTextWidth": 272, + "height": 144, + "multiLineActualTexts": Array [ + "数量数", + "量数量", + "数量数", + "量数量", + "数量数", + "量数量", + "数量数", + "量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, @@ -20488,9 +22241,9 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should calculate correctly max text width for headerActionIcons 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should calculate correctly max text width for headerActionIcons 5`] = ` Array [ Object { "actualText": "1", @@ -20507,7 +22260,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 91, "multiLineActualTexts": Array [ "2", ], @@ -20558,39 +22311,6 @@ Array [ "originalText": 6, "width": 80, }, - Object { - "actualText": "7", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "7", - ], - "originalText": 7, - "width": 80, - }, - Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "8", - ], - "originalText": 8, - "width": 80, - }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, Object { "actualText": "浙江省", "actualTextHeight": 15, @@ -20603,14 +22323,16 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ "浙江省浙江省浙", "江省浙江省浙江", - "省浙江省浙江...", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, @@ -20659,39 +22381,6 @@ Array [ "originalText": "浙江省", "width": 103.8, }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, Object { "actualText": "绍兴市", "actualTextHeight": 15, @@ -20704,14 +22393,16 @@ Array [ "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ "杭州市杭州市杭", "州市杭州市杭州", - "市杭州市杭州...", + "市杭州市杭州市", + "杭州市杭州市杭", + "州市", ], "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, @@ -20760,39 +22451,6 @@ Array [ "originalText": "杭州市", "width": 103.8, }, - Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "宁波市", - ], - "originalText": "宁波市", - "width": 103.8, - }, - Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "舟山市", - ], - "originalText": "舟山市", - "width": 103.8, - }, Object { "actualText": "家具", "actualTextHeight": 15, @@ -20805,14 +22463,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 91, "multiLineActualTexts": Array [ "家具家具家具家", "具家具家具家具", - "家具家具家具...", + "家具家具家具家", + "具家具家具家具", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, @@ -20861,39 +22520,6 @@ Array [ "originalText": "家具", "width": 103.8, }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, Object { "actualText": "桌子", "actualTextHeight": 15, @@ -20906,14 +22532,16 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ "桌子桌子桌子桌", "子桌子桌子桌子", - "桌子桌子桌子...", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, @@ -20962,39 +22590,6 @@ Array [ "originalText": "沙发", "width": 103.8, }, - Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, - Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, - Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, Object { "actualText": "236723672361111", "actualTextHeight": 30, @@ -21011,7 +22606,7 @@ Array [ "actualText": "7789778977897789778977897789", "actualTextHeight": 45, "actualTextWidth": 189, - "height": 61, + "height": 91, "multiLineActualTexts": Array [ "7789778977897", "7897789778977", @@ -21060,54 +22655,21 @@ Array [ "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "5343", - ], - "originalText": 5343, - "width": 103.8, - }, - Object { - "actualText": "632", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "632", - ], - "originalText": 632, - "width": 103.8, - }, - Object { - "actualText": "7234", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "7234", - ], - "originalText": 7234, - "width": 103.8, - }, - Object { - "actualText": "834", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "834", + "5343", ], - "originalText": 834, + "originalText": 5343, "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "序号", ], @@ -21117,13 +22679,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "1", ], @@ -21134,7 +22696,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -21145,7 +22707,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -21218,16 +22780,60 @@ Array [ "originalText": 9, "width": 80, }, + Object { + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "10", + ], + "originalText": 10, + "width": 80, + }, + Object { + "actualText": "11", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "11", + ], + "originalText": 11, + "width": 80, + }, + Object { + "actualText": "12", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "12", + ], + "originalText": 12, + "width": 80, + }, + Object { + "actualText": "13", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "13", + ], + "originalText": 13, + "width": 80, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "序号", ], @@ -21238,7 +22844,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "省份", ], @@ -21246,27 +22852,23 @@ Array [ "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "城市城市城市...", + "actualTextHeight": 16, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", "城市城市城市...", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 64, + "actualText": "类别类别类别...", + "actualTextHeight": 16, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "类别类别类别...", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, @@ -21275,7 +22877,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "子类别", ], @@ -21283,13 +22885,11 @@ Array [ "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "数量数量数量...", + "actualTextHeight": 16, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", "数量数量数量...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", @@ -21298,15 +22898,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "1", ], @@ -21317,7 +22917,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -21328,7 +22928,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -21401,11 +23001,55 @@ Array [ "originalText": 9, "width": 80, }, + Object { + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "10", + ], + "originalText": 10, + "width": 80, + }, + Object { + "actualText": "11", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "11", + ], + "originalText": 11, + "width": 80, + }, + Object { + "actualText": "12", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "12", + ], + "originalText": 12, + "width": 80, + }, + Object { + "actualText": "13", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "13", + ], + "originalText": 13, + "width": 80, + }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -21413,14 +23057,12 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "浙江省浙江省...", + "actualTextHeight": 15, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江...", + "浙江省浙江省...", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, @@ -21429,7 +23071,51 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -21503,34 +23189,76 @@ Array [ "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "杭州市杭州市...", + "actualTextHeight": 15, + "actualTextWidth": 83, + "height": 30, + "multiLineActualTexts": Array [ + "杭州市杭州市...", + ], + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 103.8, + }, + Object { + "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "舟山市", ], - "originalText": "绍兴市", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州...", + "杭州市", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "杭州市", "width": 103.8, }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "绍兴市", ], @@ -21607,7 +23335,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "家具", ], @@ -21615,13 +23343,11 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "家具家具家具...", + "actualTextHeight": 15, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", "家具家具家具...", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", @@ -21631,7 +23357,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "家具", ], @@ -21704,11 +23430,55 @@ Array [ "originalText": "家具", "width": 103.8, }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "桌子", ], @@ -21716,13 +23486,11 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "桌子桌子桌子...", + "actualTextHeight": 15, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", "桌子桌子桌子...", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", @@ -21732,7 +23500,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "桌子", ], @@ -21806,38 +23574,78 @@ Array [ "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "笔", + ], + "originalText": "笔", + "width": 103.8, + }, + Object { + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", + "width": 103.8, + }, + Object { + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", + "width": 103.8, + }, + Object { + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", + "width": 103.8, + }, + Object { + "actualText": "23672367236...", + "actualTextHeight": 15, + "actualTextWidth": 84, + "height": 30, + "multiLineActualTexts": Array [ + "23672367236...", ], "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 61, + "actualText": "77897789778...", + "actualTextHeight": 15, + "actualTextWidth": 84, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "77897789778...", ], "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "23672367236...", + "actualTextHeight": 15, + "actualTextWidth": 84, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "23672367236...", ], "originalText": 236723672361111, "width": 103.8, @@ -21908,16 +23716,60 @@ Array [ "originalText": 834, "width": 103.8, }, + Object { + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "945", + ], + "originalText": 945, + "width": 103.8, + }, + Object { + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1304", + ], + "originalText": 1304, + "width": 103.8, + }, + Object { + "actualText": "1145", + "actualTextHeight": 15, + "actualTextWidth": 26, + "height": 30, + "multiLineActualTexts": Array [ + "1145", + ], + "originalText": 1145, + "width": 103.8, + }, + Object { + "actualText": "1432", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1432", + ], + "originalText": 1432, + "width": 103.8, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 20, + "height": 64, "multiLineActualTexts": Array [ "序号", ], @@ -21927,13 +23779,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -21944,7 +23796,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 61, "multiLineActualTexts": Array [ "2", ], @@ -21955,7 +23807,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -21977,7 +23829,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "5", ], @@ -22001,65 +23853,43 @@ Array [ "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "7", - ], - "originalText": 7, - "width": 80, - }, - Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "8", - ], - "originalText": 8, - "width": 80, - }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "9", + "7", ], - "originalText": 9, + "originalText": 7, "width": 80, }, Object { - "actualText": "10", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "10", + "8", ], - "originalText": 10, + "originalText": 8, "width": 80, }, Object { - "actualText": "11", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "11", + "9", ], - "originalText": 11, + "originalText": 9, "width": 80, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 20, + "height": 64, "multiLineActualTexts": Array [ "序号", ], @@ -22067,72 +23897,78 @@ Array [ "width": 80, }, Object { - "actualText": "province", + "actualText": "省份", "actualTextHeight": 16, - "actualTextWidth": 51, - "height": 20, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "province", + "省份", ], - "originalText": "province", + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "city", - "actualTextHeight": 16, - "actualTextWidth": 21, - "height": 20, + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "city", + "城市城市城市城", + "市城市城市城市", + "城市城市城市...", ], - "originalText": "city", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "type", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 20, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 64, "multiLineActualTexts": Array [ - "type", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": "type", + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "sub_type", + "actualText": "子类别", "actualTextHeight": 16, - "actualTextWidth": 53, - "height": 20, + "actualTextWidth": 37, + "height": 64, "multiLineActualTexts": Array [ - "sub_type", + "子类别", ], - "originalText": "sub_type", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "number", - "actualTextHeight": 16, - "actualTextWidth": 45, - "height": 20, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "number", + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", ], - "originalText": "number", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -22143,7 +23979,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 61, "multiLineActualTexts": Array [ "2", ], @@ -22154,7 +23990,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -22176,7 +24012,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "5", ], @@ -22227,55 +24063,11 @@ Array [ "originalText": 9, "width": 80, }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "10", - ], - "originalText": 10, - "width": 80, - }, - Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "11", - ], - "originalText": 11, - "width": 80, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -22283,21 +24075,23 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ - "浙江省", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江...", ], - "originalText": "浙江省", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -22371,43 +24165,34 @@ Array [ "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "宁波市", - ], - "originalText": "宁波市", - "width": 103.8, - }, - Object { - "actualText": "舟山市", + "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ - "舟山市", + "绍兴市", ], - "originalText": "舟山市", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ - "杭州市", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州...", ], - "originalText": "杭州市", + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -22418,7 +24203,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "宁波市", ], @@ -22481,32 +24266,34 @@ Array [ "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "杭州市", + "家具", ], - "originalText": "杭州市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "家具家具家具家具家具家具家具家具家具家具...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ - "家具", + "家具家具家具家", + "具家具家具家具", + "家具家具家具...", ], - "originalText": "家具", + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -22539,7 +24326,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "家具", ], @@ -22558,58 +24345,60 @@ Array [ "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "家具", ], - "originalText": "办公用品", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "家具", ], - "originalText": "办公用品", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "办公用品", + "桌子", ], - "originalText": "办公用品", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ - "办公用品", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子...", ], - "originalText": "办公用品", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "办公用品", + "桌子", ], - "originalText": "办公用品", + "originalText": "桌子", "width": 103.8, }, Object { @@ -22627,7 +24416,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "桌子", ], @@ -22660,7 +24449,7 @@ Array [ "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "沙发", ], @@ -22679,58 +24468,40 @@ Array [ "width": 103.8, }, Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "笔", + "2367236723611", + "11", ], - "originalText": "笔", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 61, "multiLineActualTexts": Array [ - "笔", + "7789778977897", + "7897789778977", + "89", ], - "originalText": "笔", + "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "纸张", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "纸张", + "2367236723611", + "11", ], - "originalText": "纸张", + "originalText": 236723672361111, "width": 103.8, }, Object { @@ -22748,7 +24519,7 @@ Array [ "actualText": "4342", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "4342", ], @@ -22781,7 +24552,7 @@ Array [ "actualText": "7234", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "7234", ], @@ -22799,71 +24570,16 @@ Array [ "originalText": 834, "width": 103.8, }, - Object { - "actualText": "945", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "945", - ], - "originalText": 945, - "width": 103.8, - }, - Object { - "actualText": "1304", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "1304", - ], - "originalText": 1304, - "width": 103.8, - }, - Object { - "actualText": "1145", - "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 30, - "multiLineActualTexts": Array [ - "1145", - ], - "originalText": 1145, - "width": 103.8, - }, - Object { - "actualText": "1432", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "1432", - ], - "originalText": 1432, - "width": 103.8, - }, - Object { - "actualText": "1343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "1343", - ], - "originalText": 1343, - "width": 103.8, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 70, + "height": 64, "multiLineActualTexts": Array [ "序号", ], @@ -22873,13 +24589,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 70, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -22890,7 +24606,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 61, "multiLineActualTexts": Array [ "2", ], @@ -22952,16 +24668,38 @@ Array [ "originalText": 7, "width": 80, }, + Object { + "actualText": "8", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "8", + ], + "originalText": 8, + "width": 80, + }, + Object { + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "9", + ], + "originalText": 9, + "width": 80, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 70, + "height": 64, "multiLineActualTexts": Array [ "序号", ], @@ -22972,7 +24710,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 70, + "height": 64, "multiLineActualTexts": Array [ "省份", ], @@ -22983,7 +24721,7 @@ Array [ "actualText": "城市城市城市城市城市城市城市城市城市城市...", "actualTextHeight": 48, "actualTextWidth": 253, - "height": 70, + "height": 64, "multiLineActualTexts": Array [ "城市城市城市城", "市城市城市城市", @@ -22996,7 +24734,7 @@ Array [ "actualText": "类别类别类别类别类别类别类别类别类别类别", "actualTextHeight": 48, "actualTextWidth": 243, - "height": 70, + "height": 64, "multiLineActualTexts": Array [ "类别类别类别类", "别类别类别类别", @@ -23009,7 +24747,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 70, + "height": 64, "multiLineActualTexts": Array [ "子类别", ], @@ -23020,7 +24758,7 @@ Array [ "actualText": "数量数量数量数量数量数量数量数量数量数量...", "actualTextHeight": 48, "actualTextWidth": 253, - "height": 70, + "height": 64, "multiLineActualTexts": Array [ "数量数量数量数", "量数量数量数量", @@ -23032,15 +24770,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 70, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -23051,7 +24789,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 61, "multiLineActualTexts": Array [ "2", ], @@ -23113,37 +24851,79 @@ Array [ "originalText": 7, "width": 80, }, + Object { + "actualText": "8", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "8", + ], + "originalText": 8, + "width": 80, + }, + Object { + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "9", + ], + "originalText": 9, + "width": 80, + }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 70, + "height": 46, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, + "multiLineActualTexts": Array [ + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江...", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], "originalText": "浙江省", "width": 103.8, }, - Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 100, - "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省浙", - "江省", - ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, - }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -23198,7 +24978,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 70, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -23206,16 +24986,14 @@ Array [ "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 100, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ "杭州市杭州市杭", "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市杭", - "州市", + "市杭州市杭州...", ], "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, @@ -23275,11 +25053,33 @@ Array [ "originalText": "绍兴市", "width": 103.8, }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 103.8, + }, + Object { + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 103.8, + }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 70, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -23287,15 +25087,14 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 100, + "actualText": "家具家具家具家具家具家具家具家具家具家具...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ "家具家具家具家", "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "家具家具家具...", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, @@ -23355,11 +25154,33 @@ Array [ "originalText": "家具", "width": 103.8, }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 70, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], @@ -23367,16 +25188,14 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 100, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ "桌子桌子桌子桌", "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子", + "桌子桌子桌子...", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, @@ -23436,11 +25255,33 @@ Array [ "originalText": "沙发", "width": 103.8, }, + Object { + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 103.8, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 103.8, + }, Object { "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 70, + "height": 46, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -23452,7 +25293,7 @@ Array [ "actualText": "7789778977897789778977897789", "actualTextHeight": 45, "actualTextWidth": 189, - "height": 100, + "height": 61, "multiLineActualTexts": Array [ "7789778977897", "7897789778977", @@ -23517,16 +25358,38 @@ Array [ "originalText": 632, "width": 103.8, }, + Object { + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "7234", + ], + "originalText": 7234, + "width": 103.8, + }, + Object { + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "834", + ], + "originalText": 834, + "width": 103.8, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "序号", ], @@ -23536,13 +25399,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "1", ], @@ -23553,7 +25416,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 76, + "height": 20, "multiLineActualTexts": Array [ "2", ], @@ -23564,7 +25427,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -23586,7 +25449,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "5", ], @@ -23626,16 +25489,49 @@ Array [ "originalText": 8, "width": 80, }, + Object { + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "9", + ], + "originalText": 9, + "width": 80, + }, + Object { + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "10", + ], + "originalText": 10, + "width": 80, + }, + Object { + "actualText": "11", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "11", + ], + "originalText": 11, + "width": 80, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "序号", ], @@ -23643,79 +25539,72 @@ Array [ "width": 80, }, Object { - "actualText": "省份", + "actualText": "province", "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 51, + "height": 20, "multiLineActualTexts": Array [ - "省份", + "province", ], - "originalText": "省份", + "originalText": "province", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, - "height": 100, + "actualText": "city", + "actualTextHeight": 16, + "actualTextWidth": 21, + "height": 20, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "city", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "city", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 50, + "actualText": "type", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类...", + "type", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "type", "width": 103.8, }, Object { - "actualText": "子类别", + "actualText": "sub_type", "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 53, + "height": 20, "multiLineActualTexts": Array [ - "子类别", + "sub_type", ], - "originalText": "子类别", - "width": 103.8, - }, - Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 64, - "actualTextWidth": 268, - "height": 100, + "originalText": "sub_type", + "width": 103.8, + }, + Object { + "actualText": "number", + "actualTextHeight": 16, + "actualTextWidth": 45, + "height": 20, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "number", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "number", "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "1", ], @@ -23726,7 +25615,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 76, + "height": 20, "multiLineActualTexts": Array [ "2", ], @@ -23737,7 +25626,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -23759,7 +25648,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "5", ], @@ -23800,40 +25689,37 @@ Array [ "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "9", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省...", + "10", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "11", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { "actualText": "浙江省", @@ -23850,7 +25736,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -23883,7 +25769,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "浙江省", ], @@ -23891,752 +25777,581 @@ Array [ "width": 103.8, }, Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, - "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市...", - ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 103.8, - }, - Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "宁波市", - ], - "originalText": "宁波市", - "width": 103.8, - }, - Object { - "actualText": "舟山市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "浙江省", ], - "originalText": "舟山市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "浙江省", ], - "originalText": "杭州市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "浙江省", ], - "originalText": "绍兴市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "宁波市", - ], - "originalText": "宁波市", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 76, - "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", - ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, - "multiLineActualTexts": Array [ - "桌子", - ], - "originalText": "桌子", - "width": 103.8, - }, - Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, - "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌...", + "浙江省", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "宁波市", ], - "originalText": "桌子", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "舟山市", ], - "originalText": "沙发", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "杭州市", ], - "originalText": "沙发", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "绍兴市", ], - "originalText": "沙发", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "宁波市", ], - "originalText": 236723672361111, + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 76, + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "舟山市", ], - "originalText": "7789778977897789778977897789", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "杭州市", ], - "originalText": 236723672361111, + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "3877", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "3877", + "绍兴市", ], - "originalText": 3877, + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "4342", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "4342", + "宁波市", ], - "originalText": 4342, + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "5343", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "5343", + "舟山市", ], - "originalText": 5343, + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "632", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "632", + "杭州市", ], - "originalText": 632, + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "7234", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "7234", + "家具", ], - "originalText": 7234, + "originalText": "家具", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height, but should adjust maxLines if custom cell style more than actual text height 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, + "actualText": "家具", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 70, + "height": 20, "multiLineActualTexts": Array [ - "序号", + "家具", ], - "originalText": "序号", - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, + "actualText": "家具", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 70, + "height": 30, "multiLineActualTexts": Array [ - "省份", + "家具", ], - "originalText": "省份", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 70, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市...", + "家具", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 70, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "家具", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 70, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "家具", ], - "originalText": "子类别", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 70, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "办公用品", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "办公用品", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style less than actual text height by dataCell.height 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "办公用品", ], - "originalText": "序号", - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style less than actual text height by dataCell.height 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 49, + "height": 30, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "1", + "办公用品", ], - "originalText": 1, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "2", + "办公用品", ], - "originalText": 2, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "3", + "桌子", ], - "originalText": 3, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "4", + "桌子", ], - "originalText": 4, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "5", + "沙发", ], - "originalText": 5, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "6", + "沙发", ], - "originalText": 6, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "7", + "沙发", ], - "originalText": 7, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "8", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "8", + "沙发", ], - "originalText": 8, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "9", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "9", + "笔", ], - "originalText": 9, - "width": 80, + "originalText": "笔", + "width": 103.8, }, Object { - "actualText": "10", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "10", + "笔", ], - "originalText": 10, - "width": 80, + "originalText": "笔", + "width": 103.8, }, Object { - "actualText": "11", + "actualText": "笔", "actualTextHeight": 15, "actualTextWidth": 13, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "11", + "笔", ], - "originalText": 11, - "width": 80, + "originalText": "笔", + "width": 103.8, }, Object { - "actualText": "12", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "12", + "笔", ], - "originalText": 12, - "width": 80, + "originalText": "笔", + "width": 103.8, }, Object { - "actualText": "13", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "13", + "纸张", ], - "originalText": 13, - "width": 80, + "originalText": "纸张", + "width": 103.8, }, Object { - "actualText": "14", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "14", + "3877", ], - "originalText": 14, - "width": 80, + "originalText": 3877, + "width": 103.8, }, Object { - "actualText": "15", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "15", + "4342", ], - "originalText": 15, - "width": 80, + "originalText": 4342, + "width": 103.8, }, Object { - "actualText": "16", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "16", + "5343", ], - "originalText": 16, - "width": 80, + "originalText": 5343, + "width": 103.8, }, Object { - "actualText": "17", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "17", + "632", ], - "originalText": 17, - "width": 80, + "originalText": 632, + "width": 103.8, }, Object { - "actualText": "18", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 27, + "height": 100, "multiLineActualTexts": Array [ - "18", + "7234", ], - "originalText": 18, - "width": 80, + "originalText": 7234, + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style less than actual text height by dataCell.height 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "834", ], - "originalText": "序号", - "width": 80, + "originalText": 834, + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "省份", + "945", ], - "originalText": "省份", + "originalText": 945, "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城...", + "1304", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": 1304, "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "1145", + "actualTextHeight": 15, + "actualTextWidth": 26, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类...", + "1145", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": 1145, "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 48, + "actualText": "1432", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "1432", ], - "originalText": "子类别", + "originalText": 1432, "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "1343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数...", + "1343", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": 1343, "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style less than actual text height by dataCell.height 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 1`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 70, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, +] +`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style less than actual text height by dataCell.height 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 70, "multiLineActualTexts": Array [ "1", ], @@ -24647,7 +26362,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "2", ], @@ -24658,7 +26373,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -24669,7 +26384,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "4", ], @@ -24680,7 +26395,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "5", ], @@ -24691,7 +26406,7 @@ Array [ "actualText": "6", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "6", ], @@ -24702,161 +26417,179 @@ Array [ "actualText": "7", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "7", ], "originalText": 7, "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 3`] = ` +Array [ Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 70, "multiLineActualTexts": Array [ - "8", + "序号", ], - "originalText": 8, + "originalText": "序号", "width": 80, }, Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 70, "multiLineActualTexts": Array [ - "9", + "省份", ], - "originalText": 9, - "width": 80, + "originalText": "省份", + "width": 103.8, }, Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 70, "multiLineActualTexts": Array [ - "10", + "城市城市城市城", + "市城市城市城市", + "城市城市城市...", ], - "originalText": 10, - "width": 80, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 103.8, }, Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 70, "multiLineActualTexts": Array [ - "11", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": 11, - "width": 80, + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 103.8, }, Object { - "actualText": "12", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 70, "multiLineActualTexts": Array [ - "12", + "子类别", ], - "originalText": 12, - "width": 80, + "originalText": "子类别", + "width": 103.8, }, Object { - "actualText": "13", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 70, "multiLineActualTexts": Array [ - "13", + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", ], - "originalText": 13, - "width": 80, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 5`] = ` +Array [ Object { - "actualText": "14", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 70, "multiLineActualTexts": Array [ - "14", + "1", ], - "originalText": 14, + "originalText": 1, "width": 80, }, Object { - "actualText": "15", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "15", + "2", ], - "originalText": 15, + "originalText": 2, "width": 80, }, Object { - "actualText": "16", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "16", + "3", ], - "originalText": 16, + "originalText": 3, "width": 80, }, Object { - "actualText": "17", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "17", + "4", ], - "originalText": 17, + "originalText": 4, "width": 80, }, Object { - "actualText": "18", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "18", + "5", ], - "originalText": 18, + "originalText": 5, "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "6", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "浙江省浙江省...", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省...", + "7", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 70, "multiLineActualTexts": Array [ "浙江省", ], @@ -24864,21 +26597,25 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", ], - "originalText": "浙江省", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -24889,7 +26626,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -24900,7 +26637,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -24911,7 +26648,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -24922,7 +26659,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -24930,971 +26667,1076 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 70, "multiLineActualTexts": Array [ - "浙江省", + "绍兴市", ], - "originalText": "浙江省", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市杭", + "州市", ], - "originalText": "浙江省", + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ - "浙江省", + "绍兴市", ], - "originalText": "浙江省", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "宁波市", ], - "originalText": "浙江省", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "舟山市", ], - "originalText": "浙江省", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "杭州市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "杭州市", ], - "originalText": "浙江省", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "绍兴市", ], - "originalText": "浙江省", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 70, "multiLineActualTexts": Array [ - "浙江省", + "家具", ], - "originalText": "浙江省", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "四川省", + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 100, + "multiLineActualTexts": Array [ + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", + ], + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, + }, + Object { + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "四川省", + "家具", ], - "originalText": "四川省", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "家具", ], - "originalText": "绍兴市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "杭州市杭州市...", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市...", + "家具", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "家具", ], - "originalText": "绍兴市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "家具", ], - "originalText": "宁波市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 70, "multiLineActualTexts": Array [ - "舟山市", + "桌子", ], - "originalText": "舟山市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 100, + "multiLineActualTexts": Array [ + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子", + ], + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, + }, + Object { + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "杭州市", + "桌子", ], - "originalText": "杭州市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "桌子", ], - "originalText": "绍兴市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "桌子", ], - "originalText": "宁波市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "沙发", ], - "originalText": "舟山市", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "沙发", + ], + "originalText": "沙发", + "width": 103.8, + }, + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 70, + "multiLineActualTexts": Array [ + "2367236723611", + "11", + ], + "originalText": 236723672361111, + "width": 103.8, + }, + Object { + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 100, + "multiLineActualTexts": Array [ + "7789778977897", + "7897789778977", + "89", + ], + "originalText": "7789778977897789778977897789", + "width": 103.8, + }, + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, + "multiLineActualTexts": Array [ + "2367236723611", + "11", ], - "originalText": "杭州市", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "3877", ], - "originalText": "绍兴市", + "originalText": 3877, "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "4342", ], - "originalText": "宁波市", + "originalText": 4342, "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "5343", ], - "originalText": "舟山市", + "originalText": 5343, "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "632", ], - "originalText": "杭州市", + "originalText": 632, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 1`] = ` +Array [ Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "绍兴市", + "序号", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 2`] = ` +Array [ Object { - "actualText": "宁波市", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "宁波市", + "1", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "舟山市", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 76, "multiLineActualTexts": Array [ - "舟山市", + "2", ], - "originalText": "舟山市", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "成都市", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "成都市", + "3", ], - "originalText": "成都市", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "4", ], - "originalText": "家具", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "家具家具家具...", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具...", + "5", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "6", ], - "originalText": "家具", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "7", ], - "originalText": "家具", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "8", "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "8", + ], + "originalText": 8, + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 3`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "序号", ], - "originalText": "家具", - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "家具", - "actualTextHeight": 15, + "actualText": "省份", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "省份", ], - "originalText": "家具", + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", ], - "originalText": "家具", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "类别类别类别类别类别类别类...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 50, "multiLineActualTexts": Array [ - "家具", + "类别类别类别类", + "别类别类别类...", ], - "originalText": "家具", + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "子类别", ], - "originalText": "家具", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 64, + "actualTextWidth": 268, + "height": 100, "multiLineActualTexts": Array [ - "办公用品", + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", ], - "originalText": "办公用品", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 5`] = ` +Array [ Object { - "actualText": "办公用品", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "办公用品", + "1", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 7, + "height": 76, "multiLineActualTexts": Array [ - "办公用品", + "2", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "办公用品", + "3", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "4", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "5", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "6", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "7", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "8", ], - "originalText": "家具", - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子桌子桌子...", - "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 20, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ - "桌子桌子桌子...", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省...", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "沙发", + "浙江省", ], - "originalText": "沙发", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "沙发", + "浙江省", ], - "originalText": "沙发", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "沙发", + "浙江省", ], - "originalText": "沙发", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "沙发", + "绍兴市", ], - "originalText": "沙发", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ - "笔", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市...", ], - "originalText": "笔", + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "笔", + "绍兴市", ], - "originalText": "笔", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "笔", + "宁波市", ], - "originalText": "笔", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "笔", + "舟山市", ], - "originalText": "笔", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "杭州市", ], - "originalText": "纸张", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "绍兴市", ], - "originalText": "纸张", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "宁波市", ], - "originalText": "纸张", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ - "纸张", + "家具", ], - "originalText": "纸张", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 76, "multiLineActualTexts": Array [ - "桌子", + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", ], - "originalText": "桌子", + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, Object { - "actualText": "23672367236...", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 84, - "height": 20, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "23672367236...", + "家具", ], - "originalText": 236723672361111, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "77897789778...", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 84, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "77897789778...", + "家具", ], - "originalText": "7789778977897789778977897789", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "23672367236...", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 84, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "23672367236...", + "家具", ], - "originalText": 236723672361111, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "3877", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "3877", + "家具", ], - "originalText": 3877, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "4342", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "4342", + "家具", ], - "originalText": 4342, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "5343", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "5343", + "家具", ], - "originalText": 5343, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "632", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 20, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "632", + "桌子", ], - "originalText": 632, + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "7234", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ - "7234", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌...", ], - "originalText": 7234, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { - "actualText": "834", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 20, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "834", + "桌子", ], - "originalText": 834, + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "945", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "945", + "桌子", ], - "originalText": 945, + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "1304", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "1304", + "桌子", ], - "originalText": 1304, + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "1145", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "1145", + "沙发", ], - "originalText": 1145, + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "1432", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "1432", + "沙发", ], - "originalText": 1432, + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "1343", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "1343", + "沙发", ], - "originalText": 1343, + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "1354", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "1354", + "2367236723611", + "11", ], - "originalText": 1354, + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "1523", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 76, "multiLineActualTexts": Array [ - "1523", + "7789778977897", + "7897789778977", + "89", ], - "originalText": 1523, + "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "1634", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "1634", + "2367236723611", + "11", ], - "originalText": 1634, + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "1723", + "actualText": "3877", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "1723", + "3877", ], - "originalText": 1723, + "originalText": 3877, "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style more than actual text height by dataCell.height 1`] = ` -Array [ - Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, - "multiLineActualTexts": Array [ - "序号", - ], - "originalText": "序号", - "width": 80, - }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style more than actual text height by dataCell.height 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "1", + "4342", ], - "originalText": 1, - "width": 80, + "originalText": 4342, + "width": 103.8, }, Object { - "actualText": "2", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "2", + "5343", ], - "originalText": 2, - "width": 80, + "originalText": 5343, + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "3", + "632", ], - "originalText": 3, - "width": 80, + "originalText": 632, + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "4", + "7234", ], - "originalText": 4, - "width": 80, + "originalText": 7234, + "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style more than actual text height by dataCell.height 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height, but should adjust maxLines if custom cell style more than actual text height 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 48, + "height": 70, "multiLineActualTexts": Array [ "序号", ], @@ -25905,7 +27747,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 48, + "height": 70, "multiLineActualTexts": Array [ "省份", ], @@ -25913,25 +27755,27 @@ Array [ "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 70, "multiLineActualTexts": Array [ "城市城市城市城", - "市城市城市城...", + "市城市城市城市", + "城市城市城市...", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 70, "multiLineActualTexts": Array [ "类别类别类别类", - "别类别类别类...", + "别类别类别类别", + "类别类别类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, @@ -25940,7 +27784,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 48, + "height": 70, "multiLineActualTexts": Array [ "子类别", ], @@ -25948,13 +27792,14 @@ Array [ "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 70, "multiLineActualTexts": Array [ "数量数量数量数", - "量数量数量数...", + "量数量数量数量", + "数量数量数量...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, @@ -25962,15 +27807,29 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style more than actual text height by dataCell.height 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style less than actual text height by dataCell.height 1`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 48, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, +] +`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style more than actual text height by dataCell.height 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style less than actual text height by dataCell.height 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "1", ], @@ -25981,7 +27840,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "2", ], @@ -25992,7 +27851,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "3", ], @@ -26003,7 +27862,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "4", ], @@ -26011,270 +27870,245 @@ Array [ "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 100, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省浙", - "江省", + "5", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "6", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "7", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "8", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 100, + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市杭", - "州市", + "9", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "10", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "宁波市", + "11", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "12", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "12", ], - "originalText": "家具", - "width": 103.8, + "originalText": 12, + "width": 80, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 100, + "actualText": "13", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "13", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, + "originalText": 13, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "14", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "14", ], - "originalText": "家具", - "width": 103.8, + "originalText": 14, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "15", ], - "originalText": "家具", - "width": 103.8, + "originalText": 15, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "16", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "16", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 16, + "width": 80, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 100, + "actualText": "17", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子", + "17", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103.8, + "originalText": 17, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "18", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "18", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 18, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style less than actual text height by dataCell.height 3`] = ` +Array [ Object { - "actualText": "桌子", - "actualTextHeight": 15, + "actualText": "序号", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 100, + "height": 48, "multiLineActualTexts": Array [ - "桌子", + "序号", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 100, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 48, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "省份", ], - "originalText": 236723672361111, + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 100, + "actualText": "城市城市城市城市城市城市城...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "城市城市城市城", + "市城市城市城...", ], - "originalText": "7789778977897789778977897789", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 100, + "actualText": "类别类别类别类别类别类别类...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "类别类别类别类", + "别类别类别类...", ], - "originalText": 236723672361111, + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "3877", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 100, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 48, "multiLineActualTexts": Array [ - "3877", + "子类别", ], - "originalText": 3877, + "originalText": "子类别", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by colCell.height 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 20, + "actualText": "数量数量数量数量数量数量数...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ - "序号", + "数量数量数量数", + "量数量数量数...", ], - "originalText": "序号", - "width": 80, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by colCell.height 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style less than actual text height by dataCell.height 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style less than actual text height by dataCell.height 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "1", ], @@ -26285,7 +28119,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "2", ], @@ -26296,7 +28130,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "3", ], @@ -26307,7 +28141,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "4", ], @@ -26318,7 +28152,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "5", ], @@ -26329,7 +28163,7 @@ Array [ "actualText": "6", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "6", ], @@ -26340,7 +28174,7 @@ Array [ "actualText": "7", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "7", ], @@ -26351,7 +28185,7 @@ Array [ "actualText": "8", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "8", ], @@ -26362,7 +28196,7 @@ Array [ "actualText": "9", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "9", ], @@ -26373,7 +28207,7 @@ Array [ "actualText": "10", "actualTextHeight": 15, "actualTextWidth": 14, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "10", ], @@ -26384,217 +28218,161 @@ Array [ "actualText": "11", "actualTextHeight": 15, "actualTextWidth": 13, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "11", ], "originalText": 11, "width": 80, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by colCell.height 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, + "actualText": "12", + "actualTextHeight": 15, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "序号", + "12", ], - "originalText": "序号", + "originalText": 12, "width": 80, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 20, - "multiLineActualTexts": Array [ - "省份", - ], - "originalText": "省份", - "width": 103.8, - }, - Object { - "actualText": "城市城市城市...", - "actualTextHeight": 16, - "actualTextWidth": 83, - "height": 20, - "multiLineActualTexts": Array [ - "城市城市城市...", - ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 103.8, - }, - Object { - "actualText": "类别类别类别...", - "actualTextHeight": 16, - "actualTextWidth": 83, - "height": 20, - "multiLineActualTexts": Array [ - "类别类别类别...", - ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 103.8, - }, - Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 20, - "multiLineActualTexts": Array [ - "子类别", - ], - "originalText": "子类别", - "width": 103.8, - }, - Object { - "actualText": "数量数量数量...", - "actualTextHeight": 16, - "actualTextWidth": 83, + "actualText": "13", + "actualTextHeight": 15, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "数量数量数量...", + "13", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103.8, + "originalText": 13, + "width": 80, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by colCell.height 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by colCell.height 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "14", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "1", + "14", ], - "originalText": 1, + "originalText": 14, "width": 80, }, Object { - "actualText": "2", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "2", + "15", ], - "originalText": 2, + "originalText": 15, "width": 80, }, Object { - "actualText": "3", + "actualText": "16", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "3", + "16", ], - "originalText": 3, + "originalText": 16, "width": 80, }, Object { - "actualText": "4", + "actualText": "17", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "4", + "17", ], - "originalText": 4, + "originalText": 17, "width": 80, }, Object { - "actualText": "5", + "actualText": "18", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "5", + "18", ], - "originalText": 5, + "originalText": 18, "width": 80, }, Object { - "actualText": "6", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "6", + "浙江省", ], - "originalText": 6, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "浙江省浙江省...", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 83, + "height": 20, "multiLineActualTexts": Array [ - "7", + "浙江省浙江省...", ], - "originalText": 7, - "width": 80, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, }, Object { - "actualText": "8", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "8", + "浙江省", ], - "originalText": 8, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "9", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "9", + "浙江省", ], - "originalText": 9, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "10", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "10", + "浙江省", ], - "originalText": 10, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "11", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "11", + "浙江省", ], - "originalText": 11, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -26602,22 +28380,21 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 46, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙...", + "浙江省", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": "浙江省", "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -26628,7 +28405,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -26639,7 +28416,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -26650,7 +28427,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -26661,7 +28438,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -26672,7 +28449,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -26683,7 +28460,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -26694,7 +28471,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -26705,18 +28482,29 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], "originalText": "浙江省", "width": 103.8, }, + Object { + "actualText": "四川省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "四川省", + ], + "originalText": "四川省", + "width": 103.8, + }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "绍兴市", ], @@ -26724,13 +28512,12 @@ Array [ "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 46, + "actualText": "杭州市杭州市...", + "actualTextHeight": 15, + "actualTextWidth": 83, + "height": 20, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭...", + "杭州市杭州市...", ], "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, @@ -26739,7 +28526,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "绍兴市", ], @@ -26750,7 +28537,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "宁波市", ], @@ -26761,7 +28548,7 @@ Array [ "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "舟山市", ], @@ -26772,7 +28559,7 @@ Array [ "actualText": "杭州市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "杭州市", ], @@ -26783,7 +28570,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "绍兴市", ], @@ -26794,7 +28581,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "宁波市", ], @@ -26805,7 +28592,7 @@ Array [ "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "舟山市", ], @@ -26816,7 +28603,7 @@ Array [ "actualText": "杭州市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "杭州市", ], @@ -26827,18 +28614,95 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 103.8, + }, + Object { + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 103.8, + }, + Object { + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "杭州市", + ], + "originalText": "杭州市", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ "绍兴市", ], "originalText": "绍兴市", "width": 103.8, }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 103.8, + }, + Object { + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 103.8, + }, + Object { + "actualText": "成都市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "成都市", + ], + "originalText": "成都市", + "width": 103.8, + }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -26846,13 +28710,12 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 46, + "actualText": "家具家具家具...", + "actualTextHeight": 15, + "actualTextWidth": 83, + "height": 20, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家...", + "家具家具家具...", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, @@ -26861,7 +28724,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -26872,7 +28735,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -26883,7 +28746,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -26894,7 +28757,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -26905,7 +28768,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -26916,7 +28779,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -26927,7 +28790,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -26938,7 +28801,7 @@ Array [ "actualText": "办公用品", "actualTextHeight": 15, "actualTextWidth": 49, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "办公用品", ], @@ -26949,18 +28812,95 @@ Array [ "actualText": "办公用品", "actualTextHeight": 15, "actualTextWidth": 49, - "height": 30, + "height": 20, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ "办公用品", ], "originalText": "办公用品", "width": 103.8, }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "桌子", ], @@ -26968,13 +28908,12 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 46, + "actualText": "桌子桌子桌子...", + "actualTextHeight": 15, + "actualTextWidth": 83, + "height": 20, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌...", + "桌子桌子桌子...", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, @@ -26983,7 +28922,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "桌子", ], @@ -26994,7 +28933,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "桌子", ], @@ -27005,7 +28944,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "桌子", ], @@ -27016,7 +28955,7 @@ Array [ "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "沙发", ], @@ -27027,7 +28966,7 @@ Array [ "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "沙发", ], @@ -27038,7 +28977,7 @@ Array [ "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "沙发", ], @@ -27049,7 +28988,7 @@ Array [ "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "沙发", ], @@ -27060,7 +28999,7 @@ Array [ "actualText": "笔", "actualTextHeight": 15, "actualTextWidth": 13, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "笔", ], @@ -27071,7 +29010,7 @@ Array [ "actualText": "笔", "actualTextHeight": 15, "actualTextWidth": 13, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "笔", ], @@ -27079,37 +29018,111 @@ Array [ "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "笔", + ], + "originalText": "笔", + "width": 103.8, + }, + Object { + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 20, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", + "width": 103.8, + }, + Object { + "actualText": "纸张", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, + "multiLineActualTexts": Array [ + "纸张", + ], + "originalText": "纸张", + "width": 103.8, + }, + Object { + "actualText": "纸张", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, + "multiLineActualTexts": Array [ + "纸张", + ], + "originalText": "纸张", + "width": 103.8, + }, + Object { + "actualText": "纸张", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, + "multiLineActualTexts": Array [ + "纸张", + ], + "originalText": "纸张", + "width": 103.8, + }, + Object { + "actualText": "纸张", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, + "multiLineActualTexts": Array [ + "纸张", + ], + "originalText": "纸张", + "width": 103.8, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 103.8, + }, + Object { + "actualText": "23672367236...", + "actualTextHeight": 15, + "actualTextWidth": 84, + "height": 20, + "multiLineActualTexts": Array [ + "23672367236...", ], "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "778977897789778977897789...", - "actualTextHeight": 30, - "actualTextWidth": 172, - "height": 46, + "actualText": "77897789778...", + "actualTextHeight": 15, + "actualTextWidth": 84, + "height": 20, "multiLineActualTexts": Array [ - "7789778977897", - "78977897789...", + "77897789778...", ], "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "23672367236...", + "actualTextHeight": 15, + "actualTextWidth": 84, + "height": 20, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "23672367236...", ], "originalText": 236723672361111, "width": 103.8, @@ -27118,7 +29131,7 @@ Array [ "actualText": "3877", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "3877", ], @@ -27129,7 +29142,7 @@ Array [ "actualText": "4342", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "4342", ], @@ -27140,7 +29153,7 @@ Array [ "actualText": "5343", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "5343", ], @@ -27151,7 +29164,7 @@ Array [ "actualText": "632", "actualTextHeight": 15, "actualTextWidth": 21, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "632", ], @@ -27162,7 +29175,7 @@ Array [ "actualText": "7234", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "7234", ], @@ -27173,7 +29186,7 @@ Array [ "actualText": "834", "actualTextHeight": 15, "actualTextWidth": 21, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "834", ], @@ -27184,7 +29197,7 @@ Array [ "actualText": "945", "actualTextHeight": 15, "actualTextWidth": 21, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "945", ], @@ -27195,231 +29208,165 @@ Array [ "actualText": "1304", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "1304", ], "originalText": 1304, "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 1`] = ` -Array [ - Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, - "multiLineActualTexts": Array [ - "序号", - ], - "originalText": "序号", - "width": 80, - }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "1145", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 26, "height": 20, "multiLineActualTexts": Array [ - "1", + "1145", ], - "originalText": 1, - "width": 80, + "originalText": 1145, + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "1432", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "2", + "1432", ], - "originalText": 2, - "width": 80, + "originalText": 1432, + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "1343", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "3", + "1343", ], - "originalText": 3, - "width": 80, + "originalText": 1343, + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "1354", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "4", + "1354", ], - "originalText": 4, - "width": 80, + "originalText": 1354, + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "1523", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "5", + "1523", ], - "originalText": 5, - "width": 80, + "originalText": 1523, + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "1634", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "6", + "1634", ], - "originalText": 6, - "width": 80, + "originalText": 1634, + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "1723", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "7", + "1723", ], - "originalText": 7, - "width": 80, + "originalText": 1723, + "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style more than actual text height by dataCell.height 1`] = ` +Array [ Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 48, "multiLineActualTexts": Array [ - "8", + "序号", ], - "originalText": 8, + "originalText": "序号", "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style more than actual text height by dataCell.height 2`] = ` +Array [ Object { - "actualText": "9", + "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "10", - ], - "originalText": 10, - "width": 80, - }, - Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, - "multiLineActualTexts": Array [ - "11", - ], - "originalText": 11, - "width": 80, - }, - Object { - "actualText": "12", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "12", - ], - "originalText": 12, - "width": 80, - }, - Object { - "actualText": "13", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "13", - ], - "originalText": 13, - "width": 80, - }, - Object { - "actualText": "14", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "14", + "1", ], - "originalText": 14, + "originalText": 1, "width": 80, }, Object { - "actualText": "15", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "15", + "2", ], - "originalText": 15, + "originalText": 2, "width": 80, }, Object { - "actualText": "16", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "16", + "3", ], - "originalText": 16, + "originalText": 3, "width": 80, }, Object { - "actualText": "17", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "17", + "4", ], - "originalText": 17, + "originalText": 4, "width": 80, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style more than actual text height by dataCell.height 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 48, "multiLineActualTexts": Array [ "序号", ], @@ -27430,7 +29377,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 48, "multiLineActualTexts": Array [ "省份", ], @@ -27438,27 +29385,25 @@ Array [ "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "城市城市城市城市城市城市城...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ "城市城市城市城", - "市城市城市城市", - "城市城市城市...", + "市城市城市城...", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 64, + "actualText": "类别类别类别类别类别类别类...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "别类别类别类...", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, @@ -27467,7 +29412,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 48, "multiLineActualTexts": Array [ "子类别", ], @@ -27475,14 +29420,13 @@ Array [ "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "数量数量数量数量数量数量数...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "量数量数量数...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, @@ -27490,15 +29434,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style more than actual text height by dataCell.height 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style more than actual text height by dataCell.height 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "1", ], @@ -27509,7 +29453,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "2", ], @@ -27520,7 +29464,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "3", ], @@ -27531,7 +29475,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "4", ], @@ -27539,1281 +29483,1223 @@ Array [ "width": 80, }, Object { - "actualText": "5", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, - "multiLineActualTexts": Array [ - "5", - ], - "originalText": 5, - "width": 80, - }, - Object { - "actualText": "6", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, - "multiLineActualTexts": Array [ - "6", - ], - "originalText": 6, - "width": 80, - }, - Object { - "actualText": "7", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, - "multiLineActualTexts": Array [ - "7", - ], - "originalText": 7, - "width": 80, - }, - Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, - "multiLineActualTexts": Array [ - "8", - ], - "originalText": 8, - "width": 80, - }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "10", - ], - "originalText": 10, - "width": 80, - }, - Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, - "multiLineActualTexts": Array [ - "11", - ], - "originalText": 11, - "width": 80, - }, - Object { - "actualText": "12", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "12", - ], - "originalText": 12, - "width": 80, - }, - Object { - "actualText": "13", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "13", + "浙江省", ], - "originalText": 13, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "14", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 100, "multiLineActualTexts": Array [ - "14", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", ], - "originalText": 14, - "width": 80, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, }, Object { - "actualText": "15", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "15", + "浙江省", ], - "originalText": 15, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "16", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "16", + "浙江省", ], - "originalText": 16, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "17", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "17", + "绍兴市", ], - "originalText": 17, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市杭", + "州市", ], - "originalText": "浙江省", + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { - "actualText": "浙江省浙江省...", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "浙江省浙江省...", + "绍兴市", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "宁波市", ], - "originalText": "浙江省", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "家具", ], - "originalText": "浙江省", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", ], - "originalText": "浙江省", + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "家具", ], - "originalText": "浙江省", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "家具", ], - "originalText": "浙江省", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "桌子", ], - "originalText": "浙江省", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子", ], - "originalText": "浙江省", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "桌子", ], - "originalText": "浙江省", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "桌子", ], - "originalText": "浙江省", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "2367236723611", + "11", ], - "originalText": "浙江省", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "7789778977897", + "7897789778977", + "89", ], - "originalText": "浙江省", + "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "2367236723611", + "11", ], - "originalText": "浙江省", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 27, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "3877", ], - "originalText": "浙江省", + "originalText": 3877, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by colCell.height 1`] = ` +Array [ Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "序号", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by colCell.height 2`] = ` +Array [ Object { - "actualText": "浙江省", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "浙江省", + "1", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "绍兴市", + "2", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "杭州市杭州市...", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "杭州市杭州市...", + "3", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "4", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "5", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "舟山市", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "6", ], - "originalText": "舟山市", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "杭州市", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "7", ], - "originalText": "杭州市", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "8", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "9", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "舟山市", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "10", ], - "originalText": "舟山市", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "杭州市", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "11", ], - "originalText": "杭州市", - "width": 103.8, + "originalText": 11, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by colCell.height 3`] = ` +Array [ Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "序号", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "宁波市", + "省份", ], - "originalText": "宁波市", + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, + "actualText": "城市城市城市...", + "actualTextHeight": 16, + "actualTextWidth": 83, "height": 20, "multiLineActualTexts": Array [ - "舟山市", + "城市城市城市...", ], - "originalText": "舟山市", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, + "actualText": "类别类别类别...", + "actualTextHeight": 16, + "actualTextWidth": 83, "height": 20, "multiLineActualTexts": Array [ - "杭州市", + "类别类别类别...", ], - "originalText": "杭州市", + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "绍兴市", - "actualTextHeight": 15, + "actualText": "子类别", + "actualTextHeight": 16, "actualTextWidth": 37, "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "子类别", ], - "originalText": "绍兴市", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, + "actualText": "数量数量数量...", + "actualTextHeight": 16, + "actualTextWidth": 83, "height": 20, "multiLineActualTexts": Array [ - "宁波市", + "数量数量数量...", ], - "originalText": "宁波市", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by colCell.height 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by colCell.height 5`] = ` +Array [ Object { - "actualText": "舟山市", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "舟山市", + "1", ], - "originalText": "舟山市", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "家具", + "2", ], - "originalText": "家具", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "家具家具家具...", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "家具家具家具...", + "3", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "4", ], - "originalText": "家具", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "5", ], - "originalText": "家具", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "6", ], - "originalText": "家具", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "7", ], - "originalText": "家具", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "8", ], - "originalText": "家具", - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "9", ], - "originalText": "家具", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "10", ], - "originalText": "家具", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "11", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualText": "浙江省浙江省浙江省浙江省浙...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 46, "multiLineActualTexts": Array [ - "办公用品", + "浙江省浙江省浙", + "江省浙江省浙...", ], - "originalText": "办公用品", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子桌子桌子...", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子...", + "浙江省", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "桌子", + "绍兴市", ], - "originalText": "桌子", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "杭州市杭州市杭州市杭州市杭...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 46, "multiLineActualTexts": Array [ - "沙发", + "杭州市杭州市杭", + "州市杭州市杭...", ], - "originalText": "沙发", + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "沙发", + "绍兴市", ], - "originalText": "沙发", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "沙发", + "宁波市", ], - "originalText": "沙发", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "沙发", + "舟山市", ], - "originalText": "沙发", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "笔", + "杭州市", ], - "originalText": "笔", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "笔", + "绍兴市", ], - "originalText": "笔", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "笔", + "宁波市", ], - "originalText": "笔", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "笔", + "舟山市", ], - "originalText": "笔", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "杭州市", ], - "originalText": "纸张", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "绍兴市", ], - "originalText": "纸张", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ - "纸张", + "家具", ], - "originalText": "纸张", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "纸张", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "家具家具家具家具家具家具家...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 46, "multiLineActualTexts": Array [ - "纸张", + "家具家具家具家", + "具家具家具家...", ], - "originalText": "纸张", + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, Object { - "actualText": "23672367236...", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 84, - "height": 20, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "23672367236...", + "家具", ], - "originalText": 236723672361111, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "77897789778...", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 84, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "77897789778...", + "家具", ], - "originalText": "7789778977897789778977897789", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "23672367236...", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 84, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "23672367236...", + "家具", ], - "originalText": 236723672361111, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "3877", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "3877", + "家具", ], - "originalText": 3877, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "4342", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "4342", + "家具", ], - "originalText": 4342, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "5343", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "5343", + "家具", ], - "originalText": 5343, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "632", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "632", + "家具", ], - "originalText": 632, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "7234", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "7234", + "办公用品", ], - "originalText": 7234, + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "834", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 20, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "834", + "办公用品", ], - "originalText": 834, + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "945", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 20, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "945", + "桌子", ], - "originalText": 945, + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "1304", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualText": "桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 46, "multiLineActualTexts": Array [ - "1304", + "桌子桌子桌子桌", + "子桌子桌子桌...", ], - "originalText": 1304, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { - "actualText": "1145", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 20, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "1145", + "桌子", ], - "originalText": 1145, + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "1432", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "1432", + "桌子", ], - "originalText": 1432, + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "1343", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "1343", + "桌子", ], - "originalText": 1343, + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "1354", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "1354", + "沙发", ], - "originalText": 1354, + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "1523", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "1523", + "沙发", ], - "originalText": 1523, + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "1634", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "1634", + "沙发", ], - "originalText": 1634, + "originalText": "沙发", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, + "actualText": "沙发", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "沙发", ], - "originalText": "序号", - "width": 80, + "originalText": "沙发", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "1", + "笔", ], - "originalText": 1, - "width": 80, + "originalText": "笔", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "2", + "笔", ], - "originalText": 2, - "width": 80, + "originalText": "笔", + "width": 103.8, }, Object { - "actualText": "3", - "actualTextHeight": 15, - "actualTextWidth": 7, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, "height": 46, "multiLineActualTexts": Array [ - "3", + "2367236723611", + "11", ], - "originalText": 3, - "width": 80, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "4", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualText": "778977897789778977897789...", + "actualTextHeight": 30, + "actualTextWidth": 172, + "height": 46, "multiLineActualTexts": Array [ - "4", + "7789778977897", + "78977897789...", ], - "originalText": 4, - "width": 80, + "originalText": "7789778977897789778977897789", + "width": 103.8, }, Object { - "actualText": "5", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "5", + "2367236723611", + "11", ], - "originalText": 5, - "width": 80, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "6", + "3877", ], - "originalText": 6, - "width": 80, + "originalText": 3877, + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "7", + "4342", ], - "originalText": 7, - "width": 80, + "originalText": 4342, + "width": 103.8, }, Object { - "actualText": "8", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "8", + "5343", ], - "originalText": 8, - "width": 80, + "originalText": 5343, + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "632", ], - "originalText": "序号", - "width": 80, + "originalText": 632, + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "省份", + "7234", ], - "originalText": "省份", + "originalText": 7234, "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市...", + "834", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": 834, "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 64, + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "945", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": 945, "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 64, + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "1304", ], - "originalText": "子类别", + "originalText": 1304, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 1`] = ` +Array [ Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 64, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "序号", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103.8, + "originalText": "序号", + "width": 80, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "1", ], @@ -28835,7 +30721,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "3", ], @@ -28846,7 +30732,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "4", ], @@ -28857,7 +30743,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "5", ], @@ -28868,7 +30754,7 @@ Array [ "actualText": "6", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "6", ], @@ -28879,7 +30765,7 @@ Array [ "actualText": "7", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "7", ], @@ -28890,7 +30776,7 @@ Array [ "actualText": "8", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "8", ], @@ -28898,741 +30784,809 @@ Array [ "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "9", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "浙江省浙江省...", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 83, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "浙江省浙江省...", + "10", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "11", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "12", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "12", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 12, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "13", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 13, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "14", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "14", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 14, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "15", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "15", + ], + "originalText": 15, + "width": 80, + }, + Object { + "actualText": "16", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "16", + ], + "originalText": 16, + "width": 80, + }, + Object { + "actualText": "17", "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "17", + ], + "originalText": 17, + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 3`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, + Object { + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, + "multiLineActualTexts": Array [ + "省份", + ], + "originalText": "省份", + "width": 103.8, + }, + Object { + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, + "multiLineActualTexts": Array [ + "城市城市城市城", + "市城市城市城市", + "城市城市城市...", + ], + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 103.8, + }, + Object { + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 64, + "multiLineActualTexts": Array [ + "类别类别类别类", + "别类别类别类别", + "类别类别类别", + ], + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 103.8, + }, + Object { + "actualText": "子类别", + "actualTextHeight": 16, "actualTextWidth": 37, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ - "浙江省", + "子类别", ], - "originalText": "浙江省", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103.8, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 5`] = ` +Array [ + Object { + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "1", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "2", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "杭州市杭州市...", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 83, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "杭州市杭州市...", + "3", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "4", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "宁波市", + "5", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "舟山市", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "舟山市", + "6", ], - "originalText": "舟山市", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "杭州市", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "杭州市", + "7", ], - "originalText": "杭州市", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "8", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "宁波市", + "9", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "10", ], - "originalText": "家具", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "家具家具家具...", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 83, + "actualTextWidth": 13, "height": 20, "multiLineActualTexts": Array [ - "家具家具家具...", + "11", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "12", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "12", ], - "originalText": "家具", - "width": 103.8, + "originalText": 12, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "13", ], - "originalText": "家具", - "width": 103.8, + "originalText": 13, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "14", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "14", ], - "originalText": "家具", - "width": 103.8, + "originalText": 14, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "15", ], - "originalText": "家具", - "width": 103.8, + "originalText": 15, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "16", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "16", ], - "originalText": "家具", - "width": 103.8, + "originalText": 16, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "17", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "17", ], - "originalText": "家具", - "width": 103.8, + "originalText": 17, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子桌子桌子...", + "actualText": "浙江省浙江省...", "actualTextHeight": 15, "actualTextWidth": 83, "height": 20, "multiLineActualTexts": Array [ - "桌子桌子桌子...", + "浙江省浙江省...", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "浙江省", ], - "originalText": "沙发", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "浙江省", ], - "originalText": "沙发", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "浙江省", ], - "originalText": "沙发", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "浙江省", ], - "originalText": 236723672361111, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "77897789778...", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 84, + "actualTextWidth": 37, "height": 20, "multiLineActualTexts": Array [ - "77897789778...", + "浙江省", ], - "originalText": "7789778977897789778977897789", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "浙江省", ], - "originalText": 236723672361111, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "3877", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "3877", + "浙江省", ], - "originalText": 3877, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "4342", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "4342", + "浙江省", ], - "originalText": 4342, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "5343", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "5343", + "浙江省", ], - "originalText": 5343, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "632", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "632", + "浙江省", ], - "originalText": 632, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "7234", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "7234", + "浙江省", ], - "originalText": 7234, + "originalText": "浙江省", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "序号", + "浙江省", ], - "originalText": "序号", - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "1", + "绍兴市", ], - "originalText": 1, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "杭州市杭州市...", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 83, + "height": 20, "multiLineActualTexts": Array [ - "2", + "杭州市杭州市...", ], - "originalText": 2, - "width": 80, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "3", + "绍兴市", ], - "originalText": 3, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "4", + "宁波市", ], - "originalText": 4, - "width": 80, + "originalText": "宁波市", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "序号", + "舟山市", ], - "originalText": "序号", - "width": 80, + "originalText": "舟山市", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "省份", + "杭州市", ], - "originalText": "省份", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市...", + "绍兴市", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 64, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "宁波市", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, + "actualText": "舟山市", + "actualTextHeight": 15, "actualTextWidth": 37, - "height": 64, + "height": 20, "multiLineActualTexts": Array [ - "子类别", + "舟山市", ], - "originalText": "子类别", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, - "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "杭州市", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "杭州市", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "1", + "绍兴市", ], - "originalText": 1, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "2", + "宁波市", ], - "originalText": 2, - "width": 80, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "3", + "舟山市", ], - "originalText": 3, - "width": 80, + "originalText": "舟山市", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "4", + "杭州市", ], - "originalText": 4, - "width": 80, + "originalText": "杭州市", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "绍兴市", ], - "originalText": "浙江省", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 100, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省浙", - "江省", + "宁波市", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "舟山市", ], - "originalText": "浙江省", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "家具", ], - "originalText": "浙江省", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "家具家具家具...", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 83, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "家具家具家具...", ], - "originalText": "绍兴市", + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 100, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市杭", - "州市", + "家具", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "家具", ], - "originalText": "绍兴市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "宁波市", + "家具", ], - "originalText": "宁波市", + "originalText": "家具", "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -29640,24 +31594,21 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 100, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "家具", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": "家具", "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -29668,7 +31619,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -29676,713 +31627,665 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "办公用品", ], - "originalText": "桌子", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 100, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子", + "办公用品", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "办公用品", ], - "originalText": "桌子", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "办公用品", ], - "originalText": "桌子", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 100, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "办公用品", ], - "originalText": 236723672361111, + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 100, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "办公用品", ], - "originalText": "7789778977897789778977897789", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 100, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "办公用品", ], - "originalText": 236723672361111, + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "3877", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 100, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "3877", + "办公用品", ], - "originalText": 3877, + "originalText": "办公用品", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, + "actualText": "桌子", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 64, + "height": 20, "multiLineActualTexts": Array [ - "序号", + "桌子", ], - "originalText": "序号", - "width": 80, + "originalText": "桌子", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "桌子桌子桌子...", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 83, + "height": 20, "multiLineActualTexts": Array [ - "1", + "桌子桌子桌子...", ], - "originalText": 1, - "width": 80, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "2", + "桌子", ], - "originalText": 2, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "3", + "桌子", ], - "originalText": 3, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "4", + "桌子", ], - "originalText": 4, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "5", + "沙发", ], - "originalText": 5, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "6", + "沙发", ], - "originalText": 6, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, + "actualText": "沙发", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 64, + "height": 20, "multiLineActualTexts": Array [ - "序号", + "沙发", ], - "originalText": "序号", - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, + "actualText": "沙发", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 64, + "height": 20, "multiLineActualTexts": Array [ - "省份", + "沙发", ], - "originalText": "省份", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市...", + "笔", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 64, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "笔", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 64, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "子类别", + "笔", ], - "originalText": "子类别", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "笔", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "笔", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "1", + "纸张", ], - "originalText": 1, - "width": 80, + "originalText": "纸张", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "2", + "纸张", ], - "originalText": 2, - "width": 80, + "originalText": "纸张", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "3", + "纸张", ], - "originalText": 3, - "width": 80, + "originalText": "纸张", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "4", + "纸张", ], - "originalText": 4, - "width": 80, + "originalText": "纸张", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "23672367236...", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 84, + "height": 20, "multiLineActualTexts": Array [ - "5", + "23672367236...", ], - "originalText": 5, - "width": 80, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "77897789778...", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 84, + "height": 20, "multiLineActualTexts": Array [ - "6", + "77897789778...", ], - "originalText": 6, - "width": 80, + "originalText": "7789778977897789778977897789", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "23672367236...", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 84, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "23672367236...", ], - "originalText": "浙江省", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 100, + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省浙", - "江省", + "3877", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": 3877, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "4342", ], - "originalText": "浙江省", + "originalText": 4342, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "5343", ], - "originalText": "浙江省", + "originalText": 5343, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 21, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "632", ], - "originalText": "浙江省", + "originalText": 632, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "7234", ], - "originalText": "浙江省", + "originalText": 7234, "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 21, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "834", ], - "originalText": "绍兴市", + "originalText": 834, "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 100, + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 20, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市杭", - "州市", + "945", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": 945, "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "1304", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "1304", ], - "originalText": "绍兴市", + "originalText": 1304, "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "1145", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 26, + "height": 20, "multiLineActualTexts": Array [ - "宁波市", + "1145", ], - "originalText": "宁波市", + "originalText": 1145, "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "1432", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "舟山市", + "1432", ], - "originalText": "舟山市", + "originalText": 1432, "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "1343", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "杭州市", + "1343", ], - "originalText": "杭州市", + "originalText": 1343, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "1354", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "1354", ], - "originalText": "家具", + "originalText": 1354, "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 100, + "actualText": "1523", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "1523", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": 1523, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "1634", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "1634", ], - "originalText": "家具", + "originalText": 1634, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 1`] = ` +Array [ Object { - "actualText": "家具", - "actualTextHeight": 15, + "actualText": "序号", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ - "家具", + "序号", ], - "originalText": "家具", - "width": 103.8, + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 2`] = ` +Array [ Object { - "actualText": "家具", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "家具", + "1", ], - "originalText": "家具", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "2", ], - "originalText": "家具", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "桌子", + "3", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 100, + "actualText": "4", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子", + "4", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "桌子", + "5", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "6", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "7", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "沙发", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "8", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 8, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 3`] = ` +Array [ Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 100, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "序号", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 100, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "省份", ], - "originalText": "7789778977897789778977897789", + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "城市城市城市城", + "市城市城市城市", + "城市城市城市...", ], - "originalText": 236723672361111, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "3877", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 64, "multiLineActualTexts": Array [ - "3877", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": 3877, + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "4342", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 64, "multiLineActualTexts": Array [ - "4342", + "子类别", ], - "originalText": 4342, + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "5343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "5343", + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", ], - "originalText": 5343, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 1`] = ` -Array [ - Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "序号", - ], - "originalText": "序号", - "width": 80, - }, -] -`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -30393,7 +32296,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "2", ], @@ -30404,7 +32307,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -30426,7 +32329,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "5", ], @@ -30467,627 +32370,741 @@ Array [ "width": 80, }, Object { - "actualText": "9", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省浙江省...", + "actualTextHeight": 15, + "actualTextWidth": 83, + "height": 20, + "multiLineActualTexts": Array [ + "浙江省浙江省...", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "9", + "浙江省", ], - "originalText": 9, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "10", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 37, + "height": 100, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "10", + "浙江省", ], - "originalText": 10, - "width": 80, + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "杭州市杭州市...", + "actualTextHeight": 15, + "actualTextWidth": 83, + "height": 20, + "multiLineActualTexts": Array [ + "杭州市杭州市...", + ], + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, }, Object { - "actualText": "11", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "11", + "绍兴市", ], - "originalText": 11, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "12", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "12", + "宁波市", ], - "originalText": 12, - "width": 80, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "13", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "13", + "舟山市", ], - "originalText": 13, - "width": 80, + "originalText": "舟山市", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "序号", + "杭州市", ], - "originalText": "序号", - "width": 80, + "originalText": "杭州市", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "省份", + "绍兴市", ], - "originalText": "省份", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 16, - "actualTextWidth": 289, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城市城市城市城市城市城市城市城市城市", + "宁波市", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 16, - "actualTextWidth": 241, - "height": 30, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "类别类别类别类别类别类别类别类别类别类别", + "家具", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 30, + "actualText": "家具家具家具...", + "actualTextHeight": 15, + "actualTextWidth": 83, + "height": 20, "multiLineActualTexts": Array [ - "子类别", + "家具家具家具...", ], - "originalText": "子类别", + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 16, - "actualTextWidth": 265, - "height": 30, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "数量数量数量数量数量数量数量数量数量数量数量", + "家具", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "家具", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "1", + "家具", ], - "originalText": 1, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "2", + "家具", ], - "originalText": 2, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "3", + "家具", ], - "originalText": 3, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "4", + "家具", ], - "originalText": 4, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "5", + "家具", ], - "originalText": 5, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "6", + "桌子", ], - "originalText": 6, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "桌子桌子桌子...", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 83, + "height": 20, "multiLineActualTexts": Array [ - "7", + "桌子桌子桌子...", ], - "originalText": 7, - "width": 80, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, }, Object { - "actualText": "8", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "8", + "桌子", ], - "originalText": 8, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "9", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "9", + "桌子", ], - "originalText": 9, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "10", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "10", + "桌子", ], - "originalText": 10, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "11", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "11", + "沙发", ], - "originalText": 11, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "12", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "12", + "沙发", ], - "originalText": 12, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "13", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "13", + "沙发", ], - "originalText": 13, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "浙江省", + "2367236723611", + "11", ], - "originalText": "浙江省", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualText": "77897789778...", "actualTextHeight": 15, - "actualTextWidth": 361, - "height": 30, + "actualTextWidth": 84, + "height": 20, "multiLineActualTexts": Array [ - "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "77897789778...", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "浙江省", + "2367236723611", + "11", ], - "originalText": "浙江省", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "3877", ], - "originalText": "浙江省", + "originalText": 3877, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 27, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "4342", ], - "originalText": "浙江省", + "originalText": 4342, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "5343", ], - "originalText": "浙江省", + "originalText": 5343, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "632", ], - "originalText": "浙江省", + "originalText": 632, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "7234", ], - "originalText": "浙江省", + "originalText": 7234, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 1`] = ` +Array [ Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "浙江省", + "序号", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 2`] = ` +Array [ Object { - "actualText": "浙江省", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "1", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "2", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "3", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "4", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 4, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 3`] = ` +Array [ Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "绍兴市", + "序号", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "actualTextHeight": 15, - "actualTextWidth": 361, - "height": 30, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "省份", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "绍兴市", + "城市城市城市城", + "市城市城市城市", + "城市城市城市...", ], - "originalText": "绍兴市", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 64, "multiLineActualTexts": Array [ - "宁波市", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": "宁波市", + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "舟山市", - "actualTextHeight": 15, + "actualText": "子类别", + "actualTextHeight": 16, "actualTextWidth": 37, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ - "舟山市", + "子类别", ], - "originalText": "舟山市", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "杭州市", + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", ], - "originalText": "杭州市", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 5`] = ` +Array [ Object { - "actualText": "绍兴市", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "绍兴市", + "1", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "宁波市", + "2", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "舟山市", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "舟山市", + "3", ], - "originalText": "舟山市", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "杭州市", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "杭州市", + "4", ], - "originalText": "杭州市", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ - "绍兴市", + "浙江省", ], - "originalText": "绍兴市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 100, "multiLineActualTexts": Array [ - "宁波市", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", ], - "originalText": "宁波市", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ - "舟山市", + "浙江省", ], - "originalText": "舟山市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "浙江省", ], - "originalText": "家具", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 337, - "height": 30, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "绍兴市", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市杭", + "州市", ], - "originalText": "家具", + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "绍兴市", ], - "originalText": "家具", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "宁波市", ], - "originalText": "家具", + "originalText": "宁波市", "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "家具", ], @@ -31095,21 +33112,24 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", ], - "originalText": "家具", + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "家具", ], @@ -31120,7 +33140,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "家具", ], @@ -31128,54 +33148,47 @@ Array [ "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 103.8, - }, - Object { - "actualText": "办公用品", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "办公用品", + "桌子", ], - "originalText": "办公用品", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 100, "multiLineActualTexts": Array [ - "办公用品", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子", ], - "originalText": "办公用品", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "办公用品", + "桌子", ], - "originalText": "办公用品", + "originalText": "桌子", "width": 103.8, }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "桌子", ], @@ -31183,626 +33196,649 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "actualTextHeight": 15, - "actualTextWidth": 361, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 100, "multiLineActualTexts": Array [ - "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "2367236723611", + "11", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 100, "multiLineActualTexts": Array [ - "桌子", + "7789778977897", + "7897789778977", + "89", ], - "originalText": "桌子", + "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 100, "multiLineActualTexts": Array [ - "桌子", + "2367236723611", + "11", ], - "originalText": "桌子", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 27, + "height": 100, "multiLineActualTexts": Array [ - "桌子", + "3877", ], - "originalText": "桌子", + "originalText": 3877, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 1`] = ` +Array [ Object { - "actualText": "沙发", - "actualTextHeight": 15, + "actualText": "序号", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ - "沙发", + "序号", ], - "originalText": "沙发", - "width": 103.8, + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 2`] = ` +Array [ Object { - "actualText": "沙发", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "沙发", + "1", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "沙发", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "沙发", + "2", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "沙发", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "沙发", + "3", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "笔", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "笔", + "4", ], - "originalText": "笔", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "笔", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "笔", + "5", ], - "originalText": "笔", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "笔", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "笔", + "6", ], - "originalText": "笔", - "width": 103.8, + "originalText": 6, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 3`] = ` +Array [ Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "笔", + "序号", ], - "originalText": "笔", - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 15, - "actualTextWidth": 98, - "height": 30, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "236723672361111", + "省份", ], - "originalText": 236723672361111, + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 15, - "actualTextWidth": 187, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "7789778977897789778977897789", + "城市城市城市城", + "市城市城市城市", + "城市城市城市...", ], - "originalText": "7789778977897789778977897789", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 15, - "actualTextWidth": 98, - "height": 30, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 64, "multiLineActualTexts": Array [ - "236723672361111", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": 236723672361111, + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "3877", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 64, "multiLineActualTexts": Array [ - "3877", + "子类别", ], - "originalText": 3877, + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "4342", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "4342", + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", ], - "originalText": 4342, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 5`] = ` +Array [ Object { - "actualText": "5343", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "5343", + "1", ], - "originalText": 5343, - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "632", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "632", + "2", ], - "originalText": 632, - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "7234", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "7234", + "3", ], - "originalText": 7234, - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "834", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "834", + "4", ], - "originalText": 834, - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "945", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "945", + "5", ], - "originalText": 945, - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "1304", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "1304", + "6", ], - "originalText": 1304, - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "1145", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 30, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "1145", + "浙江省", ], - "originalText": 1145, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "1432", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 100, "multiLineActualTexts": Array [ - "1432", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", ], - "originalText": 1432, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not throw text wrapping exception 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "序号", + "浙江省", ], - "originalText": "序号", - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not throw text wrapping exception 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "1", + "浙江省", ], - "originalText": 1, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "2", + "浙江省", ], - "originalText": 2, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "3", + "浙江省", ], - "originalText": 3, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not throw text wrapping exception 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "序号", + "绍兴市", ], - "originalText": "序号", - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "测试数据", - "actualTextHeight": 64, - "actualTextWidth": 52, - "height": 80, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 100, "multiLineActualTexts": Array [ - "测", - "试", - "数", - "据", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市杭", + "州市", ], - "originalText": "测试数据", - "width": 20, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, }, Object { - "actualText": "city", - "actualTextHeight": 16, - "actualTextWidth": 21, - "height": 80, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "city", + "绍兴市", ], - "originalText": "city", - "width": 143.8, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "type", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "type", + "宁波市", ], - "originalText": "type", - "width": 143.8, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "price", - "actualTextHeight": 16, - "actualTextWidth": 29, - "height": 80, + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "price", + "舟山市", ], - "originalText": "price", - "width": 143.8, + "originalText": "舟山市", + "width": 103.8, }, Object { - "actualText": "cost", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "cost", + "杭州市", ], - "originalText": "cost", - "width": 143.8, + "originalText": "杭州市", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not throw text wrapping exception 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not throw text wrapping exception 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "1", + "家具", ], - "originalText": 1, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "2", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 100, "multiLineActualTexts": Array [ - "2", + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", ], - "originalText": 2, - "width": 80, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 46, "multiLineActualTexts": Array [ - "3", + "家具", ], - "originalText": 3, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "浙江", - "actualTextHeight": 30, - "actualTextWidth": 26, - "height": 46, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "浙", - "江", + "家具", ], - "originalText": "浙江", - "width": 20, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "浙江", - "actualTextHeight": 30, - "actualTextWidth": 26, - "height": 46, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "浙", - "江", + "家具", ], - "originalText": "浙江", - "width": 20, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "浙江", - "actualTextHeight": 30, - "actualTextWidth": 26, - "height": 46, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "浙", - "江", + "家具", ], - "originalText": "浙江", - "width": 20, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "义乌", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 100, "multiLineActualTexts": Array [ - "义乌", + "桌子", ], - "originalText": "义乌", - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "义乌", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 100, "multiLineActualTexts": Array [ - "义乌", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子", ], - "originalText": "义乌", - "width": 143.8, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, }, Object { - "actualText": "杭州", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, "height": 46, "multiLineActualTexts": Array [ - "杭州", + "桌子", ], - "originalText": "杭州", - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 46, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "笔", + "桌子", ], - "originalText": "笔", - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 46, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "笔", + "桌子", ], - "originalText": "笔", - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 46, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "笔", + "沙发", ], - "originalText": "笔", - "width": 143.8, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "1", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 100, "multiLineActualTexts": Array [ - "1", + "2367236723611", + "11", ], - "originalText": 1, - "width": 143.8, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "1", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 100, "multiLineActualTexts": Array [ - "1", + "7789778977897", + "7897789778977", + "89", ], - "originalText": 1, - "width": 143.8, + "originalText": "7789778977897789778977897789", + "width": 103.8, }, Object { - "actualText": "1", - "actualTextHeight": 15, - "actualTextWidth": 7, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, "height": 46, "multiLineActualTexts": Array [ - "1", + "2367236723611", + "11", ], - "originalText": 1, - "width": 143.8, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "2", + "3877", ], - "originalText": 2, - "width": 143.8, + "originalText": 3877, + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "2", + "4342", ], - "originalText": 2, - "width": 143.8, + "originalText": 4342, + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "2", + "5343", ], - "originalText": 2, - "width": 143.8, + "originalText": 5343, + "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ "序号", ], @@ -31812,13 +33848,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "1", ], @@ -31829,7 +33865,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 91, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -31840,7 +33876,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -31902,16 +33938,71 @@ Array [ "originalText": 8, "width": 80, }, + Object { + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "9", + ], + "originalText": 9, + "width": 80, + }, + Object { + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "10", + ], + "originalText": 10, + "width": 80, + }, + Object { + "actualText": "11", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "11", + ], + "originalText": 11, + "width": 80, + }, + Object { + "actualText": "12", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "12", + ], + "originalText": 12, + "width": 80, + }, + Object { + "actualText": "13", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "13", + ], + "originalText": 13, + "width": 80, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ "序号", ], @@ -31922,7 +34013,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ "省份", ], @@ -31931,27 +34022,22 @@ Array [ }, Object { "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, - "height": 80, + "actualTextHeight": 16, + "actualTextWidth": 289, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "城市城市城市城市城市城市城市城市城市城市城市城市", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 80, + "actualTextHeight": 16, + "actualTextWidth": 241, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "类别类别类别类别类别类别类别类别类别类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, @@ -31960,7 +34046,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ "子类别", ], @@ -31969,14 +34055,11 @@ Array [ }, Object { "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 64, - "actualTextWidth": 268, - "height": 80, + "actualTextHeight": 16, + "actualTextWidth": 265, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "数量数量数量数量数量数量数量数量数量数量数量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, @@ -31984,15 +34067,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "1", ], @@ -32003,7 +34086,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 91, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -32014,7 +34097,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -32076,11 +34159,66 @@ Array [ "originalText": 8, "width": 80, }, + Object { + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "9", + ], + "originalText": 9, + "width": 80, + }, + Object { + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "10", + ], + "originalText": 10, + "width": 80, + }, + Object { + "actualText": "11", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "11", + ], + "originalText": 11, + "width": 80, + }, + Object { + "actualText": "12", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "12", + ], + "originalText": 12, + "width": 80, + }, + Object { + "actualText": "13", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "13", + ], + "originalText": 13, + "width": 80, + }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -32089,15 +34227,11 @@ Array [ }, Object { "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 91, + "actualTextHeight": 15, + "actualTextWidth": 361, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省浙", - "江省", + "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, @@ -32106,7 +34240,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -32169,73 +34303,58 @@ Array [ "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 91, + "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市杭", - "州市", + "浙江省", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "浙江省", ], - "originalText": "绍兴市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "浙江省", ], - "originalText": "宁波市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "浙江省", ], - "originalText": "舟山市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "浙江省", ], - "originalText": "杭州市", + "originalText": "浙江省", "width": 103.8, }, Object { @@ -32250,974 +34369,912 @@ Array [ "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 361, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", ], - "originalText": "宁波市", + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 91, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "绍兴市", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "宁波市", ], - "originalText": "家具", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "家具", + "舟山市", ], - "originalText": "家具", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "家具", + "杭州市", ], - "originalText": "家具", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "家具", + "绍兴市", ], - "originalText": "家具", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "家具", + "宁波市", ], - "originalText": "家具", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "家具", + "舟山市", ], - "originalText": "家具", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, - "multiLineActualTexts": Array [ - "桌子", - ], - "originalText": "桌子", - "width": 103.8, - }, - Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 91, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子", + "杭州市", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "绍兴市", ], - "originalText": "桌子", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "宁波市", ], - "originalText": "桌子", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "舟山市", ], - "originalText": "桌子", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "家具", ], - "originalText": "沙发", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 337, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", ], - "originalText": "沙发", + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "家具", ], - "originalText": "沙发", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "家具", ], - "originalText": 236723672361111, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 91, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "家具", ], - "originalText": "7789778977897789778977897789", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "家具", ], - "originalText": 236723672361111, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "3877", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "3877", + "家具", ], - "originalText": 3877, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "4342", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "4342", + "家具", ], - "originalText": 4342, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "5343", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "5343", + "家具", ], - "originalText": 5343, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "632", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "632", + "办公用品", ], - "originalText": 632, + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "7234", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "7234", + "办公用品", ], - "originalText": 7234, + "originalText": "办公用品", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 1`] = ` -Array [ - Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, - "multiLineActualTexts": Array [ - "序号", - ], - "originalText": "序号", - "width": 80, - }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 61, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "1", + "办公用品", ], - "originalText": 1, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "2", + "办公用品", ], - "originalText": 2, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 91, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "3", + "桌子", ], - "originalText": 3, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 361, + "height": 30, "multiLineActualTexts": Array [ - "4", + "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", ], - "originalText": 4, - "width": 80, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "5", + "桌子", ], - "originalText": 5, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "6", + "桌子", ], - "originalText": 6, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "7", + "桌子", ], - "originalText": 7, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, + "actualText": "沙发", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "沙发", ], - "originalText": "序号", - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, + "actualText": "沙发", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ - "省份", + "沙发", ], - "originalText": "省份", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, - "height": 80, + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "沙发", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 80, + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "沙发", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 80, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "笔", ], - "originalText": "子类别", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 64, - "actualTextWidth": 268, - "height": 80, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "笔", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "笔", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 61, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "1", + "笔", ], - "originalText": 1, - "width": 80, + "originalText": "笔", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "2", + "笔", ], - "originalText": 2, - "width": 80, + "originalText": "笔", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "236723672361111", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 91, + "actualTextWidth": 98, + "height": 30, "multiLineActualTexts": Array [ - "3", + "236723672361111", ], - "originalText": 3, - "width": 80, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "7789778977897789778977897789", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 187, + "height": 30, "multiLineActualTexts": Array [ - "4", + "7789778977897789778977897789", ], - "originalText": 4, - "width": 80, + "originalText": "7789778977897789778977897789", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "236723672361111", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 98, "height": 30, "multiLineActualTexts": Array [ - "5", + "236723672361111", ], - "originalText": 5, - "width": 80, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "6", + "3877", ], - "originalText": 6, - "width": 80, + "originalText": 3877, + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "7", + "4342", ], - "originalText": 7, - "width": 80, + "originalText": 4342, + "width": 103.8, }, Object { - "actualText": "浙江浙江", - "actualTextHeight": 30, - "actualTextWidth": 50, - "height": 61, + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "浙江", - "浙江", + "5343", ], - "originalText": "浙江 -浙江", + "originalText": 5343, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "632", ], - "originalText": "浙江省", + "originalText": 632, "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 91, + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省浙", - "江省", + "7234", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": 7234, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "834", ], - "originalText": "浙江省", + "originalText": 834, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "945", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "945", ], - "originalText": "浙江省", + "originalText": 945, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "1304", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "1304", ], - "originalText": "浙江省", + "originalText": 1304, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "1145", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 26, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "1145", ], - "originalText": "浙江省", + "originalText": 1145, "width": 103.8, }, Object { - "actualText": "杭州杭州杭州", - "actualTextHeight": 45, - "actualTextWidth": 75, - "height": 61, + "actualText": "1432", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "杭州", - "杭州", - "杭州", + "1432", ], - "originalText": "杭州 -杭州 -杭州", + "originalText": 1432, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not throw text wrapping exception 1`] = ` +Array [ Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, "multiLineActualTexts": Array [ - "绍兴市", + "序号", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not throw text wrapping exception 2`] = ` +Array [ Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 91, + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市杭", - "州市", + "1", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 46, "multiLineActualTexts": Array [ - "绍兴市", + "2", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "宁波市", + "3", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": 3, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not throw text wrapping exception 3`] = ` +Array [ Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, "multiLineActualTexts": Array [ - "舟山市", + "序号", ], - "originalText": "舟山市", - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "测试数据", + "actualTextHeight": 64, + "actualTextWidth": 52, + "height": 80, "multiLineActualTexts": Array [ - "杭州市", + "测", + "试", + "数", + "据", ], - "originalText": "杭州市", - "width": 103.8, + "originalText": "测试数据", + "width": 20, }, Object { - "actualText": "纸张纸张", - "actualTextHeight": 30, - "actualTextWidth": 50, - "height": 61, + "actualText": "city", + "actualTextHeight": 16, + "actualTextWidth": 21, + "height": 80, "multiLineActualTexts": Array [ - "纸张", - "纸张", + "city", ], - "originalText": "纸张 -纸张", - "width": 103.8, + "originalText": "city", + "width": 143.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, + "actualText": "type", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 46, + "height": 80, "multiLineActualTexts": Array [ - "家具", + "type", ], - "originalText": "家具", - "width": 103.8, + "originalText": "type", + "width": 143.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 91, + "actualText": "price", + "actualTextHeight": 16, + "actualTextWidth": 29, + "height": 80, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "price", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, + "originalText": "price", + "width": 143.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, + "actualText": "cost", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 46, + "height": 80, "multiLineActualTexts": Array [ - "家具", + "cost", ], - "originalText": "家具", - "width": 103.8, + "originalText": "cost", + "width": 143.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not throw text wrapping exception 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not throw text wrapping exception 5`] = ` +Array [ Object { - "actualText": "家具", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "家具", + "1", ], - "originalText": "家具", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "家具", + "2", ], - "originalText": "家具", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "家具", + "3", ], - "originalText": "家具", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 61, + "actualText": "浙江", + "actualTextHeight": 30, + "actualTextWidth": 26, + "height": 46, "multiLineActualTexts": Array [ - "-", + "浙", + "江", ], - "originalText": "-", - "width": 103.8, + "originalText": "浙江", + "width": 20, }, Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, + "actualText": "浙江", + "actualTextHeight": 30, + "actualTextWidth": 26, "height": 46, "multiLineActualTexts": Array [ - "桌子", + "浙", + "江", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "浙江", + "width": 20, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 91, + "actualText": "浙江", + "actualTextHeight": 30, + "actualTextWidth": 26, + "height": 46, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子", + "浙", + "江", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103.8, + "originalText": "浙江", + "width": 20, }, Object { - "actualText": "桌子", + "actualText": "义乌", "actualTextHeight": 15, "actualTextWidth": 25, "height": 46, "multiLineActualTexts": Array [ - "桌子", + "义乌", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "义乌", + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "义乌", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ - "桌子", + "义乌", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "义乌", + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "杭州", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ - "桌子", + "杭州", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "杭州", + "width": 143.8, }, Object { - "actualText": "沙发", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 13, + "height": 46, "multiLineActualTexts": Array [ - "沙发", + "笔", ], - "originalText": "沙发", - "width": 103.8, + "originalText": "笔", + "width": 143.8, }, Object { - "actualText": "-", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 61, + "actualTextWidth": 13, + "height": 46, "multiLineActualTexts": Array [ - "-", + "笔", ], - "originalText": "-", - "width": 103.8, + "originalText": "笔", + "width": 143.8, + }, + Object { + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 46, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", + "width": 143.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, "height": 46, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "1", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 1, + "width": 143.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 91, + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "1", ], - "originalText": "7789778977897789778977897789", - "width": 103.8, + "originalText": 1, + "width": 143.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, "height": 46, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "1", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 1, + "width": 143.8, }, Object { - "actualText": "3877", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "3877", + "2", ], - "originalText": 3877, - "width": 103.8, + "originalText": 2, + "width": 143.8, }, Object { - "actualText": "4342", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "4342", + "2", ], - "originalText": 4342, - "width": 103.8, + "originalText": 2, + "width": 143.8, }, Object { - "actualText": "5343", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "5343", + "2", ], - "originalText": 5343, - "width": 103.8, + "originalText": 2, + "width": 143.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 80, "multiLineActualTexts": Array [ "序号", ], @@ -33227,13 +35284,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -33244,7 +35301,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 91, "multiLineActualTexts": Array [ "2", ], @@ -33255,7 +35312,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -33317,137 +35374,16 @@ Array [ "originalText": 8, "width": 80, }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "10", - ], - "originalText": 10, - "width": 80, - }, - Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "11", - ], - "originalText": 11, - "width": 80, - }, - Object { - "actualText": "12", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "12", - ], - "originalText": 12, - "width": 80, - }, - Object { - "actualText": "13", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "13", - ], - "originalText": 13, - "width": 80, - }, - Object { - "actualText": "14", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "14", - ], - "originalText": 14, - "width": 80, - }, - Object { - "actualText": "15", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "15", - ], - "originalText": 15, - "width": 80, - }, - Object { - "actualText": "16", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "16", - ], - "originalText": 16, - "width": 80, - }, - Object { - "actualText": "17", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "17", - ], - "originalText": 17, - "width": 80, - }, - Object { - "actualText": "18", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "18", - ], - "originalText": 18, - "width": 80, - }, - Object { - "actualText": "19", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "19", - ], - "originalText": 19, - "width": 80, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 80, "multiLineActualTexts": Array [ "序号", ], @@ -33458,69 +35394,77 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 80, "multiLineActualTexts": Array [ "省份", ], "originalText": "省份", - "width": 143.8, + "width": 103.8, }, Object { - "actualText": "城市城市城市城市城...", - "actualTextHeight": 16, - "actualTextWidth": 119, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 80, "multiLineActualTexts": Array [ - "城市城市城市城市城...", + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 143.8, + "width": 103.8, }, Object { - "actualText": "类别类别类别类别类...", - "actualTextHeight": 16, - "actualTextWidth": 119, - "height": 30, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 80, "multiLineActualTexts": Array [ - "类别类别类别类别类...", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 30, + "height": 80, "multiLineActualTexts": Array [ "子类别", ], "originalText": "子类别", - "width": 143.8, + "width": 103.8, }, Object { - "actualText": "数量数量数量数量数...", - "actualTextHeight": 16, - "actualTextWidth": 119, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 64, + "actualTextWidth": 268, + "height": 80, "multiLineActualTexts": Array [ - "数量数量数量数量数...", + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 143.8, + "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -33531,7 +35475,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 91, "multiLineActualTexts": Array [ "2", ], @@ -33542,7 +35486,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -33605,159 +35549,41 @@ Array [ "width": 80, }, Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "10", - ], - "originalText": 10, - "width": 80, - }, - Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "11", - ], - "originalText": 11, - "width": 80, - }, - Object { - "actualText": "12", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "12", - ], - "originalText": 12, - "width": 80, - }, - Object { - "actualText": "13", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "13", - ], - "originalText": 13, - "width": 80, - }, - Object { - "actualText": "14", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "14", - ], - "originalText": 14, - "width": 80, - }, - Object { - "actualText": "15", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "15", - ], - "originalText": 15, - "width": 80, - }, - Object { - "actualText": "16", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "16", - ], - "originalText": 16, - "width": 80, - }, - Object { - "actualText": "17", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "17", - ], - "originalText": 17, - "width": 80, - }, - Object { - "actualText": "18", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "18", - ], - "originalText": 18, - "width": 80, - }, - Object { - "actualText": "19", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "19", + "浙江省", ], - "originalText": 19, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "浙江...", - "actualTextHeight": 15, - "actualTextWidth": 35, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ - "浙江...", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", ], - "originalText": "浙江 -浙江", - "width": 143.8, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], "originalText": "浙江省", - "width": 143.8, - }, - Object { - "actualText": "浙江省浙江省浙江省...", - "actualTextHeight": 15, - "actualTextWidth": 119, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省浙江省浙江省...", - ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "浙江省", @@ -33768,7 +35594,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "浙江省", @@ -33779,7 +35605,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "浙江省", @@ -33790,7 +35616,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "浙江省", @@ -33801,7 +35627,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "浙江省", @@ -33812,978 +35638,1058 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 143.8, + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ - "浙江省", + "绍兴市", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, + "multiLineActualTexts": Array [ + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市杭", + "州市", + ], + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ - "浙江省", + "绍兴市", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "宁波市", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "舟山市", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "舟山市", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "杭州市", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "杭州市", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "杭州市", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "绍兴市", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "宁波市", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "浙江省", + "家具", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 91, "multiLineActualTexts": Array [ - "浙江省", + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "浙江省", + "家具", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "四川省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "四川省", + "家具", ], - "originalText": "四川省", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "杭州...", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 35, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "杭州...", + "家具", ], - "originalText": "杭州 -杭州 -杭州", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "家具", ], - "originalText": "绍兴市", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市...", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 119, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市杭州市...", + "家具", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "家具", ], - "originalText": "绍兴市", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "宁波市", + "桌子", ], - "originalText": "宁波市", - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ - "舟山市", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子", ], - "originalText": "舟山市", - "width": 143.8, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "杭州市", + "桌子", ], - "originalText": "杭州市", - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "桌子", ], - "originalText": "绍兴市", - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "桌子", ], - "originalText": "宁波市", - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "沙发", ], - "originalText": "舟山市", - "width": 143.8, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "沙发", ], - "originalText": "杭州市", - "width": 143.8, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "沙发", ], - "originalText": "绍兴市", - "width": 143.8, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "宁波市", + "2367236723611", + "11", ], - "originalText": "宁波市", - "width": 143.8, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 91, "multiLineActualTexts": Array [ - "舟山市", + "7789778977897", + "7897789778977", + "89", ], - "originalText": "舟山市", - "width": 143.8, + "originalText": "7789778977897789778977897789", + "width": 103.8, }, Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "杭州市", + "2367236723611", + "11", ], - "originalText": "杭州市", - "width": 143.8, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "3877", ], - "originalText": "绍兴市", - "width": 143.8, + "originalText": 3877, + "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "4342", ], - "originalText": "宁波市", - "width": 143.8, + "originalText": 4342, + "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "5343", ], - "originalText": "舟山市", - "width": 143.8, + "originalText": 5343, + "width": 103.8, }, Object { - "actualText": "成都市", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "成都市", + "632", ], - "originalText": "成都市", - "width": 143.8, + "originalText": 632, + "width": 103.8, }, Object { - "actualText": "纸张...", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 35, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "纸张...", + "7234", ], - "originalText": "纸张 -纸张", - "width": 143.8, + "originalText": 7234, + "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 1`] = ` +Array [ Object { - "actualText": "家具", - "actualTextHeight": 15, + "actualText": "序号", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 80, "multiLineActualTexts": Array [ - "家具", + "序号", ], - "originalText": "家具", - "width": 143.8, + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 2`] = ` +Array [ Object { - "actualText": "家具家具家具家具家...", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 119, - "height": 30, + "actualTextWidth": 7, + "height": 61, "multiLineActualTexts": Array [ - "家具家具家具家具家...", + "1", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 143.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "家具", + "2", ], - "originalText": "家具", - "width": 143.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 91, "multiLineActualTexts": Array [ - "家具", + "3", ], - "originalText": "家具", - "width": 143.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "家具", + "4", ], - "originalText": "家具", - "width": 143.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "家具", + "5", ], - "originalText": "家具", - "width": 143.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "家具", + "6", ], - "originalText": "家具", - "width": 143.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "家具", + "7", ], - "originalText": "家具", - "width": 143.8, + "originalText": 7, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 3`] = ` +Array [ Object { - "actualText": "家具", - "actualTextHeight": 15, + "actualText": "序号", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 80, "multiLineActualTexts": Array [ - "家具", + "序号", ], - "originalText": "家具", - "width": 143.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, "multiLineActualTexts": Array [ - "办公用品", + "省份", ], - "originalText": "办公用品", - "width": 143.8, + "originalText": "省份", + "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 80, "multiLineActualTexts": Array [ - "办公用品", + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", ], - "originalText": "办公用品", - "width": 143.8, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 80, "multiLineActualTexts": Array [ - "办公用品", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": "办公用品", - "width": 143.8, + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 80, "multiLineActualTexts": Array [ - "办公用品", + "子类别", ], - "originalText": "办公用品", - "width": 143.8, + "originalText": "子类别", + "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 64, + "actualTextWidth": 268, + "height": 80, "multiLineActualTexts": Array [ - "办公用品", + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", ], - "originalText": "办公用品", - "width": 143.8, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 5`] = ` +Array [ Object { - "actualText": "办公用品", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 7, + "height": 61, "multiLineActualTexts": Array [ - "办公用品", + "1", ], - "originalText": "办公用品", - "width": 143.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "办公用品", + "2", ], - "originalText": "办公用品", - "width": 143.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 7, + "height": 91, "multiLineActualTexts": Array [ - "办公用品", + "3", ], - "originalText": "办公用品", - "width": 143.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "家具", + "4", ], - "originalText": "家具", - "width": 143.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "-", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "-", + "5", ], - "originalText": "-", - "width": 143.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "6", ], - "originalText": "桌子", - "width": 143.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "桌子桌子桌子桌子桌...", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 119, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌子桌...", + "7", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 143.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "浙江浙江", + "actualTextHeight": 30, + "actualTextWidth": 50, + "height": 61, "multiLineActualTexts": Array [ - "桌子", + "浙江", + "浙江", ], - "originalText": "桌子", - "width": 143.8, + "originalText": "浙江 +浙江", + "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", - "width": 143.8, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ - "桌子", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", ], - "originalText": "桌子", - "width": 143.8, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "沙发", + "浙江省", ], - "originalText": "沙发", - "width": 143.8, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "浙江省", ], - "originalText": "沙发", - "width": 143.8, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "浙江省", ], - "originalText": "沙发", - "width": 143.8, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "浙江省", ], - "originalText": "沙发", - "width": 143.8, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualText": "杭州杭州杭州", + "actualTextHeight": 45, + "actualTextWidth": 75, + "height": 61, "multiLineActualTexts": Array [ - "笔", + "杭州", + "杭州", + "杭州", ], - "originalText": "笔", - "width": 143.8, + "originalText": "杭州 +杭州 +杭州", + "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "笔", + "绍兴市", ], - "originalText": "笔", - "width": 143.8, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ - "笔", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市杭", + "州市", ], - "originalText": "笔", - "width": 143.8, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "笔", + "绍兴市", ], - "originalText": "笔", - "width": 143.8, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "纸张", + "宁波市", ], - "originalText": "纸张", - "width": 143.8, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "纸张", + "舟山市", ], - "originalText": "纸张", - "width": 143.8, + "originalText": "舟山市", + "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "纸张", + "杭州市", ], - "originalText": "纸张", - "width": 143.8, + "originalText": "杭州市", + "width": 103.8, }, Object { - "actualText": "纸张", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "纸张纸张", + "actualTextHeight": 30, + "actualTextWidth": 50, + "height": 61, "multiLineActualTexts": Array [ "纸张", + "纸张", ], - "originalText": "纸张", - "width": 143.8, + "originalText": "纸张 +纸张", + "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ - "桌子", + "家具", ], - "originalText": "桌子", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 91, "multiLineActualTexts": Array [ - "-", + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", ], - "originalText": "-", - "width": 143.8, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, }, Object { - "actualText": "236723672361111", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 98, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "236723672361111", + "家具", ], - "originalText": 236723672361111, - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "77897789778977897...", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 124, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "77897789778977897...", + "家具", ], - "originalText": "7789778977897789778977897789", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "236723672361111", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 98, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "236723672361111", + "家具", ], - "originalText": 236723672361111, - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "3877", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "3877", + "家具", ], - "originalText": 3877, - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "4342", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 4, + "height": 61, "multiLineActualTexts": Array [ - "4342", + "-", ], - "originalText": 4342, - "width": 143.8, + "originalText": "-", + "width": 103.8, }, Object { - "actualText": "5343", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "5343", + "桌子", ], - "originalText": 5343, - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "632", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ - "632", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子", ], - "originalText": 632, - "width": 143.8, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, }, Object { - "actualText": "7234", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "7234", + "桌子", ], - "originalText": 7234, - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "834", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "834", + "桌子", ], - "originalText": 834, - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "945", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "945", + "桌子", ], - "originalText": 945, - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "1304", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "1304", + "沙发", ], - "originalText": 1304, - "width": 143.8, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "1145", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 30, + "actualTextWidth": 4, + "height": 61, "multiLineActualTexts": Array [ - "1145", + "-", ], - "originalText": 1145, - "width": 143.8, + "originalText": "-", + "width": 103.8, }, Object { - "actualText": "1432", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "1432", + "2367236723611", + "11", ], - "originalText": 1432, - "width": 143.8, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "1343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 91, "multiLineActualTexts": Array [ - "1343", + "7789778977897", + "7897789778977", + "89", ], - "originalText": 1343, - "width": 143.8, + "originalText": "7789778977897789778977897789", + "width": 103.8, }, Object { - "actualText": "1354", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "1354", + "2367236723611", + "11", ], - "originalText": 1354, - "width": 143.8, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "1523", + "actualText": "3877", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1523", + "3877", ], - "originalText": 1523, - "width": 143.8, + "originalText": 3877, + "width": 103.8, }, Object { - "actualText": "1634", + "actualText": "4342", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1634", + "4342", ], - "originalText": 1634, - "width": 143.8, + "originalText": 4342, + "width": 103.8, }, Object { - "actualText": "1723", + "actualText": "5343", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1723", + "5343", ], - "originalText": 1723, - "width": 143.8, + "originalText": 5343, + "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "序号", ], @@ -34793,7 +36699,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 2`] = ` Array [ Object { "actualText": "1", @@ -34810,7 +36716,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -34957,41 +36863,63 @@ Array [ "multiLineActualTexts": Array [ "15", ], - "originalText": 15, + "originalText": 15, + "width": 80, + }, + Object { + "actualText": "16", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "16", + ], + "originalText": 16, + "width": 80, + }, + Object { + "actualText": "17", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "17", + ], + "originalText": 17, "width": 80, }, Object { - "actualText": "16", + "actualText": "18", "actualTextHeight": 15, "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "16", + "18", ], - "originalText": 16, + "originalText": 18, "width": 80, }, Object { - "actualText": "17", + "actualText": "19", "actualTextHeight": 15, "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "17", + "19", ], - "originalText": 17, + "originalText": 19, "width": 80, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "序号", ], @@ -35002,7 +36930,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "省份", ], @@ -35010,26 +36938,23 @@ Array [ "width": 143.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 48, - "actualTextWidth": 291, - "height": 64, + "actualText": "城市城市城市城市城...", + "actualTextHeight": 16, + "actualTextWidth": 119, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城市城市", - "城市城市城市城市城市", - "城市城市", + "城市城市城市城市城...", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 143.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 32, - "actualTextWidth": 242, - "height": 64, + "actualText": "类别类别类别类别类...", + "actualTextHeight": 16, + "actualTextWidth": 119, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类别类别", - "类别类别类别类别类别", + "类别类别类别类别类...", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 143.8, @@ -35038,7 +36963,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "子类别", ], @@ -35046,14 +36971,12 @@ Array [ "width": 143.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 48, - "actualTextWidth": 267, - "height": 64, + "actualText": "数量数量数量数量数...", + "actualTextHeight": 16, + "actualTextWidth": 119, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数量数量", - "数量数量数量数量数量", - "数量", + "数量数量数量数量数...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 143.8, @@ -35061,9 +36984,9 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 5`] = ` Array [ Object { "actualText": "1", @@ -35080,7 +37003,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -35252,6 +37175,40 @@ Array [ "originalText": 17, "width": 80, }, + Object { + "actualText": "18", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "18", + ], + "originalText": 18, + "width": 80, + }, + Object { + "actualText": "19", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "19", + ], + "originalText": 19, + "width": 80, + }, + Object { + "actualText": "浙江...", + "actualTextHeight": 15, + "actualTextWidth": 35, + "height": 30, + "multiLineActualTexts": Array [ + "浙江...", + ], + "originalText": "浙江 +浙江", + "width": 143.8, + }, Object { "actualText": "浙江省", "actualTextHeight": 15, @@ -35264,13 +37221,12 @@ Array [ "width": 143.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙...", - "actualTextHeight": 30, - "actualTextWidth": 240, - "height": 61, + "actualText": "浙江省浙江省浙江省...", + "actualTextHeight": 15, + "actualTextWidth": 119, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙江省浙", - "江省浙江省浙江省浙...", + "浙江省浙江省浙江省...", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 143.8, @@ -35440,6 +37396,30 @@ Array [ "originalText": "浙江省", "width": 143.8, }, + Object { + "actualText": "四川省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "四川省", + ], + "originalText": "四川省", + "width": 143.8, + }, + Object { + "actualText": "杭州...", + "actualTextHeight": 15, + "actualTextWidth": 35, + "height": 30, + "multiLineActualTexts": Array [ + "杭州...", + ], + "originalText": "杭州 +杭州 +杭州", + "width": 143.8, + }, Object { "actualText": "绍兴市", "actualTextHeight": 15, @@ -35452,13 +37432,12 @@ Array [ "width": 143.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭...", - "actualTextHeight": 30, - "actualTextWidth": 240, - "height": 61, + "actualText": "杭州市杭州市杭州市...", + "actualTextHeight": 15, + "actualTextWidth": 119, + "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市杭州市杭", - "州市杭州市杭州市杭...", + "杭州市杭州市杭州市...", ], "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 143.8, @@ -35628,6 +37607,29 @@ Array [ "originalText": "舟山市", "width": 143.8, }, + Object { + "actualText": "成都市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "成都市", + ], + "originalText": "成都市", + "width": 143.8, + }, + Object { + "actualText": "纸张...", + "actualTextHeight": 15, + "actualTextWidth": 35, + "height": 30, + "multiLineActualTexts": Array [ + "纸张...", + ], + "originalText": "纸张 +纸张", + "width": 143.8, + }, Object { "actualText": "家具", "actualTextHeight": 15, @@ -35640,12 +37642,11 @@ Array [ "width": 143.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家...", - "actualTextHeight": 30, - "actualTextWidth": 240, - "height": 61, + "actualText": "家具家具家具家具家...", + "actualTextHeight": 15, + "actualTextWidth": 119, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家具家具", "家具家具家具家具家...", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", @@ -35816,6 +37817,28 @@ Array [ "originalText": "办公用品", "width": 143.8, }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 143.8, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 143.8, + }, Object { "actualText": "桌子", "actualTextHeight": 15, @@ -35828,12 +37851,11 @@ Array [ "width": 143.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 30, - "actualTextWidth": 240, - "height": 61, + "actualText": "桌子桌子桌子桌子桌...", + "actualTextHeight": 15, + "actualTextWidth": 119, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌子桌子", "桌子桌子桌子桌子桌...", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", @@ -36004,6 +38026,28 @@ Array [ "originalText": "纸张", "width": 143.8, }, + Object { + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 143.8, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 143.8, + }, Object { "actualText": "236723672361111", "actualTextHeight": 15, @@ -36016,13 +38060,12 @@ Array [ "width": 143.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 30, - "actualTextWidth": 188, - "height": 61, + "actualText": "77897789778977897...", + "actualTextHeight": 15, + "actualTextWidth": 124, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897789778", - "977897789", + "77897789778977897...", ], "originalText": "7789778977897789778977897789", "width": 143.8, @@ -36192,10 +38235,21 @@ Array [ "originalText": 1634, "width": 143.8, }, + Object { + "actualText": "1723", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1723", + ], + "originalText": 1723, + "width": 143.8, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField1 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField 1`] = ` Array [ Object { "actualText": "序号", @@ -36211,7 +38265,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField1 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField 2`] = ` Array [ Object { "actualText": "1", @@ -36403,7 +38457,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField1 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField 3`] = ` Array [ Object { "actualText": "序号", @@ -36479,9 +38533,9 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField1 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField1 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField 5`] = ` Array [ Object { "actualText": "1", diff --git a/packages/s2-core/__tests__/spreadsheet/multi-line-text-spec.ts b/packages/s2-core/__tests__/spreadsheet/multi-line-text-spec.ts index 9447806280..5a17c6b455 100644 --- a/packages/s2-core/__tests__/spreadsheet/multi-line-text-spec.ts +++ b/packages/s2-core/__tests__/spreadsheet/multi-line-text-spec.ts @@ -702,6 +702,57 @@ describe('SpreadSheet Multi Line Text Tests', () => { matchCellStyleSnapshot(); expectColHierarchyHeight(96, 48, 48, 2); }); + + test('should calculate correctly max text width for headerActionIcons', async () => { + updateStyle(Infinity); + s2.changeSheetSize(800, 600); + s2.setOptions({ + headerActionIcons: [ + { + icons: ['Trend', 'SortDown', { position: 'left', name: 'SortUp' }], + belongsCell: 'cornerCell', + }, + { + icons: ['Trend', 'SortDown', { position: 'left', name: 'SortUp' }], + belongsCell: 'rowCell', + }, + { + icons: ['Trend', 'SortDown', { position: 'left', name: 'SortUp' }], + belongsCell: 'colCell', + }, + ], + }); + await s2.render(false); + + matchCellStyleSnapshot(); + }); + + test('should calculate correctly max text width for default sort header action icons', async () => { + updateStyle(Infinity); + s2.changeSheetSize(800, 600); + s2.setOptions({ + showDefaultHeaderActionIcon: true, + }); + await s2.render(false); + + matchCellStyleSnapshot(); + }); + + test('should calculate correctly max text width for default sort header action icons and valuesInCols=false', async () => { + updateStyle(Infinity); + s2.changeSheetSize(800, 600); + s2.setDataCfg({ + fields: { + valueInCols: false, + }, + }); + s2.setOptions({ + showDefaultHeaderActionIcon: true, + }); + await s2.render(); + + matchCellStyleSnapshot(); + }); }); describe('TableSheet', () => { @@ -1290,5 +1341,30 @@ describe('SpreadSheet Multi Line Text Tests', () => { matchCellStyleSnapshot(); }); + + test('should calculate correctly max text width for headerActionIcons', async () => { + updateStyle(Infinity); + s2.setOptions({ + headerActionIcons: [ + { + icons: ['Trend', 'SortDown', { position: 'left', name: 'SortUp' }], + belongsCell: 'colCell', + }, + ], + }); + await s2.render(false); + + matchCellStyleSnapshot(); + }); + + test('should calculate correctly max text width for default sort header action icons', async () => { + updateStyle(Infinity); + s2.setOptions({ + showDefaultHeaderActionIcon: true, + }); + await s2.render(false); + + matchCellStyleSnapshot(); + }); }); }); diff --git a/packages/s2-core/src/cell/header-cell.ts b/packages/s2-core/src/cell/header-cell.ts index 553d543048..9000967f9a 100644 --- a/packages/s2-core/src/cell/header-cell.ts +++ b/packages/s2-core/src/cell/header-cell.ts @@ -112,7 +112,7 @@ export abstract class HeaderCell< this.generateIconConfig(); } - protected generateIconConfig() { + public generateIconConfig() { this.conditionIconMappingResult = this.getIconConditionResult(); const { sortParam } = this.getHeaderConfig(); @@ -186,6 +186,10 @@ export abstract class HeaderCell< const { sortParam } = this.getHeaderConfig(); const query = this.meta.query; + if (this.isShallowRender()) { + return query; + } + // sortParam 的 query,和 type 本身可能会 undefined return ( query && diff --git a/packages/s2-core/src/facet/base-facet.ts b/packages/s2-core/src/facet/base-facet.ts index 69959c710d..cefb7707cf 100644 --- a/packages/s2-core/src/facet/base-facet.ts +++ b/packages/s2-core/src/facet/base-facet.ts @@ -38,6 +38,7 @@ import { SeriesNumberCell, TableColCell, TableSeriesNumberCell, + type HeaderCell, } from '../cell'; import { BACK_GROUND_GROUP_CONTAINER_Z_INDEX, @@ -521,6 +522,8 @@ export abstract class BaseFacet { return cacheHeight || defaultHeight; } + // 预生成 icon 配置, 用于计算文本正确的最大可用宽度 + (cell as HeaderCell).generateIconConfig?.(); cell.drawTextShape(); const { padding } = cell.getStyle().cell; diff --git a/packages/s2-react/playground/config.tsx b/packages/s2-react/playground/config.tsx index 6fe753173a..3c8d44b338 100644 --- a/packages/s2-react/playground/config.tsx +++ b/packages/s2-react/playground/config.tsx @@ -320,6 +320,21 @@ export const S2TooltipOptions: SheetComponentOptions['tooltip'] = { }, }; +export const headerActionIcons: SheetComponentOptions['headerActionIcons'] = [ + { + icons: ['Trend', { position: 'left', name: 'SortUp' }], + belongsCell: 'cornerCell', + }, + { + icons: ['Trend', { position: 'left', name: 'SortUp' }], + belongsCell: 'rowCell', + }, + { + icons: ['Trend', { position: 'left', name: 'SortUp' }], + belongsCell: 'colCell', + }, +]; + export const s2Options: SheetComponentOptions = { debug: true, width: 800, diff --git a/packages/s2-react/playground/index.tsx b/packages/s2-react/playground/index.tsx index d912454e6b..e7d4048700 100644 --- a/packages/s2-react/playground/index.tsx +++ b/packages/s2-react/playground/index.tsx @@ -66,6 +66,7 @@ import { PivotSheetFrozenOptions, TableSheetFrozenOptions, defaultOptions, + headerActionIcons, pivotSheetDataCfg, pivotSheetDataCfgForCompactMode, pivotSheetMultiLineTextDataCfg, @@ -686,6 +687,9 @@ function MainLayout() { onChange={(checked) => { updateOptions({ showDefaultHeaderActionIcon: checked, + headerActionIcons: checked + ? [] + : headerActionIcons, }); }} />