2025/2/8第一次更新

This commit is contained in:
爱吃咸鱼小猫咪
2025-02-08 18:50:38 +08:00
commit d7af560866
26519 changed files with 5046029 additions and 0 deletions
@@ -0,0 +1,41 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const _sfc_main = {
name: "fui-background-image",
props: {
src: {
type: String,
default: ""
},
background: {
type: String,
default: "transparent"
},
zIndex: {
type: [Number, String],
default: -1
},
aspectFill: {
type: Boolean,
default: true
},
absolute: {
type: Boolean,
default: false
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: $props.src != ""
}, $props.src != "" ? {
b: $props.src,
c: $props.aspectFill ? "aspectFill" : "scaleToFill"
} : {}, {
d: $props.absolute ? "absolute" : "fixed",
e: $props.background,
f: $props.zIndex
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createComponent(Component);
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
@@ -0,0 +1 @@
<view style="{{'position:' + d + ';' + ('background:' + e) + ';' + ('z-index:' + f) + ';' + virtualHostStyle}}" class="{{['fui-background__image-wrap', virtualHostClass]}}"><image wx:if="{{a}}" src="{{b}}" class="fui-background__image" mode="{{c}}"></image><slot></slot></view>
@@ -0,0 +1,22 @@
.fui-background__image-wrap {
width: 100%;
height: 100%;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
.fui-background__image {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
display: block;
}