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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.0.231",
3
+ "version": "0.0.234",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -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 || allHidden.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 !!pmPageMetaList.value?.find(config => !((typeof config.hidden === 'boolean' && config.hidden) || config.hidden === '1'))
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;
@@ -76,6 +76,11 @@
76
76
  .el-collapse-item__arrow {
77
77
  margin-right: 0;
78
78
  }
79
+ .hidden-head {
80
+ & > .el-collapse-item__header {
81
+ display: none;
82
+ }
83
+ }
79
84
  }
80
85
 
81
86
  .CustomComponentCollapse:has(+ .CustomComponentCollapse) {