1.0.9 • Published 10 months ago

vant4-generator v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

基于vant4封装的表单生成器

使用文档:vant4-generator

安装

  • 步骤 1: 安装依赖

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

全局注册

import App from './App.vue'
import 'vant/lib/index.css';

import { FormGenerator } from 'vant4-generator'

const app = createApp(App)

app.component('FormGenerator', FormGenerator);

app.mount('#app')

按需引入

<template>
  <FormGenerator :model="form" :formOption="formOption" />
</template>
<script lang="tsx" setup>
import { FormGenerator } from 'vant4-generator'
// ...
</script>
1.0.2

11 months ago

1.0.9

10 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.1

1 year ago

1.0.0

1 year ago