vue.runtime.mjs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import Vue from './vue.runtime.common.js'
  2. export default Vue
  3. // this should be kept in sync with src/v3/index.ts
  4. export const {
  5. version,
  6. // refs
  7. ref,
  8. shallowRef,
  9. isRef,
  10. toRef,
  11. toRefs,
  12. unref,
  13. proxyRefs,
  14. customRef,
  15. triggerRef,
  16. computed,
  17. // reactive
  18. reactive,
  19. isReactive,
  20. isReadonly,
  21. isShallow,
  22. isProxy,
  23. shallowReactive,
  24. markRaw,
  25. toRaw,
  26. readonly,
  27. shallowReadonly,
  28. // watch
  29. watch,
  30. watchEffect,
  31. watchPostEffect,
  32. watchSyncEffect,
  33. // effectScope
  34. effectScope,
  35. onScopeDispose,
  36. getCurrentScope,
  37. // provide / inject
  38. provide,
  39. inject,
  40. // lifecycle
  41. onBeforeMount,
  42. onMounted,
  43. onBeforeUpdate,
  44. onUpdated,
  45. onUnmounted,
  46. onErrorCaptured,
  47. onActivated,
  48. onDeactivated,
  49. onServerPrefetch,
  50. onRenderTracked,
  51. onRenderTriggered,
  52. // v2 only
  53. set,
  54. del,
  55. // v3 compat
  56. h,
  57. getCurrentInstance,
  58. useSlots,
  59. useAttrs,
  60. mergeDefaults,
  61. nextTick,
  62. useCssModule,
  63. useCssVars,
  64. defineComponent,
  65. defineAsyncComponent
  66. } = Vue