Commit a379e3a2066d0b927fe184ae72c686c7165d8e2d
1 parent
6e12fa4d
fix: imports
Showing
9 changed files
with
8 additions
and
44 deletions
yudao-ui-admin-vue3/src/components/ContentWrap/src/ContentWrap.vue
yudao-ui-admin-vue3/src/components/Icon/src/IconSelect.vue
| 1 | 1 | <script setup lang="ts"> |
| 2 | +import { CSSProperties } from 'vue' | |
| 2 | 3 | import { cloneDeep } from 'lodash-es' |
| 3 | -import { ref, computed, CSSProperties, toRef, watch } from 'vue' | |
| 4 | -import { | |
| 5 | - ElInput, | |
| 6 | - ElPopover, | |
| 7 | - ElDivider, | |
| 8 | - ElScrollbar, | |
| 9 | - ElTabs, | |
| 10 | - ElTabPane, | |
| 11 | - ElPagination | |
| 12 | -} from 'element-plus' | |
| 13 | 4 | import { IconJson } from '@/components/Icon/src/data' |
| 14 | 5 | |
| 15 | 6 | type ParameterCSSProperties = (item?: string) => CSSProperties | undefined | ... | ... |
yudao-ui-admin-vue3/src/components/Tooltip/src/Tooltip.vue
yudao-ui-admin-vue3/src/components/UploadFile/src/UploadImgs.vue
| ... | ... | @@ -46,8 +46,8 @@ |
| 46 | 46 | </div> |
| 47 | 47 | </template> |
| 48 | 48 | <script setup lang="ts" name="UploadImgs"> |
| 49 | -import { PropType, ref } from 'vue' | |
| 50 | -import { ElUpload, ElNotification, ElImageViewer } from 'element-plus' | |
| 49 | +import { PropType } from 'vue' | |
| 50 | +import { ElNotification } from 'element-plus' | |
| 51 | 51 | import type { UploadProps, UploadFile, UploadUserFile } from 'element-plus' |
| 52 | 52 | |
| 53 | 53 | import { propTypes } from '@/utils/propTypes' | ... | ... |
yudao-ui-admin-vue3/src/components/XModal/src/XModal.vue
yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/listeners/ElementListeners.vue
| ... | ... | @@ -242,20 +242,7 @@ |
| 242 | 242 | </div> |
| 243 | 243 | </template> |
| 244 | 244 | <script setup lang="ts" name="ElementListeners"> |
| 245 | -import { ref, inject, watch, nextTick } from 'vue' | |
| 246 | -import { | |
| 247 | - ElMessageBox, | |
| 248 | - ElTable, | |
| 249 | - ElTableColumn, | |
| 250 | - ElDivider, | |
| 251 | - ElOption, | |
| 252 | - ElSelect, | |
| 253 | - ElInput, | |
| 254 | - ElDrawer, | |
| 255 | - ElDialog, | |
| 256 | - ElForm, | |
| 257 | - ElFormItem | |
| 258 | -} from 'element-plus' | |
| 245 | +import { ElMessageBox } from 'element-plus' | |
| 259 | 246 | import { createListenerObject, updateElementExtensions } from '../../utils' |
| 260 | 247 | import { initListenerType, initListenerForm, listenerType, fieldType } from './utilSelf' |
| 261 | 248 | const props = defineProps({ | ... | ... |
yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/signal-message/SignalAndMessage.vue
| ... | ... | @@ -46,17 +46,7 @@ |
| 46 | 46 | </div> |
| 47 | 47 | </template> |
| 48 | 48 | <script setup lang="ts" name="SignalAndMassage"> |
| 49 | -import { | |
| 50 | - ElMessage, | |
| 51 | - ElDialog, | |
| 52 | - ElForm, | |
| 53 | - ElFormItem, | |
| 54 | - ElTable, | |
| 55 | - ElTableColumn, | |
| 56 | - ElButton, | |
| 57 | - ElInput | |
| 58 | -} from 'element-plus' | |
| 59 | -import { ref, computed, onMounted } from 'vue' | |
| 49 | +const message = useMessage() | |
| 60 | 50 | const signalList = ref<any[]>([]) |
| 61 | 51 | const messageList = ref<any[]>([]) |
| 62 | 52 | const modelVisible = ref(false) |
| ... | ... | @@ -99,13 +89,13 @@ const openModel = (type) => { |
| 99 | 89 | const addNewObject = () => { |
| 100 | 90 | if (modelType.value === 'message') { |
| 101 | 91 | if (messageIdMap.value[modelObjectForm.value.id]) { |
| 102 | - ElMessage.error('该消息已存在,请修改id后重新保存') | |
| 92 | + message.error('该消息已存在,请修改id后重新保存') | |
| 103 | 93 | } |
| 104 | 94 | const messageRef = window.bpmnInstances.moddle.create('bpmn:Message', modelObjectForm.value) |
| 105 | 95 | rootElements.value.push(messageRef) |
| 106 | 96 | } else { |
| 107 | 97 | if (signalIdMap.value[modelObjectForm.value.id]) { |
| 108 | - ElMessage.error('该信号已存在,请修改id后重新保存') | |
| 98 | + message.error('该信号已存在,请修改id后重新保存') | |
| 109 | 99 | } |
| 110 | 100 | const signalRef = window.bpmnInstances.moddle.create('bpmn:Signal', modelObjectForm.value) |
| 111 | 101 | rootElements.value.push(signalRef) | ... | ... |
yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/task/task-components/ScriptTask.vue
| ... | ... | @@ -45,8 +45,6 @@ |
| 45 | 45 | </template> |
| 46 | 46 | |
| 47 | 47 | <script setup lang="ts" name="ScriptTask"> |
| 48 | -import { ref, watch, nextTick, onBeforeUnmount, toRaw } from 'vue' | |
| 49 | -import { ElInput, ElFormItem } from 'element-plus' | |
| 50 | 48 | const props = defineProps({ |
| 51 | 49 | id: String, |
| 52 | 50 | type: String | ... | ... |
yudao-ui-admin-vue3/src/types/auto-components.d.ts
| ... | ... | @@ -54,6 +54,7 @@ declare module '@vue/runtime-core' { |
| 54 | 54 | ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] |
| 55 | 55 | ElLink: typeof import('element-plus/es')['ElLink'] |
| 56 | 56 | ElOption: typeof import('element-plus/es')['ElOption'] |
| 57 | + ElPagination: typeof import('element-plus/es')['ElPagination'] | |
| 57 | 58 | ElPopover: typeof import('element-plus/es')['ElPopover'] |
| 58 | 59 | ElRadio: typeof import('element-plus/es')['ElRadio'] |
| 59 | 60 | ElRadioButton: typeof import('element-plus/es')['ElRadioButton'] | ... | ... |