@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 +8 -0
- package/README.md +22 -0
- package/components/uv-button/uv-button.vue +2 -0
- package/components/uv-checkbox/uv-checkbox.vue +1 -0
- package/components/uv-dialog/uv-dialog.vue +2 -0
- package/components/uv-form-item/uv-form-item.vue +3 -0
- package/components/uv-input/uv-input.vue +1 -0
- package/components/uv-overlay/uv-overlay.vue +1 -0
- package/components/uv-popup/uv-popup.vue +5 -0
- package/components/uv-tabs/uv-tabs.vue +1 -0
- package/package.json +2 -2
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
|
|
|
@@ -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({
|
|
@@ -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
|
+
"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": "
|
|
43
|
+
"gitHead": "2394e0c70de5af7326243f154b4eb92c65baa7f5"
|
|
44
44
|
}
|