current position:Home>Technology sharing | learning to do test platform development vuetify framework
Technology sharing | learning to do test platform development vuetify framework
2022-04-29 13:35:04【Hua Weiyun】
This article is excerpted from the internal textbook of Hogwarts testing college
Vuetify yes Vue Semantic component framework , Designed to provide cleanliness 、 Semantic and reusable components , Make it easier to build applications .
Vuetify The core is to provide a variety of reusable , Plug and play components suitable for various project specifications .
- Vue Semantic components of . utilize Vue Functional components of , All tag based classes used to aid the main assembly , For example, a card subject , have access to v-card-title To deal with it
- Easy forming .Vuetify It is envisaged to create... From the bottom . Every component , Instructions and functions all work seamlessly , Allows you to focus on creating your application .
- Born for mobile devices . be-all Vuetify Components are designed for mobile devices . Applications can easily switch between different directions and screen sizes , compatible web、 The tablet 、 mobile phone .
- Pre made Vue CLI Templates .Vuetify Bring their own 3 individual Vue Templates , Ready to use .
By means of Vue and Material Design The power of , And a large number of carefully crafted component libraries and features , We can use Vuetify Build excellent applications .Vuetify comply with Google Of Material Design standard , Each component is carefully designed , With modularity 、 Responsive and excellent performance , Its components have easy to remember semantic design , You can convert memorized complex classes and markup symbols into simple and explicit names .
Browser support
Browser name | Support status |
---|---|
Chromium(Chrome, Edge Insider) | Support |
Edge | Support |
Firefox | Support |
Safari 10+ | Support |
IE11/Safari 9 | need poyfill |
IE9/IE10 | I won't support it |
Component library installation
vue add vuetify
Component library use
Component library address :Alert Prompt box — Vuetify 1
API Address :https://vuetifyjs.com/zh-Hans/api/vuetify/
Component example - Data table
<template> <v-data-table v-model="selected" :headers="headers" :items="desserts" :single-select="singleSelect" item-key="name" loading="true" class="elevation-1" > <template v-slot:top> <v-switch v-model="singleSelect" label="Single select" class="pa-3" ></v-switch> </template> </v-data-table></template><script>export default { data() { return { singleSelect: false, selected: [], headers: [ { text: "id", // Column name value: "id", // Data name of column binding ( Interface returns the name of the data field ) align: 'center', // Location , Optional 'left' | 'center' |'right' sortable: true, // Can it be sorted width: string // Width }, { text: " Use case name ", value: "caseName", align: 'center', sortable: false }, { text: " Use case data ", value: "caseData", align: 'center', sortable: false } ], desserts: [], } }, created() { this.getList() }, methods: { getList() { let post_data = { pageNum: 1, pageSize: 10 } this.$api.cases.GetList(post_data).then(res => { this.desserts = res.data.data.data }) } }}</script>
Property list
The attribute name | explain | data type | The default value is |
---|---|---|---|
:single-select | Change the selection mode to radio | boolean | false |
:items | Data to render | array | |
item-key | Unique attribute of each row data binding | string | ‘id’ |
:headers | Header information | DataTableHeader | |
loading | Whether to display the progress bar of loading data | boolean | false |
Reference link
Vue Official website :API — Vue.js
Vuetify:https://vuetifyjs.com/zh-Hans/api/vuetify/
Vuetify yes Vue Semantic component framework , Designed to provide cleanliness 、 Semantic and reusable components , Make it easier to build applications .Vuetify That's all for the framework , You can practice more ~
copyright notice
author[Hua Weiyun],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/119/202204291033427633.html
The sidebar is recommended
- JQuery table sort
- Vue3.0 combined API usetable
- Web Socket
- Elegant naming 🧊🧊
- Understand types in JavaScript
- [project practice] warehouse information management system (layui + SSM + springboot)
- Powerful markdown document generator based on JSDoc
- encrypt-input
- Can excel still operate like this? It's enough to watch the digging star crawler. You may win the prize soon!!!
- Operators and implicit conversion rules
guess what you like
Multi selection pull-down linkage selection component based on Vue and iView
Development and implementation of front-end high-quality e-mail
2021 piano science studio JS basic teaching (II)
Hard core statistics Nuggets front-end sprouting new status, to see what the current popular good articles look like
Use Tencent perfdog to test the performance of wechat applet
Format description of manifest file of chrome or edge extension (manifest.json configuration description)
Min Barrage is a plug-in with high performance, small capacity and configurable sending barrage
Java graduation project -- actual combat of health promotion management system project [implementation of springboot + mybatis + layui]
CSS selector
Classic java course design -- online cake mall sales website project [implementation of springmvc + mybatis + bootstrap, etc.]
Random recommended
- Design and implementation of front end and back end separated party construction information management system based on Java springboot + Vue
- Day 13, paradigm and relationship, linked table query and sub query
- Basic syntax of JS
- Jet API
- Detailed design of a student information management system based on springboot + Vue
- Detailed design of an epidemic prevention management system based on springboot + Vue + Shiro + redis
- JQuery method for adding elements
- Vue project construction
- JQuery selector
- JQuery method for adding elements
- How to write HTML table making code
- HTML common tag examples
- HTTP status code table
- JavaScript events
- How does Vue + element dynamically render a 7 * 7 table
- Web Foundation (starting from scratch) - HTML table (realizing novel ranking)
- (43) CSS unit
- Java access modifier (HTML note)
- JavaScript implements the shopping cart system according to the known code to realize addition, subtraction, deletion, subtotal and total
- [C + +] (I) introduction to C + + lesson 1
- What if you don't know how to write the HTML form
- Disassembly analysis of an example of Python Markov Series 6
- Front end study day 1 + 2
- Web review materials (HTML + JS + CSS)
- [pre school 04 from scratch] about the use of link element
- CSS solves the problem that text height is left blank up and down
- Regular expression lazy match qualifier
- PEM certificate generated by Linux for HTTPS
- Bootstrap is easy to use
- Introduction to the project directory structure of Vue problem
- HTML (super detailed) (Figure + text)
- Life cycle hook function of react
- CSS notes 2
- Vue3 PC side page development specification
- HTML5 new tags and features (notes)
- Beginner HTML5 - Audio
- HTML Basics
- The easiest way to export the front-end table to excel file
- Basic JavaScript
- JavaScript naming convention