Skip to content

Commit

Permalink
fix isLocal
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Apr 10, 2019
1 parent db4be0a commit 98b227d
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion example/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default {
fields: {
id: { label: 'ID', sortable: true },
actions: {
sortable: false,
isLocal: true,
label: 'Actions',
defaultContent: '<a href="javascript:void(0);" data-action="edit" class="btn btn-primary btn-sm"><i class="mdi mdi-square-edit-outline"></i> Edit</a>' +
'<span data-action="delete" class="btn btn-danger btn-sm"><i class="mdi mdi-delete"></i> Delete</span>'
Expand Down
4 changes: 2 additions & 2 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ __webpack_require__.r(__webpack_exports__);
sortable: true
},
actions: {
sortable: false,
isLocal: true,
label: 'Actions',
defaultContent: '<a href="javascript:void(0);" data-action="edit" class="btn btn-primary btn-sm"><i class="mdi mdi-square-edit-outline"></i> Edit</a>' + '<span data-action="delete" class="btn btn-danger btn-sm"><i class="mdi mdi-delete"></i> Delete</span>'
},
Expand Down Expand Up @@ -568,7 +568,7 @@ __webpack_require__.r(__webpack_exports__);

if (field.isLocal) {
field.searchable = false;
field.orderable = false;
field.sortable = false;
} // generate


Expand Down
2 changes: 1 addition & 1 deletion example/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/index.js": "/index.js?id=07e3b277e8c6e3096265",
"/index.js.map": "/index.js.map?id=285743d9128b54eb97e3"
"/index.js": "/index.js?id=32ec8b280fd84173c683",
"/index.js.map": "/index.js.map?id=642f9a187e8ecd87f3ed"
}
2 changes: 1 addition & 1 deletion src/VdtnetTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default {
// disable search and sort for local field
if (field.isLocal) {
field.searchable = false
field.orderable = false
field.sortable = false
}
// generate
Expand Down

0 comments on commit 98b227d

Please sign in to comment.