Skip to content

Commit

Permalink
fix busClose
Browse files Browse the repository at this point in the history
  • Loading branch information
Mojito-source committed Jul 6, 2023
1 parent 5f4e44d commit bf5d2df
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"/app.js": "/app.js?id=cdeb944b40094d73f7bd",
"/app.js": "/app.js?id=0e001bb509f0dd87edc4",
"/manifest.js": "/manifest.js?id=8991394a854ee5cdffc3",
"/vendor.js": "/vendor.js?id=8abff0e9c166b13b6b9e"
}
2 changes: 1 addition & 1 deletion resources/js/components/form/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export default {
this.attrs.attrs.isDialog ? this.closeDialog() : this.$router.go(-1);
},
closeDialog () {
this.$bus.emit("showDialogGridFrom", { isShow: false });
this.$bus.emit(this.attrs.attrs.busClose, { isShow: false });
},
},
};
Expand Down
1 change: 1 addition & 0 deletions src/Form/FormAttrs.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class FormAttrs
public $validateOnRuleChange = true;
public $size;
public $disabled = false;
public $busClose = "showDialogGridFrom";

public $hideTab = true;

Expand Down
6 changes: 6 additions & 0 deletions src/Form/TraitFormAttrs.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ public function className($className)
return $this;
}

public function busClose($closeDialog)
{
$this->attrs->busClose = $closeDialog;
return $this;
}

public function style($style)
{
$this->attrs->style = $style;
Expand Down

0 comments on commit bf5d2df

Please sign in to comment.