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/lib/gyyg-components.common.js +93 -93
- package/lib/gyyg-components.umd.js +93 -93
- package/lib/gyyg-components.umd.min.js +93 -93
- package/package.json +1 -1
- package/src/components/MECDescriptions/MECDescriptions.vue +14 -2
- package/src/components/MecForm/MecForm.vue +8 -0
- package/src/components/MecTable/MecTable.vue +33 -2
- package/src/otherComponents/styleText.vue +1 -1
package/package.json
CHANGED
|
@@ -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>
|
|
@@ -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
|
-
|
|
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>
|