From 5d4a0926f4e8fbbc15ba15d4054001cacf630b73 Mon Sep 17 00:00:00 2001
From: li-guang <153605324@qq.com>
Date: Tue, 05 Jan 2021 18:21:56 +0800
Subject: [PATCH] 盘点,修改个人信息,跟进记录图片预览
---
hive-app/components/uni-collapse/uni-collapse.vue | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 54 insertions(+), 0 deletions(-)
diff --git a/hive-app/components/uni-collapse/uni-collapse.vue b/hive-app/components/uni-collapse/uni-collapse.vue
new file mode 100644
index 0000000..cf2f4be
--- /dev/null
+++ b/hive-app/components/uni-collapse/uni-collapse.vue
@@ -0,0 +1,54 @@
+<template>
+ <view class="uni-collapse">
+ <slot />
+ </view>
+</template>
+<script>
+ export default {
+ name: 'UniCollapse',
+ props: {
+ accordion: {
+ // 是否开启手风琴效果
+ type: [Boolean, String],
+ default: false
+ }
+ },
+ data() {
+ return {}
+ },
+ provide() {
+ return {
+ collapse: this
+ }
+ },
+ created() {
+ this.childrens = []
+ },
+ methods: {
+ onChange() {
+ let activeItem = []
+ this.childrens.forEach((vm, index) => {
+ if (vm.isOpen) {
+ activeItem.push(vm.nameSync)
+ }
+ })
+ this.$emit('change', activeItem)
+ }
+ }
+ }
+</script>
+<style lang="scss" scoped>
+ @import '@/uni.scss';
+
+ .uni-collapse {
+ /* #ifndef APP-NVUE */
+ width: 100%;
+ display: flex;
+ /* #endif */
+ /* #ifdef APP-NVUE */
+ flex: 1;
+ /* #endif */
+ flex-direction: column;
+ background-color: $uni-bg-color;
+ }
+</style>
--
Gitblit v1.9.1