flat: 兼容
This commit is contained in:
@@ -164,10 +164,17 @@ pre code {
|
||||
white-space: pre-wrap; /* 保证换行处理 */
|
||||
}
|
||||
|
||||
/* #ifndef MP-WEIXIN */
|
||||
pre code:empty,
|
||||
pre code:not(:has(*)):not(:has(text)) {
|
||||
display: none;
|
||||
}
|
||||
/* #endif */
|
||||
/* #ifdef MP-WEIXIN */
|
||||
pre code:empty {
|
||||
display: none;
|
||||
}
|
||||
/* #endif */
|
||||
|
||||
.code-container {
|
||||
position: relative;
|
||||
|
@@ -7,6 +7,7 @@ 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);
|
||||
|
||||
@@ -14,7 +15,11 @@ export default {
|
||||
const openPopup = (config) => {
|
||||
popupInstance.open(config);
|
||||
};
|
||||
// #endif
|
||||
|
||||
// #ifndef H5
|
||||
const openPopup = (config) => {};
|
||||
// #endif
|
||||
// 提供给所有组件使用
|
||||
app.provide('openSelectPopup', openPopup);
|
||||
}
|
||||
|
Reference in New Issue
Block a user