leisure-core 0.6.26 → 0.6.27
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 +23 -3
- package/package.json +1 -1
package/le-list/src/main.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="page-container">
|
|
3
3
|
<el-form :inline="true" class="demo-form-inline" :model="searchData">
|
|
4
4
|
<slot name="paramSlot"></slot>
|
|
5
|
-
<el-form-item>
|
|
5
|
+
<el-form-item v-if="showQform">
|
|
6
6
|
<div class="queryBtnClass">
|
|
7
7
|
<slot></slot>
|
|
8
8
|
<le-button type="primary" @click="onClickQuery()" v-if="isDispQBtn"
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
:data="tableData"
|
|
23
23
|
border
|
|
24
24
|
:row-key="rowId"
|
|
25
|
-
:header-cell-style="
|
|
26
|
-
:cell-style="
|
|
25
|
+
:header-cell-style="computedHeaderCellStyle"
|
|
26
|
+
:cell-style="computedCellStyle"
|
|
27
27
|
stripe
|
|
28
28
|
style="width: 100%"
|
|
29
29
|
reserve-selection
|
|
@@ -179,6 +179,18 @@ export default {
|
|
|
179
179
|
type: String,
|
|
180
180
|
default: "编辑",
|
|
181
181
|
},
|
|
182
|
+
headerCellStyle: {
|
|
183
|
+
type: Object,
|
|
184
|
+
default: () => ({}),
|
|
185
|
+
},
|
|
186
|
+
cellStyle: {
|
|
187
|
+
type: Object,
|
|
188
|
+
default: () => ({}),
|
|
189
|
+
},
|
|
190
|
+
showQform: {
|
|
191
|
+
type: Boolean,
|
|
192
|
+
default: true,
|
|
193
|
+
},
|
|
182
194
|
},
|
|
183
195
|
watch: {
|
|
184
196
|
searchParam: {
|
|
@@ -230,6 +242,14 @@ export default {
|
|
|
230
242
|
}
|
|
231
243
|
},
|
|
232
244
|
isDispPage() {},
|
|
245
|
+
computedHeaderCellStyle() {
|
|
246
|
+
const defaultStyle = { "text-align": "center" };
|
|
247
|
+
return { ...defaultStyle, ...this.headerCellStyle };
|
|
248
|
+
},
|
|
249
|
+
computedCellStyle() {
|
|
250
|
+
const defaultStyle = { "text-align": "center" };
|
|
251
|
+
return { ...defaultStyle, ...this.cellStyle };
|
|
252
|
+
},
|
|
233
253
|
},
|
|
234
254
|
created() {
|
|
235
255
|
EventBus.$on("closeDialog", this.closeDialog);
|