diff --git a/node_modules/uview-plus/components/u-image/u-image.vue b/node_modules/uview-plus/components/u-image/u-image.vue index 24e3b10..1360704 100644 --- a/node_modules/uview-plus/components/u-image/u-image.vue +++ b/node_modules/uview-plus/components/u-image/u-image.vue @@ -26,7 +26,7 @@ }" > - + - - + { - return total + curr.rect.width + return total + (curr.rect ? curr.rect.width : 0) }, 0) // 此处为屏幕宽度 const windowWidth = getWindowInfo().windowWidth @@ -550,5 +556,27 @@ background-color: #2a6bf6; } } + + &--fixed { + width: 100%; + + .u-tabs__wrapper { + width: 100%; + } + + .u-tabs__wrapper__scroll-view-wrapper, + .u-tabs__wrapper__scroll-view { + width: 100%; + } + + .u-tabs__wrapper__nav { + width: 100%; + } + + .u-tabs__wrapper__nav__item { + flex: 1 !important; + min-width: 0; + } + } } diff --git a/node_modules/uview-plus/components/u-tag/theme-vars.scss b/node_modules/uview-plus/components/u-tag/theme-vars.scss index bf38484..b1e4a3e 100644 --- a/node_modules/uview-plus/components/u-tag/theme-vars.scss +++ b/node_modules/uview-plus/components/u-tag/theme-vars.scss @@ -1,21 +1,3 @@ -:root, -page, -body { - --up-tag-close-bg-color: #c8c9cc; -} - -@media (prefers-color-scheme: dark) { - :root, - page, - body { - --up-tag-close-bg-color: #4b5563; - } -} - -[data-up-theme='light'] { - --up-tag-close-bg-color: #c8c9cc; -} - -[data-up-theme='dark'] { - --up-tag-close-bg-color: #4b5563; -} +/* 主题变量改由组件 JS 的 upThemeVar 默认值兜底。 + * 原有 page/body 标签选择器与 [data-up-theme] 属性选择器, + * 在微信小程序组件级 wxss 中不被允许,会触发编译告警,故移除。 */