-
Notifications
You must be signed in to change notification settings - Fork 772
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2. 修复grid组件在头条小程序的报错的问题 3. 优化tabs组件在头条小程序的表现问题 4. 修复index-list组件在头条小程序上的兼容性 5. 修复layout组件在头条小程序上的兼容性 6. 修复table组件在头条小程序上的兼容性 7. 修复checkbox组件在头条小程序上的兼容性 8. 修复radio组件在头条小程序上的兼容性 9. 修复form和form-item在头条小程序上的兼容性 10. 修复popup在头条小程序上底部有缺失的问题,同时连带修复使用了popup的keyborad和picker,calendar等组件的问题 11. 优化toast组件多次调用,可能会造成配置混乱的问题 12. 修复rate组件在微信,头条小程序上滑动选择可能不正确的问题 13. 优化line组件在头条小程序上的兼容性 14. 修复message-input组件在头条小程序上的兼容性 15. 优化link组件在头条小程序上复制链接后,toast弹出瞬间被关闭的问题 16. 优化empty演示在头条小程序上的兼容性 17. 优化tag组件在支付宝小程序上不支持行内样式加"!important"的问题
- Loading branch information
Showing
17 changed files
with
123 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,37 @@ | ||
<template> | ||
<view class=""> | ||
<u-dropdown ref="uDropdown" @open="open" @close="close"> | ||
<u-dropdown-item v-model="value1" title="距离" :options="options1" @change="change"></u-dropdown-item> | ||
<u-dropdown-item v-model="value2" title="温度" :options="options2"></u-dropdown-item> | ||
</u-dropdown> | ||
<u-button @click="show = true;">打开弹窗</u-button> | ||
<u-popup mode="bottom" v-model="show"> | ||
<view class="content"> | ||
<u-image class="image" width="500rpx" height="300rpx" src="https://cdn.uviewui.com/uview/example/fade.jpg"></u-image> | ||
|
||
<view class="confrim-btn"> | ||
<u-button @click="show = false;">确定</u-button> | ||
</view> | ||
</view> | ||
</u-popup> | ||
</view> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
value1: 1, | ||
value2: 2, | ||
options1: [{ | ||
label: '默认排序', | ||
value: 1, | ||
}, | ||
{ | ||
label: '距离优先', | ||
value: 2, | ||
} | ||
], | ||
options2: [{ | ||
label: '去冰', | ||
value: 1, | ||
}, | ||
{ | ||
label: '加冰', | ||
value: 2, | ||
}, | ||
], | ||
} | ||
}, | ||
methods: { | ||
open(index) { | ||
// 展开某个下来菜单时,先关闭原来的其他菜单高亮 | ||
// 同时内部会自动给当前展开项进行高亮 | ||
this.$refs.uDropdown.highlight(); | ||
}, | ||
close(index) { | ||
// 关闭的时候,给当前项加上高亮 | ||
// 当然,您也可以通过监听dropdown-item的@change事件进行处理 | ||
this.$refs.uDropdown.highlight(index); | ||
}, | ||
change() { | ||
// 更多的细节,请自行实现 | ||
show: true | ||
} | ||
} | ||
} | ||
</script> | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.content { | ||
padding: 24rpx; | ||
text-align: center; | ||
position: relative; | ||
} | ||
.image { | ||
position: absolute; | ||
top: -200rpx; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.