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,57 @@
"use strict";
const common_vendor = require("../../../../../../common/vendor.js");
const __default__ = {
options: {
// 在微信小程序中将组件节点渲染为虚拟节点,更加接近Vue组件的表现(不会出现shadow节点下再去创建元素)
virtualHost: true
}
};
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
...__default__,
__name: "water-fall",
props: common_vendor.waterFallProps,
setup(__props, { expose: __expose }) {
const props = __props;
const ns = common_vendor.useNamespace("water-fall");
const { componentId, leftData, rightData, resetWaterFall } = common_vendor.useWaterFall(props);
__expose({
/**
* @description 重置瀑布流
*/
reset: resetWaterFall
});
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(leftData), (item, index, i0) => {
return {
a: "left-" + i0,
b: common_vendor.r("left", {
item,
index
}, i0),
c: index
};
}),
b: common_vendor.n(common_vendor.unref(ns).e("item")),
c: `${common_vendor.unref(componentId)}-left`,
d: common_vendor.n(common_vendor.unref(ns).e("container")),
e: common_vendor.f(common_vendor.unref(rightData), (item, index, i0) => {
return {
a: "right-" + i0,
b: common_vendor.r("right", {
item,
index
}, i0),
c: index
};
}),
f: common_vendor.n(common_vendor.unref(ns).e("item")),
g: `${common_vendor.unref(componentId)}-right`,
h: common_vendor.n(common_vendor.unref(ns).e("container")),
i: common_vendor.n(common_vendor.unref(ns).b())
};
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-6ee09526"]]);
wx.createComponent(Component);
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
@@ -0,0 +1 @@
<view class="{{['data-v-6ee09526', i, virtualHostClass]}}" style="{{virtualHostStyle}}"><view id="{{c}}" class="{{['left', 'data-v-6ee09526', d]}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="c" class="{{['data-v-6ee09526', b]}}"><slot name="{{item.a}}"/></view></view><view id="{{g}}" class="{{['right', 'data-v-6ee09526', h]}}"><view wx:for="{{e}}" wx:for-item="item" wx:key="c" class="{{['data-v-6ee09526', f]}}"><slot name="{{item.a}}"/></view></view></view>
@@ -0,0 +1,38 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.tn-water-fall.data-v-6ee09526 {
position: relative;
width: 100%;
display: flex;
flex-wrap: wrap;
/* 左右两边容器 start */
/* 左右两边容器 end */
}
.tn-water-fall__container.data-v-6ee09526 {
width: 50%;
height: -moz-fit-content;
height: fit-content;
}