Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
329 views
in Technique[技术] by (71.8m points)

vue.js - What is your suggestion for vuetify component's attributes order?

Vuetify is a good way to build a web app quickly.

But there are tons of attributes of element , How should i order them quickly?

Vue has a style guide.


 is
 v-for="(item, index) in items"
 v-if="condition"
 v-else-if
 v-else
 v-show
 v-cloak
 v-pre
 v-once
  id=""
  ref=""
  :key=""
  v-model="something"
  
  class=""
  :class=""
  style=""
  :style=""
 
  slot=""
  :Parent=""
  v-on:event="handle"
  v-html
  v-text

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Vuetify is a Material Theme Framework which each of the attributes do a different style effect, thus the end result will remain the same even if you change the attributes' order.

Short Answer: There is not any predefined order to follow.

Cheers


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...