resolver-egretimp-plus 0.1.103 → 0.1.104

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.1.103",
3
+ "version": "0.1.104",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -76,7 +76,6 @@ export async function executeLoadServices(services = [], {
76
76
  }
77
77
  }
78
78
  }
79
-
80
79
  const ret = await (axiosInstance.value && axiosInstance.value(reqConfig))
81
80
  if (resultToast(ret.data, messageInstance, { noSuccessIip: true })) {
82
81
  respCb && respCb(ret?.data?.result)
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { computed, defineProps, inject, ref, useAttrs, watch } from 'vue'
2
+ import { computed, defineProps, inject, onMounted, ref, useAttrs, watch } from 'vue'
3
3
  import { commonPropsType } from '../../utils/index.js'
4
4
 
5
5
  const filterKey = ref('')
@@ -145,9 +145,41 @@ watch(open, (val) => {
145
145
  }, {
146
146
  immediate: true
147
147
  })
148
+
148
149
  function filterChange(e) {
149
150
  filterKey.value = e.detail.value
150
151
  }
152
+
153
+ onMounted(() => {
154
+ // 支持过滤的时候,因为是上下层级结构,默认情况下头部的高被限制住了,会显示不全,所以这边需要进行webComponent中样式修改
155
+ watch(isFilter, (() => {
156
+ let oldTop = null
157
+ let oldBottom = null
158
+ return (val) => {
159
+ const pickerContentDom = pickerRef.value.shadowRoot?.querySelector('.cmi-picker-content')
160
+ if (pickerContentDom) {
161
+ if (val) {
162
+ const tabStyles = window.getComputedStyle(pickerContentDom)
163
+ oldTop = tabStyles.top
164
+ oldBottom = tabStyles.bottom
165
+ pickerContentDom.style.top = '24vw'
166
+ pickerContentDom.style.bottom = '10.2vw'
167
+ } else {
168
+ if (oldTop) {
169
+ pickerContentDom.style.top = oldTop
170
+ }
171
+ if (oldBottom) {
172
+ pickerContentDom.style.bottom = oldBottom
173
+ }
174
+ }
175
+
176
+ }
177
+ }
178
+ })(), {
179
+ immediate: true
180
+ })
181
+
182
+ })
151
183
  </script>
152
184
 
153
185
  <template>
@@ -182,14 +214,16 @@ function filterChange(e) {
182
214
  .filter-header-wrap {
183
215
  display: flex;
184
216
  justify-content: flex-start;
185
- align-items: center;
217
+ align-items: start;
218
+ flex-direction: column;
186
219
  width: 100%;
187
220
  .filte-title {
188
- max-width: 50%;
221
+ margin-bottom: 6px;
222
+ // max-width: 50%;
189
223
  }
190
224
  .filter-input {
191
225
  flex: 1;
192
- margin-left: 16px;
226
+ // margin-left: 16px;
193
227
  }
194
228
  }
195
229
  </style>