swiper-next
Version:
Vue3 的 Swiper 组件
23 lines (22 loc) • 570 B
JavaScript
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
};