index.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. import JModal from './JModal'
  2. import JFormContainer from './JFormContainer.vue'
  3. import JPopup from './JPopup.vue'
  4. import JMarkdownEditor from './JMarkdownEditor'
  5. import JCodeEditor from './JCodeEditor.vue'
  6. import JEditor from './JEditor.vue'
  7. import JEditableTable from './JEditableTable.vue'
  8. import JAreaLinkage from './JAreaLinkage.vue'
  9. import JSuperQuery from './JSuperQuery.vue'
  10. import JUpload from './JUpload.vue'
  11. import JTreeSelect from './JTreeSelect.vue'
  12. import JCategorySelect from './JCategorySelect.vue'
  13. import JImageUpload from './JImageUpload.vue'
  14. import JImportModal from './JImportModal.vue'
  15. import JTreeDict from './JTreeDict.vue'
  16. import JCheckbox from './JCheckbox.vue'
  17. import JCron from './JCron.vue'
  18. import JDate from './JDate.vue'
  19. import JEllipsis from './JEllipsis.vue'
  20. import JInput from './JInput.vue'
  21. import JPopupOnlReport from './modal/JPopupOnlReport.vue'
  22. import JFilePop from './minipop/JFilePop.vue'
  23. import JInputPop from './minipop/JInputPop.vue'
  24. import JSelectMultiple from './JSelectMultiple.vue'
  25. import JSlider from './JSlider.vue'
  26. import JSwitch from './JSwitch.vue'
  27. import JTime from './JTime.vue'
  28. import JTreeTable from './JTreeTable.vue'
  29. import JEasyCron from '@/components/jeecg/JEasyCron'
  30. //jeecgbiz
  31. import JSelectDepart from '../jeecgbiz/JSelectDepart.vue'
  32. import JSelectMultiUser from '../jeecgbiz/JSelectMultiUser.vue'
  33. import JSelectPosition from '../jeecgbiz/JSelectPosition.vue'
  34. import JSelectRole from '../jeecgbiz/JSelectRole.vue'
  35. import JSelectUserByDep from '../jeecgbiz/JSelectUserByDep.vue'
  36. //引入需要全局注册的js函数和变量
  37. import { Modal, notification,message } from 'ant-design-vue'
  38. import lodash_object from 'lodash'
  39. import debounce from 'lodash/debounce'
  40. import pick from 'lodash.pick'
  41. import data from 'china-area-data'
  42. import signMd5Utils from '@/utils/encryption/signMd5Utils'
  43. export default {
  44. install(Vue) {
  45. Vue.use(JModal)
  46. Vue.component('JMarkdownEditor', JMarkdownEditor)
  47. Vue.component('JPopupOnlReport', JPopupOnlReport)
  48. Vue.component('JFilePop', JFilePop)
  49. Vue.component('JInputPop', JInputPop)
  50. Vue.component('JAreaLinkage', JAreaLinkage)
  51. Vue.component('JCategorySelect', JCategorySelect)
  52. Vue.component('JCheckbox', JCheckbox)
  53. Vue.component('JCodeEditor', JCodeEditor)
  54. Vue.component('JCron', JCron)
  55. Vue.component('JDate', JDate)
  56. Vue.component('JEditableTable', JEditableTable)
  57. Vue.component('JEditor', JEditor)
  58. Vue.component('JEllipsis', JEllipsis)
  59. Vue.component('JFormContainer', JFormContainer)
  60. Vue.component('JImageUpload', JImageUpload)
  61. Vue.component('JImportModal', JImportModal)
  62. Vue.component('JInput', JInput)
  63. Vue.component('JPopup', JPopup)
  64. Vue.component('JSelectMultiple', JSelectMultiple)
  65. Vue.component('JSlider', JSlider)
  66. Vue.component('JSuperQuery', JSuperQuery)
  67. Vue.component('JSwitch', JSwitch)
  68. Vue.component('JTime', JTime)
  69. Vue.component('JTreeDict', JTreeDict)
  70. Vue.component('JTreeSelect', JTreeSelect)
  71. Vue.component('JTreeTable', JTreeTable)
  72. Vue.component('JUpload', JUpload)
  73. //jeecgbiz
  74. Vue.component('JSelectDepart', JSelectDepart)
  75. Vue.component('JSelectMultiUser', JSelectMultiUser)
  76. Vue.component('JSelectPosition', JSelectPosition)
  77. Vue.component('JSelectRole', JSelectRole)
  78. Vue.component('JSelectUserByDep', JSelectUserByDep)
  79. Vue.component(JEasyCron.name, JEasyCron)
  80. //注册全局js函数和变量
  81. Vue.prototype.$Jnotification = notification
  82. Vue.prototype.$Jmodal = Modal
  83. Vue.prototype.$Jmessage = message
  84. Vue.prototype.$Jlodash = lodash_object
  85. Vue.prototype.$Jdebounce= debounce
  86. Vue.prototype.$Jpick = pick
  87. Vue.prototype.$Jpcaa = data
  88. Vue.prototype.$signMd5Utils = signMd5Utils
  89. }
  90. }