li-guang
2020-12-17 b16d36e2a314efc42f99d484e5291a78a95fcd8e
hive-app/components/popover/index.vue
@@ -1,5 +1,6 @@
<template>
   <view>
   <view class="content">
      <view class="triangle"></view>
      <slot></slot>
   </view>
</template>
@@ -16,4 +17,18 @@
</script>
<style>
   .content{
      background: #4c4c4c;
      border-radius: 4px;
   }
   .triangle{
      width: 0;
      height: 0;
      border-width: 0 10px 10px;
      border-style: solid;
      border-color: transparent transparent #4c4c4c;
      position: absolute;
      top:-8px;
      right: 5px;
   }
</style>