Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
d4fbd795
Commit
d4fbd795
authored
Jun 15, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索框热门词超出宽度
parent
ce4feff4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
static/nativeComponents/GoodsSearch/index.wxml
+2
-2
static/nativeComponents/GoodsSearch/index.wxss
+1
-2
No files found.
static/nativeComponents/GoodsSearch/index.wxml
View file @
d4fbd795
...
...
@@ -19,8 +19,8 @@
</view>
</view>
<!-- 热门词区域 -->
<view class="hot_words_class" wx:if="{{datas.componentData.hotWordsData['isOpenHotWords'] == 1}}">
<view class="hot_words_box"
style="justify-content:{{datas.componentData.hotWordsData['hotWordsLayout'] == 2?'center':'start'}}"
>
<view class="hot_words_class"
style="justify-content:{{datas.componentData.hotWordsData['hotWordsLayout'] == 2?'center':'start'}}"
wx:if="{{datas.componentData.hotWordsData['isOpenHotWords'] == 1}}">
<view class="hot_words_box">
<view class="words_item" wx:for="{{tableData}}" wx:key="id" style="font-size:{{datas.componentData.hotWordsData.hotWordsTextIsDefault==1 ? datas.componentData.hotWordsData.fontSize + 'px' : ''}};color:{{datas.componentData.hotWordsData.hotWordsTextIsDefault==1 ? datas.componentData.hotWordsData.color : ''}};background-color:{{datas.componentData.hotWordsData.hotWordsBackgroundIsDefault==1 ? datas.componentData.hotWordsData.backgroundColor : ''}}">
{{ item.popularWordsName }}
</view>
...
...
static/nativeComponents/GoodsSearch/index.wxss
View file @
d4fbd795
...
...
@@ -84,15 +84,14 @@ input{
}
.hot_words_class {
width:100%;
padding: 0 8px;
margin-bottom: 10px;
display: flex;
}
.hot_words_box {
display: flex;
justify-content: start;
width: 100%;
overflow: hidden;
overflow-x: scroll;
white-space: nowrap;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment