Skip to content

Commit

Permalink
update doc & add new components to index
Browse files Browse the repository at this point in the history
  • Loading branch information
wxsms committed Mar 28, 2017
1 parent eda97c3 commit d0416f5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import Alert from './alert/Alert.vue'
import Pagination from './pagination/Pagination.vue'
import Tooltip from './tooltip/Tooltip.vue'
import Popover from './popover/Popover.vue'
import TimePicker from './timepicker/TimePicker.vue'
import Typeahead from './typeahead/Typeahead.vue'
export {
Tooltip,
Carousel,
Expand All @@ -24,5 +26,7 @@ export {
DatePicker,
Alert,
Pagination,
Popover
Popover,
TimePicker,
Typeahead
}
12 changes: 10 additions & 2 deletions src/docs/TypeaheadDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
<div class="col-md-6">
<h3>Static Query Example</h3>
<div class="well">
<p v-if="model1">You selected: {{model1}}</p>
<p v-else>Please select an item.</p>
<form class="form-inline">
<div class="form-group">
<label class="control-label">Settings</label>
Expand Down Expand Up @@ -38,6 +36,11 @@
<label class="control-label">States of America</label>
<input data-role="input" class="form-control" type="text" placeholder="Type to search...">
</typeahead>
<br/>
<div class="alert alert-info">
<p v-if="model1">You selected: {{model1}}</p>
<p v-else>Please select an item.</p>
</div>
<h3>Async & Custom Template Example</h3>
<typeahead ref="typeahead2"
v-model="model2"
Expand All @@ -52,6 +55,11 @@
<span v-text="props.item.login"></span>
</template>
</typeahead>
<br/>
<div class="alert alert-info">
<p v-if="model2">You selected: {{model2}}</p>
<p v-else>Please select an item.</p>
</div>
</div>
<div class="col-md-6">
<h4>Note</h4>
Expand Down

0 comments on commit d0416f5

Please sign in to comment.