Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

cube-component-library

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cube-component-library

A component library for Cube projects

latest
npmnpm
Version
1.0.3
Version published
Weekly downloads
1
-75%
Maintainers
1
Weekly downloads
 
Created
Source

Cube Component Library

一个基于 Vue 3 和 uni-app 的组件库,提供了多种实用组件。

安装

npm install cube-component-library

使用

全局注册

import { createApp } from 'vue';
import CubeComponentLibrary from 'cube-component-library';
import App from './App.vue';

const app = createApp(App);
app.use(CubeComponentLibrary);
app.mount('#app');

按需引入

import { PageNav } from 'cube-component-library';

export default {
  components: {
    PageNav
  }
}

组件列表

PageNav

页面导航组件,用于在页面间导航。

<template>
  <PageNav title="页面标题" />
</template>

ZvTitle

标题组件,用于显示带样式的标题。

<template>
  <ZvTitle title="标题文本" />
</template>

开发

# 安装依赖
npm install

# 开发模式
npm run dev

# 构建组件库
npm run build:lib

发布

# 登录 npm
npm login

# 发布
npm publish

Keywords

cube

FAQs

Package last updated on 19 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts