首页
视频
资源
登录
原
uni-app弹出层,弹窗层
5668
人阅读
2022/3/10 11:31
总访问:
587044
评论:
0
收藏:
0
手机
分类:
移动开发
**最简单的弹出一句话:** 需要什么东西在内容里边加就行了 ``` <template> <view> <uni-popup ref="popup" background-color="#fff" > 士大夫大师傅 </uni-popup> <button type="default" @click="openView()">点击</button> </view> </template> <script> export default { data() { return { } }, methods: { openView() { this.$refs.popup.open(); } } } </script> <style> </style> ``` **弹出中加两个按钮:** ``` <template> <view> <uni-popup ref="popup" background-color="#fff" > <view class="popup-content" :class="{ 'popup-height': type === 'left' || type === 'right' }"> <button class="button popup-success" @click="toAddNoteHtml()"><text class="button-text success-text">html编辑器(app上推荐使用)</text></button> <button style="margin-top: 10px;" class="button popup-error" @click="toAddNoteMarkdown()"><text class="button-text error-text">markdown编辑器(临时简版)</text></button> </view> </uni-popup> <button type="default" @click="openView()">点击</button> </view> </template> <script> export default { data() { return { } }, methods: { openView() { this.$refs.popup.open(); } } } </script> <style> </style> ```
欢迎加群讨论技术,1群:677373950(满了,可以加,但通过不了),2群:656732739
👈{{preArticle.title}}
👉{{nextArticle.title}}
评价
{{titleitem}}
{{titleitem}}
{{item.content}}
{{titleitem}}
{{titleitem}}
{{item.content}}
TeachingNote
这一生多幸运赶上过你.
博主信息
排名
6
文章
6
粉丝
16
评论
8
文章类别
.net
37篇
后端
5篇
ORM
16篇
前端
48篇
随笔
13篇
移动开发
6篇
数据库
6篇
英语
3篇
rabbitmq
1篇
.net core
5篇
unity
1篇
k8s
1篇
云服务
1篇
DDD
1篇
网络
1篇
更多
mysql
1篇
python
2篇
docker
1篇
最新文章
最新评价
{{item.articleTitle}}
{{item.blogName}}
:
{{item.content}}
关于我们
ICP备案 :
渝ICP备18016597号-1
网站信息:
2018-2024
TNBLOG.NET
技术交流:
群号656732739
联系我们:
contact@tnblog.net
欢迎加群
欢迎加群交流技术