This commit is contained in:
2025-10-24 09:34:42 +08:00
commit c0e46d1ae7
282 changed files with 33820 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
// plugins/selectPopup.js
import {
createApp
} from 'vue';
import SelectPopup from './selectPopup.vue';
export default {
install(app) {
const popupApp = createApp(SelectPopup);
// #ifdef H5
const popupInstance = popupApp.mount(document.createElement('div'));
document.body.appendChild(popupInstance.$el);
// 提供 open 方法
const openPopup = (config) => {
popupInstance.open(config);
};
// #endif
// #ifndef H5
const openPopup = (config) => {};
// #endif
// 提供给所有组件使用
app.provide('openSelectPopup', openPopup);
}
};