Skip to content

Commit b2aab90

Browse files
juzi2140327insummer
authored andcommitted
fix(src): 去除源码中使用到的标签选择器 (#759)
1 parent b3bd2f6 commit b2aab90

File tree

42 files changed

+155
-163
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+155
-163
lines changed

dist/avatar/index.wxml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

22
<view class="l-avatar {{text||_isHaveUserNickName?'l-placement-'+placement:''}}" bindtap="tapAvatar">
33
<view class="l-avatar-image {{shape?'l-'+shape:''}} l-class" wx:if="{{_isHaveUserAvatarUrl||icon||src}}" style="width:{{size}}rpx;height:{{size}}rpx">
4-
<open-data wx:if="{{_isHaveUserAvatarUrl}}" type="userAvatarUrl"/>
4+
<open-data class="open-data" wx:if="{{_isHaveUserAvatarUrl}}" type="userAvatarUrl"/>
55
<l-icon wx:elif="{{icon}}" size="{{iconSize || size*0.6}}" color="{{iconColor||'#ffffff'}}" name="{{icon}}"/>
66
<image wx:elif="{{src}}" src="{{src}}" mode="{{mode}}" style="width:{{size}}rpx;height:{{size}}rpx"/>
77
</view>
88
<view class="l-avatar-text l-class-text l-text-class" wx:if="{{text||_isHaveUserNickName}}">
9-
<open-data wx:if="{{_isHaveUserNickName}}" type="userNickName"/>
10-
<text wx:elif="{{text}}">{{text}}</text>
9+
<open-data class="open-data" wx:if="{{_isHaveUserNickName}}" type="userNickName"/>
10+
<text class="l-avatar-text-text" wx:elif="{{text}}">{{text}}</text>
1111
</view>
12-
</view>
12+
</view>

dist/avatar/index.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.l-avatar{display:inline-flex;justify-content:center;align-items:center}.l-avatar-image{flex:1;display:inline-flex;justify-content:center;align-items:center;background:#ccc;overflow:hidden}.l-avatar-text{display:inline-block;height:max-content;width:max-content;font-size:28rpx;color:#45526b;line-height:40px}open-data{width:100%;height:100%}.l-avatar-text open-data,.l-avatar-text text{font-size:inherit;color:inherit;line-height:inherit}.l-square{border-radius:8rpx}.l-circle{border-radius:50%}.l-placement-left,.l-placement-right{align-items:center;justify-content:center}.l-placement-left{margin-right:24rpx;flex-direction:row-reverse}.l-placement-left .l-avatar-text{margin-right:24rpx}.l-placement-right{flex-direction:row}.l-placement-right .l-avatar-text{margin-left:24rpx}.l-placement-top{flex-direction:column-reverse}.l-placement-top .l-avatar-text{margin-bottom:12rpx}.l-placement-bottom{flex-direction:column}.l-placement-bottom .l-avatar-text{margin-top:12rpx}
1+
.l-avatar{display:inline-flex;justify-content:center;align-items:center}.l-avatar-image{flex:1;display:inline-flex;justify-content:center;align-items:center;background:#ccc;overflow:hidden}.l-avatar-text{display:inline-block;height:max-content;width:max-content;font-size:28rpx;color:#45526b;line-height:40px}.open-data{width:100%;height:100%}.l-avatar-text .l-avatar-text-text,.l-avatar-text .open-data{font-size:inherit;color:inherit;line-height:inherit}.l-square{border-radius:8rpx}.l-circle{border-radius:50%}.l-placement-left,.l-placement-right{align-items:center;justify-content:center}.l-placement-left{margin-right:24rpx;flex-direction:row-reverse}.l-placement-left .l-avatar-text{margin-right:24rpx}.l-placement-right{flex-direction:row}.l-placement-right .l-avatar-text{margin-left:24rpx}.l-placement-top{flex-direction:column-reverse}.l-placement-top .l-avatar-text{margin-bottom:12rpx}.l-placement-bottom{flex-direction:column}.l-placement-bottom .l-avatar-text{margin-top:12rpx}

dist/collapse-item/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<view class="container l-class">
22
<view bind:tap="onTapTitle" class="container-title l-title-class">
33
<view style="{{disable?'color:#DEE2E6':''}}" wx:if="{{!customTitle}}">{{title}}</view>
4-
<l-icon wx:if="{{!customTitle}}" style="{{isExpandContent?'transform:rotate(-180deg);':''}}" name="down" size="28" color="{{disable?'#DEE2E6':'#333'}}"></l-icon>
4+
<l-icon class="container-title-icon" wx:if="{{!customTitle}}" style="{{isExpandContent?'transform:rotate(-180deg);':''}}" name="down" size="28" color="{{disable?'#DEE2E6':'#333'}}"></l-icon>
55
<slot name="title"></slot>
66
</view>
77
<view class="container-body" style="height:{{bodyHeight}}px;transition-duration:{{animationTime}}s">

dist/collapse-item/index.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.container{display:flex;flex-direction:column;width:100%;box-sizing:border-box}.container-title{display:flex;justify-content:space-between;padding:10rpx;align-items:center;font-size:32rpx;color:#333}.container-title l-icon{transition:.3s}.container-body{width:100%;color:#888;box-sizing:border-box;font-size:28rpx;transition:height .3s ease-in-out;overflow:hidden}.container-body-wrapper{position:relative;padding:10rpx}
1+
.container{display:flex;flex-direction:column;width:100%;box-sizing:border-box}.container-title{display:flex;justify-content:space-between;padding:10rpx;align-items:center;font-size:32rpx;color:#333}.container-title-l-icon{transition:.3s}.container-body{width:100%;color:#888;box-sizing:border-box;font-size:28rpx;transition:height .3s ease-in-out;overflow:hidden}.container-body-wrapper{position:relative;padding:10rpx}

dist/combined-tabs/index.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.l-tabs{display:flex;border-radius:8rpx;box-sizing:border-box;overflow:hidden;flex-direction:column;background:#fff;height:100%}.l-tabs .l-tabs-header{display:flex;width:100%;flex-direction:row;background:#fff;align-items:center}.l-tabs .l-tabs-header .l-tabs-item{flex:1;font-size:28rpx;text-align:center;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.l-tabs .l-tabs-header .l-icon-active,.l-tabs .l-tabs-header .l-tabs-active{color:#333;font-size:28rpx}.l-tabs .l-tabs-header .l-icon-inactive,.l-tabs .l-tabs-header .l-tabs-inactive{font-size:28rpx;color:#bbb}.l-tabs .l-tabs-header .l-tabsitems-row{flex-direction:row}.l-tabs .l-tabs-header .l-tabsitems-row .l-icon-active,.l-tabs .l-tabs-header .l-tabsitems-row .l-icon-inactive{margin-right:10rpx}.l-tabs .l-tabs-header .l-tabsitems-row-reverse{flex-direction:row-reverse}.l-tabs .l-tabs-header .l-tabsitems-row-reverse .l-icon-active,.l-tabs .l-tabs-header .l-tabsitems-row-reverse .l-icon-inactive{margin-left:10rpx}.l-placement-top .l-tabs-header{height:80rpx}.l-placement-top .l-tabs-header .l-tabs-item{min-height:100%}.l-sub-placement-left{flex-direction:row}.l-sub-placement-left .l-tabs-header{flex-direction:column;width:160rpx}.l-sub-placement-left .l-tabs-header>view{width:100%;height:80rpx;background:#f6f8fa}.l-sub-placement-left .l-tabs-header>.l-tabs-active{background:#fff}.l-sub-placement-left .l-tabs-main .l-tabpanel-content{width:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;position:relative;will-change:transform;transition:transform .3s cubic-bezier(.645,.045,.355,1)}.l-placement-top .l-tabpanel-content{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.l-subpanel-content{width:100%;height:100%}.l-tabpanel{width:100%;height:100%;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:opacity .45s;transition:opacity .45s;opacity:1;text-overflow:ellipsis}.l-tabpanel-inactive{opacity:0;height:0;padding:0!important;pointer-events:none}.l-subpanel{height:100%}.l-tabs-scroll.l-tabs-horizontal .l-tabs-header{-webkit-overflow-scrolling:touch;white-space:nowrap}.l-tabs-scroll.l-tabs-horizontal .l-tabs-header .l-tabs-item{overflow:visible;min-width:160rpx}.l-tabs-scroll.l-tabs-horizontal .l-tabpanel-content{height:150px}.l-tabs-vertical .l-tabsscroll{width:160rpx}.l-tabs-vertical .l-tabs-header{height:100%;min-height:80rpx;-webkit-overflow-scrolling:touch;white-space:nowrap}.l-tabs-vertical .l-tabs-header .l-tabs-item{overflow:visible;min-height:80rpx}.l-tabs-item{position:relative}.l-tab-line{position:absolute;bottom:0;left:0;right:0;width:0;background:#000}.l-tabs-horizontal .l-tab-line{height:4rpx;margin:0 auto}.l-tabs-horizontal .l-tabs-active .l-tab-line{width:100%;transition-delay:.1s}.l-placement-top .l-tab-line{bottom:0}.l-placement-top .l-tabs-header-line{border-bottom:1px solid #f3f3f3}.l-tabs-vertical .l-tabs-active .l-tab-line{width:6rpx!important;height:40rpx!important;border-radius:0 6rpx 6rpx 0;top:0;left:0;margin:auto 0;transition-delay:.1s}.l-sub-placement-left .l-tab-line{left:0;right:auto}.l-sub-placement-left .l-tabs-header-line{border-right:1px solid #f3f3f3}.l-tab-image{width:100rpx;height:100rpx}.l-tab-image-placement-top{flex-direction:column}.l-tab-image-placement-left{flex-direction:row}.l-tabs-main{flex:1}.l-combined-tabs-main{display:flex}
1+
.l-tabs{display:flex;border-radius:8rpx;box-sizing:border-box;overflow:hidden;flex-direction:column;background:#fff;height:100%}.l-tabs .l-tabs-header{display:flex;width:100%;flex-direction:row;background:#fff;align-items:center}.l-tabs .l-tabs-header .l-tabs-item{flex:1;font-size:28rpx;text-align:center;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.l-tabs .l-tabs-header .l-icon-active,.l-tabs .l-tabs-header .l-tabs-active{color:#333;font-size:28rpx}.l-tabs .l-tabs-header .l-icon-inactive,.l-tabs .l-tabs-header .l-tabs-inactive{font-size:28rpx;color:#bbb}.l-tabs .l-tabs-header .l-tabsitems-row{flex-direction:row}.l-tabs .l-tabs-header .l-tabsitems-row .l-icon-active,.l-tabs .l-tabs-header .l-tabsitems-row .l-icon-inactive{margin-right:10rpx}.l-tabs .l-tabs-header .l-tabsitems-row-reverse{flex-direction:row-reverse}.l-tabs .l-tabs-header .l-tabsitems-row-reverse .l-icon-active,.l-tabs .l-tabs-header .l-tabsitems-row-reverse .l-icon-inactive{margin-left:10rpx}.l-placement-top .l-tabs-header{height:80rpx}.l-placement-top .l-tabs-header .l-tabs-item{min-height:100%}.l-sub-placement-left{flex-direction:row}.l-sub-placement-left .l-tabs-header{flex-direction:column;width:160rpx}.l-sub-placement-left .l-tabs-header>.l-tabs-item{width:100%;height:80rpx;background:#f6f8fa}.l-sub-placement-left .l-tabs-header>.l-tabs-active{background:#fff}.l-sub-placement-left .l-tabs-main .l-tabpanel-content{width:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;position:relative;will-change:transform;transition:transform .3s cubic-bezier(.645,.045,.355,1)}.l-placement-top .l-tabpanel-content{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.l-subpanel-content{width:100%;height:100%}.l-tabpanel{width:100%;height:100%;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:opacity .45s;transition:opacity .45s;opacity:1;text-overflow:ellipsis}.l-tabpanel-inactive{opacity:0;height:0;padding:0!important;pointer-events:none}.l-subpanel{height:100%}.l-tabs-scroll.l-tabs-horizontal .l-tabs-header{-webkit-overflow-scrolling:touch;white-space:nowrap}.l-tabs-scroll.l-tabs-horizontal .l-tabs-header .l-tabs-item{overflow:visible;min-width:160rpx}.l-tabs-scroll.l-tabs-horizontal .l-tabpanel-content{height:150px}.l-tabs-vertical .l-tabsscroll{width:160rpx}.l-tabs-vertical .l-tabs-header{height:100%;min-height:80rpx;-webkit-overflow-scrolling:touch;white-space:nowrap}.l-tabs-vertical .l-tabs-header .l-tabs-item{overflow:visible;min-height:80rpx}.l-tabs-item{position:relative}.l-tab-line{position:absolute;bottom:0;left:0;right:0;width:0;background:#000}.l-tabs-horizontal .l-tab-line{height:4rpx;margin:0 auto}.l-tabs-horizontal .l-tabs-active .l-tab-line{width:100%;transition-delay:.1s}.l-placement-top .l-tab-line{bottom:0}.l-placement-top .l-tabs-header-line{border-bottom:1px solid #f3f3f3}.l-tabs-vertical .l-tabs-active .l-tab-line{width:6rpx!important;height:40rpx!important;border-radius:0 6rpx 6rpx 0;top:0;left:0;margin:auto 0;transition-delay:.1s}.l-sub-placement-left .l-tab-line{left:0;right:auto}.l-sub-placement-left .l-tabs-header-line{border-right:1px solid #f3f3f3}.l-tab-image{width:100rpx;height:100rpx}.l-tab-image-placement-top{flex-direction:column}.l-tab-image-placement-left{flex-direction:row}.l-tabs-main{flex:1}.l-combined-tabs-main{display:flex}

dist/loading/index.wxml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@
99
<view wx:if="{{type==='change'}}" style="{{color?'background-color:'+color:''}}" class="{{type+'-bounce3'}} {{'spinner-'+ type + '-' + size}}"></view>
1010
<view class="spinner-circle {{'spinner-circle-' + size}}" wx:if="{{ type === 'circle'}}">
1111
<view class="spinner-container container1">
12-
<view class="circle1 {{type + '-' + size}}" style="background: {{color}}"></view>
13-
<view class="circle2 {{type + '-' + size}}" style="background: {{color}}"></view>
14-
<view class="circle3 {{type + '-' + size}}" style="background: {{color}}"></view>
15-
<view class="circle4 {{type + '-' + size}}" style="background: {{color}}"></view>
12+
<view class="circle1 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
13+
<view class="circle2 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
14+
<view class="circle3 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
15+
<view class="circle4 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
1616
</view>
1717
<view class="spinner-container container2">
18-
<view class="circle1 {{type + '-' + size}}" style="background: {{color}}"></view>
19-
<view class="circle2 {{type + '-' + size}}" style="background: {{color}}"></view>
20-
<view class="circle3 {{type + '-' + size}}" style="background: {{color}}"></view>
21-
<view class="circle4 {{type + '-' + size}}" style="background: {{color}}"></view>
18+
<view class="circle1 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
19+
<view class="circle2 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
20+
<view class="circle3 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
21+
<view class="circle4 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
2222
</view>
2323
<view class="spinner-container container3">
24-
<view class="circle1 {{type + '-' + size}}" style="background: {{color}}"></view>
25-
<view class="circle2 {{type + '-' + size}}" style="background: {{color}}"></view>
26-
<view class="circle3 {{type + '-' + size}}" style="background: {{color}}"></view>
27-
<view class="circle4 {{type + '-' + size}}" style="background: {{color}}"></view>
24+
<view class="circle1 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
25+
<view class="circle2 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
26+
<view class="circle3 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
27+
<view class="circle4 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
2828
</view>
2929
</view>
3030
<view wx:if="{{ type === 'rotate'}}">
@@ -47,22 +47,22 @@
4747
<view wx:if="{{type==='change'}}" style="{{color?'background-color:'+color:''}}" class="{{type+'-bounce3'}} {{'spinner-'+ type + '-' + size}}"></view>
4848
<view wx:if="{{ type === 'circle'}}" class="spinner-circle {{'spinner-circle-' + size}}">
4949
<view class="spinner-container container1">
50-
<view class="circle1 {{type + '-' + size}}" style="background: {{color}}"></view>
51-
<view class="circle2 {{type + '-' + size}}" style="background: {{color}}"></view>
52-
<view class="circle3 {{type + '-' + size}}" style="background: {{color}}"></view>
53-
<view class="circle4 {{type + '-' + size}}" style="background: {{color}}"></view>
50+
<view class="circle1 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
51+
<view class="circle2 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
52+
<view class="circle3 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
53+
<view class="circle4 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
5454
</view>
5555
<view class="spinner-container container2">
56-
<view class="circle1 {{type + '-' + size}}" style="background: {{color}}"></view>
57-
<view class="circle2 {{type + '-' + size}}" style="background: {{color}}"></view>
58-
<view class="circle3 {{type + '-' + size}}" style="background: {{color}}"></view>
59-
<view class="circle4 {{type + '-' + size}}" style="background: {{color}}"></view>
56+
<view class="circle1 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
57+
<view class="circle2 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
58+
<view class="circle3 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
59+
<view class="circle4 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
6060
</view>
6161
<view class="spinner-container container3">
62-
<view class="circle1 {{type + '-' + size}}" style="background: {{color}}"></view>
63-
<view class="circle2 {{type + '-' + size}}" style="background: {{color}}"></view>
64-
<view class="circle3 {{type + '-' + size}}" style="background: {{color}}"></view>
65-
<view class="circle4 {{type + '-' + size}}" style="background: {{color}}"></view>
62+
<view class="circle1 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
63+
<view class="circle2 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
64+
<view class="circle3 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
65+
<view class="circle4 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
6666
</view>
6767
</view>
6868
<view wx:if="{{ type === 'rotate'}}">

0 commit comments

Comments
 (0)