当前位置:网站首页>View UI Plus 发布 1.3.0 版本,新增 Space、$ImagePreview 组件
View UI Plus 发布 1.3.0 版本,新增 Space、$ImagePreview 组件
2022-07-06 09:19:00 【View Design】
View UI Plus 1.3.0 版本已于 2022-06-21 发布。
更新日志
请到官网 www.iviewui.com 查看最新版。
- 新增间距组件 Space。
- ImagePreview 新增下载图片功能。
- ImagePreview 新增属性 toolbar,可选择开启的快捷功能并排序。
- 图片预览支持 $ImagePreview 实例化调用。
- ImagePreview 新增拖拽手势样式。
- Skeleton 默认样式,增加最后一个段落效果。
- Result 属性 type 新增 warning。
- 优化大量文档示例。
- 修复 Select 远程搜索的问题。
- 修复 ImagePreview 点击控制条关闭预览的问题。
- 修复 Layout 样式问题。
- 修复部分组件 types 错误的问题。
更新方法
1.修改 package.json 中 view-ui-plus 版本号:
"dependencies": {
"view-ui-plus": "^1.3.0"
}
2.运行 npm update view-ui-plus。
内容简介
Space 间距组件
间距组件可以很方便地设置相邻组件之间的统一间距。比如下面的场景,在没有使用 Space 间距组件时的效果是:
<Button>在线预览</Button>
<Button>购买授权</Button>
<Button>申请演示</Button>
PC端:
移动端:
使用 Space 组件:
<Space wrap>
<Button>在线预览</Button>
<Button>购买授权</Button>
<Button>申请演示</Button>
</Space>
PC端:
移动端:
Space 组件也支持 垂直方向 的排列:
<Space wrap direction="vertical">
<Button>在线预览</Button>
<Button>购买授权</Button>
<Button>申请演示</Button>
</Space>

还支持各种对齐方式:

$ImagePreview 实例化的图片预览组件
在 1.2.0 版本中,新增了图片预览组件 ImagePreview。在 1.3.0 中,除了传统的 <ImagePreview /> 标签调用方式,现在也支持 JS 实例化调用:
methods: {
showImage () {
this.$ImagePreview.show({
previewList: [...]
})
}
}
另外,ImagePreview 也新增了 下载图片 功能:
图片预览也新增了属性 toolbar 来选择显示哪些快捷功能,并支持排序,具体可以查看文档 API。
更多完整内容,请到 View Design 官网查看:https://www.iviewui.com/
边栏推荐
- 记录:Navicat Premium初次无法连接数据库MySQL之解决
- [算法] 剑指offer2 golang 面试题9:乘积小于k的子数组
- Basic DOS commands
- [GNSS data processing] Helmert variance component estimation analysis and code implementation
- IText 7 generate PDF summary
- First acquaintance with C language (Part 2)
- Tyut Taiyuan University of technology 2022 introduction to software engineering examination question outline
- [算法] 剑指offer2 golang 面试题3:前n个数字二进制形式中1的个数
- How do architects draw system architecture blueprints?
- TYUT太原理工大学2022软工导论考试题型大纲
猜你喜欢

Abstract classes and interfaces

2-year experience summary, tell you how to do a good job in project management
![[算法] 剑指offer2 golang 面试题1:整数除法](/img/e6/f17135207b3540ec58e5a9eed54220.png)
[算法] 剑指offer2 golang 面试题1:整数除法

Small exercise of library management system

Edit distance (multi-source BFS)

架构师怎样绘制系统架构蓝图?

Wechat applet development experience

3月15号 Go 1.18 正式版发布 了解最新特色以及使用方法

TYUT太原理工大学2022软工导论大题汇总
![[algorithm] sword finger offer2 golang interview question 5: maximum product of word length](/img/e0/cea31070d6365eb57013cdead4a175.png)
[algorithm] sword finger offer2 golang interview question 5: maximum product of word length
随机推荐
MySQL 30000 word essence summary + 100 interview questions, hanging the interviewer is more than enough (Collection Series
TYUT太原理工大学2022数据库考试题型大纲
国企秋招经验总结
[algorithm] sword finger offer2 golang interview question 12: the sum of the left and right sub arrays is equal
【话题终结者】
Music playback (toggle & playerprefs)
堆排序【手写小根堆】
MYSQL索引钟B-TREE ,B+TREE ,HASH索引之间的区别和应用场景
[while your roommate plays games, let's see a problem]
Application architecture of large live broadcast platform
3月15号 Go 1.18 正式版发布 了解最新特色以及使用方法
TYUT太原理工大学2022“mao gai”必背
IText 7 generate PDF summary
系统设计学习(二)Design a key-value cache to save the results of the most recent web server queries
2022国赛Re1 baby_tree
Interview Essentials: talk about the various implementations of distributed locks!
All in one 1405: sum and product of prime numbers
错误: 找不到符号
Experience summary of autumn recruitment of state-owned enterprises
Small exercise of library management system