0.0.130 • Published 6 months ago

hlxb-app-ui v0.0.130

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

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>
0.0.129

6 months ago

0.0.130

6 months ago

0.0.128

6 months ago

0.0.127

7 months ago

0.0.126

7 months ago

0.0.125

7 months ago

0.0.124

8 months ago

0.0.123

8 months ago

0.0.122

8 months ago

0.0.121

8 months ago

0.0.119

8 months ago

0.0.120

8 months ago

0.0.118

9 months ago

0.0.117

9 months ago

0.0.116

9 months ago

0.0.115

9 months ago

0.0.114

9 months ago

0.0.113

9 months ago

0.0.112

9 months ago

0.0.111

9 months ago

0.0.110

9 months ago

0.0.109

9 months ago

0.0.107

9 months ago

0.0.105

10 months ago

0.0.104

10 months ago

0.0.103

10 months ago

0.0.102

10 months ago

0.0.101

10 months ago

0.0.97

10 months ago

0.0.98

10 months ago

0.0.95

10 months ago

0.0.96

10 months ago

0.0.93

10 months ago

0.0.94

10 months ago

0.0.92

10 months ago

0.0.87

10 months ago

0.0.88

10 months ago

0.0.89

10 months ago

0.0.90

10 months ago

0.0.91

10 months ago

0.0.84

10 months ago

0.0.85

10 months ago

0.0.81

10 months ago

0.0.82

10 months ago

0.0.78

10 months ago

0.0.79

10 months ago

0.0.40

11 months ago

0.0.41

11 months ago

0.0.42

11 months ago

0.0.43

11 months ago

0.0.44

11 months ago

0.0.45

11 months ago

0.0.46

11 months ago

0.0.47

11 months ago

0.0.37

11 months ago

0.0.38

11 months ago

0.0.39

11 months ago

0.0.73

11 months ago

0.0.74

11 months ago

0.0.75

11 months ago

0.0.31

11 months ago

0.0.32

11 months ago

0.0.77

11 months ago

0.0.33

11 months ago

0.0.34

11 months ago

0.0.35

11 months ago

0.0.36

11 months ago

0.0.70

11 months ago

0.0.71

11 months ago

0.0.72

11 months ago

0.0.26

11 months ago

0.0.27

11 months ago

0.0.28

11 months ago

0.0.29

11 months ago

0.0.62

11 months ago

0.0.63

11 months ago

0.0.64

11 months ago

0.0.65

11 months ago

0.0.66

11 months ago

0.0.67

11 months ago

0.0.23

11 months ago

0.0.68

11 months ago

0.0.24

11 months ago

0.0.69

11 months ago

0.0.25

11 months ago

0.0.60

11 months ago

0.0.61

11 months ago

0.0.59

11 months ago

0.0.51

11 months ago

0.0.52

11 months ago

0.0.53

11 months ago

0.0.54

11 months ago

0.0.55

11 months ago

0.0.56

11 months ago

0.0.57

11 months ago

0.0.58

11 months ago

0.0.50

11 months ago

0.0.48

11 months ago

0.0.49

11 months ago

0.0.20

11 months ago

0.0.21

11 months ago

0.0.22

11 months ago

0.0.16

11 months ago

0.0.17

11 months ago

0.0.18

11 months ago

0.0.19

11 months ago

0.0.14

11 months ago

0.0.15

11 months ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.1

1 year ago