fix: imports

pull/2/head
xingyuv 2023-02-09 18:12:26 +08:00
parent 6e12fa4d78
commit a379e3a206
9 changed files with 8 additions and 44 deletions

View File

@ -1,5 +1,4 @@
<script setup lang="ts">
import { ElCard, ElTooltip } from 'element-plus'
import { propTypes } from '@/utils/propTypes'
import { useDesign } from '@/hooks/web/useDesign'

View File

@ -1,15 +1,6 @@
<script setup lang="ts">
import { CSSProperties } from 'vue'
import { cloneDeep } from 'lodash-es'
import { ref, computed, CSSProperties, toRef, watch } from 'vue'
import {
ElInput,
ElPopover,
ElDivider,
ElScrollbar,
ElTabs,
ElTabPane,
ElPagination
} from 'element-plus'
import { IconJson } from '@/components/Icon/src/data'
type ParameterCSSProperties = (item?: string) => CSSProperties | undefined

View File

@ -1,6 +1,5 @@
<script setup lang="ts">
import { propTypes } from '@/utils/propTypes'
import { ElTooltip } from 'element-plus'
defineProps({
titel: propTypes.string.def(''),
message: propTypes.string.def(''),

View File

@ -46,8 +46,8 @@
</div>
</template>
<script setup lang="ts" name="UploadImgs">
import { PropType, ref } from 'vue'
import { ElUpload, ElNotification, ElImageViewer } from 'element-plus'
import { PropType } from 'vue'
import { ElNotification } from 'element-plus'
import type { UploadProps, UploadFile, UploadUserFile } from 'element-plus'
import { propTypes } from '@/utils/propTypes'

View File

@ -1,6 +1,5 @@
<script setup lang="ts">
import { propTypes } from '@/utils/propTypes'
import { ElScrollbar } from 'element-plus'
const slots = useSlots()
const props = defineProps({

View File

@ -242,20 +242,7 @@
</div>
</template>
<script setup lang="ts" name="ElementListeners">
import { ref, inject, watch, nextTick } from 'vue'
import {
ElMessageBox,
ElTable,
ElTableColumn,
ElDivider,
ElOption,
ElSelect,
ElInput,
ElDrawer,
ElDialog,
ElForm,
ElFormItem
} from 'element-plus'
import { ElMessageBox } from 'element-plus'
import { createListenerObject, updateElementExtensions } from '../../utils'
import { initListenerType, initListenerForm, listenerType, fieldType } from './utilSelf'
const props = defineProps({

View File

@ -46,17 +46,7 @@
</div>
</template>
<script setup lang="ts" name="SignalAndMassage">
import {
ElMessage,
ElDialog,
ElForm,
ElFormItem,
ElTable,
ElTableColumn,
ElButton,
ElInput
} from 'element-plus'
import { ref, computed, onMounted } from 'vue'
const message = useMessage()
const signalList = ref<any[]>([])
const messageList = ref<any[]>([])
const modelVisible = ref(false)
@ -99,13 +89,13 @@ const openModel = (type) => {
const addNewObject = () => {
if (modelType.value === 'message') {
if (messageIdMap.value[modelObjectForm.value.id]) {
ElMessage.error('该消息已存在请修改id后重新保存')
message.error('该消息已存在请修改id后重新保存')
}
const messageRef = window.bpmnInstances.moddle.create('bpmn:Message', modelObjectForm.value)
rootElements.value.push(messageRef)
} else {
if (signalIdMap.value[modelObjectForm.value.id]) {
ElMessage.error('该信号已存在请修改id后重新保存')
message.error('该信号已存在请修改id后重新保存')
}
const signalRef = window.bpmnInstances.moddle.create('bpmn:Signal', modelObjectForm.value)
rootElements.value.push(signalRef)

View File

@ -45,8 +45,6 @@
</template>
<script setup lang="ts" name="ScriptTask">
import { ref, watch, nextTick, onBeforeUnmount, toRaw } from 'vue'
import { ElInput, ElFormItem } from 'element-plus'
const props = defineProps({
id: String,
type: String

View File

@ -54,6 +54,7 @@ declare module '@vue/runtime-core' {
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
ElLink: typeof import('element-plus/es')['ElLink']
ElOption: typeof import('element-plus/es')['ElOption']
ElPagination: typeof import('element-plus/es')['ElPagination']
ElPopover: typeof import('element-plus/es')['ElPopover']
ElRadio: typeof import('element-plus/es')['ElRadio']
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']