# Update log
# 2.5.5 (2021-04-24)
- Added
removeField,removeRuleevents - Optimize the
fetchmethod - Optimize
changeevent - Fix the issue that the
editorcomponentdisabledmay fail - Perfect
tpyescript
# 2.5.4 (2021-04-11)
- Added parsing function strings generated by
toJsonat runtime - Optimize the
toJsonmethod - Optimize the pop-up display of
element-ui - Fix the problem that the
valueof thegroupcomponent may display an error - Fix the issue that
option.globalmay be lost - Perfect
tpyescript
# 2.5.3 (2021-04-05)
- Added
toJsonmethod - Optimize
effecttriggering - Optimize the
selectcomponent - Optimize
infodisplay
# 2.5.2 (2021-03-28)
- Added
fetchfunction - Optimize
effectfunction - Optimized sub-form
optioninheritance - Optimized packaging
- Optimized
sub-form,groupcomponents - Optimized
titledisplay - Optimize typescript
- Fix the issue of
ant-design-vuelayout failure
# 2.5.1 (2021-03-20)
- Optimized built-in component slot configuration
- Optimize
frame,group,sub-form,selectcomponents - Optimize the
valuesynchronization mechanism - Fix the problem that
controlmay report errors - Optimize the
reloadmechanism - Fix the issue that the global configuration
colis invalid - Added
fapiaddedparentandchildrenattributes - Added
syncconfiguration item to supportpropssynchronization - Optimize
validate,validateFieldmethods - Fix
pagefailure problem - Optimize the form destruction mechanism
- Optimization parameter injection
- Optimize typescript
# 2.5.0 (2021-02-15) 🐮Year
- Refactor the internal core code
- Optimize the internal rendering mechanism
- Optimize internal life cycle events
- Refactor
TypeScript - Added
nextTickmethod to set callback after rendering - Added use method, similar to Vue
- Added support for paging loading components to accelerate the rendering of the first screen
- Added custom configuration item
effect - Added support for modifying
type - Added
controlto support configuration rule insertion position - Optimizing
controlwill take effect if the conditions are met, the previous version can only take effect the first one - Added support for configuring prefix suffixes
prefix,suffixfor components - Added
updateconfiguration, triggered aftervaluesends changes - Added the
linkconfiguration item, and theupdateof other rules is automatically triggered after thevaluechanges - Added support for local mount custom command
directive - Added support for
wrapconfiguration item, configureFormItem - Added
objectcomponent - Added support for custom
title,infocomponents - Added rich text component
wangEditor - Added
nativeEmitproperty to listen to native events throughemit - Added native event support event injection
- Added 'display' configuration item to control the display status of components
- Support
value.syncto get two-way bindingformData - Optimization error message
- Enhanced
UIextension, component extension,parserextension,makerextension - Optimize the default form submit button
- Optimize the style of
groupcomponent - Refactor the
groupcomponent - Added the
coverValuemethod to set the form value by covering - Optimization Split the original
updateRuleintoupdateRule,mergeRule
Incompatible items
- Remove the
labelCol,wrapperColconfiguration ofant-design-vue, and merge it into thewrapconfiguration item - After modifying the
groupcomponent to definerule, thevaluetype can be solved by definingprops.field - Modify the
updateRulemethod to remove the third parameter. UsemergeRuleinstead - Remove
setParser,createParsermethod - Refactor
TypeScript - Remove
set value- events, merged intochange - Modify
on-reloadevent name forreload
# 1.0.20 (2020-10-29)
- Optimization error message
- Optimize the
groupcomponent ʻexpand` configuration item - Optimized the problem that the upload component cannot be previewed when it is disabled #268
- Fix the issue that the
hiddenconfiguration item may fail - Fix the problem that the
hiddencomponent cannot be reset - Fix
maker.groupmethod does not exist
# 1.0.19 (2020-09-11)
- Add the expand attribute of the
Groupcomponent to control the number of default open - Added monitoring of sub-form events through the
Groupcomponent{ type:'group', //... props: { rules: [ { type: 'input', field: 'test', emit: ['change'], //... } ] }, on: { ['test-change']: function () { //TODO input component change event } } } - Fix the problem that the value of the
Groupcomponent may not be synchronized - Fix the issue of invalid
previewMaskparameter ofuploadcomponent - Optimize the triggering of
emitevent - Added
emit-eventevent, triggered when there isemit
# 1.0.18 (2020-08-12)
- Fix the problem that the
Groupcomponent may have invalid assignment #240 (opens new window) - Fix the problem that the
ElmentUI.Uploadcomponent may report an error #207 (opens new window) - Fix the issue that the
emitevent may be triggered twice - Update
TypeScript
# 1.0.17 (2020-07-16)
- Fix the issue that
hiddenmay fail - Fix the problem that the
groupcomponent may generate multiple additional groups - Fix the problem that
controlmay fail - Fix the problem that
datePicker,timePickercomponentformatValuemay cause errors - The new
framecomponent supports configuring whether the mask of the preview image popup window is displayed throughpreviewMask - Optimize the $emit event
- Optimization may report an error when the form is destroyed
- Optimize loading timing of
framecomponent helper method - Added support for setting
class, styleand other attributes oftitlelet rule = { title:{ class:'titleClass', style:'backgroundColor:red', title:'GoodsName' } //title:'GoodsName' }
# 1.0.16 (2020-06-17)
- Fixed possible endless loop when rendering
- Fixed the problem of modifying value of
antd.switchcomponent - Fixed
antd.selectplaceholder not showing - Update
TypeScript - Fixed the problem that the UI may not update when the value of the
groupcomponent remove event is changed - Fixed the issue that
framecomponent preview may not display properly - The new
groupcomponent supports control button hidden button capitalization and custom buttons,- props
fontSize,button, - slot
button,default
- props
# 1.0.15 (2020-05-31)
- Optimize the
parseJsonandtoJsonmethods to avoid wrong parsingfunction - Optimize the deep copy of the generation rules
- Optimize the subforms generated by the
groupcomponent to automatically follow the configuration of the parent form - Added the
control.handlemethod Add the second parameter$f - Added
framecomponent supportreload, okBtn, closeBtnconfiguration,form_create_helperaddedonOk,onClosemethod can set page close callback event - refactoring
frame The pop-up box of the uploadcomponent removes the originalmodal - fixes the possibility of an endless loop in the preview of the upload
- fixes the problem that the verification of the group component may not pass
- fixes the problem of missing rules in toJson
- fixes the global configuration
labelCol, wrapperColdoes not take effect - fix
hiddencomponent may render problem
# 1.0.14 (2020-05-14)
- Optimized
framecomponentvaluetype - fix
framecomponent cannot be closed properly undersafaribrowser
# 1.0.13 (2020-05-11)
- Optimized the methods of
$f.appendand$f.prepend - Modify the built-in
copyRulemethod - Optimize the conditions of automatic copy generation rules
- Support to control whether to automatically generate
col,rowcomponents and setclass
# 1.0.12 (2020-04-30)
- Fixed the error reported by
fragmentcomponent during partial mounting - Fix the problem that
removeFieldmay be invalid - Added formData
$f.formfor two-way data binding - Added
controlevent, triggered whencontroltakes effect or is removed
# 1.0.11 (2020-04-21)
- Remove the multi-line style of
ElementUI label - Fixed ts
vue.use (formCreate)type error issue #196 - Added
makerinstance and addedinject,modelmethod - Added built-in
fragmentcomponent - Fixed the issue that the second appended attribute of
makerdoes not take effect - Support
ant-design-vueDocnpm i @form-create/ant-design-vue@^2.5
# 1.0.10 (2020-04-18)
- Fix the problem that the timePicker component cannot be selected occasionally
- Fixed possible error in
ie10 - Fixed the problem that the parseJson method may report an error
- Fix the problem that
controlmay not take effect - Refactored
vDataclass to support repeated monitoring of events - Fix the error reported by
onSubmitmethod - Fixed the problem of wrong type attribute of
framecomponent width, height - Fixed the problem that
checkboxcomponent may report an error - Fix
controlcontrol rules to wrap a layer ofdiv#199 - Added
framecomponent to addsrcKeyconfiguration item, supportvalueas object - Added
groupcomponent to addchangeevent - Added the change event of the whole form
- Optimized the multi-line style of
ElementUI label - Optimized ts #196
# 1.0.9 (2020-03-24)
- Fixed `field 'duplicate issue
- Fixed an issue where the DatePicker component may fail during validation
# 1.0.8 (2020-03-15)
- Fix error when merging common layout rules #181
- Fixed an issue where the
groupcomponent might report an error - Fix Validation failure after adding components
- Fixed
DatePickercomponent value conversion problem - Update
TypeScript - Added optimized
methodmethod to get return value - Added
indexin event ofgroupcomponent #183 - Add
controlconfiguration item, Can be used to control other component displays - Added
options.form.classNameconfiguration item to support settingclassof the form
# 1.0.7 (2020-03-02)
- Fix field error when initializing global configuration #166
- Fixed
DatePickercomponent verification error - Update
TypeScript - Fixed the problem that the
framecomponentsrcis not updated in real time - Added
groupcomponent, which can implement array components and hash components - Optimization Reuse of component generation rules
- Optimize button position of component information
# 1.0.6 (2020-01-16)
- Support
TypeScript - Fixed
elm.framecomponent not displaying ininputtypeicon - Fixed the issue that the
iview.treecomponent was not selected for the first time rendering
# 1.0.5 (2019-12-7)
- Refactored
hidden,visibilityfunctionality - Added
hiddenandvisibilityconfiguration items - Fix
valuemay change unexpectedly - Fixed the issue that page components may not render after changing the value
# 1.0.4 (2019-11-21)
- Added
formDataconfiguration item to set the initial value of the form - Fixed an infinite loop problem when
typeis undefined - Fixed a problem with component not recognized in
typeuppercase - Support for the
iview v4version
npm i @form-create/iview4@^2.5
# 1.0.3 (2019-08-26)
- Fixed event invalidation of control bindings in the form after multiple v-ifs #125 (opens new window)
- Fix toJson method function to json
- Fixed removing the extra layout when the built-in button is not displayed
- Added manual trigger event method
$f.trigger - Added Get component
vmmethod$f.el - Enhanced functions in
propsto support event injection - Enhanced
removeField,updateRulereturns the current rule - Enhanced
selfcurrent rule in event injection parameters - Enhanced vm parameter support set to
Function
{
vm:function(){
return new Vue;
}
}
# 1.0.2 (2019-08-11)
- Fixed style overridden issue #121 (opens new window)
- Fixed datePicker, timePicker component validation issue, value issue #118 (opens new window)
- Fixed
append,prependmethod error - Enhanced After the rule definition
nameis generated, it can be obtained by thecomponentmethod. - Added
on,off,oncemethod binding emit event
# 1.0.1 (2019-07-29)
- Add
$f.updateValidate,$f.updateValidatesmethod #116 (opens new window) - Fixed input box setting maximum and minimum characters invalid #115 (opens new window)
- Fixed upload component uploading multiple images at the same time
- Fixed ElementUI.upload component loading animation does not display problem
# 1.0.0 (2019-07-21)
- Fixed timePicker component not selecting problem
- Fixed stack overflow issue when type is template #110 (opens new window)
- Added automatic injection of
$fin the custom component props, which can be received withprops.formCreate - Added
$f.getRulemethod to get the generation rule for specifyingfield
# 0.0.5 (2019-07-07)
- Optimize the
$f.toJsonmethod, does not support convertingtemplatecomponents - Added
$f.updateRule,$f.updateRulesmethod
//Update goods_name
$f.updateRule('goods_name',{
props:{
disabled: true
}
})
// Batch update
$f.updateRules({
'goods_name':{
props:{
disabled: true
}
}
})
- Added
injectEventglobal configuration item, set whether to enable event injection, inject $f, rule and other parameters. The first parameter of the event after opening is the injected parameter.
// Inject the data structure of the parameters
{
$f:Object,//api
rule:Array, // generation rules
option:Object, // global configuration
inject:Any, // custom injection parameters
}
//Open globally
{
injectEvent:true
}
// specify the event to open
rule:{
//inject extra custom injection parameters for the event
emit:[{name:'click',inject:true}]
}
- Fixes remove the component and add
fieldto the same component as the removed component. The component receives the valueundefined.
# 0.0.4 (2019-06-30)
- Added
$f.toJsonandformCreate.parseJsonmethods to convert build rules to json and reverse - Added
infoconfiguration item to configure component prompts - Added
option.infoconfiguration item to set the configuration information of the prompt information. - Remove the time component, the date component is worth reprocessing
- Added an error when the
$f.methodmethod does not exist - Add the
modalconfiguration item of theframecomponent to set the property ofmodal - Fixed
element-uipartial componentplaceholderattribute invalid - Update
element-uitime component, date componentmakergenerator
# 0.0.3
Internal function refactoring, Streamlined and optimized, Easier to expand
new function
- Custom components can be converted to form components with features for validation and built-in components
- Increase the global configuration of components
- Added
nameconfiguration item, custom component configurable - Added method to determine if the form is modified
changeStatus - Increase Get component hidden state method
hiddenStatus - Added
rule.nativeconfiguration item - Added
$f.methodmethod to call component method
modify
- Move the
switchcomponentslotconfiguration toprops.slot - Modify the parameters of the
$f.validatemethod - Modify the parameter order of
$f.hidden,$f.visibility,$f.disabledmethods - Modify method name
$f.submitStatus=>$f.submitBtnProps - Modify method name
$f.resetBtnStatus=>$f.resetBtnProps - Refactor the
framecomponent and moveeventtoprops
Remove
- Remove custom component related events
- Remove the
framecomponent spin configuration item - Remove the
uploadconfiguration item in the global configuration - Remove the
margin20px from the outermost layer of the form - Remove the
$f.btn.finishand$f.resetBtn.finishmethods - Remove the
defaultSlotconfiguration item - Remove built-in components to automatically populate default properties
- Remove the
hiddenandvisibilityattributes from the component rules - Remove
uploadcomponentonSuccessreturns url auto add function