press-ui
Version:
简单、易用的跨端组件库,兼容 Vue2 和 Vue3,同时支持 uni-app和普通 Vue 项目
24 lines (21 loc) • 457 B
JavaScript
// #ifdef H5
import ScrollView from '../../scroll-view/scroll-view';
import { isNotInUni } from '../../common/utils/utils';
import { setCustomElements } from '../../common/vue3/adapter.js';
// #endif
let componentConfig = {};
// #ifdef H5
if (isNotInUni()) {
componentConfig = {
ScrollView,
};
setCustomElements([
'uni-scroll-view',
], app);
}
// #endif
export const ScrollViewPureMixin = {
components: {
...componentConfig,
},
};