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.
@@ -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="{ 'text-align': 'center' }"
26
- :cell-style="{ 'text-align': 'center' }"
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.6.26",
3
+ "version": "0.6.27",
4
4
  "description": "leisure-core是京心数据基于vue2.x开发的一套后台管理系统桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",