| | |
| | | <div class="ff-footer"> |
| | | <slot name="footer"></slot> |
| | | </div> |
| | | <div v-if="size != 'small'" class="ff-triangle"> |
| | | <div v-if="type == 'content' && size != 'small'" class="ff-triangle"> |
| | | <div class="ff-triangle-border"></div> |
| | | </div> |
| | | </div> |
| | |
| | | export default { |
| | | props: { |
| | | /** |
| | | * 类型 |
| | | * content | btn |
| | | */ |
| | | type: { |
| | | type: String, |
| | | default: 'content' |
| | | }, |
| | | /** |
| | | * 样式折角大小 |
| | | * small | medium |
| | | * small | medium | middle-s |
| | | */ |
| | | size: { |
| | | type: String, |
| | |
| | | }, |
| | | /** |
| | | * 样式朝向 |
| | | * left | right | top-left |
| | | * content: left | right | top-left | down |
| | | * btn: left | right | down |
| | | */ |
| | | direction: { |
| | | type: String, |
| | |
| | | }, |
| | | computed: { |
| | | wrapClz() { |
| | | let clz = 'ff-content p-events-auto'; |
| | | clz += ` ff-content-${this.direction}`; |
| | | clz += ` ff-content-${this.size}`; |
| | | clz += `${this.borderless ? '-borderless-' + this.borderless : ''}`; |
| | | return clz; |
| | | if (this.type == 'content') { |
| | | let clz = 'ff-content p-events-auto'; |
| | | clz += ` ff-content-${this.direction}`; |
| | | clz += ` ff-content-${this.size}`; |
| | | clz += `${this.borderless ? '-borderless-' + this.borderless : ''}`; |
| | | return clz; |
| | | } else if (this.type == 'btn') { |
| | | let clz = 'ff-toggle-btn p-events-auto'; |
| | | clz += ` ff-toggle-btn-${this.direction}`; |
| | | clz += ` ff-btn-${this.size}`; |
| | | return clz; |
| | | } else { |
| | | return ''; |
| | | } |
| | | } |
| | | } |
| | | }; |