vite-uni-dev-tool 0.0.25 → 0.0.27

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/README.md CHANGED
@@ -198,6 +198,14 @@ optimizeDeps: {
198
198
 
199
199
  ## 更新日志
200
200
 
201
+ ### 0.0.27
202
+
203
+ - 兼容h5 内容高度
204
+
205
+ ### 0.0.26
206
+
207
+ - 兼容h5 systemInfo
208
+
201
209
  ### 0.0.25
202
210
 
203
211
  - 部分样式调整
package/dist/core.js CHANGED
@@ -3,7 +3,7 @@ import { DevEvent as u } from "./devEvent/index.js";
3
3
  import { DevIntercept as a } from "./devIntercept/index.js";
4
4
  import { DevConsole as v } from "./devConsole/index.js";
5
5
  import { EventBus as D } from "./devEventBus/index.js";
6
- const i = "0.0.25", l = "2025/12/24 11:39:13", g = {
6
+ const i = "0.0.27", l = "2025/12/24 12:00:28", g = {
7
7
  // log: console.log,
8
8
  // info: console.info,
9
9
  // warn: console.warn,
@@ -111,7 +111,7 @@ class C {
111
111
  async getDevData() {
112
112
  const t = await uni.getNetworkType();
113
113
  let e = {};
114
- e = uni.getSystemSetting(), e = await uni.getSystemInfo();
114
+ e = await uni.getSystemInfo();
115
115
  const s = uni.getDeviceInfo(), o = uni.getWindowInfo(), i = {
116
116
  ...await uni.getAppBaseInfo()
117
117
  }, a = S() || w() || await T();
@@ -200,6 +200,10 @@ onMounted(() => {
200
200
  const { windowHeight } = uni.getWindowInfo();
201
201
 
202
202
  height.value = windowHeight - 32 - 32 - 2;
203
+
204
+ // #ifdef H5
205
+ height.value = windowHeight - 100 - 32 - 32 - 2;
206
+ // #endif
203
207
  });
204
208
  </script>
205
209
  <style scoped>
@@ -16,7 +16,11 @@
16
16
  <CircularButton style="margin-left: auto" text="×" @click="onClose" />
17
17
  </view>
18
18
 
19
- <view class="upload-detail-header" v-if="currentSelect === 'header'">
19
+ <view
20
+ class="upload-detail-header"
21
+ :style="{ height: height + 'px' }"
22
+ v-if="currentSelect === 'header'"
23
+ >
20
24
  <DevToolTitle>常规</DevToolTitle>
21
25
  <view class="upload-detail-item">
22
26
  <view>请求url:</view>
@@ -89,7 +93,7 @@
89
93
  </view>
90
94
  </template>
91
95
  <script lang="ts" setup>
92
- import { ref, computed } from 'vue';
96
+ import { ref, computed, onMounted } from 'vue';
93
97
  import JsonPretty from '../JsonPretty/index.vue';
94
98
  import Tag from '../Tag/index.vue';
95
99
  import Empty from '../Empty/index.vue';
@@ -115,6 +119,9 @@ const selectItems = [
115
119
  mode: 'info',
116
120
  },
117
121
  ];
122
+
123
+ const height = ref(0);
124
+
118
125
  const currentSelect = ref('header');
119
126
 
120
127
  const formData = computed(() => {
@@ -164,6 +171,15 @@ function onSelect(item: { label: string; value: string }) {
164
171
  function onClose() {
165
172
  emit('close');
166
173
  }
174
+ onMounted(() => {
175
+ const { windowHeight } = uni.getWindowInfo();
176
+
177
+ height.value = windowHeight - 32 - 32 - 2;
178
+
179
+ // #ifdef H5
180
+ height.value = windowHeight - 100 - 32 - 32 - 2;
181
+ // #endif
182
+ });
167
183
  </script>
168
184
  <style>
169
185
  .upload-detail {
@@ -104,6 +104,10 @@ const height = ref(0);
104
104
  onMounted(() => {
105
105
  const { windowHeight } = uni.getWindowInfo();
106
106
  height.value = windowHeight - 32 - 32;
107
+
108
+ // #ifdef H5
109
+ height.value = windowHeight - 100 - 32 - 32 - 2;
110
+ // #endif
107
111
  });
108
112
  </script>
109
113
  <style scoped>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-uni-dev-tool",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "description": "vite-uni-dev-tool, debug, uni-app, 一处编写,到处调试",
5
5
  "keywords": [
6
6
  "vite",