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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.0.249",
3
+ "version": "0.0.251",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -160,6 +160,7 @@ defineExpose({
160
160
  <style lang="scss">
161
161
  .open-child-frame {
162
162
  overflow-y: auto;
163
+ overflow-x: hidden;
163
164
  &.el-dialog {
164
165
  margin-top: 30px !important;
165
166
  margin-bottom: 30px;
@@ -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 (val > -1 && index > val) {
52
- item.collapseHidden = '1'
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 ? '收起' : 'Close')
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
- <cmi-button type="text" size="small" @click="toCollapse">
94
+ <span class="collapse-span" @click="toCollapse">
76
95
  {{ collapseLabel }}
77
- </cmi-button>
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: 26px;
97
+ min-height: 32px;
95
98
  &.is-focused {
96
99
  border-color: var(--el-color-primary);
97
100
  }