当前位置:网站首页>View UI plus released version 1.2.0 and added image, skeleton and typography components
View UI plus released version 1.2.0 and added image, skeleton and typography components
2022-07-06 13:15:00 【View Design】
View UI Plus 1.2.0 The version is on 2022-06-13 Release .
Update log
Please go to the official website www.iviewui.com Check out the latest version of .
- New typesetting component
Typography
, Built in rich content layout UI, Support copy 、 Editable 、 Omit and other functions .Typography contain 5 A component :Typography Content structure
Title title
Paragraph The paragraph
Text Inline text
Link link
Add a skeleton screen component
Skeleton
.- New picture component
Image
. There are two components :Image picture
ImagePreview Preview picture
Repair part CSS Problems that go wrong in some environments .
Repair Row Components types Wrong question .
Repair Alert The component icon is not centered .
Update method
1. modify package.json
in view-ui-plus
Version number :
"dependencies": {
"view-ui-plus": "^1.2.0"
}
2. function npm update view-ui-plus
.
Content abstract
Image Picture components
The picture component can be used for various typesetting of a picture , Use fit
Property to set various zoom effects for the picture ,width
and height
You can set the width and height of the picture ,src
Specify the picture address , such as :
<Image
src="https://file.iviewui.com/images/image-demo-11.jpg"
fit="contain"
width="100px"
height="100px"
/>
Set properties lazy
You can load pictures lazily , By default, it will automatically find the latest one overflow The value is auto or scroll Parent element of . When scrolling to the visible area of the picture , Will load the picture . Of course , You can also set properties scroll-container
To specify the container . You can experience the lazy loading of pictures online here : https://run.iviewui.com/HoVFMqS7
besides , The picture component can also customize the loading prompt 、 Load failure prompt and other common attributes . You can see file API
ImagePreview Picture preview component
Picture preview can be done in Image
Open properties on the component preview
Use , Or directly used alone ImagePreview
Image preview component :
Picture preview needs to specify a set of picture addresses preview-list
And the default number of images displayed initial-index
.
Picture preview support Zoom in 、 narrow 、 rotate 、1:1 Look at the original picture 、 Forward and backward switching And so on , It also supports keyboard operation .
Online experience address :https://run.iviewui.com/T2V78Fay
Skeleton Frame screen assembly
The skeleton screen component is used to provide a placeholder combination where data needs to be loaded .
Basic effect , Include head image 、 title 、 The paragraph
The skeleton screen can also be customized , Such as length 、 Height 、 shape 、 Animation 、 Typesetting, etc
Typography Typesetting components
Show the title 、 The paragraph 、 List, etc , Often used in articles 、 Document layout .
Support common accessibility , Like copying 、 Editable 、 Ellipsis, etc .
Typography Every component of , Can be turned on Copy function , Just one parameter copyable
:
<Paragraph copyable> This is a piece of text that can be copied </Paragraph>
It also supports directly on the current paragraph Edit and save , Just turn it on editable
attribute :
Editing support from Default slot
Read , Or directly through v-model
Two way binding data :
<template>
<Paragraph editable @on-edit-end="handleSave1">{
{ content1 }}</Paragraph>
<Paragraph v-model="content2" editable />
</template>
<script>
export default {
data () {
return {
content1: ' Text that can be edited and saved directly ',
content2: ' Also support v-model Fast binding '
}
},
methods: {
handleSave1 (content) {
this.content1 = content;
}
}
}
</script>
For long paragraphs , You can also turn on properties ellipsis
Omit , And Tooltip
Display the complete content in the form of :
More complete content , succeed in inviting sb. View Design Official website view :iView / View Design A set of enterprise class UI Component libraries and front-end solutions
边栏推荐
- 异常:IOException:Stream Closed
- Fundamentals of UD decomposition of KF UD decomposition [1]
- All in one 1405: sum and product of prime numbers
- [algorithm] sword finger offer2 golang interview question 6: sum of two numbers in the sorting array
- [algorithm] sword finger offer2 golang interview question 13: sum of numbers of two-dimensional submatrix
- TYUT太原理工大学2022数据库之关系代数小题
- Detailed explanation of balanced binary tree is easy to understand
- [algorithm] sword finger offer2 golang interview question 9: subarray with product less than k
- TYUT太原理工大学2022软工导论考试题型大纲
- 2-year experience summary, tell you how to do a good job in project management
猜你喜欢
Fundamentals of UD decomposition of KF UD decomposition [1]
Dark chain lock (lca+ difference on tree)
[GNSS data processing] Helmert variance component estimation analysis and code implementation
[algorithm] sword finger offer2 golang interview question 4: numbers that appear only once
系统设计学习(一)Design Pastebin.com (or Bit.ly)
[dry goods] cycle slip detection of suggestions to improve the fixed rate of RTK ambiguity
阿里云微服务(三)Sentinel开源流控熔断降级组件
Record: the solution of MySQL denial of access when CMD starts for the first time
架构师怎样绘制系统架构蓝图?
[algorithm] sword finger offer2 golang interview question 8: the shortest subarray with a sum greater than or equal to K
随机推荐
继承和多态(下)
String class
面渣逆袭:Redis连环五十二问,三万字+八十图详解。
[while your roommate plays games, let's see a problem]
堆排序【手写小根堆】
The port is occupied because the service is not shut down normally
Pride-pppar source code analysis
Heap sort [handwritten small root heap]
[algorithm] sword finger offer2 golang interview question 10: subarray with sum K
阿里云微服务(一)服务注册中心Nacos以及REST Template和Feign Client
Wechat applet development experience
TYUT太原理工大学2022软工导论简答题
121 distributed interview questions and answers
编辑距离(多源BFS)
[algorithme] swordfinger offer2 golang question d'entrevue 2: addition binaire
[algorithm] sword finger offer2 golang interview question 13: sum of numbers of two-dimensional submatrix
[algorithm] sword finger offer2 golang interview question 5: maximum product of word length
GNSS positioning accuracy index calculation
Differences and application scenarios between MySQL index clock B-tree, b+tree and hash indexes
阿里云微服务(三)Sentinel开源流控熔断降级组件