|
1 |
| -import { defineComponent, h, inject, ref, Ref, VNode, PropType, TransitionGroup, createCommentVNode } from 'vue' |
| 1 | +import { defineComponent, h, inject, ref, Ref, VNode, PropType, nextTick, TransitionGroup, createCommentVNode } from 'vue' |
2 | 2 | import { VxeUI } from '../../../ui'
|
3 | 3 | import { formatText } from '../../../ui/src/utils'
|
4 | 4 | import { addClass, removeClass } from '../../../ui/src/dom'
|
| 5 | +import { errLog } from '../../../ui/src/log' |
5 | 6 | import XEUtils from 'xe-utils'
|
6 | 7 |
|
7 | 8 | import type { VxeModalComponent, VxeButtonComponent, VxeRadioGroupComponent, VxeTooltipComponent, VxeInputComponent } from 'vxe-pc-ui'
|
@@ -784,6 +785,26 @@ export default defineComponent({
|
784 | 785 | return renderSimplePanel()
|
785 | 786 | }
|
786 | 787 |
|
| 788 | + if (process.env.VUE_APP_VXE_ENV === 'development') { |
| 789 | + nextTick(() => { |
| 790 | + if (!VxeUIModalComponent) { |
| 791 | + errLog('vxe.error.reqComp', ['vxe-modal']) |
| 792 | + } |
| 793 | + if (!VxeUIButtonComponent) { |
| 794 | + errLog('vxe.error.reqComp', ['vxe-button']) |
| 795 | + } |
| 796 | + if (!VxeUIInputComponent) { |
| 797 | + errLog('vxe.error.reqComp', ['vxe-input']) |
| 798 | + } |
| 799 | + if (!VxeUITooltipComponent) { |
| 800 | + errLog('vxe.error.reqComp', ['vxe-tooltip']) |
| 801 | + } |
| 802 | + if (!VxeUIRadioGroupComponent) { |
| 803 | + errLog('vxe.error.reqComp', ['vxe-radio-group']) |
| 804 | + } |
| 805 | + }) |
| 806 | + } |
| 807 | + |
787 | 808 | return renderVN
|
788 | 809 | }
|
789 | 810 | })
|
0 commit comments