优化页面

This commit is contained in:
pengxiaolong
2025-06-10 23:06:51 +08:00
parent 8c70c2c850
commit 3c2d7e5959
974 changed files with 353 additions and 87597 deletions

View File

@@ -1,58 +0,0 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
require("../../../adapter-vue.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "index",
props: {
visible: { type: Boolean, default: true },
zIndex: { default: 9999 },
useMask: { type: Boolean, default: true },
maskColor: { default: "rgba(0, 0, 0, 0.6)" },
isFullScreen: { type: Boolean, default: true },
width: { default: "auto" },
height: { default: "auto" }
},
emits: ["onOverlayClick"],
setup(__props, { expose: __expose, emit: __emit }) {
const emits = __emit;
const props = __props;
const overlayDomRef = common_vendor.ref();
const isOverlayShow = common_vendor.ref(props.visible);
common_vendor.watch(() => props.visible, (visible) => {
if (visible) {
isOverlayShow.value = true;
} else {
setTimeout(() => {
isOverlayShow.value = false;
}, 150);
}
}, {
immediate: true
});
function onOverlayClick() {
emits("onOverlayClick");
}
__expose({
overlayDomRef
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.unref(isOverlayShow)
}, common_vendor.unref(isOverlayShow) ? common_vendor.e({
b: props.useMask
}, props.useMask ? {
c: props.visible ? 1 : "",
d: props.maskColor,
e: common_vendor.o$1(onOverlayClick),
f: common_vendor.o$1(onOverlayClick)
} : {}, {
g: props.isFullScreen ? 1 : "",
h: props.isFullScreen ? "fixed" : "absolute",
i: props.zIndex
}) : {});
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-fdff2bf0"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/TUIKit/components/common/Overlay/index.js.map

View File

@@ -1,4 +0,0 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -1 +0,0 @@
<view wx:if="{{a}}" ref="overlayDomRef" class="overlay-container data-v-fdff2bf0" style="{{'position:' + h + ';' + ('z-index:' + i)}}"><view wx:if="{{b}}" class="{{['data-v-fdff2bf0', 'overlay-mask', c && 'fade-in']}}" style="{{'background-color:' + d}}" bindtap="{{e}}" catchtouchstart="{{f}}"/><view class="{{['data-v-fdff2bf0', 'overlay-content', g && 'full-screen']}}"><slot/></view></view>

View File

@@ -1,66 +0,0 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.overlay-container.data-v-fdff2bf0 {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
}
.overlay-container .overlay-mask.data-v-fdff2bf0 {
z-index: -1;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.6);
opacity: 0;
transition: opacity 0.15s linear;
animation: fade-in-fdff2bf0 0.15s linear;
}
.overlay-container .full-screen.data-v-fdff2bf0 {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.overlay-mask.fade-in.data-v-fdff2bf0 {
opacity: 1;
}
@keyframes fade-in-fdff2bf0 {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}