Commit a379e3a2066d0b927fe184ae72c686c7165d8e2d

Authored by xingyuv
1 parent 6e12fa4d

fix: imports

yudao-ui-admin-vue3/src/components/ContentWrap/src/ContentWrap.vue
1 <script setup lang="ts"> 1 <script setup lang="ts">
2 -import { ElCard, ElTooltip } from 'element-plus'  
3 import { propTypes } from '@/utils/propTypes' 2 import { propTypes } from '@/utils/propTypes'
4 import { useDesign } from '@/hooks/web/useDesign' 3 import { useDesign } from '@/hooks/web/useDesign'
5 4
yudao-ui-admin-vue3/src/components/Icon/src/IconSelect.vue
1 <script setup lang="ts"> 1 <script setup lang="ts">
  2 +import { CSSProperties } from 'vue'
2 import { cloneDeep } from 'lodash-es' 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 import { IconJson } from '@/components/Icon/src/data' 4 import { IconJson } from '@/components/Icon/src/data'
14 5
15 type ParameterCSSProperties = (item?: string) => CSSProperties | undefined 6 type ParameterCSSProperties = (item?: string) => CSSProperties | undefined
yudao-ui-admin-vue3/src/components/Tooltip/src/Tooltip.vue
1 <script setup lang="ts"> 1 <script setup lang="ts">
2 import { propTypes } from '@/utils/propTypes' 2 import { propTypes } from '@/utils/propTypes'
3 -import { ElTooltip } from 'element-plus'  
4 defineProps({ 3 defineProps({
5 titel: propTypes.string.def(''), 4 titel: propTypes.string.def(''),
6 message: propTypes.string.def(''), 5 message: propTypes.string.def(''),
yudao-ui-admin-vue3/src/components/UploadFile/src/UploadImgs.vue
@@ -46,8 +46,8 @@ @@ -46,8 +46,8 @@
46 </div> 46 </div>
47 </template> 47 </template>
48 <script setup lang="ts" name="UploadImgs"> 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 import type { UploadProps, UploadFile, UploadUserFile } from 'element-plus' 51 import type { UploadProps, UploadFile, UploadUserFile } from 'element-plus'
52 52
53 import { propTypes } from '@/utils/propTypes' 53 import { propTypes } from '@/utils/propTypes'
yudao-ui-admin-vue3/src/components/XModal/src/XModal.vue
1 <script setup lang="ts"> 1 <script setup lang="ts">
2 import { propTypes } from '@/utils/propTypes' 2 import { propTypes } from '@/utils/propTypes'
3 -import { ElScrollbar } from 'element-plus'  
4 const slots = useSlots() 3 const slots = useSlots()
5 4
6 const props = defineProps({ 5 const props = defineProps({
yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/listeners/ElementListeners.vue
@@ -242,20 +242,7 @@ @@ -242,20 +242,7 @@
242 </div> 242 </div>
243 </template> 243 </template>
244 <script setup lang="ts" name="ElementListeners"> 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 import { createListenerObject, updateElementExtensions } from '../../utils' 246 import { createListenerObject, updateElementExtensions } from '../../utils'
260 import { initListenerType, initListenerForm, listenerType, fieldType } from './utilSelf' 247 import { initListenerType, initListenerForm, listenerType, fieldType } from './utilSelf'
261 const props = defineProps({ 248 const props = defineProps({
yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/signal-message/SignalAndMessage.vue
@@ -46,17 +46,7 @@ @@ -46,17 +46,7 @@
46 </div> 46 </div>
47 </template> 47 </template>
48 <script setup lang="ts" name="SignalAndMassage"> 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 const signalList = ref<any[]>([]) 50 const signalList = ref<any[]>([])
61 const messageList = ref<any[]>([]) 51 const messageList = ref<any[]>([])
62 const modelVisible = ref(false) 52 const modelVisible = ref(false)
@@ -99,13 +89,13 @@ const openModel = (type) =&gt; { @@ -99,13 +89,13 @@ const openModel = (type) =&gt; {
99 const addNewObject = () => { 89 const addNewObject = () => {
100 if (modelType.value === 'message') { 90 if (modelType.value === 'message') {
101 if (messageIdMap.value[modelObjectForm.value.id]) { 91 if (messageIdMap.value[modelObjectForm.value.id]) {
102 - ElMessage.error('该消息已存在,请修改id后重新保存') 92 + message.error('该消息已存在,请修改id后重新保存')
103 } 93 }
104 const messageRef = window.bpmnInstances.moddle.create('bpmn:Message', modelObjectForm.value) 94 const messageRef = window.bpmnInstances.moddle.create('bpmn:Message', modelObjectForm.value)
105 rootElements.value.push(messageRef) 95 rootElements.value.push(messageRef)
106 } else { 96 } else {
107 if (signalIdMap.value[modelObjectForm.value.id]) { 97 if (signalIdMap.value[modelObjectForm.value.id]) {
108 - ElMessage.error('该信号已存在,请修改id后重新保存') 98 + message.error('该信号已存在,请修改id后重新保存')
109 } 99 }
110 const signalRef = window.bpmnInstances.moddle.create('bpmn:Signal', modelObjectForm.value) 100 const signalRef = window.bpmnInstances.moddle.create('bpmn:Signal', modelObjectForm.value)
111 rootElements.value.push(signalRef) 101 rootElements.value.push(signalRef)
yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/task/task-components/ScriptTask.vue
@@ -45,8 +45,6 @@ @@ -45,8 +45,6 @@
45 </template> 45 </template>
46 46
47 <script setup lang="ts" name="ScriptTask"> 47 <script setup lang="ts" name="ScriptTask">
48 -import { ref, watch, nextTick, onBeforeUnmount, toRaw } from 'vue'  
49 -import { ElInput, ElFormItem } from 'element-plus'  
50 const props = defineProps({ 48 const props = defineProps({
51 id: String, 49 id: String,
52 type: String 50 type: String
yudao-ui-admin-vue3/src/types/auto-components.d.ts
@@ -54,6 +54,7 @@ declare module &#39;@vue/runtime-core&#39; { @@ -54,6 +54,7 @@ declare module &#39;@vue/runtime-core&#39; {
54 ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] 54 ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
55 ElLink: typeof import('element-plus/es')['ElLink'] 55 ElLink: typeof import('element-plus/es')['ElLink']
56 ElOption: typeof import('element-plus/es')['ElOption'] 56 ElOption: typeof import('element-plus/es')['ElOption']
  57 + ElPagination: typeof import('element-plus/es')['ElPagination']
57 ElPopover: typeof import('element-plus/es')['ElPopover'] 58 ElPopover: typeof import('element-plus/es')['ElPopover']
58 ElRadio: typeof import('element-plus/es')['ElRadio'] 59 ElRadio: typeof import('element-plus/es')['ElRadio']
59 ElRadioButton: typeof import('element-plus/es')['ElRadioButton'] 60 ElRadioButton: typeof import('element-plus/es')['ElRadioButton']