@zfqh/uview-x 0.0.3 → 0.0.4

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.0.4](http://10.10.10.16/caoben/front-end-tools/compare/@zfqh/uview-x@0.0.3...@zfqh/uview-x@0.0.4) (2026-11-10)
7
+
8
+ **Note:** Version bump only for package @zfqh/uview-x
9
+
10
+
11
+
12
+
13
+
6
14
  ## [0.0.3](http://10.10.10.16/caoben/front-end-tools/compare/@zfqh/uview-x@0.0.2...@zfqh/uview-x@0.0.3) (2026-11-10)
7
15
 
8
16
 
package/README.md CHANGED
@@ -37,6 +37,28 @@ export function createApp() {
37
37
  }
38
38
  ```
39
39
 
40
+ 以上 easycom 配置适用于 dev 阶段(H5 / 小程序 / 经典 uni-app);uni-app x Vapor 的 build 阶段不支持 easycom,见下方显式 import。
41
+
42
+ ### 显式 import(推荐;Vapor build 必需)
43
+
44
+ uni-app x Vapor(蒸汽模式)下,easycom 仅在 dev 阶段可用,build 阶段不支持;用户也可能主动关闭 easycom。为此 `components/uv-*` 内部已经全部改为显式 import,页面只需 import 自己用到的组件:
45
+
46
+ ```vue
47
+ <script setup lang="ts">
48
+ import UvButton from '@zfqh/uview-x/components/uv-button/uv-button.vue';
49
+ import UvIcon from '@zfqh/uview-x/components/uv-icon/uv-icon.vue';
50
+ </script>
51
+
52
+ <template>
53
+ <uv-button type="primary" text="提交" @click="onSubmit" />
54
+ <uv-icon name="search" :size="24" />
55
+ </template>
56
+ ```
57
+
58
+ - 组件入口为 `@zfqh/uview-x/components/uv-<name>/uv-<name>.vue`,与 easycom 路径一致。
59
+ - `examples/uview-vapor`、`examples/uniapp-vapor` 已关闭 easycom(`"easycom": { "autoscan": false }`),用于验证显式 import 在 dev / build 下都可用。
60
+ - `app.use(uviewX)` 只安装 `$uv` 插件能力,不注册组件。
61
+
40
62
  `uni.scss` 引入主题变量,`App.uvue` 引入全局工具样式:
41
63
 
42
64
  ```scss
@@ -114,6 +114,8 @@
114
114
  import { computed } from 'vue'
115
115
  import { $uv } from '../../utils'
116
116
  import props from './props'
117
+ import UvIcon from '../uv-icon/uv-icon.vue'
118
+ import UvLoadingIcon from '../uv-loading-icon/uv-loading-icon.vue'
117
119
  import { useThrottle } from '../../hooks'
118
120
  import { createBem } from '../../utils/compat'
119
121
 
@@ -42,6 +42,7 @@
42
42
  import { computed, inject, nextTick, onUnmounted, ref, watch } from 'vue'
43
43
  import { $uv } from '../../utils'
44
44
  import props from './props'
45
+ import UvIcon from '../uv-icon/uv-icon.vue'
45
46
  import { preventEvent } from '../../utils/compat'
46
47
 
47
48
 
@@ -96,6 +96,8 @@
96
96
  import { computed, nextTick, onMounted, ref, watch } from 'vue'
97
97
  import { $uv } from '../../utils'
98
98
  import props from './props'
99
+ import UvPopup from '../uv-popup/uv-popup.vue'
100
+ import UvButton from '../uv-button/uv-button.vue'
99
101
  import { useI18n } from '../../hooks'
100
102
 
101
103
  defineOptions({
@@ -71,6 +71,9 @@
71
71
  import { computed, inject, onUnmounted, provide, reactive, ref, watch } from 'vue'
72
72
  import { $uv } from '../../utils'
73
73
  import props from './props'
74
+ import UvIcon from '../uv-icon/uv-icon.vue'
75
+ import UvTransition from '../uv-transition/uv-transition.vue'
76
+ import UvLine from '../uv-line/uv-line.vue'
74
77
 
75
78
 
76
79
  defineOptions({
@@ -70,6 +70,7 @@
70
70
  import { computed, inject, nextTick, ref, watch } from 'vue'
71
71
  import { $uv } from '../../utils'
72
72
  import props from './props'
73
+ import UvIcon from '../uv-icon/uv-icon.vue'
73
74
 
74
75
 
75
76
  defineOptions({
@@ -16,6 +16,7 @@
16
16
  import { computed, onUnmounted, watch } from 'vue'
17
17
  import { $uv } from '../../utils'
18
18
  import props from './props'
19
+ import UvTransition from '../uv-transition/uv-transition.vue'
19
20
  import { preventEvent } from '../../utils/compat'
20
21
 
21
22
  defineOptions({
@@ -59,6 +59,11 @@
59
59
  import { computed, onMounted, onUnmounted, ref } from 'vue'
60
60
  import { $uv, platform } from '../../utils'
61
61
  import props from './props'
62
+ import UvIcon from '../uv-icon/uv-icon.vue'
63
+ import UvOverlay from '../uv-overlay/uv-overlay.vue'
64
+ import UvTransition from '../uv-transition/uv-transition.vue'
65
+ import UvSafeBottom from '../uv-safe-bottom/uv-safe-bottom.vue'
66
+ import UvStatusBar from '../uv-status-bar/uv-status-bar.vue'
62
67
  import { preventEvent } from '../../utils/compat'
63
68
 
64
69
  defineOptions({
@@ -80,6 +80,7 @@
80
80
  import { computed, getCurrentInstance, nextTick, onMounted, ref, watch } from 'vue'
81
81
  import { $uv } from '../../utils'
82
82
  import props from './props'
83
+ import UvBadge from '../uv-badge/uv-badge.vue'
83
84
  import { getRect, getRectNvue } from '../../utils/compat'
84
85
 
85
86
  defineOptions({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zfqh/uview-x",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "uview-x:面向 uni-app x 蒸汽模式(Vapor)、经典 uni-app Vue3 与 nvue 的 UV UI 组件库,组件保持 uv-ui API。",
5
5
  "main": "index.ts",
6
6
  "types": "types/index.d.ts",
@@ -40,5 +40,5 @@
40
40
  "README.md",
41
41
  "CHANGELOG.md"
42
42
  ],
43
- "gitHead": "dd6ce3c2c137ce266d088dd66f539e95bd7379ae"
43
+ "gitHead": "2394e0c70de5af7326243f154b4eb92c65baa7f5"
44
44
  }