diff --git a/__test__/index.spec.mjs.md b/__test__/index.spec.mjs.md index 78fe33c..730ece2 100644 --- a/__test__/index.spec.mjs.md +++ b/__test__/index.spec.mjs.md @@ -14,15 +14,15 @@ Generated by [AVA](https://avajs.dev). var __inner_style__ = {␊ "cnt_col": {␊ _constraintSize: {},␊ - _display: "flex",␊ _flexOptions: {␊ direction: FlexDirection.Column,␊ justifyContent: FlexAlign.Center,␊ alignItems: ItemAlign.Start␊ },␊ - _gap: "8px",␊ _height: "50px",␊ - _width: "145px"␊ + _width: "145px",␊ + display: "flex",␊ + gap: "8px"␊ },␊ "cnt_row": {␊ _background: {␊ @@ -50,13 +50,11 @@ Generated by [AVA](https://avajs.dev). bottomRight: "100px"␊ },␊ _constraintSize: {},␊ - _display: "flex",␊ _flexOptions: {␊ justifyContent: FlexAlign.Center,␊ alignItems: ItemAlign.Center␊ },␊ _flexShrink: 0,␊ - _gap: "4px",␊ _height: "24px",␊ _linearGradient: [␊ {␊ @@ -92,19 +90,21 @@ Generated by [AVA](https://avajs.dev). type: TextDecorationType["LineThrough"],␊ color: "black"␊ },␊ - _width: "176px"␊ + _width: "176px",␊ + display: "flex",␊ + gap: "4px"␊ },␊ "cnt_row1": {␊ _constraintSize: {},␊ - _display: "flex",␊ _flexOptions: {␊ justifyContent: FlexAlign.Start,␊ alignItems: ItemAlign.Center␊ },␊ - _gap: "10px",␊ _height: "50px",␊ - _position: "relative",␊ - _width: "311px"␊ + _width: "311px",␊ + display: "flex",␊ + gap: "10px",␊ + position: "relative"␊ },␊ "cnt_row2": {␊ _borderColor: {␊ @@ -132,13 +132,11 @@ Generated by [AVA](https://avajs.dev). top: "1px"␊ },␊ _constraintSize: {},␊ - _display: "flex",␊ _flexOptions: {␊ justifyContent: FlexAlign.SpaceBetween,␊ alignItems: ItemAlign.Start␊ },␊ _flexShrink: 0,␊ - _gap: "-94px",␊ _height: "23px",␊ _left: "201px",␊ _padding: {␊ @@ -147,21 +145,23 @@ Generated by [AVA](https://avajs.dev). bottom: "4px",␊ left: "8px"␊ },␊ - _position: "absolute",␊ _top: "3px",␊ _width: "110px",␊ - _zIndex: "12"␊ + display: "flex",␊ + gap: "-94px",␊ + position: "absolute",␊ + zIndex: "12"␊ },␊ "cnt_row3": {␊ _constraintSize: {},␊ - _display: "flex",␊ _flexOptions: {␊ justifyContent: FlexAlign.SpaceBetween,␊ alignItems: ItemAlign.Center␊ },␊ - _gap: "-311px",␊ _height: "44px",␊ - _width: "311px"␊ + _width: "311px",␊ + display: "flex",␊ + gap: "-311px"␊ },␊ "icon": {␊ _borderRadius: {␊ @@ -252,27 +252,27 @@ Generated by [AVA](https://avajs.dev). "instruction": {␊ _color: "#fff",␊ _constraintSize: {},␊ - _display: "inline-flex",␊ _flexOptions: {},␊ _flexShrink: 0,␊ _fontSize: "12px",␊ - _lineHeight: "1",␊ _margin: {␊ top: "-12px",␊ right: "10px",␊ bottom: "12px",␊ left: "32px"␊ - }␊ + },␊ + display: "inline-flex",␊ + lineHeight: "1"␊ },␊ "instruction1": {␊ _color: "#000",␊ _constraintSize: {},␊ - _display: "inline-flex",␊ _flexOptions: {},␊ _flexShrink: 0,␊ _fontSize: "16px",␊ - _lineHeight: "1",␊ - _width: "116px"␊ + _width: "116px",␊ + display: "inline-flex",␊ + lineHeight: "1"␊ },␊ "instruction2": {␊ _color: "#999",␊ @@ -280,9 +280,9 @@ Generated by [AVA](https://avajs.dev). _flexOptions: {},␊ _flexShrink: 0,␊ _fontSize: "11px",␊ - _lineHeight: "1.36",␊ - _overflow: "hidden",␊ - _textAlign: "center"␊ + lineHeight: "1.36",␊ + overflow: "hidden",␊ + textAlign: "center"␊ },␊ "line1": {␊ _background: {␊ @@ -313,9 +313,9 @@ Generated by [AVA](https://avajs.dev). alignItems: ItemAlign.End␊ },␊ _flexShrink: 2,␊ - _overflow: "hidden",␊ - _textOverflow: "ellipsis",␊ - _whiteSpace: "nowrap"␊ + overflow: "hidden",␊ + textOverflow: "ellipsis",␊ + whiteSpace: "nowrap"␊ },␊ "mod": {␊ _background: {␊ @@ -328,16 +328,12 @@ Generated by [AVA](https://avajs.dev). bottomRight: "8px"␊ },␊ _constraintSize: {},␊ - _display: "flex",␊ _flexOptions: {␊ direction: FlexDirection.Column,␊ justifyContent: FlexAlign.Center,␊ alignItems: ItemAlign.Start␊ },␊ _flexShrink: 0,␊ - _fontFamily: "Source Han Sans CN",␊ - _fontWeight: "500",␊ - _gap: "8px",␊ _height: "166px",␊ _padding: {␊ top: "29px",␊ @@ -345,7 +341,11 @@ Generated by [AVA](https://avajs.dev). bottom: "29px",␊ left: "16px"␊ },␊ - _width: "343px"␊ + _width: "343px",␊ + display: "flex",␊ + fontFamily: "Source Han Sans CN",␊ + fontWeight: "500",␊ + gap: "8px"␊ },␊ "normal": {␊ _alignSelf: ItemAlign.Center,␊ @@ -388,7 +388,6 @@ Generated by [AVA](https://avajs.dev). minWidth: "100px",␊ maxWidth: "200px"␊ },␊ - _display: "flex",␊ _flexBasis: "200px",␊ _flexGrow: 2,␊ _flexOptions: {␊ @@ -398,7 +397,6 @@ Generated by [AVA](https://avajs.dev). },␊ _flexShrink: 1,␊ _fontSize: "100px",␊ - _fontWeight: "bold",␊ _height: "100px",␊ _linearGradient: [␊ {␊ @@ -440,23 +438,25 @@ Generated by [AVA](https://avajs.dev). angle: "30deg"␊ }␊ ],␊ - _textAlign: "center",␊ _translate: [␊ {␊ x: 20,␊ y: 30␊ }␊ ],␊ - _width: "200px"␊ + _width: "200px",␊ + display: "flex",␊ + fontWeight: "bold",␊ + textAlign: "center"␊ },␊ "txt": {␊ _color: "#999",␊ _constraintSize: {},␊ - _display: "inline-flex",␊ _flexOptions: {},␊ _flexShrink: 0,␊ _fontSize: "12px",␊ - _lineHeight: "1"␊ + display: "inline-flex",␊ + lineHeight: "1"␊ },␊ "txt1": {␊ _color: "#222",␊ @@ -464,18 +464,18 @@ Generated by [AVA](https://avajs.dev). _flexOptions: {},␊ _flexShrink: 0,␊ _fontSize: "11px",␊ - _lineHeight: "1.36",␊ - _textAlign: "center"␊ + lineHeight: "1.36",␊ + textAlign: "center"␊ },␊ "txt2": {␊ _color: "#999",␊ _constraintSize: {},␊ - _display: "inline-flex",␊ _flexOptions: {},␊ _flexShrink: 0,␊ _fontSize: "12px",␊ - _lineHeight: "1.83",␊ - _width: "290px"␊ + _width: "290px",␊ + display: "inline-flex",␊ + lineHeight: "1.83"␊ }␊ };␊ function Cc() {␊ @@ -505,7 +505,6 @@ Generated by [AVA](https://avajs.dev). },␊ _color: "#999",␊ _constraintSize: {},␊ - _display: "inline-flex",␊ _flexBasis: "10%",␊ _flexGrow: 2,␊ _flexOptions: {␊ @@ -513,10 +512,11 @@ Generated by [AVA](https://avajs.dev). },␊ _flexShrink: 0,␊ _fontSize: "12px",␊ - _lineHeight: "1",␊ - _overflow: "hidden",␊ - _textOverflow: "ellipsis",␊ - _whiteSpace: "nowrap"␊ + display: "inline-flex",␊ + lineHeight: "1",␊ + overflow: "hidden",␊ + textOverflow: "ellipsis",␊ + whiteSpace: "nowrap"␊ }}>成员123: 4000+␊ ␊
␊ @@ -559,7 +559,6 @@ Generated by [AVA](https://avajs.dev). },␊ _color: "#999",␊ _constraintSize: {},␊ - _display: "inline-flex",␊ _flexBasis: "10%",␊ _flexGrow: 2,␊ _flexOptions: {␊ @@ -567,10 +566,11 @@ Generated by [AVA](https://avajs.dev). },␊ _flexShrink: 0,␊ _fontSize: "12px",␊ - _lineHeight: "1",␊ - _overflow: "hidden",␊ - _textOverflow: "ellipsis",␊ - _whiteSpace: "nowrap"␊ + display: "inline-flex",␊ + lineHeight: "1",␊ + overflow: "hidden",␊ + textOverflow: "ellipsis",␊ + whiteSpace: "nowrap"␊ }}>成员123: 4000+␊ ␊
␊ @@ -597,16 +597,12 @@ Generated by [AVA](https://avajs.dev). bottomRight: "8px"␊ },␊ _constraintSize: {},␊ - _display: "flex",␊ _flexOptions: {␊ direction: FlexDirection.Column,␊ justifyContent: FlexAlign.Center,␊ alignItems: ItemAlign.Start␊ },␊ _flexShrink: 0,␊ - _fontFamily: "Source Han Sans CN",␊ - _fontWeight: "500",␊ - _gap: "8px",␊ _height: "800px",␊ _margin: {␊ top: "-12px",␊ @@ -620,7 +616,11 @@ Generated by [AVA](https://avajs.dev). bottom: "29px",␊ left: "16px"␊ },␊ - _width: "500px"␊ + _width: "500px",␊ + display: "flex",␊ + fontFamily: "Source Han Sans CN",␊ + fontWeight: "500",␊ + gap: "8px"␊ }}>␊ ␊
␊ @@ -679,7 +679,6 @@ Generated by [AVA](https://avajs.dev). },␊ _color: "#fff",␊ _constraintSize: {},␊ - _display: "inline-flex",␊ _flexBasis: "10%",␊ _flexGrow: 2,␊ _flexOptions: {␊ @@ -687,16 +686,17 @@ Generated by [AVA](https://avajs.dev). },␊ _flexShrink: 0,␊ _fontSize: "12px",␊ - _lineHeight: "1",␊ _margin: {␊ top: "-12px",␊ right: "10px",␊ bottom: "12px",␊ left: "32px"␊ },␊ - _overflow: "hidden",␊ - _textOverflow: "ellipsis",␊ - _whiteSpace: "nowrap"␊ + display: "inline-flex",␊ + lineHeight: "1",␊ + overflow: "hidden",␊ + textOverflow: "ellipsis",␊ + whiteSpace: "nowrap"␊ }}>超能芭比 5分钟前查看团购␊ ␊ ␊ @@ -724,15 +724,15 @@ Generated by [AVA](https://avajs.dev). ]␊ },␊ _constraintSize: {},␊ - _display: "flex",␊ _flexOptions: {␊ justifyContent: FlexAlign.Start,␊ alignItems: ItemAlign.Center␊ },␊ - _gap: "10px",␊ _height: "50px",␊ - _position: "relative",␊ - _width: "311px"␊ + _width: "311px",␊ + display: "flex",␊ + gap: "10px",␊ + position: "relative"␊ }}>␊ ␊ ␊ ␊ 巴拉巴拉小魔仙␊ ␊ 成员: 4000+␊ ␊
␊ @@ -904,13 +904,11 @@ Generated by [AVA](https://avajs.dev). top: "1px"␊ },␊ _constraintSize: {},␊ - _display: "flex",␊ _flexOptions: {␊ justifyContent: FlexAlign.SpaceBetween,␊ alignItems: ItemAlign.Start␊ },␊ _flexShrink: 0,␊ - _gap: "-94px",␊ _height: "23px",␊ _left: "201px",␊ _padding: {␊ @@ -919,10 +917,12 @@ Generated by [AVA](https://avajs.dev). bottom: "4px",␊ left: "8px"␊ },␊ - _position: "absolute",␊ _top: "3px",␊ _width: "110px",␊ - _zIndex: "12"␊ + display: "flex",␊ + gap: "-94px",␊ + position: "absolute",␊ + zIndex: "12"␊ }}>␊ ␊ {this.getDom()}␊ @@ -940,9 +940,9 @@ Generated by [AVA](https://avajs.dev). _flexOptions: {},␊ _flexShrink: 0,␊ _fontSize: "11px",␊ - _lineHeight: "1.36",␊ - _overflow: "hidden",␊ - _textAlign: "center"␊ + lineHeight: "1.36",␊ + overflow: "hidden",␊ + textAlign: "center"␊ }}>slslsl-jsj␊ ␊ 复制␊ ␊
␊ @@ -961,25 +961,25 @@ Generated by [AVA](https://avajs.dev). ␊
␊ ␊ ␊ ␊ 团长介绍:售前售后进群售前售后进群售前售后进群售前售后进群VXklsidohh...␊ @@ -1036,7 +1036,6 @@ Generated by [AVA](https://avajs.dev). minWidth: "100px",␊ maxWidth: "200px"␊ },␊ - _display: "flex",␊ _flexBasis: "200px",␊ _flexGrow: 2,␊ _flexOptions: {␊ @@ -1046,7 +1045,6 @@ Generated by [AVA](https://avajs.dev). },␊ _flexShrink: 1,␊ _fontSize: "100px",␊ - _fontWeight: "bold",␊ _height: "100px",␊ _linearGradient: [␊ {␊ @@ -1088,14 +1086,16 @@ Generated by [AVA](https://avajs.dev). angle: "30deg"␊ }␊ ],␊ - _textAlign: "center",␊ _translate: [␊ {␊ x: 20,␊ y: 30␊ }␊ ],␊ - _width: "200px"␊ + _width: "200px",␊ + display: "flex",␊ + fontWeight: "bold",␊ + textAlign: "center"␊ }}>
␊ ␊
;␊ diff --git a/__test__/index.spec.mjs.snap b/__test__/index.spec.mjs.snap index f04fb21..14a0a96 100644 Binary files a/__test__/index.spec.mjs.snap and b/__test__/index.spec.mjs.snap differ