meixioacomponent 0.3.97 → 0.3.98
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/meixioacomponent.common.js +77 -60
- package/lib/meixioacomponent.umd.js +77 -60
- package/lib/meixioacomponent.umd.min.js +28 -28
- package/lib/style/element/index.css +2 -0
- package/package.json +1 -1
- package/packages/components/proPageTable/oa_pro_table.vue +22 -9
- package/packages/components/style/element/index.css +2 -0
- package/src/component/test.vue +14 -8
|
@@ -9310,6 +9310,8 @@
|
|
|
9310
9310
|
bottom: 0px;
|
|
9311
9311
|
width: 100%;
|
|
9312
9312
|
height: 14px;
|
|
9313
|
+
z-index: 1;
|
|
9314
|
+
pointer-events: none;
|
|
9313
9315
|
background: transparent !important;
|
|
9314
9316
|
border-top: 1px solid var(--color-table-border);
|
|
9315
9317
|
border-bottom: 1px solid var(--color-table-border);
|
package/package.json
CHANGED
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
}"
|
|
47
47
|
>
|
|
48
48
|
<el-table
|
|
49
|
+
:fit="true"
|
|
49
50
|
ref="elTable"
|
|
50
51
|
:row-key="rowKey"
|
|
51
52
|
:stripe="stripe"
|
|
52
|
-
:fit="true"
|
|
53
53
|
:data="tableData"
|
|
54
54
|
:border="borderColu"
|
|
55
55
|
:height="tableHeight"
|
|
@@ -158,13 +158,6 @@
|
|
|
158
158
|
</template>
|
|
159
159
|
</el-table-column>
|
|
160
160
|
</el-table>
|
|
161
|
-
|
|
162
|
-
<div class="table-suffix" v-if="!isAverageWidth">
|
|
163
|
-
<oa_pro_colum_configVue
|
|
164
|
-
:config="tableConfig"
|
|
165
|
-
@setTableHeaderConfig="setTableHeaderConfig"
|
|
166
|
-
></oa_pro_colum_configVue>
|
|
167
|
-
</div>
|
|
168
161
|
</div>
|
|
169
162
|
|
|
170
163
|
<!-- 表格尾部 -->
|
|
@@ -270,7 +263,7 @@ export default {
|
|
|
270
263
|
componentConfig.eventBus.$on('handleTableBorder', this.handleTableBorder)
|
|
271
264
|
},
|
|
272
265
|
mounted() {
|
|
273
|
-
|
|
266
|
+
this.initTableColumWidth()
|
|
274
267
|
},
|
|
275
268
|
beforeDestroy() {
|
|
276
269
|
componentConfig.eventBus.$off('handleTableBorder', this.handleTableBorder)
|
|
@@ -483,6 +476,26 @@ export default {
|
|
|
483
476
|
|
|
484
477
|
this.refreshData()
|
|
485
478
|
},
|
|
479
|
+
|
|
480
|
+
initTableColumWidth() {
|
|
481
|
+
const { isAverageWidth } = this
|
|
482
|
+
if (isAverageWidth) true
|
|
483
|
+
|
|
484
|
+
const tableWidth = this.$refs.elTable.$el.offsetWidth
|
|
485
|
+
let totalWidth = 0
|
|
486
|
+
const { tableConfig } = this.$props
|
|
487
|
+
tableConfig.forEach((item) => {
|
|
488
|
+
totalWidth += item.width
|
|
489
|
+
})
|
|
490
|
+
|
|
491
|
+
const sub = tableWidth - totalWidth
|
|
492
|
+
if (sub > 0) {
|
|
493
|
+
const aver = sub / tableConfig.length
|
|
494
|
+
tableConfig.forEach((item) => {
|
|
495
|
+
item.width += aver
|
|
496
|
+
})
|
|
497
|
+
}
|
|
498
|
+
},
|
|
486
499
|
searchContentHeightChange(height) {
|
|
487
500
|
this.searchContentHeight = height
|
|
488
501
|
},
|
|
@@ -9310,6 +9310,8 @@
|
|
|
9310
9310
|
bottom: 0px;
|
|
9311
9311
|
width: 100%;
|
|
9312
9312
|
height: 14px;
|
|
9313
|
+
z-index: 1;
|
|
9314
|
+
pointer-events: none;
|
|
9313
9315
|
background: transparent !important;
|
|
9314
9316
|
border-top: 1px solid var(--color-table-border);
|
|
9315
9317
|
border-bottom: 1px solid var(--color-table-border);
|
package/src/component/test.vue
CHANGED
|
@@ -319,7 +319,7 @@ export default {
|
|
|
319
319
|
:align="`left`"
|
|
320
320
|
v-model="keyWords"
|
|
321
321
|
:height="pageHeight"
|
|
322
|
-
:isAverageWidth="
|
|
322
|
+
:isAverageWidth="false"
|
|
323
323
|
:pageProps="pageProps"
|
|
324
324
|
:pageConfig="pageConfig"
|
|
325
325
|
:screenList="screenList"
|
|
@@ -328,7 +328,6 @@ export default {
|
|
|
328
328
|
:headerConfig="headerConfig"
|
|
329
329
|
:totalPropsList="totalPropsList"
|
|
330
330
|
:proScreenConfig="proScreenConfig"
|
|
331
|
-
:sortByApi="true"
|
|
332
331
|
>
|
|
333
332
|
<template>
|
|
334
333
|
<base-icon
|
|
@@ -442,7 +441,7 @@ export default {
|
|
|
442
441
|
label: '岗位编码',
|
|
443
442
|
key: 'postCode',
|
|
444
443
|
lock: false,
|
|
445
|
-
width:
|
|
444
|
+
width: 10,
|
|
446
445
|
template: false,
|
|
447
446
|
screen: false,
|
|
448
447
|
},
|
|
@@ -450,7 +449,7 @@ export default {
|
|
|
450
449
|
label: '岗位名称',
|
|
451
450
|
key: 'postName',
|
|
452
451
|
lock: false,
|
|
453
|
-
width:
|
|
452
|
+
width: 10,
|
|
454
453
|
template: false,
|
|
455
454
|
click: () => {},
|
|
456
455
|
},
|
|
@@ -458,7 +457,7 @@ export default {
|
|
|
458
457
|
label: '岗位排序',
|
|
459
458
|
key: 'postSort',
|
|
460
459
|
lock: false,
|
|
461
|
-
width:
|
|
460
|
+
width: 10,
|
|
462
461
|
screen: false,
|
|
463
462
|
template: false,
|
|
464
463
|
},
|
|
@@ -466,20 +465,27 @@ export default {
|
|
|
466
465
|
label: '状态',
|
|
467
466
|
key: 'state',
|
|
468
467
|
lock: false,
|
|
469
|
-
width:
|
|
468
|
+
width: 10,
|
|
470
469
|
template: true,
|
|
471
470
|
},
|
|
472
471
|
{
|
|
473
472
|
label: '创建时间',
|
|
474
473
|
key: 'createTime',
|
|
475
474
|
lock: false,
|
|
476
|
-
width:
|
|
475
|
+
width: 10,
|
|
476
|
+
template: false,
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
label: '创建时间',
|
|
480
|
+
key: 'createTime',
|
|
481
|
+
lock: false,
|
|
482
|
+
width: 10,
|
|
477
483
|
template: false,
|
|
478
484
|
},
|
|
479
485
|
{
|
|
480
486
|
label: '操作',
|
|
481
487
|
key: 'options',
|
|
482
|
-
lock:
|
|
488
|
+
lock: 'right',
|
|
483
489
|
width: 280,
|
|
484
490
|
template: true,
|
|
485
491
|
},
|