resolver-egretimp-plus 0.1.136 → 0.1.138
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/dist/h5/index.js +1 -1
- package/dist/theme/element/index.css +1 -1
- package/dist/theme/element/src/components/table.scss +10 -0
- package/dist/web/index.js +1 -1
- package/package.json +1 -1
- package/src/analysisComponent.jsx +1 -1
- package/src/components/packages-web/CustomComponentTable.jsx +20 -4
- package/src/theme/element/components/table.scss +10 -0
package/package.json
CHANGED
|
@@ -81,7 +81,7 @@ export default {
|
|
|
81
81
|
const lang = inject('lang')
|
|
82
82
|
const OPEN_DATA_RULES = inject('OPEN_DATA_RULES')
|
|
83
83
|
|
|
84
|
-
const _dialogFooterTeleport = inject('_dialogFooterTeleport')
|
|
84
|
+
const _dialogFooterTeleport = inject('_dialogFooterTeleport', ref(null))
|
|
85
85
|
const selects = inject('selects')
|
|
86
86
|
const _parentRootValue = inject('_parentRootValue')
|
|
87
87
|
const _parentDynamicMapComp = inject('_parentDynamicMapComp')
|
|
@@ -661,6 +661,20 @@ export default {
|
|
|
661
661
|
toopTip.triggerRef = null
|
|
662
662
|
}
|
|
663
663
|
|
|
664
|
+
function calcHeadContextWidth(config) {
|
|
665
|
+
let jianPX = 0
|
|
666
|
+
if (config.requiredFlag == '1') {
|
|
667
|
+
jianPX += 11
|
|
668
|
+
}
|
|
669
|
+
if (config.hintFlag == '1') {
|
|
670
|
+
jianPX += 19
|
|
671
|
+
}
|
|
672
|
+
if (jianPX) {
|
|
673
|
+
return `calc(100% - ${jianPX}px)`
|
|
674
|
+
}
|
|
675
|
+
return '100%'
|
|
676
|
+
}
|
|
677
|
+
|
|
664
678
|
function generateCellSolts(columnConfg, configIdx) {
|
|
665
679
|
let headerKey = 'header'
|
|
666
680
|
let cellKey = 'default'
|
|
@@ -671,11 +685,13 @@ export default {
|
|
|
671
685
|
return {
|
|
672
686
|
[headerKey]: () => {
|
|
673
687
|
let retVnode = (
|
|
674
|
-
<
|
|
688
|
+
<div className='head-span-new'>
|
|
675
689
|
{ columnConfg.requiredFlag == '1' ? <span style="color: rgb(245, 34, 45); margin-right: 3px;">*</span> : '' }
|
|
676
|
-
|
|
690
|
+
<div className='head-span-text' style={{maxWidth: calcHeadContextWidth(columnConfg)}} onMouseenter={(e) => cellMouseEnenter(e)} onMouseleave={(e) => cellMouseout(e)}>
|
|
691
|
+
{ columnConfg.headerRender ? columnConfg.headerRender(h, { props, config: columnConfg, lang, rootValue, selects })
|
|
677
692
|
: (lang.value.indexOf('zh') > -1 ? columnConfg.metaNameZh : columnConfg.metaNameEn)
|
|
678
|
-
|
|
693
|
+
}
|
|
694
|
+
</div>
|
|
679
695
|
{
|
|
680
696
|
columnConfg.hintFlag == '1' ? (
|
|
681
697
|
<ElTooltip effect="dark" content={lang.value.indexOf('zh') > -1 ? columnConfg.hintContentZh : columnConfg.hintContentEn} placement="top">
|
|
@@ -683,7 +699,7 @@ export default {
|
|
|
683
699
|
</ElTooltip>
|
|
684
700
|
) : null
|
|
685
701
|
}
|
|
686
|
-
</
|
|
702
|
+
</div>
|
|
687
703
|
)
|
|
688
704
|
if (isVirtualized.value) {
|
|
689
705
|
retVnode = (
|
|
@@ -96,6 +96,16 @@
|
|
|
96
96
|
overflow: hidden;
|
|
97
97
|
white-space: nowrap;
|
|
98
98
|
}
|
|
99
|
+
.head-span-new {
|
|
100
|
+
width: 100%;
|
|
101
|
+
.head-span-text {
|
|
102
|
+
display: inline-block;
|
|
103
|
+
vertical-align:bottom;
|
|
104
|
+
text-overflow: ellipsis;
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
99
109
|
}
|
|
100
110
|
th.el-table__cell.is-leaf {
|
|
101
111
|
border-bottom: none;
|