tall小程序和时间轴结合在小程序中
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

38 lines
792 B

<template>
<view class="upload">
<view @tap="handleUpload">
<u-icon name="plus" color="#ffffff" size="24px" class="flex justify-center w-12 h-12 bg-blue-100 rounded-full shadow-md"></u-icon>
</view>
</view>
</template>
<script>
export default {
methods: {
// 倒入wbs
async handleUpload() {
try {
const data = await this.$u.api.import();
// 导入WBS成功后
// 直接打开导入的项目
console.log('data: ', data);
} catch (error) {
this.$emit('show-alert', error);
}
},
},
};
</script>
<style lang="scss" scoped>
.upload {
position: absolute;
right: 10px;
bottom: 0;
transform: translate3d(0, 50%, 0);
}
/deep/ .uicon-plus {
color: theme('colors.blue.500') !important;
}
</style>