hy-app 0.4.8 → 0.4.9

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
@@ -1,16 +1,24 @@
1
1
  ## 在线使用文档地址
2
- [华玥组件库文档(需要翻墙)](https://hy-component-docs.vercel.app/)
3
- [华玥组件库文档(国内旧地址,2025-11-12之后域名过期)](https://www.gxh151.top)
4
- [华玥组件库文档(国内新地址)](https://www.hy-design-uni.top)
2
+ - [华玥组件库文档(需要翻墙)](https://hy-component-docs.vercel.app/)
3
+ - [华玥组件库文档(国内旧地址,2025-11-12之后域名过期)](https://www.gxh151.top)
4
+ - [华玥组件库文档(国内新地址)](https://www.hy-design-uni.top)
5
5
 
6
- ## H5测试页面地址
7
- [华玥组件库dome(需要翻墙)](https://hy-design-uni.vercel.app/#/)
6
+ ## 📱 移动端预览
7
+ <p style="display:flex;gap:24px">
8
+ <img src="https://pic.imgdd.cc/item/690c01291095cbb336f01f37.png" width="200" height="200" />
9
+ <img src="https://pic.imgdd.cc/item/690c01291095cbb336f01f38.jpg" width="200" height="200" />
10
+ <img src="https://pic.imgdd.cc/item/690c01291095cbb336f01f36.png" width="200" height="200" />
11
+
12
+ </p>
8
13
 
9
14
  ## 安装教程
10
15
 
11
16
  ```angular2html
12
- <!--只支持vue3+uniapp的项目-->
13
- pnpm install hy-app
17
+ <!-- 只支持vue3+uniapp+ts的项目 -->
18
+ pnpm add hy-app
19
+
20
+ <!-- 没有需要下载 -->
21
+ pnpm add dayjs
14
22
 
15
23
  node版本 >= 16.14.*
16
24
  ```
@@ -35,7 +43,7 @@ export function createApp () {
35
43
  </template>
36
44
  ```
37
45
 
38
- ## 在小程序里面配置全局组件
46
+ ## 在page.json文件里面配置按需引入组件
39
47
  ```json
40
48
  {
41
49
  "easycom": {
@@ -44,6 +44,7 @@ import {
44
44
  range,
45
45
  type RectResultType,
46
46
  sleep,
47
+ getPx,
47
48
  } from "../../libs";
48
49
 
49
50
  /**
@@ -7,15 +7,13 @@
7
7
  height: addUnit(getPx(height) + statusBarHeight),
8
8
  }"
9
9
  ></view>
10
- <view
11
- :class="[fixed && 'hy-navbar__fixed']"
12
- :style="{ backgroundColor: bgColor }"
13
- >
10
+ <view :class="[fixed && 'hy-navbar__fixed']">
14
11
  <HyStatusBar v-if="safeAreaInsetTop" :bgColor="bgColor"></HyStatusBar>
15
12
  <view
16
13
  :class="[border && 'hy-border__bottom', 'hy-navbar__content']"
17
14
  :style="{
18
15
  height: addUnit(height),
16
+ backgroundColor: bgColor,
19
17
  }"
20
18
  >
21
19
  <!-- 左边 -->
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  @include b(navbar) {
6
- @include m(fixed) {
6
+ @include e(fixed) {
7
7
  position: fixed;
8
8
  left: 0;
9
9
  right: 0;
@@ -122,6 +122,7 @@ import {
122
122
  useSlots,
123
123
  watch,
124
124
  inject,
125
+ nextTick,
125
126
  } from "vue";
126
127
  import type { PropType, CSSProperties } from "vue";
127
128
  import type {
@@ -220,7 +221,9 @@ watch(
220
221
  watch(
221
222
  () => props.placement,
222
223
  (newVal) => {
223
- popover.init(newVal, visibleArrow.value, selector);
224
+ nextTick(() => {
225
+ popover.init(newVal, visibleArrow.value, selector);
226
+ });
224
227
  },
225
228
  { immediate: true },
226
229
  );
@@ -251,11 +254,11 @@ watch(
251
254
  },
252
255
  );
253
256
 
254
- onMounted(() => {
255
- setTimeout(() => {
256
- popover.init(props.placement, visibleArrow.value, selector);
257
- }, 2000);
258
- });
257
+ // onMounted(() => {
258
+ // setTimeout(() => {
259
+ // popover.init(props.placement, visibleArrow.value, selector);
260
+ // }, 2000);
261
+ // });
259
262
 
260
263
  onBeforeMount(() => {
261
264
  if (queue && queue.pushToQueue) {
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "hy-app",
3
- "version": "0.4.8",
4
- "description": "fix: 修复tooltip字体样式未修改问题",
3
+ "version": "0.4.9",
4
+ "description": "fix: 修复navbar绝对定位问题",
5
5
  "main": "./index.ts",
6
6
  "private": false,
7
7
  "scripts": {},
8
8
  "keywords": [
9
9
  "华玥组件库",
10
- "ui组件库",
10
+ "精美ui",
11
+ "移动端组件库",
12
+ "适配多端小程序",
11
13
  "暗黑模式"
12
14
  ],
13
15
  "web-types": "./web-types.json",