leisure-core 0.6.69 → 0.6.71
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 +10 -1
- package/package.json +1 -1
package/le-list/src/main.vue
CHANGED
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
>
|
|
115
115
|
<slot
|
|
116
116
|
name="expand"
|
|
117
|
-
v-if="showDialog &&
|
|
117
|
+
v-if="showDialog && isDispExpand === 1"
|
|
118
118
|
:rowItem="rowItem"
|
|
119
119
|
></slot>
|
|
120
120
|
<slot name="sub" v-else-if="showDialog" :rowItem="rowItem"></slot>
|
|
@@ -226,6 +226,12 @@ export default {
|
|
|
226
226
|
},
|
|
227
227
|
},
|
|
228
228
|
watch: {
|
|
229
|
+
expand: {
|
|
230
|
+
handler(newVal) {
|
|
231
|
+
this.isDispExpand = newVal;
|
|
232
|
+
},
|
|
233
|
+
immediate: true,
|
|
234
|
+
},
|
|
229
235
|
searchParam: {
|
|
230
236
|
handler(val) {
|
|
231
237
|
this.searchData = Object.assign({}, this.searchData, val);
|
|
@@ -276,6 +282,7 @@ export default {
|
|
|
276
282
|
return {
|
|
277
283
|
rowItem: {},
|
|
278
284
|
rowItems: [],
|
|
285
|
+
isDispExpand: 0, //是否显示扩展插槽 0:不显示 1:显示
|
|
279
286
|
searchData: {
|
|
280
287
|
pageNo: 1,
|
|
281
288
|
total: 1,
|
|
@@ -375,6 +382,7 @@ export default {
|
|
|
375
382
|
this.showDialog = true;
|
|
376
383
|
},
|
|
377
384
|
editItem(row) {
|
|
385
|
+
this.expand = 0;
|
|
378
386
|
this.handleStatus = 2;
|
|
379
387
|
this.$emit("handleStatus", this.handleStatus);
|
|
380
388
|
this.$emit("editCurrentRow", row);
|
|
@@ -382,6 +390,7 @@ export default {
|
|
|
382
390
|
this.showDialog = true;
|
|
383
391
|
},
|
|
384
392
|
detail(row) {
|
|
393
|
+
this.expand = 0;
|
|
385
394
|
this.handleStatus = 0;
|
|
386
395
|
this.rowItem = row;
|
|
387
396
|
this.$emit("handleStatus", this.handleStatus);
|