2.0.2 • Published 2 years ago
@koala-form/fes-plugin v2.0.2
低代码表单解决方案,让你跟考拉一样“懒”
Install
npm i @koala-form/core
npm i @koala-form/fes-plugin
Usage
注册全局插件
import '@koala-form/fes-plugin';
import { installPluginPreset } from '@koala-form/core';
// 将依赖的插件安装到全局
installPluginPreset();
写一个简单的表单
<template>
<KoalaRender :render="render"></KoalaRender>
</template>
<script>
import { KoalaRender, useForm, ComponentType } from '@koala-form/core';
export default {
components: { KoalaRender },
setup() {
const { render } = useForm({
fields: [
{
name: 'name', // modelRef.value.name可以访问到值
label: '姓名', // 表单项的名称
defaultValue: '蒙奇·D·路飞', // 默认值
components: {
name: ComponentType.Input, // 表单组件是输入框
},
},
],
});
return {
render
};
},
};
</script>
反馈
2.0.2
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
2.0.0-rc.5
2 years ago
2.0.0-rc.6
2 years ago
2.0.0-rc.3
2 years ago
2.0.0-rc.4
2 years ago
2.0.0-rc.2
2 years ago
2.0.0-rc.1
3 years ago
2.0.0-rc.0
3 years ago