Skip to content

common vue components used in my personal projects

License

Notifications You must be signed in to change notification settings

tomwang1013/mycomps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mycomps

common vue components used in my personal projects, includes:

fa-rating: font-awesome star rating

label(for='level') 难度:
fa-rating(
  field-name='level'
  initial-value=question.level
  v-bind:all-values="['0','1','2','3','4']")

fa-rating

input-labels: labels management in an text input

label(for='labels') 标签:
input-labels(input-id='labels'
             search-url='/qlabels/search'
             add-url='/qlabels'
             init-labels=question.labels.join(','))

input-labels

popup-list: popup search list

label(for='university') 学校名称:
popup-list(
  field-name='university'
  ref='university'
  v-if='initialized'
  v-bind:ori-field-val="oriValues['university']"
  v-bind:field-class="['o-fm-ctl']"
  v-bind:init-items='constants.universities'
  v-on:change='onChange')

popup-list

popup-overlay: popup a dialog on an gray overlay

popup-overlay(v-on:ok='onOk' ref='po')
  span(slot='body') 删除后无法恢复,确定要删除这个问题吗?

popup-overlay

popup-tabs: multiple-hierarchies tabs to select a value from the last tab

label(for='address') 工作地点:
popup-tabs( 
  field-name='address'
  field-class='o-fm-ctl-hr'
  v-bind:init-item=address
  v-bind:init-lables='initLables'
  v-bind:init-items='initItems')

popup-tabs

search_suggestion: search suggestion input

label(for='company_name') 公司:
search-sugg(field-name='company_name'
            v-bind:field-class="['o-fm-ctl-hr']"
            search-url='/users/queryByCompanyName')

search-suggetion

More details please check the source code. It is easy to use.

About

common vue components used in my personal projects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published