🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

yunzai-adf

Package Overview
Dependencies
Maintainers
5
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yunzai-adf

云在angular动态表单

latest
npmnpm
Version
8.0.9
Version published
Weekly downloads
74
100%
Maintainers
5
Weekly downloads
 
Created
Source

Yunzai Angular Dynamic Form

云在angular动态表单

版本说明

yunzai-adf@8 -> angular@8

前置依赖

# 电脑端使用
ng add ng-zorro-antd@8
ng add yunzai8
npm install ng-zorro-antd-mobile@1
npm install @delon/abc@8 @delon/chart@8 @delon/form@8 ajv@6 @types/ajv@1 @nowzoo/ngx-ace angular-bigscreen @tinymce/tinymce-angular@3 tinymce@5

# 手机端使用
ng add ng-zorro-antd-mobile@1
ng add ng-yunzai-mobile
npm install ng-zorro-antd@8
npm install @delon/abc@8 @delon/chart@8 @delon/form@8 ajv@6 @types/ajv@1 @nowzoo/ngx-ace @tinymce/tinymce-angular@3 tinymce@5

安装

npm install yunzai-adf@8

配置

将tinymce的中文包放到此位置

下载地址

src/assets/tinymce/langs/zh_CN.js

修改配置文件angular.json

    "assets": [
        { "glob": "**/*", "input": "node_modules/tinymce", "output": "/assets/tinymce/" },
        { "glob": "**/*", "input": "src/assets/tinymce/langs", "output": "/assets/tinymce/langs/" }
    ],
    "scripts": [
        "node_modules/ajv/dist/ajv.bundle.js",
    ]

修改配置文件shared.module.ts

引入NgxAceModule

    @NgModule({
      imports: [
        NgxAceModule.forRoot()
      ],
      exports: [
      ]
    })
    export class SharedModule {
    }

引入需要的模块

import {YunzaiAdfListModule} from 'yunzai-adf';

@NgModule({
  declarations: [
    // ...
  ],
  imports: [
    // ...,
    YunzaiAdfListModule
  ]
})
export class YourModule {
}

引入组件


<div>
  <yzadf-list [formId]="formId"></yzadf-list>
</div>

模块说明

模块说明
YunzaiAdfFormModulePC端-表单管理(包含表单设计)
YunzaiAdfDesignModulePC端-表单设计
YunzaiAdfListModulePC端-表单数据(包含筛选、新增、修改、删除、提交审核、导出等)
YunzaiAdfMetaDataTableModulePC端-元数据模块
YunzaiAdfFormMobileModule手机端-表单列表
YunzaiAdfListMobileComponent手机端-表单数据列表
YunzaiAdfDetailMobileModule手机端-表单数据详情
YunzaiAdfWidgetModule自定义组件集合

自定义组件说明

标识说明
yz-demo示例组件
yz-select-remote下拉框组件(加载远程数据)
yz-file-upload文件上传组件
yz-mobile-picker手机端-选择组件
yz-mobile-date-picker手机端-日期选择
yz-mobile-time-picker手机端-时间选择
yz-rich-editor富文本编辑器(tinymce)

组件参数说明

参考项目angular-dynamic-form源码

FAQs

Package last updated on 23 May 2023

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