mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 19:41:45 +08:00
[improvement] NoticeBar: optimize wxml (#1576)
This commit is contained in:
parent
0bc1505b19
commit
2cef9ad091
@ -97,5 +97,6 @@
|
|||||||
"van-collapse": "../../dist/collapse/index",
|
"van-collapse": "../../dist/collapse/index",
|
||||||
"van-collapse-item": "../../dist/collapse-item/index",
|
"van-collapse-item": "../../dist/collapse-item/index",
|
||||||
"van-picker": "../../dist/picker/index"
|
"van-picker": "../../dist/picker/index"
|
||||||
}
|
},
|
||||||
|
"sitemapLocation": "sitemap.json"
|
||||||
}
|
}
|
7
example/sitemap.json
Normal file
7
example/sitemap.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
|
||||||
|
"rules": [{
|
||||||
|
"action": "allow",
|
||||||
|
"page": "*"
|
||||||
|
}]
|
||||||
|
}
|
@ -12,14 +12,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__left-icon {
|
&__left-icon {
|
||||||
height: 18px;
|
|
||||||
min-width: 20px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
|
|
||||||
&-image {
|
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
}
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__right-icon {
|
&__right-icon {
|
||||||
|
@ -4,9 +4,11 @@
|
|||||||
style="color: {{ color }}; background-color: {{ backgroundColor }};"
|
style="color: {{ color }}; background-color: {{ backgroundColor }};"
|
||||||
bind:tap="onClick"
|
bind:tap="onClick"
|
||||||
>
|
>
|
||||||
<view wx:if="{{ leftIcon }}" class="van-notice-bar__left-icon">
|
<image
|
||||||
<image class="van-notice-bar__left-icon-image" src="{{ leftIcon }}" />
|
wx:if="{{ leftIcon }}"
|
||||||
</view>
|
src="{{ leftIcon }}"
|
||||||
|
class="van-notice-bar__left-icon"
|
||||||
|
/>
|
||||||
<view class="van-notice-bar__content-wrap">
|
<view class="van-notice-bar__content-wrap">
|
||||||
<view class="van-notice-bar__content {{ scrollable ? '' : 'van-ellipsis' }}" animation="{{ animationData }}">
|
<view class="van-notice-bar__content {{ scrollable ? '' : 'van-ellipsis' }}" animation="{{ animationData }}">
|
||||||
{{ text }}
|
{{ text }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user