diff --git a/package.json b/package.json index a338c1d6..00b0f30a 100644 --- a/package.json +++ b/package.json @@ -26,8 +26,8 @@ }, "dependencies": { "@element-plus/icons-vue": "^2.1.0", - "@form-create/designer": "^3.1.3", - "@form-create/element-ui": "^3.1.24", + "@form-create/designer": "^3.2.6", + "@form-create/element-ui": "^3.2.11", "@iconify/iconify": "^3.1.1", "@microsoft/fetch-event-source": "^2.0.1", "@videojs-player/vue": "^1.0.0", diff --git a/src/plugins/formCreate/index.ts b/src/plugins/formCreate/index.ts index 44556de5..afb91928 100644 --- a/src/plugins/formCreate/index.ts +++ b/src/plugins/formCreate/index.ts @@ -1,7 +1,37 @@ import type { App } from 'vue' // 👇使用 form-create 需额外全局引入 element plus 组件 import { + // ElAutocomplete, + // ElButton, + // ElCascader, + // ElCheckbox, + // ElCheckboxButton, + // ElCheckboxGroup, + // ElCol, + // ElColorPicker, + // ElDatePicker, + // ElDialog, + // ElForm, + // ElInput, + // ElInputNumber, + // ElPopover, + // ElRadio, + // ElRadioButton, + // ElRadioGroup, + // ElRate, + // ElRow, + // ElSelect, + // ElSlider, + // ElSwitch, + // ElTimePicker, + // ElTooltip, + // ElTree, + // ElUpload, + // ElIcon, + // ElProgress, + // 以上会由 @form-create/element-ui/auto-import 自动引入 ElAlert, + ElTransfer, ElAside, ElContainer, ElDivider, @@ -12,7 +42,18 @@ import { ElTableColumn, ElTabPane, ElTabs, - ElTransfer + ElDropdown, + ElDropdownMenu, + ElDropdownItem, + ElBadge, + ElTag, + ElText, + ElMenu, + ElMenuItem, + ElFooter, + ElMessage + // ElFormItem, + // ElOption } from 'element-plus' import FcDesigner from '@form-create/designer' import formCreate from '@form-create/element-ui' @@ -41,18 +82,30 @@ const ApiSelect = useApiSelect({ }) const components = [ + ElAlert, + ElTransfer, ElAside, - ElPopconfirm, - ElHeader, - ElMain, ElContainer, ElDivider, - ElTransfer, - ElAlert, - ElTabs, + ElHeader, + ElMain, + ElPopconfirm, ElTable, ElTableColumn, ElTabPane, + ElTabs, + ElDropdown, + ElDropdownMenu, + ElDropdownItem, + ElBadge, + ElTag, + ElText, + ElMenu, + ElMenuItem, + ElFooter, + ElMessage, + // ElFormItem, + // ElOption, UploadImg, UploadImgs, UploadFile, diff --git a/src/views/bpm/form/editor/index.vue b/src/views/bpm/form/editor/index.vue index 8755f938..0e82923a 100644 --- a/src/views/bpm/form/editor/index.vue +++ b/src/views/bpm/form/editor/index.vue @@ -1,14 +1,18 @@