gyyg-components 0.2.24 → 0.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gyyg-components",
3
- "version": "0.2.24",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "main": "lib/gyyg-components.umd.js",
6
6
  "scripts": {
@@ -12,7 +12,6 @@
12
12
  <div class="title">{{ title }}</div>
13
13
  <div class="top-content">
14
14
  <slot name="topContent"></slot>
15
-
16
15
  </div>
17
16
  </template>
18
17
 
@@ -21,6 +20,11 @@
21
20
  :key="index"
22
21
  :label="item.label"
23
22
  :span="item.span || 1"
23
+ :contentClassName="item.contentClassName || ''"
24
+ :labelStyle="{width:labelWidth + 'px', textAlign: 'right'}"
25
+ :contentStyle="item.contentStyle || {}"
26
+ :labelClassName="item.labelClassName || ''"
27
+
24
28
  >
25
29
  <div v-if="item.type === 'img'">
26
30
  <el-image
@@ -96,7 +100,12 @@ export default {
96
100
  border: {
97
101
  type: Boolean,
98
102
  default: false
99
- }
103
+ },
104
+ labelWidth: {
105
+ type: [Number, String],
106
+ default: 100
107
+ },
108
+
100
109
  },
101
110
  }
102
111
  </script>
@@ -135,4 +144,7 @@ export default {
135
144
  /deep/ .el-descriptions__body .el-descriptions__table .el-descriptions-item__cell {
136
145
  white-space: pre-wrap;
137
146
  }
147
+ /deep/ .el-progress-bar {
148
+ width: 200px
149
+ }
138
150
  </style>
@@ -87,5 +87,13 @@ export default {
87
87
  display: table;
88
88
  clear: both;
89
89
  }
90
+ ::v-deep.el-form--label-top {
91
+ .el-col {
92
+ padding-right: 15px;
93
+ }
94
+ .el-form-item {
95
+ margin-bottom: 12px;
96
+ }
97
+ }
90
98
 
91
99
  </style>
@@ -67,6 +67,7 @@
67
67
  :key="index + 'header'"
68
68
  :fixed="col.fixed"
69
69
  :min-width="col.minWidth"
70
+ :align="col.align"
70
71
  >
71
72
  <el-table-column
72
73
  v-for="(item, subIndex) in col.headerList"
@@ -138,6 +139,7 @@
138
139
  :current-page="page.currentPage"
139
140
  layout="total, sizes, prev, pager, next, jumper"
140
141
  :total="page.totalRecords"
142
+ :background="paginationBackGround"
141
143
  ></el-pagination>
142
144
  </div>
143
145
  </div>
@@ -230,7 +232,11 @@ export default {
230
232
  border: {
231
233
  type: Boolean,
232
234
  default: true
233
- }
235
+ },
236
+ paginationBackGround: {
237
+ type: Boolean,
238
+ default: true
239
+ }
234
240
 
235
241
  },
236
242
  data() {
@@ -306,10 +312,35 @@ export default {
306
312
 
307
313
  .pagination-layout {
308
314
  text-align: right;
309
- height: 35px;
315
+ padding: 0px 10px 5px 0;
316
+ /deep/ .el-pagination .el-select .el-input .el-input__inner {
317
+ height: 28px;
318
+ line-height: 28px !important;
319
+ min-height: 28px !important;
320
+ }
321
+ /deep/ .el-pagination__editor.el-input .el-input__inner {
322
+ height: 28px;
323
+ line-height: 28px !important;
324
+ min-height: 28px !important;
325
+ }
310
326
  }
311
327
 
312
328
  /deep/ .el-table td.el-table__cell {
313
329
  border-right: none;
314
330
  }
331
+ .pagination-layout {
332
+ // .el-pagination.is-background .btn-next, .el-pagination.is-background .btn-prev, .el-pagination.is-background .el-pager li
333
+ /deep/ .el-pagination.is-background {
334
+ .btn-next, .btn-prev, .el-pager li {
335
+ border: 1px solid #d7dae2;
336
+ background-color: #fff;
337
+ color: #606266;
338
+ }
339
+ .el-pager li:not(.disabled).active {
340
+ border: 1px solid #409eff;
341
+ background-color: #409eff;
342
+ color: #fff;
343
+ }
344
+ }
345
+ }
315
346
  </style>
@@ -2,7 +2,7 @@
2
2
  <div>
3
3
  <span class="default-text" :style="[statusStyle]" v-if="tableData.columnType == 'text'"
4
4
  :class="tableData.getClass ? tableData.getClass(scope.row) : ''">{{ getText(tableData.bind) }}</span>
5
- <el-button v-if="tableData.columnType == 'button'" size="mini" plain round :type="tableData.setType(this.scope.row)">{{ getText(tableData.bind) }}</el-button>
5
+ <el-button v-if="tableData.columnType == 'button' && getText(tableData.bind)" size="mini" plain round :type="tableData.setType(this.scope.row)">{{ getText(tableData.bind) }}</el-button>
6
6
  </div>
7
7
  </template>
8
8
  <script>