## 安装教程

```angular2html
<!--只支持vue3+uniapp的项目-->
pnpm install hfyk-app

node版本 >= 16.14.*
```

## 如何再div里面使用方法
```javascript
// main.ts使用方法
import { globalRegister } from "hfyk-app";
import { createSSRApp } from "vue";
export function createApp () {
    const app = createSSRApp(App);
    app.use(globalRegister);
    return {
        app,
    };
}
```
```vue
<template>
  <!-- 获取0-10之间的随机数 -->
  <div>{{ $gxh.random(1,10) }}</div>
</template>
```

## 在小程序里面配置全局组件
```json
{
  "easycom": {
    "custom": {
      "^hy-(.*)": "hfyk-app/components/hy-$1/hy-$1.vue"
    }
  }
}
```
