Skip to content

Commit 1d6bc1d

Browse files
committed
添加弹窗表单模式 #20
1 parent 3540459 commit 1d6bc1d

File tree

20 files changed

+595
-96
lines changed

20 files changed

+595
-96
lines changed

docs/custom.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ destroyed() {
716716
this.$bus.emit("tableReload");
717717
```
718718

719-
设置表格加载状态
719+
### 设置表格加载状态
720720

721721
```php
722722
this.$bus.emit("tableSetLoading",true);
@@ -736,6 +736,18 @@ this.$bus.emit("pageReload");
736736
this.$bus.emit("closeDialog");
737737
```
738738

739+
### 重置表单数据
740+
741+
```php
742+
this.$bus.emit("resetFormData");
743+
```
744+
745+
### 设置Grid弹窗表单
746+
747+
```php
748+
this.$bus.emit("showDialogGridFrom", { isShow: true });
749+
```
750+
739751

740752

741753
更多事件正在开发中......

docs/grid.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,3 +823,9 @@ $toolbars->addRight(new MyRoghtTool());//添加在右侧
823823
});
824824
```
825825

826+
## 弹窗模式表单
827+
828+
```php
829+
$grid->dialogForm($this->form()->isDialog());
830+
```
831+

public/1.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ __webpack_require__.r(__webpack_exports__);
111111
//
112112
//
113113
//
114+
//
115+
//
116+
//
117+
//
118+
//
114119

115120

116121
/* harmony default export */ __webpack_exports__["default"] = ({
@@ -259,11 +264,12 @@ var render = function() {
259264
},
260265
[
261266
_c(
262-
"el-tabs",
267+
_vm.attrs.attrs.hideTab ? "div" : "el-tabs",
268+
{ tag: "component" },
263269
_vm._l(_vm.attrs.tabs, function(tab) {
264270
return _c(
265-
"el-tab-pane",
266-
{ key: tab, attrs: { label: tab } },
271+
_vm.attrs.attrs.hideTab ? "div" : "el-tab-pane",
272+
{ key: tab, tag: "component", attrs: { label: tab } },
267273
[
268274
_vm._l(_vm.attrs.formItems, function(item, index) {
269275
return [

0 commit comments

Comments
 (0)