npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hlxb-app-ui

v0.0.130

Published

在项目根目录执行如下命令即可:

Downloads

79

Readme

hlxb-app-ui 使用说明

在项目根目录执行如下命令即可:

// 如果您的根目录没有package.json文件的话,请先执行如下命令:
// npm init -y

npm install hlxb-app-ui

// 更新
// npm update hlxb-app-ui

NPM 安装方式配置

关于 SCSS

hlxb-app-ui 依赖 SCSS,您必须要安装此插件,否则无法正常运行。

  • 如果您的项目是由 HBuilder X 创建的,相信已经安装 scss 插件,如果没有,请在 HX 菜单的 工具->插件安装中找到"scss/sass 编译"插件进行安装, 如不生效,重启 HX 即可。

  • 如果您的项目是由 vue-cli 创建的,请通过以下命令安装对 sass(scss)的支持,如果已安装,请略过。

    // 安装sass
    npm i sass -D
    
    // 安装sass-loader,注意需要版本10,否则可能会导致vue与sass的兼容问题而报错
    npm i sass-loader@10 -D

准备工作

在进行配置之前,请确保您已经根据安装中的步骤对 hlxb-app-ui 进行了 npm 安装,如果没有,请先执行安装:

// 如果您的项目是HX创建的,根目录又没有package.json文件的话,请先执行如下命令:
// npm init -y

// 安装
pnpm install hlxb-app-ui
pnpm install dayjs
pnpm install query-string

如使用到模型需要调用平台接口的模块,请先在 uni 示例挂载全局参数

main.ts

uni.$hlxbInitRequest = { baseUrl:'http://192.168.1.82', tenantId: '1' };

使用方法

<template>
  <view v-if="data.schemas.length">
    <basic-form
      :schemas="data.schemas"
      :btns="data.btns"
      :buttonPlaceholder="false"
      onlyParams
      @validate-success="validateSuccess"
    />
  </view>
</template>

<script setup lang="ts">
    import { basicForm } from 'hlxb-app-ui';
    const data = {
      schemas: [
        {
          component: 'Input',
          updateType: 2,
          label: '文本框1',
          field: 'key_1__input_2',
        },
      ],
      btns: [
        {
          code: 'save',
          label: '测试按钮',
        },
      ],
    };
    const validateSuccess = params => {
      console.log('------->>>>>', params);
    };
</script>