UNPKG

swiper-next

Version:
23 lines (22 loc) 570 B
import { defineComponent } from "vue"; import animation from "./animation.mjs"; const defineBuiltInComponent = (options) => { options.__reserved = true; const { props, mixins } = options; if (!props || !props.animation) { (mixins || (options.mixins = [])).push(animation); } return defineSystemComponent(options); }; const defineSystemComponent = (options) => { options.__reserved = true; options.compatConfig = { MODE: 3 // 标记为vue3 }; return defineComponent(options); }; export { defineBuiltInComponent, defineSystemComponent };