leisure-core 0.6.68 → 0.6.70
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 +12 -1
- package/package.json +1 -1
package/le-list/src/main.vue
CHANGED
|
@@ -112,7 +112,12 @@
|
|
|
112
112
|
:showCloseBtnTop="showCloseBtnTop"
|
|
113
113
|
@close="closeDialog"
|
|
114
114
|
>
|
|
115
|
-
<slot
|
|
115
|
+
<slot
|
|
116
|
+
name="expand"
|
|
117
|
+
v-if="showDialog && expand === 1"
|
|
118
|
+
:rowItem="rowItem"
|
|
119
|
+
></slot>
|
|
120
|
+
<slot name="sub" v-else-if="showDialog" :rowItem="rowItem"></slot>
|
|
116
121
|
</le-dialog-container>
|
|
117
122
|
</div>
|
|
118
123
|
</template>
|
|
@@ -123,6 +128,10 @@ export default {
|
|
|
123
128
|
name: "le-list",
|
|
124
129
|
mixins: [leMixins],
|
|
125
130
|
props: {
|
|
131
|
+
expand: {
|
|
132
|
+
type: Number,
|
|
133
|
+
default: 0,
|
|
134
|
+
},
|
|
126
135
|
tableData: {
|
|
127
136
|
type: Array,
|
|
128
137
|
default: () => [],
|
|
@@ -366,6 +375,7 @@ export default {
|
|
|
366
375
|
this.showDialog = true;
|
|
367
376
|
},
|
|
368
377
|
editItem(row) {
|
|
378
|
+
this.expand = 0;
|
|
369
379
|
this.handleStatus = 2;
|
|
370
380
|
this.$emit("handleStatus", this.handleStatus);
|
|
371
381
|
this.$emit("editCurrentRow", row);
|
|
@@ -373,6 +383,7 @@ export default {
|
|
|
373
383
|
this.showDialog = true;
|
|
374
384
|
},
|
|
375
385
|
detail(row) {
|
|
386
|
+
this.expand = 0;
|
|
376
387
|
this.handleStatus = 0;
|
|
377
388
|
this.rowItem = row;
|
|
378
389
|
this.$emit("handleStatus", this.handleStatus);
|