FormCreate v3.1 Version Update Log
3.1.35 (2024-06-13)
- Added extendApi method, supports extending api
- Added getData method to api
- Optimized options.beforeFetch method to support async return
- Optimized form disable logic
- Optimized sub-form disable logic
- Optimized changed appendValue default value to true
- Fixed api extension
3.1.33 (2024-05-24)
- Added
empty,notEmpty, andpatterncomparison methods tocontrol.condition - Optimized reset default value logic
- Optimized
validateinjection method - Fixed avoid fetch request triggering twice
3.1.33 (2024-05-24)
- Added
empty,notEmpty, andpatterncomparison methods tocontrol.condition - Optimized reset default value logic
- Optimized
validateinjection method - Fixed avoid fetch request triggering twice
3.1.32 (2024-05-14)
- Added
options.styleconfiguration to set global styles
3.1.31 (2024-05-09)
- FormCreate Pro Form Designer Launched, Making Form Design Easier
- Fixed ElementPlus compatibility with older versions
- Fixed TypeScript descriptions
3.1.30 (2024-05-09)
Features🌟
- Optimized rendering logic, improved form performance
- Added
getRenderRulemethod toapi, get component's final rendering rule - Added
getRefRulemethod toapi, can get rule throughnamefield - Added
busproperty toapi, can listen and trigger custom events - Added
fetchmethod toapi, can manually load remote data - Added
linkFieldfield touploadcallback parameters, can determine which associated field triggered - Added automatic injection of
injectfield tovalidate, can get rule and api in custom validation function - Added
onChangecallback to component'soptionsconfiguration, triggered when form is modified - Optimized
requiredproperty - Optimized component's
disabledconfiguration implementation logic
3.1.29 (2024-03-29)
- Added
Topfield toapi, get top-level form'sapi - Added
disabledconfiguration to components, globally disable form components - Optimized component hide logic
- Optimized
element-pluscompatibility - Optimized sub-form basic form configuration
- Optimized computed properties
- Fixed
options.beforeFetchconfiguration not taking effect issue
3.1.28 (2024-02-21)
- Added
titleslot to components, supports customizing form label area - Fixed
options.titleconfiguration not taking effect issue - Fixed
options.beforeFetchconfiguration not taking effect issue
3.1.27 (2024-01-03)
- Optimized rendering
- Optimized
arco-design's datePicker component - Fixed
groupcomponent expand not working issue
3.1.26 (2023-11-01)
Features🌟
- Adapted to
ant-design-vue4.0 version - Added disabled state styles to
framecomponent - Optimized
Promiseexception handling
3.1.25 (2023-09-13)
- Added
beforeFetchconfiguration tooptionsfor handling parameters whenfetchrequests selectcomponent supports renderingoptionGroupcomponentactioninfetchsupports configuring aspromise, directly load data
3.1.24 (2023-08-23)
Features🌟
- Refactored
groupcomponent, rewrote styles, and added sequence number and up/down move functionality, added sortBtn and parse parameters - Added
wrapElandformElmethods to api for getting corresponding vue component instances - Added
setDataandremoveDatamethods to formCreate
ts
type setData = (name:string,value:any) =>void;
type removeData = (name:string)=>void;- Added loadData custom property
js
//Set data
formCreate.setData('address',[]);js
//Generation rule
{
type:'select',
options: [],
effect: {
loadData:{
attr:'address',
to:'options'
}
}
}- Optimized fetch.parse configuration, supports configuring strings, specify path, e.g.,
props.options
3.1.23 (2023-07-14)
- Optimized replaced
evalmethod in code - Fixed parameter loss issue when event injection
- Fixed sub-form configuration inheritance not working issue
3.1.22 (2023-06-22)
- Added an origin parameter to
updateconfiguration item in rule, can be used to determine trigger method
ts
type Origin = 'init' | 'link' | 'change';
type update = (value:any, api:Api, origin:Origin) => boolean|undefined;- Added slot setting for field, format is
'field-'+field
ts
//Generation rule
{
field:'name'
}html
<form-create>
<slot #field-name="slot">
//render
</slot>
</form-create>- Added custom property
componentValidate, can validate through component methods
ts
//Generation rule
{
effect: {
componentValidate: true
// componentValidate: 'check'
}
}ts
//Custom component
{
methods:{
//check(){//todo}
formCreateValidate(val,call) {
//todo
call();
}
}
}Added prefix and suffix components support injecting
formCreateInjectAdded
validate-failform validation failure andvalidate-field-failfield validation failure eventsOptimized
tdesigncompatibility with new version field validationOptimized component mounting
3.1.21 (2023-04-27)
- Optimized component rendering
- Fixed rich text component default selection issue
3.1.19 (2023-04-17)
- Added enhanced
controlconfiguration item, addedmethod,conditionconfiguration
ts
type method= 'display' | 'disabled' | 'hidden' | 'required';
type condition = '==' | '!=' | '<>' | '>' | '>=' | '<' | '<=' | 'in' | 'notIn' | 'on' | 'notOn' | 'between' | 'notBetween';- Added support for configuring whether component only renders once through rule.cache
- Optimized component mounting functionality
- Optimized custom property
required - Fixed
groupcomponent button display issue - Fixed validation rule not working issue after setting custom property required
3.1.18 (2023-01-31)
- Fixed issue where upload component returns incorrect data structure when limit is 1
- Fixed sub-form validation issue
3.1.17 (2022-12-11)
- Added TypeScript description file for
auto-import.js - Optimized
uploadcomponent inElementUIaddedonPreviewparameter - Fixed
FcRowcomponent not existing issue
3.1.16 (2022-10-23)
- Optimized
uploadcomponent functionality
3.1.15 (2022-10-05)
- Optimized uniqueId method generation rule, default starts with
F - Optimized
FormItemgeneration
3.1.14 (2022-09-12)
- Optimized
groupcomponentaddevent triggering - Removed
valuedefault conversion functionality - Fixed
auto-import.jsfile missing intdesignUI
3.1.13 (2022-08-21)
- Added
clearEffectDatamethod to api, supports clearing effect data - Added
forceCoverValueconfiguration item to options, can set whether modelValue overwrites updates, default isfalse - Added support for overriding
fetchrequest method
js
formCreate.fetch = (options) =>{
//todo
}- Optimized
coverValuemethod in api - Optimized
groupcomponent display inelementUI - Optimized type in
ruleis not required, default is input - Optimized
resetFieldsmethod in api - Fixed issue where modifying
optionsmight not take effect
3.1.12 (2022-07-24)
- Adapted to
TDesignUI framework (Thanks to developer daiwenyong for contribution ) - Optimized custom property
requiredprompt message - Optimized
ts
3.1.11 (2022-07-03)
- Fixed
controlmight not work issue - Modified custom property
requiredprompt message - Optimized
ts
3.1.10 (2022-06-19)
- Optimized
controlconfiguration item #506 - Optimized
valuevalue synchronization - Optimized built-in components'
key - Adapted to
ant-design-vuelatest versionuploadcomponent
3.1.9 (2022-06-05)
- Fixed modelField might not work issue #500
- Optimized
displayconfiguration - Optimized
groupcomponent, supports automatic update after modifyingrule
3.1.8 (2022-05-11)
- Fixed issue where errors might occur during rendering #496
- Optimized
ts
3.1.7 (2022-05-02)
- Fixed form's
optionsconfiguration not working issue
3.1.6 (2022-05-02)
- Added
componentconfiguration item torule, quickly define custom components for rule rendering. Previously needed to mount custom components first
Example:
js
//Set custom component through component
const rule = {
type:'test',
component: {
render(h){
return h('span','test')
}
}
}- Added
computedconfiguration item torulefor dynamically calculating value - Added
inputPasswordcomponent to ant-design-vue - Optimized
groupcomponent, automatically synchronizes modifications to generated sub-form rules after modifying sub-form rules - Removed
appendData
3.1.4 (2022-03-20)
- Added
setEffectmethod toapi, set component's custom properties
Example:
js
const rule = {
type:'input',
field:'input',
effect:{
required: true
}
}
api.setEffect('input','required', false);- Optimized reimplemented
subForm, automatically binds sub-forms, no need to manually bind - Optimized required custom property
3.1.3 (2022-03-14)
- Added
requiredcustom property, can implement required for form components with differentvaluetypes
Example:
js
//Set component as required
const rule = {
type:'input',
effect:{
required: true
}
}
//Custom error message
const rule = {
type:'input',
effect:{
required: 'Custom error message'
}
}
//Disable component required
const rule = {
type:'input',
effect:{
required: false
}
}- Added support for setting custom properties through
$[attr]
Example:
js
//Custom error message
const rule = {
type:'input',
$required: 'Custom error message'
}- Updated
framecomponent, can operate form throughform_create_helper.api - Updated
groupcomponent props addeddefaultValueconfiguration item - Optimized auto-import
- Fixed AsyncFunction method not executing issue #466
3.1.2 (2022-03-02)
- Optimized auto-import
- Optimized component mounting
- Optimized default values
3.1.0 (2022-02-20)
- Added on-demand component loading
- Added adaptation to naive-ui
- Added adaptation to arco-design
- Added adaptation to element-plus 2.0
- Refactored element-plus
radio,checkboxcomponents - Added
htmlcomponent - Added
options,childrenfields support async loading - Added
getApimethod
Incompatibilities
- Refactored element-plus
uploadcomponent, some configuration items no longer work - Reimplemented
formCreateInject, changed to receive throughprops
3.0.1 (2022-02-13)
- Added sub-form supports slot extension
- Added ant-design-vue supports TypeScript
- Optimized select, radio, frame component modelValue types
- Optimized form validation error when form not rendered
- Fixed
api.clearValidateStatemethod error
3.0.0.alpha.4 (2022-01-07)
- Added sub-form supports slot extension
- Added ant-design-vue supports TypeScript
- Optimized group component
- Optimized json parsing
- Synchronized
2.5.17version functionality
3.0.0.alpha.3 (2021-12-28)
- Synchronized
2.5.16version functionality - Fixed
optionnot displaying issue
3.0.0.alpha.2 (2021-11-19)
- Adapted to vue3 version
- Functionality consistent with
2.5.12version


