Skip to content

Commit bf5d2df

Browse files
committed
fix busClose
1 parent 5f4e44d commit bf5d2df

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

public/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/mix-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"/app.js": "/app.js?id=cdeb944b40094d73f7bd",
2+
"/app.js": "/app.js?id=0e001bb509f0dd87edc4",
33
"/manifest.js": "/manifest.js?id=8991394a854ee5cdffc3",
44
"/vendor.js": "/vendor.js?id=8abff0e9c166b13b6b9e"
55
}

resources/js/components/form/Form.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export default {
284284
this.attrs.attrs.isDialog ? this.closeDialog() : this.$router.go(-1);
285285
},
286286
closeDialog () {
287-
this.$bus.emit("showDialogGridFrom", { isShow: false });
287+
this.$bus.emit(this.attrs.attrs.busClose, { isShow: false });
288288
},
289289
},
290290
};

src/Form/FormAttrs.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class FormAttrs
2020
public $validateOnRuleChange = true;
2121
public $size;
2222
public $disabled = false;
23+
public $busClose = "showDialogGridFrom";
2324

2425
public $hideTab = true;
2526

src/Form/TraitFormAttrs.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ public function className($className)
1717
return $this;
1818
}
1919

20+
public function busClose($closeDialog)
21+
{
22+
$this->attrs->busClose = $closeDialog;
23+
return $this;
24+
}
25+
2026
public function style($style)
2127
{
2228
$this->attrs->style = $style;

0 commit comments

Comments
 (0)