Commit ef176027 authored by wlxuqu's avatar wlxuqu

1. 优化支付宝小程序上this.$slots.$default的判断性

2. 优化dropdown可能错位的问题
parent f22d21a3
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name" : "uView", "name" : "uView",
"appid" : "__UNI__60F4B81", "appid" : "__UNI__60F4B81",
"description" : "多平台快速开发的UI框架", "description" : "多平台快速开发的UI框架",
"versionName" : "1.7.1", "versionName" : "1.7.2",
"versionCode" : "100", "versionCode" : "100",
"transformPx" : false, "transformPx" : false,
"app-plus" : { "app-plus" : {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
// "current": 0, //当前激活的模式(list 的索引项) // "current": 0, //当前激活的模式(list 的索引项)
// "list": [{ // "list": [{
// "name": "test", //模式名称 // "name": "test", //模式名称
// "path": "pages/componentsB/dropdown/index", //启动页面,必选 // "path": "pages/componentsC/button/index", //启动页面,必选
// "query": "uuid=c4bba940-f69e-11ea-a419-6bafda9d095e&__id__=1" //启动参数,在页面的onLoad函数里面得到 // "query": "uuid=c4bba940-f69e-11ea-a419-6bafda9d095e&__id__=1" //启动参数,在页面的onLoad函数里面得到
// }] // }]
// }, // },
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
zIndex: uZIndex, zIndex: uZIndex,
opacity: opacity opacity: opacity
}, customStyle]"> }, customStyle]">
<view class="u-back-top__content" v-if="!$slots.default"> <view class="u-back-top__content" v-if="!$slots.default && !$slots.$default">
<u-icon @click="backToTop" :name="icon" :custom-style="iconStyle"></u-icon> <u-icon @click="backToTop" :name="icon" :custom-style="iconStyle"></u-icon>
<view class="u-back-top__content__tips"> <view class="u-back-top__content__tips">
{{tips}} {{tips}}
......
<template> <template>
<view class="u-dropdown-item" v-if="active" @touchmove.stop.prevent="() => {}" @tap.stop.prevent="() => {}"> <view class="u-dropdown-item" v-if="active" @touchmove.stop.prevent="() => {}" @tap.stop.prevent="() => {}">
<block v-if="!$slots.default"> <block v-if="!$slots.default && !$slots.$default">
<scroll-view scroll-y="true" :style="{ <scroll-view scroll-y="true" :style="{
height: $u.addUnit(height) height: $u.addUnit(height)
}"> }">
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
striped ? 'u-striped' : '', striped ? 'u-striped' : '',
striped && stripedActive ? 'u-striped-active' : '' striped && stripedActive ? 'u-striped-active' : ''
]" class="u-active" :style="[progressStyle]"> ]" class="u-active" :style="[progressStyle]">
<slot v-if="$slots.default" /> <slot v-if="$slots.default || $slots.$default" />
<block v-else-if="showPercent"> <block v-else-if="showPercent">
{{percent + '%'}} {{percent + '%'}}
</block> </block>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<view class="u-model"> <view class="u-model">
<view v-if="showTitle" class="u-model__title u-line-1" :style="[titleStyle]">{{ title }}</view> <view v-if="showTitle" class="u-model__title u-line-1" :style="[titleStyle]">{{ title }}</view>
<view class="u-model__content"> <view class="u-model__content">
<view :style="[contentStyle]" v-if="$slots.default"> <view :style="[contentStyle]" v-if="$slots.default || $slots.$default">
<slot /> <slot />
</view> </view>
<view v-else class="u-model__content__message" :style="[contentStyle]">{{ content }}</view> <view v-else class="u-model__content__message" :style="[contentStyle]">{{ content }}</view>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<view class="u-slider__button-wrap" @touchstart="onTouchStart" <view class="u-slider__button-wrap" @touchstart="onTouchStart"
@touchmove="onTouchMove" @touchend="onTouchEnd" @touchmove="onTouchMove" @touchend="onTouchEnd"
@touchcancel="onTouchEnd"> @touchcancel="onTouchEnd">
<slot v-if="$slots.default"/> <slot v-if="$slots.default || $slots.$default"/>
<view v-else class="u-slider__button" :style="[blockStyle, { <view v-else class="u-slider__button" :style="[blockStyle, {
height: blockWidth + 'rpx', height: blockWidth + 'rpx',
width: blockWidth + 'rpx', width: blockWidth + 'rpx',
......
...@@ -120,9 +120,9 @@ ...@@ -120,9 +120,9 @@
}, },
data() { data() {
return { return {
// 由于安卓太菜了,通过css居中凸起按钮的外层元素有误差,故通过js计算将其 // 由于安卓太菜了,通过css居中凸起按钮的外层元素有误差,故通过js计算将其
midButtonLeft: '50%', midButtonLeft: '50%',
pageUrl: '', // 当前 pageUrl: '', // 当前页面URL
} }
}, },
created() { created() {
......
// 此版本发布于2020-09-17 // 此版本发布于2020-09-21
let version = '1.7.1'; let version = '1.7.2';
export default { export default {
v: version, v: version,
......
{ {
"name": "uview-ui", "name": "uview-ui",
"version": "1.7.1", "version": "1.7.2",
"description": "uView UI,是uni-app生态优秀的UI框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水", "description": "uView UI,是uni-app生态优秀的UI框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
"main": "index.js", "main": "index.js",
"keywords": ["uview", "uView", "uni-app", "uni-app ui", "uniapp", "uviewui", "uview ui", "uviewUI", "uViewui", "uViewUI", "uView UI", "uni ui", "uni UI", "uniapp ui", "ui", "UI框架", "uniapp ui框架", "uniapp UI"], "keywords": ["uview", "uView", "uni-app", "uni-app ui", "uniapp", "uviewui", "uview ui", "uviewUI", "uViewui", "uViewUI", "uView UI", "uni ui", "uni UI", "uniapp ui", "ui", "UI框架", "uniapp ui框架", "uniapp UI"],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment