forked from TencentBlueKing/bk-user
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Reviewed, transaction id: 4798
- Loading branch information
Showing
96 changed files
with
6,912 additions
and
2,110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<template> | ||
<div class="card-wrapper"> | ||
<div class="card-header"> | ||
<div class="card-header-right"> | ||
<i :class="list.logo" /> | ||
<div> | ||
<p class="title">{{ list.name }}</p> | ||
<p class="subtitle">{{ list.description }}</p> | ||
</div> | ||
</div> | ||
<slot name="header"></slot> | ||
</div> | ||
<div :class="['card-content', { 'active-card-content': list.isShow }]"> | ||
<div class="step-bar"> | ||
<slot name="header"></slot> | ||
</div> | ||
<slot name="content"></slot> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
defineProps({ | ||
list: { | ||
type: Object, | ||
default: () => ({}), | ||
}, | ||
activeId: { | ||
type: String, | ||
default: '', | ||
}, | ||
}); | ||
</script> | ||
|
||
<style lang="less" scoped> | ||
.card-wrapper { | ||
margin-bottom: 12px; | ||
background: #fff; | ||
.card-header { | ||
display: flex; | ||
padding: 16px 24px; | ||
border-radius: 2px; | ||
box-shadow: 0 2px 4px 0 #1919290d; | ||
align-items: center; | ||
justify-content: space-between; | ||
&:hover { | ||
cursor: pointer; | ||
border: 1px solid #A3C5FD; | ||
} | ||
.card-header-right { | ||
display: flex; | ||
align-items: center; | ||
i { | ||
margin-right: 15px; | ||
font-size: 18px; | ||
} | ||
.title { | ||
font-size: 14px; | ||
line-height: 22px; | ||
color: #313238; | ||
} | ||
.subtitle { | ||
line-height: 18px; | ||
color: #979BA5; | ||
} | ||
} | ||
} | ||
.card-content { | ||
display: none; | ||
background: #FFF; | ||
border-radius: 2px; | ||
box-shadow: 0 2px 4px 0 #1919290d; | ||
.step-bar { | ||
text-align: center; | ||
background: #FAFBFD; | ||
box-shadow: 0 1px 0 0 #F0F1F5; | ||
} | ||
} | ||
.active-card-content { | ||
display: block; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<template> | ||
<span class="label-content"> | ||
<span class="label-key">{{ `${label ? label + ':' : ''}` }} </span> | ||
<span class="label-value"> | ||
<slot></slot> | ||
</span> | ||
</span> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { defineProps } from 'vue'; | ||
defineProps({ | ||
label: { | ||
type: String, | ||
required: true, | ||
}, | ||
}); | ||
</script> | ||
|
||
<style lang="less" scoped> | ||
.label-content { | ||
display: flex; | ||
font-size: 14px; | ||
line-height: 40px; | ||
align-content: center; | ||
.label-key { | ||
width: 98px; | ||
color: #63656E; | ||
text-align: right; | ||
} | ||
.label-value { | ||
flex: 1; | ||
color: #313238; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<template> | ||
<div class="row-wrapper"> | ||
<header> | ||
<p>{{ title }}</p> | ||
<slot name="header"></slot> | ||
</header> | ||
<slot></slot> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { defineProps } from 'vue'; | ||
defineProps({ | ||
title: { | ||
type: String, | ||
required: true, | ||
}, | ||
}); | ||
</script> | ||
|
||
<style lang="less" scoped> | ||
.row-wrapper { | ||
margin-bottom: 24px; | ||
header { | ||
display: flex; | ||
place-content: center space-between; | ||
p { | ||
margin-bottom: 16px; | ||
font-size: 14px; | ||
font-weight: 700; | ||
line-height: 22px; | ||
color: #63656E; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<template> | ||
<div class="row-wrapper"> | ||
<header> | ||
<p>{{ title }}</p> | ||
<slot name="header"></slot> | ||
</header> | ||
<slot></slot> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { defineProps } from 'vue'; | ||
defineProps({ | ||
title: { | ||
type: String, | ||
required: true, | ||
}, | ||
}); | ||
</script> | ||
|
||
<style lang="less" scoped> | ||
.row-wrapper { | ||
padding: 0 24px 8px; | ||
margin-bottom: 16px; | ||
background: #FFF; | ||
border-radius: 2px; | ||
box-shadow: 0 2px 4px 0 #1919290d; | ||
header { | ||
display: flex; | ||
align-items: end; | ||
justify-content: space-between; | ||
p { | ||
margin: 16px 0; | ||
font-size: 14px; | ||
font-weight: 700; | ||
line-height: 22px; | ||
color: #63656E; | ||
} | ||
} | ||
} | ||
</style> |
Oops, something went wrong.