resolver-egretimp-plus 0.0.217 → 0.0.218

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.217",
3
+ "version": "0.0.218",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -24,7 +24,7 @@
24
24
  import { ElCollapse, ElCollapseItem, ElCard, ElRow } from 'element-plus'
25
25
  import Renderer from '../../renderer.jsx'
26
26
  import { computed, inject, useAttrs, defineEmits, defineProps } from 'vue'
27
- import { commonPropsType } from '../../utils/index.js'
27
+ import { commonPropsType, hasOwn } from '../../utils/index.js'
28
28
 
29
29
  defineOptions({
30
30
  inheritAttrs: false
@@ -56,7 +56,7 @@ const noCollpase = computed(() => {
56
56
 
57
57
  const collapseClass = computed(() => {
58
58
  return {
59
- 'underline-hidden': props.config.underlineHidden,
59
+ 'underline-hidden': hasOwn(props.config, 'underlineHidden') ? props.config.underlineHidden : noCollpase.value,
60
60
  'not-wrap-border': !props.config.needSegment
61
61
  }
62
62
  })
@@ -10,7 +10,7 @@
10
10
  --el-collapse-header-font-size: 14px;
11
11
  // margin-bottom: var(--prmary-marign);
12
12
  .el-collapse-item__header {
13
- padding-bottom: 12px;
13
+ padding-bottom: 16px;
14
14
  box-sizing: content-box;
15
15
  }
16
16
  .el-collapse-item__content {
@@ -553,7 +553,7 @@ export function generateLayoutPolyfill(config, disabled, isH5) {
553
553
  [normalCapitalizeComponent(config.metaType)]: true,
554
554
  }
555
555
  if (isElCol) {
556
- props.class['is-card'] = config?.needWrap, // 这个样式主要用于折叠上面,控制被卡片包裹的时候,下边距是16,没有被包裹的时候,是12
556
+ props.class['is-card'] = config?.needWrap == '1', // 这个样式主要用于折叠上面,控制被卡片包裹的时候,下边距是16,没有被包裹的时候,是12
557
557
  props = {
558
558
  ...props,
559
559
  ...getDefaultColProps(config),