优化页面

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,94 +0,0 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
require("../../../adapter-vue.js");
const TUIKit_utils_env = require("../../../utils/env.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "index",
props: {
show: {
type: Boolean,
default: false
},
isHeaderShow: {
type: Boolean,
default: true
},
isFooterShow: {
type: Boolean,
default: true
},
background: {
type: Boolean,
default: true
},
title: {
type: String,
default: ""
},
center: {
type: Boolean,
default: false
}
},
emits: ["update:show", "submit"],
setup(__props, { emit: __emit }) {
const clickType = {
OUTSIDE: "outside",
INSIDE: "inside"
};
const props = __props;
const showDialog = common_vendor.ref(false);
const isHeaderShowDialog = common_vendor.ref(true);
const isFooterShowDialog = common_vendor.ref(true);
const backgroundDialog = common_vendor.ref(true);
const showTitle = common_vendor.ref("");
common_vendor.watchEffect(() => {
showDialog.value = props.show;
showTitle.value = props.title;
isHeaderShowDialog.value = props.isHeaderShow;
isFooterShowDialog.value = props.isFooterShow;
backgroundDialog.value = props.background;
});
const emit = __emit;
const toggleView = (type) => {
if (type === clickType.OUTSIDE) {
close();
}
};
const close = () => {
showDialog.value = !showDialog.value;
emit("update:show", showDialog.value);
};
const submit = () => {
emit("submit");
close();
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.unref(showDialog)
}, common_vendor.unref(showDialog) ? common_vendor.e({
b: common_vendor.unref(isHeaderShowDialog)
}, common_vendor.unref(isHeaderShowDialog) ? {
c: common_vendor.t(common_vendor.unref(showTitle)),
d: common_vendor.o$1(close)
} : {}, {
e: common_vendor.n(common_vendor.unref(TUIKit_utils_env.isUniFrameWork) && common_vendor.unref(TUIKit_utils_env.isH5) ? "dialog-main-content-uniapp" : ""),
f: common_vendor.unref(isFooterShowDialog)
}, common_vendor.unref(isFooterShowDialog) ? {
g: common_vendor.t(common_vendor.unref(common_vendor.Wt).t("component.取消")),
h: common_vendor.o$1(close),
i: common_vendor.t(common_vendor.unref(common_vendor.Wt).t("component.确定")),
j: common_vendor.o$1(submit)
} : {}, {
k: common_vendor.n(!common_vendor.unref(backgroundDialog) ? "dialog-main-back" : ""),
l: common_vendor.o$1(($event) => toggleView(clickType.INSIDE)),
m: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) ? "dialog-h5" : ""),
n: common_vendor.n(__props.center ? "center" : ""),
o: common_vendor.o$1(($event) => toggleView(clickType.OUTSIDE))
}) : {});
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2c2f9c5b"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/TUIKit/components/common/Dialog/index.js.map

View File

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

View File

@@ -1 +0,0 @@
<view wx:if="{{a}}" class="{{['dialog', 'data-v-2c2f9c5b', m, n]}}" catchtap="{{o}}"><view class="{{['dialog-main', 'data-v-2c2f9c5b', k]}}" catchtap="{{l}}"><view wx:if="{{b}}" class="dialog-main-header data-v-2c2f9c5b"><view class="dialog-main-title data-v-2c2f9c5b">{{c}}</view><view class="icon icon-close data-v-2c2f9c5b" bindtap="{{d}}"/></view><view class="{{['dialog-main-content', 'data-v-2c2f9c5b', e]}}"><slot/></view><view wx:if="{{f}}" class="dialog-main-footer data-v-2c2f9c5b"><button class="btn btn-cancel data-v-2c2f9c5b" bindtap="{{h}}">{{g}}</button><button class="btn btn-default data-v-2c2f9c5b" bindtap="{{j}}">{{i}}</button></view></view></view>

View File

@@ -1,210 +0,0 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
body.data-v-2c2f9c5b, div.data-v-2c2f9c5b, ul.data-v-2c2f9c5b, ol.data-v-2c2f9c5b, dt.data-v-2c2f9c5b, dd.data-v-2c2f9c5b, li.data-v-2c2f9c5b, dl.data-v-2c2f9c5b, h1.data-v-2c2f9c5b, h2.data-v-2c2f9c5b, h3.data-v-2c2f9c5b, h4.data-v-2c2f9c5b, p.data-v-2c2f9c5b {
margin: 0;
padding: 0;
font-style: normal;
/* font:12px/22px"\5B8B\4F53",Arial,Helvetica,sans-serif; */
}
ol.data-v-2c2f9c5b, ul.data-v-2c2f9c5b, li.data-v-2c2f9c5b {
list-style: none;
}
img.data-v-2c2f9c5b {
border: 0;
vertical-align: middle;
pointer-events: none;
}
body.data-v-2c2f9c5b {
color: #000;
background: #FFF;
}
.clear.data-v-2c2f9c5b {
clear: both;
height: 1px;
width: 100%;
overflow: hidden;
margin-top: -1px;
}
a.data-v-2c2f9c5b {
color: #000;
text-decoration: none;
cursor: pointer;
}
a.data-v-2c2f9c5b:hover {
text-decoration: none;
}
input.data-v-2c2f9c5b, textarea.data-v-2c2f9c5b {
-webkit-user-select: auto;
user-select: auto;
}
input.data-v-2c2f9c5b:focus, input.data-v-2c2f9c5b:active, textarea.data-v-2c2f9c5b:focus, textarea.data-v-2c2f9c5b:active {
outline: none;
}
.chat-aside.data-v-2c2f9c5b {
position: absolute;
top: 50px;
right: 0;
box-sizing: border-box;
width: 360px !important;
border-radius: 8px 0 0 8px;
z-index: 9999;
max-height: calc(100% - 50px);
}
.dialog.data-v-2c2f9c5b {
background: rgba(0, 0, 0, 0.6);
}
.dialog-main.data-v-2c2f9c5b {
background: #FFF;
}
.dialog-main-header.data-v-2c2f9c5b {
font-weight: 500;
color: #333;
}
.dialog-main-title.data-v-2c2f9c5b {
font-family: PingFangSC-Medium;
font-weight: 500;
color: #333;
}
.dialog-main-back.data-v-2c2f9c5b {
background: none;
}
.dialog-main-content.data-v-2c2f9c5b {
font-weight: 400;
color: #333;
}
.btn.data-v-2c2f9c5b {
font-weight: 400;
color: #FFF;
letter-spacing: 0;
}
.btn-cancel.data-v-2c2f9c5b {
border: 1px solid #ddd;
color: #666;
}
.btn-default.data-v-2c2f9c5b {
background: #006EFF;
border: 1px solid #006EFF;
}
.dialog.data-v-2c2f9c5b {
position: fixed;
width: 100%;
height: 100%;
left: 0;
top: 0;
z-index: 6;
display: flex;
justify-content: center;
align-items: center;
}
.dialog-main.data-v-2c2f9c5b {
min-width: 368px;
border-radius: 10px;
padding: 20px 30px;
}
.dialog-main-header.data-v-2c2f9c5b {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 16px;
line-height: 30px;
}
.dialog-main-title.data-v-2c2f9c5b {
font-size: 16px;
line-height: 30px;
}
.dialog-main-content.data-v-2c2f9c5b {
font-size: 14px;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 20px;
}
.dialog-main-footer.data-v-2c2f9c5b {
display: flex;
justify-content: flex-end;
}
.btn.data-v-2c2f9c5b {
padding: 8px 20px;
margin: 0 6px;
border-radius: 4px;
border: none;
font-size: 14px;
text-align: center;
line-height: 20px;
}
.btn.data-v-2c2f9c5b:disabled {
opacity: 0.3;
}
.btn.data-v-2c2f9c5b:last-child {
margin-right: 0;
}
.dialog-h5.data-v-2c2f9c5b {
height: 100%;
top: 0;
align-items: inherit;
}
.dialog-h5 .dialog-main.data-v-2c2f9c5b {
border-radius: 0;
padding: 0;
display: flex;
flex-direction: column;
overflow: hidden;
width: 100%;
min-height: 80px;
min-width: 120px;
}
.dialog-h5 .dialog-main-content.data-v-2c2f9c5b {
flex: 1;
min-width: 0;
min-height: 0;
overflow: hidden;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 0;
}
.dialog-h5 .dialog-main-content-uniapp.data-v-2c2f9c5b {
padding: 40px 0;
}
.dialog-h5 .dialog-main-footer.data-v-2c2f9c5b {
border-top: 1px solid #DDD;
}
.dialog-h5 .dialog-main-footer .btn.data-v-2c2f9c5b {
flex: 1;
margin: 0;
background: none;
border-right: 1px solid #DDD;
}
.dialog-h5 .dialog-main-footer .btn-default.data-v-2c2f9c5b {
color: #FF584C;
border: none;
}
.center.data-v-2c2f9c5b {
align-items: center;
padding: 20px;
box-sizing: border-box;
}