resolver-egretimp-plus 0.0.249 → 0.0.251
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/web/index.js +1 -1
- package/package.json +1 -1
- package/src/components/childDialog/src/index.vue +1 -0
- package/src/components/packages-H5/CmiCell.vue +1 -1
- package/src/components/packages-H5/CustomComponentCollapseH5.vue +33 -5
- package/src/components/styles/CustomComponenTable.scss +4 -1
package/package.json
CHANGED
|
@@ -67,7 +67,7 @@ const calcProps = computed(() => {
|
|
|
67
67
|
islink: props.config?.islink === '1',
|
|
68
68
|
icon: props.config?.icon,
|
|
69
69
|
selfadaption: hasOwn(props.config, 'selfadaption') ? props.config.selfadaption === '1' : true,
|
|
70
|
-
noborder: props.config?.noborder === '1',
|
|
70
|
+
noborder: props.config?.noborder === '1' || props.config?.borderHidden === '1',
|
|
71
71
|
}
|
|
72
72
|
})
|
|
73
73
|
const attrs = useAttrs()
|
|
@@ -34,6 +34,10 @@ const showPageMeteList = computed(() => {
|
|
|
34
34
|
return pmPageMetaList.value.filter(item => item.displayType != DISPLAY_HIDDEN && item.hidden != '1')
|
|
35
35
|
})
|
|
36
36
|
|
|
37
|
+
const lastShowPageMeteItem = computed(() => {
|
|
38
|
+
return showPageMeteList.value?.length ? showPageMeteList.value[showPageMeteList.value.length - 1] : null
|
|
39
|
+
})
|
|
40
|
+
|
|
37
41
|
const showCollapseBtn = computed(() => {
|
|
38
42
|
return showPageMeteList.value?.length > collapseLimt.value
|
|
39
43
|
})
|
|
@@ -48,17 +52,32 @@ const lasetLimitIdx = computed(() => {
|
|
|
48
52
|
watch(lasetLimitIdx, (val) => {
|
|
49
53
|
pmPageMetaList.value?.forEach((item, index) => {
|
|
50
54
|
item.collapseHidden = '0'
|
|
51
|
-
if (
|
|
52
|
-
item.
|
|
55
|
+
if (item.metaType === 'cmi-cell') {
|
|
56
|
+
item.borderHidden = '0'
|
|
57
|
+
}
|
|
58
|
+
if (val > -1) {
|
|
59
|
+
if (index > val) {
|
|
60
|
+
item.collapseHidden = '1'
|
|
61
|
+
}
|
|
62
|
+
if (index === val) {
|
|
63
|
+
if (item.metaType === 'cmi-cell') {
|
|
64
|
+
item.borderHidden = '1'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
53
67
|
}
|
|
54
68
|
})
|
|
69
|
+
if (val === -1) {
|
|
70
|
+
if (lastShowPageMeteItem.value?.metaType === 'cmi-cell') {
|
|
71
|
+
lastShowPageMeteItem.value.borderHidden = '1'
|
|
72
|
+
}
|
|
73
|
+
}
|
|
55
74
|
}, {
|
|
56
75
|
immediate: true
|
|
57
76
|
})
|
|
58
77
|
|
|
59
78
|
const collapseLabel = computed(() => {
|
|
60
79
|
const isCh = lang?.value?.indexOf('zh') > -1
|
|
61
|
-
return isCollapse.value ? (isCh ? '更多' : 'More') : (isCh ? '收起' : '
|
|
80
|
+
return isCollapse.value ? (isCh ? '更多' : 'More') : (isCh ? '收起' : 'Less')
|
|
62
81
|
})
|
|
63
82
|
function toCollapse() {
|
|
64
83
|
isCollapse.value = !isCollapse.value
|
|
@@ -72,9 +91,9 @@ function toCollapse() {
|
|
|
72
91
|
<Renderer :config="pmPageMetaList" v-model="modelValue"></Renderer>
|
|
73
92
|
</div>
|
|
74
93
|
<div v-if="showCollapseBtn" class="collapse-wrap">
|
|
75
|
-
<
|
|
94
|
+
<span class="collapse-span" @click="toCollapse">
|
|
76
95
|
{{ collapseLabel }}
|
|
77
|
-
</
|
|
96
|
+
</span>
|
|
78
97
|
</div>
|
|
79
98
|
</cmi-collapse>
|
|
80
99
|
</div>
|
|
@@ -93,6 +112,10 @@ function toCollapse() {
|
|
|
93
112
|
.collapse-wrap {
|
|
94
113
|
display: flex;
|
|
95
114
|
justify-content: end;
|
|
115
|
+
& > .collapse-span {
|
|
116
|
+
color: #3271FE;
|
|
117
|
+
margin: 8px 16px 16px 16px;
|
|
118
|
+
}
|
|
96
119
|
}
|
|
97
120
|
</style>
|
|
98
121
|
<style lang="scss">
|
|
@@ -107,4 +130,9 @@ function toCollapse() {
|
|
|
107
130
|
.CustomComponentCollapseH5.CustomComponentCollapseH5.CustomComponentCollapseH5:last-child {
|
|
108
131
|
margin-bottom: 0;
|
|
109
132
|
}
|
|
133
|
+
.CustomComponentTabsH5 {
|
|
134
|
+
.CustomComponentCollapseH5 {
|
|
135
|
+
margin-bottom: 0;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
110
138
|
</style>
|
|
@@ -85,13 +85,16 @@
|
|
|
85
85
|
padding: 0 8px;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
+
.el-input {
|
|
89
|
+
display: flex;
|
|
90
|
+
}
|
|
88
91
|
.el-select__wrapper, .el-input__wrapper {
|
|
89
92
|
box-shadow: none;
|
|
90
93
|
border-bottom: 1px solid var(--el-border-color);
|
|
91
94
|
padding: 0;
|
|
92
95
|
border-radius: 0;
|
|
93
96
|
background-color: transparent;
|
|
94
|
-
min-height:
|
|
97
|
+
min-height: 32px;
|
|
95
98
|
&.is-focused {
|
|
96
99
|
border-color: var(--el-color-primary);
|
|
97
100
|
}
|