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.
@@ -112,7 +112,12 @@
112
112
  :showCloseBtnTop="showCloseBtnTop"
113
113
  @close="closeDialog"
114
114
  >
115
- <slot name="sub" v-if="showDialog" :rowItem="rowItem"></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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.6.68",
3
+ "version": "0.6.70",
4
4
  "description": "leisure-core是京心数据基于vue2.x开发的一套后台管理系统桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",