Skip to content

Commit 4a40cef

Browse files
committed
update examples
1 parent ac2d40e commit 4a40cef

File tree

6 files changed

+19
-18
lines changed

6 files changed

+19
-18
lines changed

vue2-example/package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vue2-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@vue/composition-api": "^1.0.0-rc.5",
1212
"core-js": "^3.6.5",
1313
"vue": "^2.6.11",
14-
"vue-datatable-url-sync": "^1.0.5",
14+
"vue-datatable-url-sync": "^1.0.6",
1515
"vue-router": "^3.5.1",
1616
"vuetify": "^2.4.0"
1717
},

vue2-example/src/components/HelloWorld.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
<script lang="ts">
2727
import Vue from 'vue';
2828
import useDatatableUrlSync from 'vue-datatable-url-sync';
29-
//import useDatatableUrlSync from './useDatatableUrlSync';
30-
import { GenericDictionnary } from 'vue-datatable-url-sync/src/utils/VDUSTypes';
29+
import { GenericDictionnary, VDUSDatatableOptions } from 'vue-datatable-url-sync/src/utils/VDUSTypes';
3130
import fakeData from "./data";
3231
import { ref } from '@vue/composition-api'
3332
@@ -42,10 +41,10 @@ export default Vue.extend({
4241
}),
4342
setup (_, ctx) {
4443
// --------------------- DATA ------------------------------------
45-
const form = ref({
44+
const form = ref<GenericDictionnary>({
4645
search: ""
4746
})
48-
const options = ref({
47+
const options = ref<VDUSDatatableOptions>({
4948
page: 1,
5049
page_size: 10,
5150
ordering: []

vue3-example/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vue3-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dependencies": {
1111
"core-js": "^3.6.5",
1212
"vue": "^3.0.0",
13-
"vue-datatable-url-sync": "^1.0.5",
13+
"vue-datatable-url-sync": "^1.0.6",
1414
"vue-router": "^4.0.0-0"
1515
},
1616
"devDependencies": {

vue3-example/src/components/HelloWorld.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@
2222
<script lang="ts">
2323
import { defineComponent, ref } from 'vue';
2424
import useDatatableUrlSync from 'vue-datatable-url-sync';
25+
import { GenericDictionnary, VDUSDatatableOptions } from 'vue-datatable-url-sync/src/utils/VDUSTypes';
26+
// import useDatatableUrlSync from '../../../src/useDatatableUrlSync';
27+
// import { GenericDictionnary, VDUSDatatableOptions } from '../../../src/utils/VDUSTypes';
2528
import fakeData from "./data.js";
2629
import SimpleDatatable from './SimpleDatatable.vue';
27-
import { GenericDictionnary } from 'vue-datatable-url-sync/src/utils/VDUSTypes';
2830
import { useRoute, useRouter } from "vue-router";
2931
3032
type FakeDataItem = {
@@ -39,10 +41,10 @@ export default defineComponent({
3941
},
4042
setup () {
4143
// --------------------- DATA ------------------------------------
42-
const form = ref({
44+
const form = ref<GenericDictionnary>({
4345
search: ""
4446
})
45-
const options = ref({
47+
const options = ref<VDUSDatatableOptions>({
4648
page: 1,
4749
page_size: 10,
4850
ordering: []

0 commit comments

Comments
 (0)