window.VueStrap
object. These bundles are also available in [CDNJS](https://cdnjs.com/libraries/vue-strap),
61 | and on both the Bower and NPM packages.
62 |
63 | ```html
64 |
65 |
66 |
78 | ```
79 |
80 | ## Docs
81 | See the [documentation](http://yuche.github.io/vue-strap/) with live editable examples.
82 |
83 | ## Local Setup
84 | * Install with `npm install`
85 | * Run the docs site in development mode with `npm run docs`. This will watch for file changes as you work.
86 | * Build with `npm run build`.
87 |
88 | ## TODO
89 | See [Roadmap](https://github.com/yuche/vue-strap/issues/41)
90 |
91 | ## License
92 | vue-strap is licensed under [The MIT License](LICENSE).
93 |
--------------------------------------------------------------------------------
/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vue-strap",
3 | "homepage": "https://github.com/yuche/vue-strap",
4 | "authors": [
5 | "yuche "
6 | ],
7 | "description": "Boostrap components built with Vue.js",
8 | "main": [
9 | "dist/vue-strap.js",
10 | "dist/vue-strap.js.map",
11 | "dist/vue-strap.min.js"
12 | ],
13 | "moduleType": ["amd","globals"],
14 | "keywords": [
15 | "bootstrap",
16 | "vue.js",
17 | "vue-components"
18 | ],
19 | "license": "MIT",
20 | "ignore": [
21 | "**/.*",
22 | "node_modules",
23 | "bower_components",
24 | "docs",
25 | "src",
26 | "favicon.ico",
27 | "index.html",
28 | "webpack*.js"
29 | ]
30 | }
31 |
--------------------------------------------------------------------------------
/dist/isMobileBrowser.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Detect mobile devices (optional)
3 | * Based on http://detectmobilebrowsers.com/
4 | *
5 | * @value: navigator.isMobile
6 | * @return: true | false
7 | * Detect if this plugin is enabled: ('isMobile' in navigator)
8 | */
9 | (function(a){
10 | var isMobile = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4));
11 | try{ Object.defineProperty(navigator,'isMobile',{get:function(){return isMobile}}); }catch(e){ navigator.isMobile=isMobile }
12 | })(navigator.userAgent||navigator.vendor||window.opera);
--------------------------------------------------------------------------------
/dist/vue-strap-lang.js:
--------------------------------------------------------------------------------
1 | window.VueStrapLang = (function(){
2 | var l = { //languages
3 |
4 | en: {
5 | daysOfWeek: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
6 | limit: 'Limit reached ({{limit}} items max).',
7 | loading: 'Loading...',
8 | minLength: 'Min. Length',
9 | months: [
10 | 'January', 'February', 'March', 'April', 'May', 'June',
11 | 'July', 'August', 'September', 'October', 'November', 'December'
12 | ],
13 | notSelected: 'Nothing Selected',
14 | required: 'Required',
15 | search: 'Search'
16 | },
17 |
18 | ru: {
19 | daysOfWeek: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
20 | limit: 'Максимальное количество достигнуто ({{limit}} максимально).',
21 | loading: 'Загрузка...',
22 | minLength: 'Минимальная длинна',
23 | months: [
24 | 'Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь',
25 | 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'
26 | ],
27 | notSelected: 'Ничего не выбрано',
28 | required: 'Обязательно',
29 | search: 'Поиск'
30 | },
31 |
32 | es: {
33 | daysOfWeek: ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa'],
34 | loading: 'Cargando...',
35 | minLength: 'Tamaño Mínimo',
36 | months: [
37 | 'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio',
38 | 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'
39 | ],
40 | notSelected: 'Nada seleccionado',
41 | required: 'Requerido',
42 | search: 'Buscar',
43 | limit: 'Limite alcanzado (máximo {{limit}} items).'
44 | },
45 |
46 | 'pt-BR': {
47 | daysOfWeek: ['Do', 'Se', 'Te', 'Qa', 'Qi', 'Sx', 'Sa'],
48 | limit: 'Limite atingido (máximo {{limit}} items).',
49 | loading: 'Cargando...',
50 | minLength: 'Tamanho Mínimo',
51 | months: [
52 | 'Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho',
53 | 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'
54 | ],
55 | notSelected: 'Nada selecionado',
56 | required: 'Requerido',
57 | search: 'Buscar'
58 | },
59 |
60 | fr: {
61 | daysOfWeek: ['Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa'],
62 | limit: 'Limite atteinte ({{limit}} éléments max).',
63 | loading: 'Chargement en cours...',
64 | minLength: 'Longueur Minimum',
65 | months: [
66 | 'Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin',
67 | 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'
68 | ],
69 | notSelected: 'Aucune sélection',
70 | required: 'Requis',
71 | search: 'Recherche'
72 | },
73 |
74 | de: {
75 | daysOfWeek: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],
76 | limit: 'Limit erreicht (max {{limit}}).',
77 | loading: 'Lade...',
78 | minLength: 'Min. Länge',
79 | months: [
80 | 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni',
81 | 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'
82 | ],
83 | notSelected: 'Nichts ausgewählt',
84 | required: 'Benötigt',
85 | search: 'Suche'
86 | },
87 |
88 | it: {
89 | daysOfWeek: ['Do', 'Lu', 'Ma', 'Me', 'Gi', 'Ve', 'Sa'],
90 | limit: 'Limite raggiunto (max {{limit}}).',
91 | loading: 'Caricamento...',
92 | minLength: 'Lunghezza min.',
93 | months: [
94 | 'Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno',
95 | 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'
96 | ],
97 | notSelected: 'Nessuna selezione',
98 | required: 'Richiesto',
99 | search: 'Cerca'
100 | }
101 | };
102 |
103 | /**
104 | * Some browsers handle short language code (eg. 'en'), others handle 5 chars (eg. 'en-US').
105 | * With aliases you can handle a group of similar languages, using a regular expresion.
106 | * If the language is not found, the default language is english.
107 | */
108 | var aliases = {
109 | es: /^es-[A-Z]{2}$/i,
110 | en: /^en-[A-Z]{2}$/i,
111 | de: /^de-[A-Z]{2}$/i,
112 | ru: /^ru-[A-Z]{2}$/i,
113 | it: /^it-[A-Z]{2}$/i,
114 | };
115 |
116 | return function (lang) {
117 | lang = lang || 'en';
118 | var i, tr = {};
119 | for (i in aliases) {
120 | if (aliases[i].test(lang)) lang = i;
121 | }
122 | for (i in l.en) {
123 | tr[i] = (l[lang] && l[lang][i]) || l.en[i];
124 | }
125 |
126 | return tr;
127 | };
128 | })();
129 |
--------------------------------------------------------------------------------
/docs/affixSidebar.vue:
--------------------------------------------------------------------------------
1 |
2 | Bootstrap components built with Vue.js.
9 |No jQuery, bootstrap.js, or any 3rd party plugins required.
10 |type
63 |String
null
Define the type of color for the tabs (global).
66 |one-at-time
69 |Boolean
false
Control whether expanding an item will cause the other items to close.
72 |header
77 |String
The clickable text on the group's header. You need one to be able to click on the header for toggling.
80 |is-open
83 |Boolean
false
Whether accordion group is open or closed.
86 |type
89 |String
null
Define the type of color for the tab (single).
92 |If you want to personalice your header with some html you can use the slot instead of header attribute (panel #1 in the example).
95 |offset
25 |Number
0
Pixels to offset from top of screen when calculating position of scroll.
28 |You successfully read this important alert message.
32 |This alert needs your attention.
39 |You successfully read this important alert message.
51 |This alert needs your attention.
57 |show
62 |Boolean
true
Whether show the component
65 |dismissable
68 |Boolean
false
Whether show close button
71 |type
74 |String
, one of
75 | success
76 | info
77 | warning
78 | danger
success
Components styles
81 |duration
84 |Number
0
Auto close duration. Set 0
or a negative number will NOT be auto-close.
width
90 |String
placement
95 |String
. one of top
, top-right
how to position the component.
98 |Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod 10 | tempor incididunt ut labore et dolore magna aliqua.
11 |Ut enim ad minim veniam, 12 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 13 | consequat.
14 |Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod 26 | tempor incididunt ut labore et dolore magna aliqua.
27 |Ut enim ad minim veniam, 28 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 29 | consequat.
30 |show
51 |Boolean
Whether show the component.
54 |placement
57 |String
, one of left
, right
right
how to position the component.
60 |header
63 |String
Header text of the aside component.
66 |width
69 |Number
11 |
Checkbox value: {{checkboxValue | json}}12 | 13 |
16 |
23 |
30 |
31 |
38 |
Radio value: {{radioValue}}39 | 40 |
value
65 |Array
or String
If defined, then the defined values will be checked otherwise the elements with a checked attribute 68 | will be checked.
69 |buttons
72 |Boolean
true
75 |
Can enable/disable button style.
76 |Group normal checks if you want to set the same type color for all.
77 | 78 |type
81 |String
, one of default
82 | primary
83 | danger
84 | info
85 | warning
86 | success
default
sunt in culpa qui officia deserunt mollit a.
10 |sunt in culpa qui officia deserunt mollit a.
17 |sunt in culpa qui officia deserunt mollit a.
24 |indicators
47 |Boolean
true
Whether to show the indicators.
50 |controls
53 |Boolean
true
Whether to show the direction controls.
56 |interval
59 |Number
5000
The amount of time to delay between automatically cycling an item. If set to 0 or a negative number, 62 | carousel will not automatically cycle. 63 |
64 |16 |
Checkbox values: {{checkboxValue | json}}17 | 18 |
checked
28 |Number
or String
Handle the selected value.
31 |value
34 |Number
or String
Value to return if the checkbox item is selected.
37 |type
40 |String
, one of default
41 | primary
42 | danger
43 | info
44 | warning
45 | success
default
button
51 |Boolean
false
53 |Button style.
54 |See Button Group for more options.
57 |5 |
Selected date is: {{new Date($refs.dp.parse()).toString()}}6 | 7 |
value
33 |String
Value of the input DOM
36 |width
39 |String
200px
41 |Width of the input DOM
42 |format
45 |String
MMMM/dd/yyyy
The date format, combination of d, dd, M, MM, MMM, MMMM, yyyy.
48 |disabled-days-of-week
51 |Array
Days of the week that should be disabled. Values are 0 (Sunday) to 6 (Saturday). 54 | Multiple values should be comma-separated.
55 |clear-button
58 |Boolean
false
60 |If true shows an × shaped button to clear the selected date. 61 | Usefull in forms where date entry is optional.
62 |placeholder
65 |String
Placeholder to put on the input field when no date (null or empty) is set
68 |
5 |
6 |
7 |
8 |
9 |
37 |
--------------------------------------------------------------------------------
/docs/example/docSection.vue:
--------------------------------------------------------------------------------
1 |
2 | 9 | |
---|
14 | |
show
95 |Boolean
Whether show the component.
98 |class
101 |String
null
classes to change the style.
104 |disabled
107 |Boolean
false
text
113 |String
Dropdown button text.
116 |type
119 |String
, one of default
120 | primary
121 | danger
122 | info
123 | warning
124 | success
default
Just like the examples. Can use it as the original Bootstrap way.
131 |This is not a style component, is just a global validation manager.
4 |If you need to evaluate if a group of elements are all valids, you can handle easier with this component.
5 |In this example, the buttons and tabs are disabled while the inner elements are empty.
6 |Valid user data : {{valid.user}}10 |
Valid direction : {{valid.direction}}13 |
All valid : {{valid.all}}16 |
valid
72 |Boolean
Return if all the internal form elements (select
, input
) are valids.
7 | This repository contains a set of native Vue.js components based on Bootstrap's markup and CSS. 8 | As a result no dependency on jQuery or Bootstrap's JavaScript is required. 9 | The only required dependencies are: 10 |
11 |
57 | The dist
folder contains vue-strap.js
and vue-strap.min.js
with
58 | all components exported in the window.VueStrap
object. These bundles are also available on both the
59 | Bower and NPM packages.
60 |
If you want to enable language support, you have to add:
79 |If not included what you need, you can add your own, without editing the source code of vue-strap.
87 |If you need to enable/disable options if is a mobile device you can add:
90 |Then in javascript you can check it just doing:
94 |Based on Detect Mobile Browsers.
107 |Modal
TitleLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod 62 | tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, 63 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 64 | consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse 65 | cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non 66 | proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
67 |Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod 68 | tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, 69 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 70 | consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse 71 | cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non 72 | proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
73 |Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod 74 | tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, 75 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 76 | consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse 77 | cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non 78 | proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
79 |Modal
Title
111 | title
129 |String
Title of the modal component.
132 |ok-text
135 |String
Save changes
137 |Text for OK button
138 |cancel-text
141 |String
Close
143 |Text for cancel button
144 |width
147 |Number, String or null
null
Pass a Number in pixels or a String with relational sizes ( e.g. '80%' or '5em' ). If null, the modal will be responsive per bootstrap's default.
150 |callback
153 |Function
A callback Function when you click the modal primary button.
156 |large
159 |Boolean
false
Creates a large modal ( see boostrap's documentation for .modal-lg )
162 |small
165 |Boolean
false
Creates a small modal ( see boostrap's documentation for .modal-sm )
168 |backdrop
171 |Boolean
true
Enables/disables closing the modal by clicking on the backdrop.
174 |
178 | If you just need a simple modal, you can use the title
prop and the default footer. However, if you
179 | need to put custom HTML or a custom footer, you can override the header or footer block by using
180 | <div slot="modal-title" class="modal-title">...</div>
and
181 | <div slot="modal-footer" class="modal-footer">...</div>
.
182 |
placement
49 |String
, one of top
, bottom
, static
, or empty for normal.
''
type
55 |String
, one of inverse
, default
.
default
fluid
61 |Boolean
default
If true, use container-fluid
class. Otherwise, container
will be used
15 |
trigger
34 |String
, one of click
focus
hover
contextmenu
click
How the popover is triggered.
37 |effect
40 |String
, one of scale
fade
fade
title
46 |String
content
52 |String
header
58 |Boolean
true
Whether to show the header.
61 |placement
64 |String
, one of top
65 | left
66 | right
67 | bottom
How to position the popover.
70 |now
65 |Number
The current value of progress completed. Required.
68 |type
71 |String
Style type. Possible values are 'success', 'warning' etc.
74 |label
77 |Boolean
false
79 |Whether to show the label.
80 |striped
83 |Boolean
false
Whether the progressbar has striped effect or not.
86 |Radio value: {{radioValue | json}}16 |
checked
26 |Number
or String
Handle the selected value.
29 |value
32 |Number
or String
Value to return if the radio item is selected.
35 |type
38 |String
, one of default
39 | primary
40 | danger
41 | info
42 | warning
43 | success
default
button
49 |Boolean
false
51 |Button style.
52 |See Button Group for more options.
55 |Based in a bootstrap-select implementation.
4 |Normal select data: {{select.normal}}8 | 14 |
Multiple select data : {{select.multiple.join(',')}}17 | 24 |
37 | Multiple:
38 |
Selected data : {{single}}68 |
The second element has inheritance. Enable when the first get some value and the ajax return values.
116 |Ajax response:
123 | 124 |min-search
128 |Number
0
If defined, the searchbox is disabled if are less than the minimum value you set.
131 |lang
134 |String
Browser language
136 |Language. Default en
if the translation doesn't exist.
options-label
140 |String
label
Define the value in the data used as label.
143 |options-value
146 |String
value
Define the value in the data used as value.
149 |placeholder
152 |String
Nothing Selected
154 |search-text
157 |String
change
163 |(value
)
Return the selected value(s).
165 |selected
168 |(labels:String
)
Return a string with the label(s) of the selected item(s).
170 |size
23 |String
, one of sm
, md
, lg
, xl
md
The size of the spinner.
26 |fixed
29 |Boolean
false
Set to true if you want the spinner to occupy the entire window space.
32 |7 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod 8 | tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, 9 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 10 | consequat.Duis aute irure dolor in reprehenderit in voluptate velit esse 11 | cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat 12 | non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 13 |
14 |21 | Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park. 22 |
23 |active
68 |Number
0
Active tab index (0 based)
71 |disabled
76 |Boolean
false
Whether tabgroup is clickable.
79 |header
82 |String
null
Group Title
85 |header
90 |String
Tab Title
93 |disabled
96 |Boolean
false
98 |Whether tab is clickable and can be activated.
99 |
10 |
trigger
29 |String
, one of click
focus
hover
contextmenu
click
How the tooltip is triggered.
32 |effect
35 |String
, one of scale
fadein
scale
content
40 |String
placement
46 |String
, one of top
47 | left
48 | right
49 | bottom
How to position the tooltip.
52 |value
93 |String
''
data
99 |Array
The local data source for suggestions. Expected to be a primitive array.
102 |async
105 |String
An HTTP URL for asynchronous suggestions. Expected to return a JSON object.
108 |delay
111 |Number
200
Delay before calling async data while typing.
114 |limit
117 |Number
8
The max number of suggestions to be displayed.
120 |key
123 |String
null
The remote JSON key you want to render. if null, render directly using the remote JSON(should be Array).
126 |match-case
129 |Boolean
false
Case sensitive for suggestions.
132 |match-start
135 |Boolean
false
Match only against start of suggestions. E.g. if true, "a" matches "ab" but not "ba".
138 |on-hit
141 |Function
A callback function when you click or hit return on an item.
144 |template
147 |String
<span v-html="$value | highlight query"></span>
Used to render suggestion.
150 |