jiuyiUniapp/jiuyi2/unpackage/dist/dev/mp-weixin/TUIKit/tui-customer-service-plugin/adapter-vue-web.js

75 lines
2.3 KiB
JavaScript
Raw Normal View History

2024-12-18 15:46:27 +08:00
"use strict";
var _a, _b, _c, _d, _e, _f;
const common_vendor = require("../../common/vendor.js");
let VueBasic = {
default: {}
};
VueBasic = common_vendor._Vue ? common_vendor._Vue : VueBasic;
let vueVersion;
let createVNode = (arg1, arg2) => {
return {};
};
let render = (arg1, arg2) => {
return;
};
let defineProps = () => {
return;
};
let defineEmits = () => {
return;
};
let withDefaults = (arg) => {
return arg;
};
try {
if (((_a = VueBasic == null ? void 0 : VueBasic.default) == null ? void 0 : _a.version) && ((_c = (_b = VueBasic == null ? void 0 : VueBasic.default) == null ? void 0 : _b.version) == null ? void 0 : _c.startsWith("2.7."))) {
vueVersion = 2.7;
} else if (((_d = VueBasic == null ? void 0 : VueBasic.default) == null ? void 0 : _d.version) && ((_f = (_e = VueBasic == null ? void 0 : VueBasic.default) == null ? void 0 : _e.version) == null ? void 0 : _f.startsWith("2."))) {
vueVersion = 2;
} else {
vueVersion = 3;
createVNode = VueBasic == null ? void 0 : VueBasic.createVNode;
render = VueBasic == null ? void 0 : VueBasic.render;
defineProps = VueBasic == null ? void 0 : VueBasic.defineProps;
defineEmits = VueBasic == null ? void 0 : VueBasic.defineEmits;
withDefaults = VueBasic == null ? void 0 : VueBasic.withDefaults;
}
} catch (error) {
vueVersion = 3;
createVNode = VueBasic == null ? void 0 : VueBasic.createVNode;
render = VueBasic == null ? void 0 : VueBasic.render;
defineProps = VueBasic == null ? void 0 : VueBasic.defineProps;
defineEmits = VueBasic == null ? void 0 : VueBasic.defineEmits;
withDefaults = VueBasic == null ? void 0 : VueBasic.withDefaults;
}
console.warn(`[adapter-vue]: vue version is ${vueVersion}`);
exports.vue = VueBasic;
if (vueVersion === 2) {
exports.vue = common_vendor.VueApi;
}
const VueWeb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
get createVNode() {
return createVNode;
},
get defineEmits() {
return defineEmits;
},
get defineProps() {
return defineProps;
},
get render() {
return render;
},
get vue() {
return exports.vue;
},
get vueVersion() {
return vueVersion;
},
get withDefaults() {
return withDefaults;
}
}, Symbol.toStringTag, { value: "Module" }));
exports.VueWeb = VueWeb;