# 1.x upgrade
prompt
The v2 major updates are refactoring, unpacking, and optimization, and are consistent with the 1.x version. Some are not compatible. Please refer to the bottom incompatible item for details.
# Npm
# Uninstall 1.x
npm remove form-create
# Installation V2
# iview
installation
npm install @form-create/iview@^2.5
Import
import formCreate from "@form-create/iview"
import {maker} from "@form-create/iview"
# element-ui
installation
npm install @form-create/element-ui@^2.5
Import
import formCreate from "@form-create/element-ui"
import {maker} from "@form-create/element-ui"
# Browser
Modify static resource address
# iview
<script src="https://cdn.jsdelivr.net/npm/@form-create/iview/dist/form-create.min.js"></script>
# element-ui
<script src="https://cdn.jsdelivr.net/npm/@form-create/element-ui/dist/form-create.min.js"></script>
# Incompatible
- Remove custom component related events
- Remove the
uploadconfiguration item in the global configuration - Remove the
margin20px from the outermost layer of the form - 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 - Remove
iviewversion event configuration item automatically addson-prefix function
← Quick Start Example →