feat: 首次提交

This commit is contained in:
peerless_hero
2023-08-17 21:28:49 +08:00
parent 36f80fb971
commit ec1e5e16cd
571 changed files with 95322 additions and 0 deletions

View File

@ -0,0 +1,80 @@
<!--本文件由FirstUI授权予新疆天衡创新研究院有限公司手机号1 86 1 4 0 7 2 549身份证尾号5A07X5专用请尊重知识产权勿私下传播违者追究法律责任-->
<template>
<view class="fui-timeaxis__wrap"
:style="{paddingTop:padding[0] || 0,paddingRight:padding[1]||0,paddingBottom:padding[2] || padding[0]||0,paddingLeft:padding[3] || padding[1]||0,background:background}">
<slot></slot>
</view>
</template>
<script>
export default {
name: "fui-timeaxis",
props: {
padding: {
type: Array,
default () {
return []
}
},
background: {
type: String,
default: 'transparent'
},
leftWidth: {
type: [Number, String],
default: 0
},
width: {
type: [Number, String],
default: 48
},
// #ifdef APP-NVUE
lineWidth: {
type: [Number, String],
default: 0.5
},
// #endif
// #ifndef APP-NVUE
lineWidth: {
type: [Number, String],
default: 1
}
// #endif
},
provide() {
return {
timeaxis: this
}
},
created() {
this.children = []
},
watch: {
width(val) {
this.children.forEach(item => {
item.width = val
})
},
lineWidth(val) {
this.children.forEach(item => {
item.lineWidth = val
})
},
leftWidth(val) {
this.children.forEach(item => {
item.leftWidth = val
})
}
}
}
</script>
<style scoped>
.fui-timeaxis__wrap {
/* #ifndef APP-NVUE */
width: 100%;
box-sizing: border-box;
/* #endif */
}
</style>