diff --git a/dist/js/field.js b/dist/js/field.js index c342d7a..8a6b842 100644 --- a/dist/js/field.js +++ b/dist/js/field.js @@ -185,7 +185,7 @@ module.exports = __webpack_require__(13); /***/ (function(module, exports, __webpack_require__) { Nova.booting(function (Vue, router, store) { - Vue.component("index-simple-link-button", __webpack_require__(3)); + Vue.component("index-simple-link-button", __webpack_require__(3).default); }); /***/ }), diff --git a/resources/js/field.js b/resources/js/field.js index 6a6262c..56eb392 100644 --- a/resources/js/field.js +++ b/resources/js/field.js @@ -1,3 +1,3 @@ Nova.booting((Vue, router, store) => { - Vue.component("index-simple-link-button", require("./components/IndexField")); + Vue.component("index-simple-link-button", require("./components/IndexField").default); }); diff --git a/src/SimpleLinkButton.php b/src/SimpleLinkButton.php index bd682f0..b8240b8 100644 --- a/src/SimpleLinkButton.php +++ b/src/SimpleLinkButton.php @@ -72,18 +72,21 @@ public function attributes($attributes) public function classes($classes) { $this->classes = $classes; + return $this; } public function style($style) { $this->style = $style; + return $this; } public function type($type) { $this->type = $type; + return $this; }