123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <template>
- <div class="workspace-card">
- <div class="card-header">
- <span class="header-title">
- <slot name="header-title">{{ title }}</slot>
- </span>
- <span class="header-right">
- <slot name="header-right"></slot>
- </span>
- </div>
- <div class="card-content">
- <slot name="default"></slot>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: 'WorkspaceCard',
- props: {
- title: {
- type: String,
- default: ''
- }
- },
- created () {},
- methods: {}
- }
- </script>
- <style lang="scss" scoped>
- ::v-deep {
- .red-dot {
- width: 6px;
- height: 6px;
- background: #fb483d;
- border-radius: 50%;
- &.invisible {
- visibility: hidden;
- }
- }
- }
- .workspace-card {
- background-color: #fff;
- border-radius: 4px;
- box-shadow: 0px 0px 18px 0px rgba(0,0,0,0.02);
- }
- .card-header {
- padding: 12px 20px 8px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .card-content {
- padding: 16px 20px;
- }
- .header-title {
- font-size: 18px;
- color: #1D1D1D;
- line-height: 28px;
- }
- .header-right {
- margin-left: 20px;
- font-size: 12px;
- color: #686868;
- line-height: 18px;
- }
- </style>
|