New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

element-plus-generator

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

element-plus-generator

基于element-plus封装的表格、表单生成器

latest
npmnpm
Version
1.2.34
Version published
Weekly downloads
82
1266.67%
Maintainers
1
Weekly downloads
 
Created
Source

基于element-plus封装的表格、表单生成器

使用文档:element-plus-generator

安装

  • 步骤 1: 安装依赖

      # 选择一个你喜欢的包管理器
    
      # NPM
      $ npm install element-plus element-plus-generator --save
    
      # Yarn
      $ yarn add element-plus element-plus-generator
    
      # pnpm
      $ pnpm install element-plus element-plus-generator
    
  • 步骤 2: 引入依赖

    全局注册

    import App from './App.vue'
    
    import ElementPlus from 'element-plus'
    import 'element-plus/dist/index.css'
    
    import { FormGenerator, TableGenerator } from 'element-plus-generator'
    
    const app = createApp(App)
    
    app.component('FormGenerator', FormGenerator);
    app.component('TableGenerator', TableGenerator);
    
    app.use(ElementPlus).mount('#app')
    

    按需引入

    <template>
      <FormGenerator :model="form" :formOption="formOption" />
      <TableGenerator :data="tableData":tableOption="tableOption" />
    </template>
    <script lang="tsx" setup>
    import { FormGenerator,TableGenerator } from 'element-plus-generator'
    // ...
    </script>
    

Keywords

vue3

FAQs

Package last updated on 09 Jan 2025

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