更新记录

0.1.0(2026-11-26) 下载此版本

  • 首发完整覆盖 81 大类共 101 个 nv-* 组件(基础 / 表单 / 反馈 / 展示 / 导航 / 业务)
  • 原生适配 uni-app x 蒸汽模式(Vapor Mode)与 styleIsolationVersion 2,兼容 Android、iOS、Web/H5、微信小程序与支付宝小程序
  • 内置农历/传统节日/二十四节气日历、跨端 2D Canvas 手写签名、纯 View 几何图标、亮暗双主题与指令式反馈门户

平台兼容性

其他

多语言 暗黑模式 宽屏模式 蒸汽模式
× √ × ×

Nova UI - uni-app x 蒸汽模式全端组件库

轻量、可定制、面向 uni-app x 蒸汽模式(Vapor Mode) 原生打造的跨 6 端移动端组件库(参考 Vant 4 设计规范,全量覆盖 81 大类 / 101 个 Easycom 组件)

  • 在线文档与实时预览:https://nova-fe.github.io/nova-ui-docs/
  • GitHub 开源仓库:https://github.com/nova-fe/nova-ui
  • 开源协议:MIT

核心特性

  • 全 6 端一致呈现:一套 .uvue + TypeScript 源码,零报错支持 Android(蒸汽模式)、iOS(蒸汽模式)、H5 / Web、微信小程序、支付宝小程序。
  • 严守蒸汽模式与 UCSS 2.0 规范:采用 <script setup lang="ts"> 与 styleIsolationVersion: "2",全库扁平单类选择器,无 ::before / ::after 伪元素,无外部 SVG 或字体依赖。
  • 全量 81 类 / 101 组件:覆盖基础、表单(支持农历与二十四节气日历、跨端 2D Canvas 手写签名、密码显隐切换)、反馈、展示、导航、业务场景。
  • Easycom 零注册按需编译:符合 DCloud uni_modules 规范,导入后直接在页面使用 <nv-button> 等标签即可自动按需打包。
  • 完整亮暗双主题系统:内置 Design Tokens 与 <nv-config-provider>,支持一键暗黑模式与全局/局部品牌色动态覆写。
  • 自研纯 View 几何图标:内置跨端像素级清晰几何图标,自动跟随主题色与任意尺寸。

环境要求

确保工程 manifest.json 已开启 uni-app x 蒸汽模式与样式隔离 2.0:

{
  "uni-app-x": {
    "vapor": true,
    "styleIsolationVersion": "2"
  }
}

快速上手

1. 导入组件库

点击右侧「使用 HBuilderX 导入插件」或下载压缩包解压至项目根目录 uni_modules/nova-ui/ 下即可。

2. 引入全局样式(可选)

在 App.uvue 中引入主题变量与内置工具类:

@import '@/uni_modules/nova-ui/theme.scss';

3. 在页面中使用组件(Easycom 自动引入)

无需手动 import 注册组件,直接在 .uvue 页面中编写 nv-* 标签即可:

<template>
  <nv-config-provider :theme="theme">
    <view class="demo">
      <nv-button type="primary" round @click="onTap">主要按钮</nv-button>

      <nv-cell-group inset title="表单示例">
        <nv-field
          v-model="password"
          label="密码"
          type="password"
          placeholder="请输入密码"
          show-password-toggle
          clearable
        />
      </nv-cell-group>

      <!-- 指令式反馈门户(Toast / Dialog / Notify / ImagePreview) -->
      <nv-portal />
    </view>
  </nv-config-provider>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { showSuccessToast, type NvThemeMode } from '@/uni_modules/nova-ui/index'

const theme = ref<NvThemeMode>('light')
const password = ref('')

const onTap = () => {
  showSuccessToast('欢迎使用 Nova UI')
}
</script>

指令式调用(Toast / Dialog / Notify / ImagePreview)

在页面根容器内放置一次 <nv-portal /> 后,即可通过函数式 API 唤起反馈组件:

import {
  showToast,
  showSuccessToast,
  showFailToast,
  showLoadingToast,
  closeToast,
  showDialog,
  showConfirmDialog,
  showNotify,
  showImagePreview
} from '@/uni_modules/nova-ui/index'

showSuccessToast('保存成功')

await showConfirmDialog({
  title: '提示',
  message: '确认提交当前表单吗?'
})

showNotify({ type: 'primary', message: '有一条新通知' })

暗黑模式与主题定制

使用 <nv-config-provider> 可对整页或局部区域切换亮暗模式及自定义 Design Tokens:

<nv-config-provider
  :theme="isDark ? 'dark' : 'light'"
  :theme-vars="{ primaryColor: '#7232dd', buttonPrimaryBackground: '#7232dd' }"
>
  <nv-button type="primary">品牌紫按钮</nv-button>
</nv-config-provider>

组件清单(81 类 / 101 组件)

分类 数量 包含组件
基础组件 10 Button、Cell / CellGroup、ConfigProvider、Icon、Image、Layout (Row / Col)、Popup、Space、Style 内置样式、Toast
表单组件 19 Calendar(支持农历/传统节日/二十四节气)、Cascader、Checkbox / CheckboxGroup、DatePicker、Field(支持密码显隐切换)、Form、NumberKeyboard、PasswordInput、Picker、PickerGroup、Radio / RadioGroup、Rate、Search、Signature(跨端 2D Canvas 手写签名)、Slider、Stepper、Switch、TimePicker、Uploader
反馈组件 12 ActionSheet、Barrage、Dialog、DropdownMenu / DropdownItem、FloatingPanel、FloatingBubble、Loading、Notify、Overlay、PullRefresh、ShareSheet、SwipeCell
展示组件 21 Badge、Circle、Collapse / CollapseItem、CountDown、Divider、Empty、Highlight、ImagePreview、Lazyload、List、NoticeBar、Popover、Progress、RollingText、Skeleton(含 Avatar / Image / Paragraph / Title)、Steps / Step、Sticky、Swipe / SwipeItem、Tag、TextEllipsis、Watermark
导航组件 10 ActionBar(含 Icon / Button)、BackTop、Grid / GridItem、IndexBar / IndexAnchor、NavBar、Pagination、Sidebar / SidebarItem、Tabs / Tab、Tabbar / TabbarItem、TreeSelect
业务组件 9 AddressEdit、AddressList、Area、Card、ContactCard、ContactEdit、ContactList、Coupon(CouponCell / CouponList)、SubmitBar

完整 API 文档与交互示例

完整组件 Props / Events / Slots / Expose 文档及在线交互示例,请访问在线文档:

https://nova-fe.github.io/nova-ui-docs/

隐私、权限声明

1. 本插件需要申请的系统权限列表:

无

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

插件不采集任何数据

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

无

许可协议

MIT License

Copyright (c) 2026 nova-fe

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

暂无用户评论。