# leap-h5-component-ts

> ``` npm install ```

Latest version **0.0.1** (published 2022-07-19) · 0 weekly downloads

## Install

```sh
npm install leap-h5-component-ts
pnpm add leap-h5-component-ts
yarn add leap-h5-component-ts
bun add leap-h5-component-ts
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2022-07-19 |
| First published | 2022-07-19 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 135.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | pyx |
| Maintainers | pyx87486828 |

## Links

- npm: https://www.npmjs.com/package/leap-h5-component-ts
- npm.io page: https://npm.io/package/leap-h5-component-ts

## Dependencies (4)

- [vue](https://npm.io/package/vue.md) ^3.0.0
- [less](https://npm.io/package/less.md) ^4.1.1
- [core-js](https://npm.io/package/core-js.md) ^3.6.5
- [vue-router](https://npm.io/package/vue-router.md) ^4.0.11

## Recent versions

- 0.0.1 (latest) — 2022-07-19

## README

# template-ui

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### 登录到 npm
tip : 发布之前需要登录

首先需要到 npm 上注册一个账号，注册过程略。
如果配置了淘宝镜像，先设置回npm镜像：
```js
$ npm config set registry http://registry.npmjs.org 
```
然后在终端执行登录命令，输入用户名、密码、邮箱即可登录。
```js
//登录
$ npm login
```
### 发布到 npm
执行发布命令，发布组件到 npm
```js
//发布
$ npm publish
```
### 发布成功
发布成功后稍等几分钟，即可在 npm 官网搜索到。(会发送邮件)



# 使用新发布的组件库
### 安装组件库依赖全局注册
在需要使用的vue项目中npm install add-ui添加进来，然后在main.js中进行全局注册，如下：

```js
import { createApp } from 'vue'
import App from './App.vue'
import vueTemplateUi from 'vue-template-ui'
const app = createApp(App)
//组件注册
app.use(vueTemplateUi)

app.mount('#app')
```
### 按需引入
```js
import { createApp } from 'vue'
import App from './App.vue'
import {templateTips} from 'vue-template-ui'
const app = createApp(App)
//组件注册
app.use(templateTips)

app.mount('#app')
```
### 在组件中使用
```html
<template>
 　　<div>
     　　<template-tips :name="name"></template-tips>
 　　</div>
</template>
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

---
_Source: https://npm.io/package/leap-h5-component-ts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
