diff --git a/.prettierrc.yml b/.prettierrc.yml index 52e922dcc..a13251c35 100644 --- a/.prettierrc.yml +++ b/.prettierrc.yml @@ -1,5 +1,5 @@ # 一行最多 100 字符 -printWidth: 100 +printWidth: 120 # 使用 2 个空格缩进 tabWidth: 2 # 不使用缩进符,而使用空格 diff --git a/example/components/demo-block/index.wxml b/example/components/demo-block/index.wxml index 20a31a3ef..b9dcc1afb 100644 --- a/example/components/demo-block/index.wxml +++ b/example/components/demo-block/index.wxml @@ -12,6 +12,7 @@ diff --git a/example/pages/back-top/back-top.less b/example/pages/back-top/back-top.less index 19e3c8100..e44fb4c9d 100644 --- a/example/pages/back-top/back-top.less +++ b/example/pages/back-top/back-top.less @@ -5,7 +5,7 @@ page { margin-top: 32rpx; &-item { - margin-bottom: 32rpx; + margin: 0 32rpx 32rpx; .t-class-button { font-size: 32rpx; @@ -17,7 +17,6 @@ page { display: flex; } - .skeleton-text { border-radius: 16rpx; } diff --git a/example/pages/back-top/back-top.wxml b/example/pages/back-top/back-top.wxml index e705129c4..343e0a605 100644 --- a/example/pages/back-top/back-top.wxml +++ b/example/pages/back-top/back-top.wxml @@ -6,22 +6,46 @@ 圆型返回顶部 - + 圆白底 - + 圆黑底 - + 圆白底纯图标 - + 圆黑底纯图标 @@ -30,12 +54,24 @@ 半圆型返回顶部 - + 半圆白底 - + 半圆黑底 diff --git a/example/pages/indexes/indexes.less b/example/pages/indexes/indexes.less index 5113ed3a6..0078e0192 100644 --- a/example/pages/indexes/indexes.less +++ b/example/pages/indexes/indexes.less @@ -2,10 +2,14 @@ background-color: #fff; font-size: 32rpx; line-height: 48rpx; - color: rgba(0, 0, 0, .9); + color: rgba(0, 0, 0, 0.9); padding: 48rpx 0rpx 96rpx 0rpx; min-height: 100vh; + .box { + margin: 0 32rpx; + } + .sub-title { margin-top: 40rpx; font-weight: bold; @@ -25,7 +29,7 @@ align-items: center; justify-content: center; font-size: 28rpx; - color: rgba(0, 0, 0, .9); + color: rgba(0, 0, 0, 0.9); margin-bottom: 18px; } } diff --git a/example/pages/indexes/indexes.wxml b/example/pages/indexes/indexes.wxml index 6fcb575ca..04d0b2603 100644 --- a/example/pages/indexes/indexes.wxml +++ b/example/pages/indexes/indexes.wxml @@ -2,11 +2,13 @@ Indexes 索引 用于页面中信息快速检索,可以根据目录中的页码快速找到所需的内容。 - - 字母索引 - - - 数字索引 - + + + 字母索引 + + + 数字索引 + + diff --git a/example/pages/loading/loading.less b/example/pages/loading/loading.less index 1ac908294..cd80b1126 100644 --- a/example/pages/loading/loading.less +++ b/example/pages/loading/loading.less @@ -42,6 +42,10 @@ page { font-size: 24rpx; } +.box { + margin: 0 32rpx; +} + .t-slider__container { margin: 0 32rpx; } diff --git a/example/pages/loading/loading.wxml b/example/pages/loading/loading.wxml index cd2c6e1e0..4c76a45e6 100644 --- a/example/pages/loading/loading.wxml +++ b/example/pages/loading/loading.wxml @@ -44,9 +44,11 @@ 加载失败 进度条加载 - 页面进度条加载 + + 页面进度条加载 + diff --git a/package.json b/package.json index b42554ad6..efd541d04 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,7 @@ } }, "lint-staged": { - "{src,example,script}/**/*.{js,ts,wxml,html,json,wxs}": [ + "{src,example,script}/**/*.{js,ts,wxml,html,json,wxs,less}": [ "prettier --write" ], "{src,example}/**/*.{js,ts}": [ @@ -102,4 +102,4 @@ "dependencies": { "dayjs": "^1.10.7" } -} +} \ No newline at end of file diff --git a/src/popup/popup.less b/src/popup/popup.less index b735d7174..b8617c5d1 100644 --- a/src/popup/popup.less +++ b/src/popup/popup.less @@ -1,12 +1,12 @@ @import '../common/style/index.less'; -@popup: ~"@{prefix}-popup"; -@popup-position: ~"@{popup}--position"; -@popup-transition: ~"@{popup}--transition"; +@popup: ~'@{prefix}-popup'; +@popup-position: ~'@{popup}--position'; +@popup-transition: ~'@{popup}--transition'; .@{popup} { position: fixed; - z-index: 2500; + z-index: 1500; top: 0; left: 0; display: flex; @@ -21,7 +21,7 @@ left: 0; width: 100%; height: 100%; - background-color: rgba(0, 0, 0, .6); + background-color: rgba(0, 0, 0, 0.6); } &__content { @@ -72,7 +72,7 @@ .@{popup}__content { opacity: 0; - transform: scale(.8); + transform: scale(0.8); } &.@{popup-position}-top { @@ -103,13 +103,13 @@ &.@{popup-transition}-enter-to { .@{popup}__overlay { opacity: 1; - transition: opacity .3s; + transition: opacity 0.3s; } .@{popup}__content { opacity: 1; transform: none; - transition: opacity .3s, transform .3s; + transition: opacity 0.3s, transform 0.3s; } &.@{popup-position}-top { @@ -175,13 +175,13 @@ &.@{popup-transition}-leave-to { .@{popup}__overlay { opacity: 0; - transition: opacity .3s; + transition: opacity 0.3s; } .@{popup}__content { opacity: 0; - transform: scale(.8); - transition: opacity .3s, transform .3s; + transform: scale(0.8); + transition: opacity 0.3s, transform 0.3s; } &.@{popup-position}-top {