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,49 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const _sfc_main = {
name: "fui-timeaxis-node",
inject: ["timeaxis"],
props: {
lined: {
type: Boolean,
default: true
},
lineColor: {
type: String,
default: "#ccc"
}
},
data() {
return {
lineWidth: 1,
width: 48,
leftWidth: 0
};
},
created() {
this.init();
},
methods: {
init() {
if (this.timeaxis) {
this.width = this.timeaxis.width;
this.lineWidth = this.timeaxis.lineWidth;
this.leftWidth = this.timeaxis.leftWidth;
this.timeaxis.children.push(this);
}
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: $data.leftWidth + "rpx",
b: $props.lined
}, $props.lined ? {
c: $props.lineColor,
d: $data.lineWidth + "px"
} : {}, {
e: $data.width + "rpx"
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3c819733"]]);
wx.createComponent(Component);
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
@@ -0,0 +1 @@
<view class="{{['fui-timeaxis__node-wrap', 'data-v-3c819733', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="fui-timeaxis__left data-v-3c819733" style="{{'width:' + a}}"><slot name="left"></slot></view><view class="fui-timeaxis__node-box data-v-3c819733" style="{{'width:' + e}}"><view class="fui-timeaxis__node data-v-3c819733"><slot></slot></view><view wx:if="{{b}}" class="fui-timeaxis__line data-v-3c819733" style="{{'background:' + c + ';' + ('width:' + d)}}"></view></view><view class="fui-timeaxis__content data-v-3c819733"><slot name="right"></slot></view></view>
@@ -0,0 +1,48 @@
.fui-timeaxis__node-wrap.data-v-3c819733 {
position: relative;
width: 100%;
display: flex;
flex-direction: row;
}
.fui-timeaxis__line.data-v-3c819733 {
width: 1px;
transform: scaleX(.5) translateZ(0);
transform-origin: center center;
flex: 1;
}
.fui-timeaxis__node-box.data-v-3c819733 {
display: flex;
flex-shrink: 0;
flex-direction: column;
align-items: center;
overflow: hidden;
}
.fui-timeaxis__node.data-v-3c819733 {
display: flex;
align-items: center;
justify-content: center;
}
.fui-timeaxis__left.data-v-3c819733 {
flex-shrink: 0;
overflow: hidden;
}
.fui-timeaxis__content.data-v-3c819733 {
width: 100%;
flex: 1;
}