hive-app/components/popover/index.vue
@@ -1,14 +1,34 @@ <template> <view v-show="isShow"> <view class="content"> <view class="triangle"></view> <slot></slot> </view> </template> <script> export default{ data(){ return{ } }, methods:{ } } </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>