resolver-egretimp-plus 0.0.231 → 0.0.234
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/theme/element/index.css +1 -1
- package/dist/theme/element/src/components/collapse.scss +5 -0
- package/dist/web/index.js +1 -1
- package/package.json +1 -1
- package/src/components/packages-web/CustomComponentCollapse.vue +6 -2
- package/src/components/packages-web/CustomComponentRow.vue +6 -5
- package/src/theme/element/components/collapse.scss +5 -0
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<component :is="component" class="standard-wrap" v-bind="{...attrs, ...componentProps}">
|
|
3
3
|
<ElCollapse v-bind="{...collapseProps}" :class="collapseClass" v-model="activeNames">
|
|
4
|
-
<ElCollapseItem v-bind="collapseItemProps" :class="{'no-collpase': noCollpase}">
|
|
4
|
+
<ElCollapseItem v-bind="collapseItemProps" :class="{'no-collpase': noCollpase, 'hidden-head': hiddenHead}">
|
|
5
5
|
<template #title>
|
|
6
6
|
<div class="collapge-slot-title">
|
|
7
|
-
<ElRow>
|
|
7
|
+
<ElRow align="middle">
|
|
8
8
|
<span>{{ lang.indexOf('zh') > -1 ? props.config.metaNameZh : props.config.metaNameEn }}</span>
|
|
9
9
|
<Renderer @click="stopPropagation" :config="rightSlotPmPageMetaList" v-model="props.refValue.value"></Renderer>
|
|
10
10
|
</ElRow>
|
|
@@ -53,6 +53,10 @@ const collapseProps = computed(() => {
|
|
|
53
53
|
const noCollpase = computed(() => {
|
|
54
54
|
return props?.config?.noCollpase == '1'
|
|
55
55
|
})
|
|
56
|
+
// 隐藏头
|
|
57
|
+
const hiddenHead = computed(() => {
|
|
58
|
+
return props?.config?.hiddenHead == '1'
|
|
59
|
+
})
|
|
56
60
|
|
|
57
61
|
const collapseClass = computed(() => {
|
|
58
62
|
return {
|
|
@@ -25,7 +25,8 @@ const attrs = useAttrs()
|
|
|
25
25
|
const classRef = computed(() => {
|
|
26
26
|
return {
|
|
27
27
|
'clear-right-margin': !reserveRightMargin.value,
|
|
28
|
-
'clear-bottom-margin': !reserveBottomMargin.value
|
|
28
|
+
'clear-bottom-margin': !reserveBottomMargin.value,
|
|
29
|
+
'not-context': allHidden.value
|
|
29
30
|
}
|
|
30
31
|
})
|
|
31
32
|
|
|
@@ -34,7 +35,7 @@ const pmPageMetaList = computed(() => {
|
|
|
34
35
|
})
|
|
35
36
|
|
|
36
37
|
const allHidden = computed(() => {
|
|
37
|
-
return
|
|
38
|
+
return !pmPageMetaList.value?.find(config => !((typeof config.hidden === 'boolean' && config.hidden) || config.hidden === '1'))
|
|
38
39
|
})
|
|
39
40
|
// 保留内部formItem的margin-right
|
|
40
41
|
const reserveRightMargin = computed(() => {
|
|
@@ -59,10 +60,10 @@ const reserveBottomMargin = computed(() => {
|
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
62
|
}
|
|
63
|
+
.not-context.not-context.not-context.not-context {
|
|
64
|
+
margin-bottom: 0;
|
|
65
|
+
}
|
|
62
66
|
.clear-bottom-margin {
|
|
63
|
-
&.clear-bottom-margin.clear-bottom-margin.clear-bottom-margin {
|
|
64
|
-
margin-bottom: 0;
|
|
65
|
-
}
|
|
66
67
|
.el-col {
|
|
67
68
|
& > .el-form-item {
|
|
68
69
|
margin-bottom: 0;
|