未验证 提交 4957b0df 编写于 作者: VK1688's avatar VK1688 提交者: Gitee

!11 fix: 修复 AlertTip 组件在使用 closeText 后 close 事件失效的问题

Merge pull request !11 from chuion/fix-alert
......@@ -10,7 +10,7 @@
<view class="u-icon-wrap">
<u-icon v-if="showIcon" :name="uIcon" :size="description ? 40 : 32" class="u-icon" :color="uIconType" :custom-style="iconStyle"></u-icon>
</view>
<view class="u-alert-content" @tap.stop="click">
<view class="u-alert-content" @click.stop="click">
<view class="u-alert-title" :style="[uTitleStyle]">
{{title}}
</view>
......@@ -24,7 +24,7 @@
top: description ? '18rpx' : '24rpx'
}"></u-icon>
</view>
<text v-if="closeAble && closeText" class="u-close-text" :style="{
<text @click="close" v-if="closeAble && closeText" class="u-close-text" :style="{
top: description ? '18rpx' : '24rpx'
}">{{closeText}}</text>
</view>
......@@ -254,4 +254,7 @@
right: 20rpx;
line-height: 1;
}
.u-alert-content {
width: 100%;
}
</style>
......@@ -2,7 +2,7 @@
"id": "vk-uview-ui",
"name": "vk-uview-ui",
"displayName": "【开箱即用】uView Vue3 横空出世,继承uView1意志,再战江湖,风云再起!",
"version": "1.5.0",
"version": "1.5.1",
"description": "同时支持 Vue3.0 和 Vue2.0,你没看错,现在 uView 支持 Vue3.0 了!(不支持nvue,此版本为uView1.0的分支)",
"keywords": [
"vk-uview-ui",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册