Commit b4290e82 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

ajout d'un paramètre optionnel : default-query

parent 1cab3a66
......@@ -33,7 +33,8 @@ Another example with custom options :
```
<zotero-vue-client
default-type="user"
default-id="475425"
default-id="475425"
default-query="1984"
:options="{
pageLength: 10,
editableConfig: false
......
{
"name": "zotero-vue-client",
"version": "0.1.3",
"version": "0.1.4",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
......
<template>
<zotero-vue-client :default-type="resourceType" :default-id="groupOrUserId" @entry-selected="selectedEntry"/>
<zotero-vue-client :default-type="resourceType"
:default-id="groupOrUserId"
default-query="1984"
@entry-selected="selectedEntry"/>
</template>
<script>
......
......@@ -67,6 +67,7 @@
export default {
name: 'ZoteroVueClient',
props: {
defaultQuery: String,
defaultId : String,
defaultType : {
type : String,
......@@ -94,8 +95,8 @@
currentPage:1,
pageLength: this.options.pageLength,
nbResults: 0,
textQuery : "",
format : this.options.format
format : this.options.format,
textQuery: this.defaultQuery || ""
}
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment