resolver-egretimp-plus 0.0.276 → 0.0.277

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.276",
3
+ "version": "0.0.277",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -134,9 +134,4 @@ function toCollapse() {
134
134
  .CustomComponentCollapseH5.CustomComponentCollapseH5.CustomComponentCollapseH5:last-child {
135
135
  margin-bottom: 0;
136
136
  }
137
- .CustomComponentTabsH5 {
138
- .CustomComponentCollapseH5 {
139
- margin-bottom: 0;
140
- }
141
- }
142
137
  </style>
@@ -229,7 +229,8 @@ onMounted(() => {
229
229
  watch(() => {
230
230
  return {
231
231
  val: normalTableData.value,
232
- pageNum: page.pageNum
232
+ pageNum: page.pageNum,
233
+ collapseHidden: props?.config?.collapseHidden
233
234
  }
234
235
  }, ({ val }) => {
235
236
  try {
@@ -66,10 +66,21 @@ const onUpdateModelValue = (val, code) => {
66
66
  }
67
67
  }
68
68
 
69
+ const gap = computed(() => {
70
+ return props.config.gap ?? '1'
71
+ })
72
+
73
+ const customClass = computed(() => {
74
+ return {
75
+ "custom-component-tabs-h5": true,
76
+ "--gap": gap.value == '1'
77
+ }
78
+ })
79
+
69
80
  </script>
70
81
 
71
82
  <template>
72
- <cmi-tabs class="custom-component-tabs-h5" v-bind="{...attrs, ...tabProps}">
83
+ <cmi-tabs :class="customClass" v-bind="{...attrs, ...tabProps}">
73
84
  <CustomComponentTabPaneH5
74
85
  v-for="tabpane in tabpanes" :config="tabpane" :key="tabpane.metaId"
75
86
  >
@@ -85,3 +96,24 @@ const onUpdateModelValue = (val, code) => {
85
96
  // }
86
97
  }
87
98
  </style>
99
+
100
+ <style lang="scss">
101
+ .CustomComponentTabsH5 {
102
+ margin-bottom: 16px;
103
+ &:last-child {
104
+ margin-bottom: 0;
105
+ }
106
+ .CustomComponentCollapseH5 {
107
+ margin-bottom: 0;
108
+ }
109
+ .--gap {
110
+ --cmi-tabs-background-color: transparent;
111
+ .CustomComponentCollapseH5 {
112
+ margin-bottom: 16px;
113
+ &:last-child {
114
+ margin-bottom: 0;
115
+ }
116
+ }
117
+ }
118
+ }
119
+ </style>