当前位置:网站首页>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/
边栏推荐
- [algorithm] sword finger offer2 golang interview question 1: integer division
- Tyut Taiyuan University of technology 2022 introduction to software engineering examination question outline
- The earth revolves around the sun
- 记录:动态Web项目servlet访问数据库404错误之解决
- 编辑距离(多源BFS)
- [algorithme] swordfinger offer2 golang question d'entrevue 2: addition binaire
- Employment of cashier [differential constraint]
- [algorithm] sword finger offer2 golang interview question 4: numbers that appear only once
- 错误:排序与角标越界
- TYUT太原理工大学2022“mao gai”必背
猜你喜欢

One article to get UDP and TCP high-frequency interview questions!

面渣逆袭:Redis连环五十二问,三万字+八十图详解。

阿里云微服务(一)服务注册中心Nacos以及REST Template和Feign Client

阿里云微服务(四) Service Mesh综述以及实例Istio

国企秋招经验总结

Chromatic judgement bipartite graph

抽象类和接口

Basic DOS commands

System design learning (I) design pastebin com (or Bit.ly)
![[untitled]](/img/b1/9a2bebebb24132a405fc4e7d854e51.png)
[untitled]
随机推荐
Tyut Taiyuan University of technology 2022 introduction to software engineering
Music playback (toggle & playerprefs)
What are the advantages of using SQL in Excel VBA
First acquaintance with C language (Part 1)
抽象类和接口
[while your roommate plays games, let's see a problem]
[算法] 剑指offer2 golang 面试题12:左右两边子数组的和相等
Alibaba cloud microservices (I) service registry Nacos, rest template and feign client
[算法] 剑指offer2 golang 面试题6:排序数组中的两个数字之和
Alibaba cloud microservices (II) distributed service configuration center and Nacos usage scenarios and implementation introduction
GNSS positioning accuracy index calculation
[algorithm] sword finger offer2 golang interview question 13: sum of numbers of two-dimensional submatrix
错误: 找不到符号
TYUT太原理工大学2022“mao gai”必背
[algorithm] sword finger offer2 golang interview question 1: integer division
[算法] 剑指offer2 golang 面试题5:单词长度的最大乘积
如何保障 MySQL 和 Redis 的数据一致性?
系统设计学习(二)Design a key-value cache to save the results of the most recent web server queries
RTKLIB: demo5 b34f. 1 vs b33
Usage differences between isempty and isblank