fix: imports
parent
6e12fa4d78
commit
a379e3a206
|
@ -1,5 +1,4 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ElCard, ElTooltip } from 'element-plus'
|
|
||||||
import { propTypes } from '@/utils/propTypes'
|
import { propTypes } from '@/utils/propTypes'
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,6 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import { CSSProperties } from 'vue'
|
||||||
import { cloneDeep } from 'lodash-es'
|
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'
|
import { IconJson } from '@/components/Icon/src/data'
|
||||||
|
|
||||||
type ParameterCSSProperties = (item?: string) => CSSProperties | undefined
|
type ParameterCSSProperties = (item?: string) => CSSProperties | undefined
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { propTypes } from '@/utils/propTypes'
|
import { propTypes } from '@/utils/propTypes'
|
||||||
import { ElTooltip } from 'element-plus'
|
|
||||||
defineProps({
|
defineProps({
|
||||||
titel: propTypes.string.def(''),
|
titel: propTypes.string.def(''),
|
||||||
message: propTypes.string.def(''),
|
message: propTypes.string.def(''),
|
||||||
|
|
|
@ -46,8 +46,8 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="UploadImgs">
|
<script setup lang="ts" name="UploadImgs">
|
||||||
import { PropType, ref } from 'vue'
|
import { PropType } from 'vue'
|
||||||
import { ElUpload, ElNotification, ElImageViewer } from 'element-plus'
|
import { ElNotification } from 'element-plus'
|
||||||
import type { UploadProps, UploadFile, UploadUserFile } from 'element-plus'
|
import type { UploadProps, UploadFile, UploadUserFile } from 'element-plus'
|
||||||
|
|
||||||
import { propTypes } from '@/utils/propTypes'
|
import { propTypes } from '@/utils/propTypes'
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { propTypes } from '@/utils/propTypes'
|
import { propTypes } from '@/utils/propTypes'
|
||||||
import { ElScrollbar } from 'element-plus'
|
|
||||||
const slots = useSlots()
|
const slots = useSlots()
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|
|
@ -242,20 +242,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="ElementListeners">
|
<script setup lang="ts" name="ElementListeners">
|
||||||
import { ref, inject, watch, nextTick } from 'vue'
|
import { ElMessageBox } from 'element-plus'
|
||||||
import {
|
|
||||||
ElMessageBox,
|
|
||||||
ElTable,
|
|
||||||
ElTableColumn,
|
|
||||||
ElDivider,
|
|
||||||
ElOption,
|
|
||||||
ElSelect,
|
|
||||||
ElInput,
|
|
||||||
ElDrawer,
|
|
||||||
ElDialog,
|
|
||||||
ElForm,
|
|
||||||
ElFormItem
|
|
||||||
} from 'element-plus'
|
|
||||||
import { createListenerObject, updateElementExtensions } from '../../utils'
|
import { createListenerObject, updateElementExtensions } from '../../utils'
|
||||||
import { initListenerType, initListenerForm, listenerType, fieldType } from './utilSelf'
|
import { initListenerType, initListenerForm, listenerType, fieldType } from './utilSelf'
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|
|
@ -46,17 +46,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="SignalAndMassage">
|
<script setup lang="ts" name="SignalAndMassage">
|
||||||
import {
|
const message = useMessage()
|
||||||
ElMessage,
|
|
||||||
ElDialog,
|
|
||||||
ElForm,
|
|
||||||
ElFormItem,
|
|
||||||
ElTable,
|
|
||||||
ElTableColumn,
|
|
||||||
ElButton,
|
|
||||||
ElInput
|
|
||||||
} from 'element-plus'
|
|
||||||
import { ref, computed, onMounted } from 'vue'
|
|
||||||
const signalList = ref<any[]>([])
|
const signalList = ref<any[]>([])
|
||||||
const messageList = ref<any[]>([])
|
const messageList = ref<any[]>([])
|
||||||
const modelVisible = ref(false)
|
const modelVisible = ref(false)
|
||||||
|
@ -99,13 +89,13 @@ const openModel = (type) => {
|
||||||
const addNewObject = () => {
|
const addNewObject = () => {
|
||||||
if (modelType.value === 'message') {
|
if (modelType.value === 'message') {
|
||||||
if (messageIdMap.value[modelObjectForm.value.id]) {
|
if (messageIdMap.value[modelObjectForm.value.id]) {
|
||||||
ElMessage.error('该消息已存在,请修改id后重新保存')
|
message.error('该消息已存在,请修改id后重新保存')
|
||||||
}
|
}
|
||||||
const messageRef = window.bpmnInstances.moddle.create('bpmn:Message', modelObjectForm.value)
|
const messageRef = window.bpmnInstances.moddle.create('bpmn:Message', modelObjectForm.value)
|
||||||
rootElements.value.push(messageRef)
|
rootElements.value.push(messageRef)
|
||||||
} else {
|
} else {
|
||||||
if (signalIdMap.value[modelObjectForm.value.id]) {
|
if (signalIdMap.value[modelObjectForm.value.id]) {
|
||||||
ElMessage.error('该信号已存在,请修改id后重新保存')
|
message.error('该信号已存在,请修改id后重新保存')
|
||||||
}
|
}
|
||||||
const signalRef = window.bpmnInstances.moddle.create('bpmn:Signal', modelObjectForm.value)
|
const signalRef = window.bpmnInstances.moddle.create('bpmn:Signal', modelObjectForm.value)
|
||||||
rootElements.value.push(signalRef)
|
rootElements.value.push(signalRef)
|
||||||
|
|
|
@ -45,8 +45,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts" name="ScriptTask">
|
<script setup lang="ts" name="ScriptTask">
|
||||||
import { ref, watch, nextTick, onBeforeUnmount, toRaw } from 'vue'
|
|
||||||
import { ElInput, ElFormItem } from 'element-plus'
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
id: String,
|
id: String,
|
||||||
type: String
|
type: String
|
||||||
|
|
|
@ -54,6 +54,7 @@ declare module '@vue/runtime-core' {
|
||||||
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
|
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
|
||||||
ElLink: typeof import('element-plus/es')['ElLink']
|
ElLink: typeof import('element-plus/es')['ElLink']
|
||||||
ElOption: typeof import('element-plus/es')['ElOption']
|
ElOption: typeof import('element-plus/es')['ElOption']
|
||||||
|
ElPagination: typeof import('element-plus/es')['ElPagination']
|
||||||
ElPopover: typeof import('element-plus/es')['ElPopover']
|
ElPopover: typeof import('element-plus/es')['ElPopover']
|
||||||
ElRadio: typeof import('element-plus/es')['ElRadio']
|
ElRadio: typeof import('element-plus/es')['ElRadio']
|
||||||
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
|
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
|
||||||
|
|
Loading…
Reference in New Issue