当前位置:网站首页>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/
边栏推荐
- System design learning (III) design Amazon's sales rank by category feature
- [algorithm] sword finger offer2 golang interview question 4: numbers that appear only once
- Small exercise of library management system
- 3月15号 Go 1.18 正式版发布 了解最新特色以及使用方法
- 图书管理系统小练习
- 【话题终结者】
- Implementation of Excel import and export functions
- A brief introduction to the database of tyut Taiyuan University of technology in previous years
- 异常:IOException:Stream Closed
- Differences and application scenarios between MySQL index clock B-tree, b+tree and hash indexes
猜你喜欢

面试必备:聊聊分布式锁的多种实现!

十分钟彻底掌握缓存击穿、缓存穿透、缓存雪崩

TYUT太原理工大学2022数据库之关系代数小题

国企秋招经验总结

TYUT太原理工大学2022数据库题库选择题总结

如何保障 MySQL 和 Redis 的数据一致性?

编辑距离(多源BFS)

Record: the solution of MySQL denial of access when CMD starts for the first time
![[algorithm] sword finger offer2 golang interview question 10: subarray with sum K](/img/63/7422489d09a64ec9f0e79378761bf1.png)
[algorithm] sword finger offer2 golang interview question 10: subarray with sum K

What are the advantages of using SQL in Excel VBA
随机推荐
阿里云微服务(四) Service Mesh综述以及实例Istio
记录:下一不小心写了个递归
Inheritance and polymorphism (I)
Fairygui bar subfamily (scroll bar, slider, progress bar)
[untitled]
wsl常用命令
On March 15, the official version of go 1.18 was released to learn about the latest features and usage
记录:Navicat Premium初次无法连接数据库MySQL之解决
String class
TYUT太原理工大学往年数据库简述题
Abstract classes and interfaces
[while your roommate plays games, let's see a problem]
Tyut Taiyuan University of technology 2022 introduction to software engineering
Ten minutes to thoroughly master cache breakdown, cache penetration, cache avalanche
初识指针笔记
初识C语言(下)
记录:newInstance()过时的代替方法
Role movement in the first person perspective
[算法] 劍指offer2 golang 面試題2:二進制加法
[rtklib 2.4.3 B34] version update introduction I