leisure-core 0.4.86 → 0.4.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/le-list/src/main.vue
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<le-button type="primary" @click="addItem()" v-if="isDispAddBtn"
|
|
9
9
|
>新建</le-button
|
|
10
10
|
>
|
|
11
|
-
<slot name="headerBtns"></slot>
|
|
11
|
+
<slot name="headerBtns" :params="searchData"></slot>
|
|
12
12
|
</el-form-item>
|
|
13
13
|
</el-form>
|
|
14
14
|
<el-table
|
|
@@ -185,15 +185,12 @@ export default {
|
|
|
185
185
|
},
|
|
186
186
|
computed: {},
|
|
187
187
|
created() {
|
|
188
|
-
EventBus.$on("closeDialog",
|
|
189
|
-
this.closeDialog();
|
|
190
|
-
});
|
|
188
|
+
EventBus.$on("closeDialog", this.closeDialog);
|
|
191
189
|
},
|
|
192
190
|
destroyed() {
|
|
193
|
-
EventBus.$off("closeDialog");
|
|
191
|
+
EventBus.$off("closeDialog", this.closeDialog);
|
|
194
192
|
},
|
|
195
193
|
mounted() {
|
|
196
|
-
EventBus;
|
|
197
194
|
this.getList();
|
|
198
195
|
},
|
|
199
196
|
methods: {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
<div class="comContainerClass">
|
|
15
15
|
<component
|
|
16
16
|
:is="componentType(item.type)"
|
|
17
|
-
v-bind="mergeProps(getComponentProps(item.type), item.attr || {})"
|
|
18
17
|
v-model="formPop[item.prop]"
|
|
18
|
+
v-bind="mergeProps(getComponentProps(item.type), item.attr || {})"
|
|
19
19
|
v-on="item.event"
|
|
20
20
|
>
|
|
21
21
|
<template v-if="item.type === 'radio'">
|
|
@@ -103,7 +103,7 @@ export default {
|
|
|
103
103
|
},
|
|
104
104
|
number: {
|
|
105
105
|
component: "le-input-number",
|
|
106
|
-
props: {
|
|
106
|
+
props: {},
|
|
107
107
|
},
|
|
108
108
|
radio: { component: "el-radio-group", props: {} },
|
|
109
109
|
date: {
|