@@ -239,7 +239,7 @@
< / div >
< div
: class = "['join-tab', { active: joinStep === 'search' }]"
@ click = "joinStep = 'search'; doSearch Searchable() "
@ click = "handle SearchT abClick "
>
{ { $t ( 'organization.join.searchSpaces' ) } }
< / div >
@@ -309,45 +309,53 @@
< div class = "searchable-list-wrap" >
< t-loading :loading = "searchLoading" >
< div v-if = "searchableList.length === 0 && !searchLoading" class="searchable-empty" >
{ { searchQuery ? $t ( 'organization.join.noSearchResult' ) : $t ( 'organization.join.noSearchableSpaces' ) } }
< t-icon name = "search" class = "searchable-empty-icon" / >
< p class = "searchable-empty-text" >
{ { searchQuery ? $t ( 'organization.join.noSearchResult' ) : $t ( 'organization.join.noSearchableSpaces' ) } }
< / p >
< / div >
< div v-else class = "searchable-list" >
< div
v - for = "org in searchableList"
: key = "org.id"
class = "searchable-item"
: class = "{ 'is-already-member': org.is_already_member }"
@ click = "!org.is_already_member && previewSearchableOrg(org)"
: class = "{ 'is-full': isOrgFull(org) }"
@ click = "!isOrgFull(org) && previewSearchableOrg(org)"
>
< div class = "searchable-item-left " >
< div class = "searchable-item-avatar" >
< SpaceAvatar :name = "org.name" size = "small" / >
< / div >
< div class = "searchable-item-info " >
< div class = "searchable-item-avatar " >
< SpaceAvatar :name = "org.name" size = "small" / >
< / div >
< div class = "searchable-item-main" >
< div class = "searchable-item-row1 " >
< span class = "searchable-item-name" > { { org . name } } < / span >
< span class = "searchable-item-desc " > { { org . description || $t ( 'organization.noDescription' ) } } < / span >
< div class = "searchable-item-badges " >
< span class = "badge" > { { org . member _count } } { { $t ( 'organization.invite .members' ) } } < / span >
< span class = "badge" > { { org . share _count } } { { $t ( 'organization.invite.knowledgeBases' ) } } < / span >
< t-tag v-if = "org.require_approval" size="small" theme="warning" class="approval-tag" >
{ { $t ( 'organization.invite.needApproval ' ) } }
< / t-tag >
< / div >
< span class = "searchable-item-meta " >
< template v-if = "org.member_limit > 0 " >
{ { $t ( 'organization.jo in.membersWithLimit ' , { current : org . member _count , limit : org . member _limit } ) } }
< / template >
< template v-else >
{ { org . member _count } } { { $t ( 'organization.invite.members ' ) } }
< / template >
· { { org . share _count } } { { $t ( 'organization.invite.knowledgeBases' ) } }
< span v-if = "org.require_approval" class="searchable-item-approval" > {{ $ t ( ' organization.invite.needApproval ' ) }} < / span >
< span v-if = "isOrgFull(org)" class="searchable-item-full" > {{ $ t ( ' organization.join.memberLimitReached ' ) }} < / span >
< / span >
< / div >
< p class = "searchable-item-desc" > { { org . description || $t ( 'organization.noDescription' ) } } < / p >
< / div >
< div class = "searchable-item-action" @click.stop >
< t-button
v - if = "org.is_already_member "
v - if = "isOrgFull(org) "
theme = "default"
variant = "outline "
variant = "text "
size = "small"
@ click = "viewSearchableOrg(org)"
disabled
>
{ { $t ( 'organization.invite.viewOrganization ' ) } }
{ { $t ( 'organization.join.memberLimitReached ' ) } }
< / t-button >
< t-button
v - else
theme = "primary"
variant = "text"
size = "small"
@ click = "previewSearchableOrg(org)"
>
@@ -373,50 +381,38 @@
< span class = "invite-preview-loading-text" > { { $t ( 'organization.invite.loading' ) } } < / span >
< / div >
<!-- 步骤2 : 预览内容 -- >
<!-- 步骤2 : 预览内容 ( 与整体风格一致 ) -- >
< template v-else-if = "invitePreviewData" >
< div class = "invite-preview-body invite-preview-body-preview" >
<!-- 空间信息 -- >
<!-- 空间基本 信息 -- >
< div class = "invite-preview-org" >
< div class = "invite-preview-org-icon" >
< SpaceAvatar :name = "invitePreviewData.name" size = "large" / >
< / div >
< div class = "invite-preview-org-info" >
< h2 class = "invite-preview-org-name" > { { invitePreviewData . name } } < / h2 >
< p class = "invite-preview-org-id" > { { $t ( 'organization.join.spaceId' ) } } : { { invitePreviewData . id } } < / p >
< p class = "invite-preview-org-meta" >
{ { invitePreviewData . member _count } } { { $t ( 'organization.invite.members' ) } } · { { invitePreviewData . share _count } } { { $t ( 'organization.invite.knowledgeBases' ) } }
< / p >
< p class = "invite-preview-org-desc" > { { invitePreviewData . description || $t ( 'organization.noDescription' ) } } < / p >
< / div >
< / div >
<!-- 统计信息 -- >
< div class = "invite-preview-stats" >
< div class = "invite-preview-stat" >
< t-icon name = "user" class = "invite-preview-stat-icon" / >
< span class = "invite-preview-stat-value" > { { invitePreviewData . member _count } } < / span >
< span class = "invite-preview-stat-label" > { { $t ( 'organization.invite.members' ) } } < / span >
< / div >
< div class = "invite-preview-stat" >
< t-icon name = "folder" class = "invite-preview-stat-icon" / >
< span class = "invite-preview-stat-value" > { { invitePreviewData . share _count } } < / span >
< span class = "invite-preview-stat-label" > { { $t ( 'organization.invite.knowledgeBases' ) } } < / span >
< / div >
< / div >
<!-- 加入方式与状态 -- >
<!-- 加入方式与说明 -- >
< div v-if = "!invitePreviewData.is_already_member" class="invite-preview-join-section" >
< div class = "invite-preview-approval- row" >
< span class = "invite-preview-approval- label" > { { $t ( 'organization.invite.approvalLabel' ) } } < / span >
< span : class = "['invite-preview-approval-badg e', invitePreviewData.require_approval ? 'need-approval' : 'no-approval ']" >
< div class = "invite-preview-row" >
< span class = "invite-preview-label" > { { $t ( 'organization.invite.approvalLabel' ) } } < / span >
< span : class = "['invite-preview-valu e', invitePreviewData.require_approval ? 'value-warning' : 'value-success ']" >
{ { invitePreviewData . require _approval ? $t ( 'organization.invite.needApproval' ) : $t ( 'organization.invite.noApproval' ) } }
< / span >
< / div >
< div v-if = "!invitePreviewData.require_approval" class="invite-preview-tip invite-preview-tip-info " >
< t-icon name = "info-circle" size = "16px" / >
< span > { { $t ( 'organization.invite.defaultRoleAfterJoin' , { role : $t ( 'organization.role.viewer' ) } ) } } < / span >
< div v-if = "!invitePreviewData.require_approval" class="invite-preview-note " >
{ { $t ( 'organization.invite.defaultRoleAfterJoin' , { role : $t ( 'organization.role.viewer' ) } ) } }
< / div >
< template v-else >
< div class = "invite-preview-tip invite-preview-tip -warning" >
< t-icon name = "info-circle" size = "16px" / >
< span > { { $t ( 'organization.invite.requireApprovalTip' ) } } < / span >
< div class = "invite-preview-note invite-preview-note -warning" >
{ { $t ( 'organization.invite.requireApprovalTip' ) } }
< / div >
< div class = "invite-preview-form-group" >
< label class = "invite-preview-form-label" > { { $t ( 'organization.invite.requestRole' ) } } < / label >
@@ -443,9 +439,9 @@
< / div >
< div v-if = "invitePreviewData.is_already_member" class="invite-preview-status-section" >
< div class = "invite-preview-tip invite-preview-tip -success" >
< t-icon name = "check-circle" size = "18 px" / >
< span > { { $t ( 'organization.invite.alreadyMember' ) } } < / span >
< div class = "invite-preview-note invite-preview-note -success" >
< t-icon name = "check-circle" size = "16 px" / >
{ { $t ( 'organization.invite.alreadyMember' ) } }
< / div >
< / div >
< / div >
@@ -533,6 +529,9 @@ const searchQuery = ref('')
const searchableList = ref < SearchableOrganizationItem [ ] > ( [ ] )
const searchLoading = ref ( false )
let searchDebounceTimer : ReturnType < typeof setTimeout > | null = null
/ / 搜 索 结 果 缓 存 : 避 免 重 复 点 击 时 重 复 请 求 导 致 高 度 跳 动
const searchCache = ref < { query : string ; data : SearchableOrganizationItem [ ] ; timestamp : number } | null > ( null )
const CACHE _DURATION = 5 * 60 * 1000 / / 缓 存 5 分 钟
/ / T a b 内 容 容 器 r e f , 用 于 高 度 过 渡
const tabContentWrapperRef = ref < HTMLElement | null > ( null )
@@ -596,6 +595,7 @@ const handleOrganizationDialogEvent = ((event: CustomEvent<{ type: 'create' | 'j
joinStep . value = 'invite'
searchQuery . value = ''
searchableList . value = [ ]
/ / 注 意 : 不 清 空 缓 存 , 保 留 搜 索 结 果 以 便 下 次 快 速 显 示
showInvitePreview . value = true
}
} ) as EventListener
@@ -838,23 +838,66 @@ function closeInvitePreview() {
joinStep . value = 'invite'
searchQuery . value = ''
searchableList . value = [ ]
/ / 注 意 : 不 清 空 缓 存 , 保 留 搜 索 结 果 以 便 下 次 快 速 显 示
inviteRequestRole . value = 'viewer'
inviteRequestMessage . value = ''
router . replace ( { path : route . path , query : { } } )
}
/ / 处 理 搜 索 标 签 点 击 : 如 果 有 缓 存 , 先 显 示 缓 存 , 避 免 高 度 跳 动
function handleSearchTabClick ( ) {
joinStep . value = 'search'
/ / 检 查 是 否 有 有 效 的 缓 存
const currentQuery = searchQuery . value . trim ( )
if ( searchCache . value &&
searchCache . value . query === currentQuery &&
Date . now ( ) - searchCache . value . timestamp < CACHE _DURATION ) {
/ / 先 显 示 缓 存 结 果 ( 已 过 滤 已 加 入 空 间 ) , 避 免 高 度 跳 动
searchableList . value = searchCache . value . data
/ / 然 后 在 后 台 刷 新 ( 可 选 , 如 果 需 要 最 新 数 据 )
/ / d o S e a r c h S e a r c h a b l e ( )
} else {
/ / 没 有 缓 存 或 缓 存 过 期 , 执 行 搜 索
doSearchSearchable ( )
}
}
/ / 搜 索 可 加 入 空 间
async function doSearchSearchable ( ) {
const currentQuery = searchQuery . value . trim ( )
/ / 检 查 缓 存
if ( searchCache . value &&
searchCache . value . query === currentQuery &&
Date . now ( ) - searchCache . value . timestamp < CACHE _DURATION ) {
/ / 使 用 缓 存 ( 已 是 过 滤 后 的 列 表 ) , 不 重 新 请 求
searchableList . value = searchCache . value . data
return
}
searchLoading . value = true
try {
const res = await searchSearchableOrganizations ( searchQuery . value . trim ( ) , 20 )
const res = await searchSearchableOrganizations ( currentQuery , 20 )
if ( res . success && res . data ) {
searchableList . value = res . data . data || [ ]
const raw = res . data . data || [ ]
/ / 不 展 示 已 加 入 的 空 间
const data = raw . filter ( ( org : SearchableOrganizationItem ) => ! org . is _already _member )
searchableList . value = data
/ / 更 新 缓 存 ( 存 过 滤 后 的 列 表 )
searchCache . value = {
query : currentQuery ,
data : data ,
timestamp : Date . now ( )
}
} else {
searchableList . value = [ ]
/ / 清 空 缓 存
searchCache . value = null
}
} catch ( e ) {
searchableList . value = [ ]
searchCache . value = null
} finally {
searchLoading . value = false
}
@@ -865,6 +908,11 @@ function doSearchSearchableDebounced() {
searchDebounceTimer = setTimeout ( ( ) => doSearchSearchable ( ) , 300 )
}
/ / 空 间 是 否 已 满 ( 超 过 成 员 上 限 无 法 加 入 )
function isOrgFull ( org : SearchableOrganizationItem ) : boolean {
return org . member _limit > 0 && org . member _count >= org . member _limit
}
/ / 预 览 搜 索 到 的 空 间 ( 转 换 为 预 览 格 式 )
function previewSearchableOrg ( org : SearchableOrganizationItem ) {
/ / 将 S e a r c h a b l e O r g a n i z a t i o n I t e m 转 换 为 O r g a n i z a t i o n P r e v i e w 格 式
@@ -883,22 +931,16 @@ function previewSearchableOrg(org: SearchableOrganizationItem) {
inviteCode . value = ''
}
/ / 查 看 搜 索 到 的 空 间 ( 已 是 成 员 时 , 打 开 空 间 设 置 )
/ / 查 看 搜 索 到 的 空 间 ( 已 是 成 员 时 , 打 开 空 间 设 置 ; 不 关 闭 加 入 弹 窗 , 关 闭 设 置 后 仍 回 到 搜 索 )
function viewSearchableOrg ( org : SearchableOrganizationItem ) {
/ / 关 闭 加 入 弹 框
closeInvitePreview ( )
/ / 打 开 空 间 设 置 弹 框
settingsOrgId . value = org . id
settingsMode . value = 'edit'
showSettingsModal . value = true
}
/ / 从 预 览 弹 框 中 查 看 空 间 ( 已 是 成 员 时 )
/ / 从 预 览 弹 框 中 查 看 空 间 ( 已 是 成 员 时 ; 不 关 闭 加 入 弹 窗 , 关 闭 设 置 后 仍 回 到 搜 索 )
function viewOrganizationFromPreview ( ) {
if ( ! invitePreviewData . value ) return
/ / 关 闭 加 入 弹 框
closeInvitePreview ( )
/ / 打 开 空 间 设 置 弹 框
settingsOrgId . value = invitePreviewData . value . id
settingsMode . value = 'edit'
showSettingsModal . value = true
@@ -1618,12 +1660,9 @@ onUnmounted(() => {
max - width : 480 px ;
max - height : 90 vh ;
background : # ffffff ;
border - radius : 16 px ;
box - shadow :
0 0 0 1 px rgba ( 0 , 0 , 0 , 0.04 ) ,
0 4 px 6 px - 1 px rgba ( 15 , 23 , 42 , 0.06 ) ,
0 12 px 24 px - 4 px rgba ( 15 , 23 , 42 , 0.1 ) ,
0 24 px 48 px - 8 px rgba ( 15 , 23 , 42 , 0.12 ) ;
border - radius : 12 px ;
border : 1 px solid # e2e8f0 ;
box - shadow : 0 12 px 28 px rgba ( 15 , 23 , 42 , 0.12 ) ;
overflow : hidden ;
display : flex ;
flex - direction : column ;
@@ -1633,9 +1672,9 @@ onUnmounted(() => {
display : flex ;
align - items : center ;
justify - content : space - between ;
padding : 28 px 24 px 20 px ;
background : linear - gradient ( 180 deg , # fafbfc 0 % , # ffffff 100 % ) ;
border - bottom : 1 px solid rgba ( 0 , 0 , 0 , 0.06 ) ;
padding : 20 px 52 px 20 px 24 px ; /* 右侧为关闭按钮留空 */
background : # ffffff ;
border - bottom : 1 px solid # e2e8f0 ;
flex - shrink : 0 ;
}
@@ -1650,29 +1689,28 @@ onUnmounted(() => {
. invite - preview - close {
position : absolute ;
top : 20 px ;
right : 20 px ;
width : 36 px ;
height : 36 px ;
top : 16 px ;
right : 16 px ;
width : 32 px ;
height : 32 px ;
border : none ;
background : rgba ( 0 , 0 , 0 , 0.04 ) ;
border - radius : 10 px ;
background : transparent ;
border - radius : 8 px ;
cursor : pointer ;
display : flex ;
align - items : center ;
justify - content : center ;
color : # 64748 b ;
transition : background 0.2 s ease , color 0.2 s ease , transform 0.15 s ease ;
transition : background 0.2 s ease , color 0.2 s ease ;
z - index : 10 ;
& : hover {
background : rgba ( 0 , 0 , 0 , 0.08 ) ;
background : # f1f5f9 ;
color : # 0 f172a ;
transform : scale ( 1.02 ) ;
}
& : active {
transform : scale ( 0.98 ) ;
background : # e2e8f0 ;
}
}
@@ -1709,7 +1747,7 @@ onUnmounted(() => {
gap : 32 px ;
margin - bottom : 24 px ;
padding - bottom : 4 px ;
border - bottom : 1 px solid rgba ( 0 , 0 , 0 , 0.08 ) ;
border - bottom : 1 px solid # e2e8f0 ;
. join - tab {
padding : 10 px 0 ;
@@ -1760,12 +1798,13 @@ onUnmounted(() => {
. searchable - list - wrap {
max - height : 320 px ;
min - height : 120 px ; /* 设置最小高度,避免高度跳动 */
overflow - y : auto ;
margin - bottom : 20 px ;
border : 1 px solid rgba ( 0 , 0 , 0 , 0.06 ) ;
border : 1 px solid # e2e8f0 ;
border - radius : 12 px ;
background : # f8fafc ;
box - shadow : inset 0 1 px 2 px rgba ( 0 , 0 , 0 , 0.02 ) ;
background : # ffffff ;
box - shadow : none ;
& : : - webkit - scrollbar {
width : 6 px ;
@@ -1788,108 +1827,133 @@ onUnmounted(() => {
}
. searchable - empty {
padding : 48 px 20 px ;
display : flex ;
flex - direction : column ;
align - items : center ;
justify - content : center ;
padding : 32 px 20 px ;
min - height : 120 px ;
text - align : center ;
color : # 64748 b ;
font - size : 14 px ;
font - family : "PingFang SC" , - apple - system , sans - serif ;
line - height : 1.5 ;
. searchable - empty - icon {
font - size : 32 px ;
color : # cbd5e1 ;
margin - bottom : 12 px ;
opacity : 0.6 ;
}
. searchable - empty - text {
margin : 0 ;
color : # 94 a3b8 ;
font - size : 13 px ;
font - family : "PingFang SC" , - apple - system , sans - serif ;
line - height : 1.5 ;
max - width : 280 px ;
}
}
. searchable - list {
display : flex ;
flex - direction : column ;
gap : 0 ;
padding : 4 px ;
padding : 0 ;
. searchable - item {
display : flex ;
align - items : center ;
justify - content : space - between ;
gap : 14 px ;
padding : 14 px 16 px ;
margin - bottom : 4 px ;
border - radius : 10 px ;
background : # fff ;
border : 1 px solid transparent ;
transition : background 0.2 s ease , border - color 0.2 s ease , box - shadow 0.2 s ease ;
gap : 12 px ;
padding : 10 px 12 px ;
border - bottom : 1 px solid # e2e8f0 ;
background : # ffffff ;
transition : background 0.15 s ease ;
cursor : pointer ;
& : last - child {
margin - bottom : 0 ;
border - bottom : none ;
}
& : hover : not ( . is - already - member ) {
background : # fff ;
border - color : rgba ( 7 , 192 , 95 , 0.2 ) ;
box - shadow : 0 2 px 8 px rgba ( 7 , 192 , 95 , 0.06 ) ;
& : hover : not ( . is - full ) {
background : # f0fdf4 ;
}
& . is - already - member {
& . is - full {
cursor : default ;
opacity : 0.75 ;
background : # f8fafc ;
}
opacity : 0.85 ;
. searchable - item - left {
display : flex ;
align - items : center ;
gap : 14 px ;
flex : 1 ;
min - width : 0 ;
. searchable - item - name {
color : # 64748 b ;
}
}
. searchable - item - avatar {
flex - shrink : 0 ;
}
. searchable - item - info {
. searchable - item - main {
flex : 1 ;
min - width : 0 ;
display : flex ;
flex - direction : column ;
gap : 4 px ;
}
. searchable - item - name {
display : block ;
font - size : 14 px ;
font - weight : 600 ;
color : # 0 f172a ;
margin - bottom : 4 px ;
font - family : "PingFang SC" , - apple - system , sans - serif ;
. searchable - item - row1 {
display : flex ;
align - items : center ;
gap : 8 px ;
min - width : 0 ;
}
. searchable - item - name {
font - size : 14 px ;
font - weight : 500 ;
color : # 0 f172a ;
font - family : "PingFang SC" , - apple - system , sans - serif ;
flex : 1 ;
min - width : 0 ;
overflow : hidden ;
text - overflow : ellipsis ;
white - space : nowrap ;
}
. searchable - item - meta {
font - size : 12 px ;
color : # 94 a3b8 ;
font - family : "PingFang SC" , - apple - system , sans - serif ;
flex - shrink : 0 ;
white - space : nowrap ;
. searchable - item - approval {
margin - left : 4 px ;
color : # d97706 ;
}
. searchable - item - desc {
display : block ;
font - size : 13 px ;
color : # 64748 b ;
overflow : hidden ;
text - overflow : ellipsis ;
white - space : nowrap ;
margin - bottom : 8 px ;
font - family : "PingFang SC" , - apple - system , sans - serif ;
. searchable - item - full {
margin - left : 4 px ;
color : # 94 a3b8 ;
}
}
. searchable - item - badges {
display : flex ;
align - items : center ;
gap : 10 px ;
flex - wrap : wrap ;
. badge {
font - size : 12 px ;
color : # 64748 b ;
font - family : "PingFang SC" , - apple - system , sans - serif ;
padding : 2 px 8 px ;
background : rgba ( 0 , 0 , 0 , 0.04 ) ;
border - radius : 6 px ;
}
. approval - tag {
flex - shrink : 0 ;
}
}
. searchable - item - desc {
font - size : 12 px ;
color : # 64748 b ;
margin : 0 ;
line - height : 1.45 ;
font - family : "PingFang SC" , - apple - system , sans - serif ;
display : - webkit - box ;
- webkit - box - orient : vertical ;
- webkit - line - clamp : 2 ;
line - clamp : 2 ;
overflow : hidden ;
}
. searchable - item - action {
flex - shrink : 0 ;
. t - button {
padding : 4 px 8 px ;
font - size : 12 px ;
}
}
}
}
@@ -1973,26 +2037,22 @@ onUnmounted(() => {
}
}
/ / 预 览 内 容 区 域 - 空 间 信 息 卡 片
/ / 预 览 内 容 区 域 - 版 式 与 组 织 列 表 一 致
. invite - preview - body - preview {
padding - top : 20 px ;
padding : 24 px 24 px 0 ;
}
. invite - preview - org {
display : flex ;
align - items : flex - start ;
gap : 18 px ;
margin - bottom : 24 px ;
padding : 20 px ;
background : linear - gradient ( 145 deg , # f8fafc 0 % , # f1f5f9 100 % ) ;
border : 1 px solid rgba ( 0 , 0 , 0 , 0.05 ) ;
border - radius : 14 px ;
box - shadow : 0 1 px 3 px rgba ( 0 , 0 , 0 , 0.04 ) ;
gap : 16 px ;
padding - bottom : 20 px ;
margin - bottom : 20 px ;
border - bottom : 1 px solid # e2e8f0 ;
}
. invite - preview - org - icon {
flex - shrink : 0 ;
filter : drop - shadow ( 0 2 px 4 px rgba ( 0 , 0 , 0 , 0.06 ) ) ;
}
. invite - preview - org - info {
@@ -2001,142 +2061,98 @@ onUnmounted(() => {
}
. invite - preview - org - name {
font - size : 17 px ;
font - size : 18 px ;
font - weight : 600 ;
color : # 0 f172a ;
margin : 0 0 8 px ;
margin : 0 0 6 px ;
font - family : "PingFang SC" , - apple - system , sans - serif ;
line - height : 1.3 ;
letter - spacing : - 0.02 em ;
}
. invite - preview - org - id {
font - size : 12 px ;
color : # 94 a3b8 ;
margin : 0 0 6 px ;
font - family : "PingFang SC" , - apple - system , sans - serif ;
word - break : break - all ;
}
. invite - preview - org - desc {
font - size : 14 px ;
color : # 64748 b ;
margin : 0 0 8 px ;
line - height : 1.5 ;
font - family : "PingFang SC" , - apple - system , sans - serif ;
}
. invite - preview - org - meta {
font - size : 13 px ;
color : # 94 a3b8 ;
margin : 0 ;
line - height : 1.55 ;
font - family : "PingFang SC" , - apple - system , sans - serif ;
}
. invite - preview - stats {
display : flex ;
gap : 16 px ;
margin - bottom : 24 px ;
padding : 18 px 0 22 px ;
border - bottom : 1 px solid rgba ( 0 , 0 , 0 , 0.06 ) ;
}
. invite - preview - stat {
display : flex ;
align - items : center ;
gap : 10 px ;
padding : 10 px 16 px ;
background : rgba ( 7 , 192 , 95 , 0.06 ) ;
border : 1 px solid rgba ( 7 , 192 , 95 , 0.12 ) ;
border - radius : 10 px ;
font - size : 14 px ;
color : # 0 f172a ;
font - family : "PingFang SC" , - apple - system , sans - serif ;
transition : background 0.2 s ease , border - color 0.2 s ease ;
& : hover {
background : rgba ( 7 , 192 , 95 , 0.08 ) ;
border - color : rgba ( 7 , 192 , 95 , 0.18 ) ;
}
. invite - preview - stat - icon {
color : # 07 c05f ;
font - size : 18 px ;
flex - shrink : 0 ;
}
. invite - preview - stat - value {
font - weight : 600 ;
color : # 0 f172a ;
font - size : 15 px ;
}
. invite - preview - stat - label {
color : # 64748 b ;
font - weight : 500 ;
}
}
. invite - preview - join - section ,
. invite - preview - status - section {
margin - top : 24 px ;
margin - top : 0 ;
padding - bottom : 24 px ;
}
. invite - preview - approval - row {
. invite - preview - row {
display : flex ;
align - items : center ;
gap : 12 px ;
margin - bottom : 18 px ;
gap : 10 px ;
margin - bottom : 12 px ;
font - size : 14 px ;
font - family : "PingFang SC" , - apple - system , sans - serif ;
}
. invite - preview - approval - label {
color : # 475569 ;
flex - shrink : 0 ;
font - weight : 500 ;
. invite - preview - label {
color : # 64748 b ;
flex - shrink : 0 ;
}
. invite - preview - value {
font - weight : 500 ;
& . value - success {
color : # 059669 ;
}
. invite - preview - approval - badge {
display : inline - flex ;
align - items : center ;
padding : 6 px 12 px ;
border - radius : 8 px ;
font - size : 12 px ;
font - weight : 600 ;
& . need - approval {
background : rgba ( 250 , 173 , 20 , 0.12 ) ;
color : # b45309 ;
border : 1 px solid rgba ( 250 , 173 , 20 , 0.2 ) ;
}
& . no - approval {
background : rgba ( 7 , 192 , 95 , 0.1 ) ;
color : # 059669 ;
border : 1 px solid rgba ( 7 , 192 , 95 , 0.2 ) ;
}
& . value - warning {
color : # b45309 ;
}
}
. invite - preview - tip {
display : flex ;
align - items : flex - start ;
gap : 10 px ;
padding : 12 px 14 px ;
border - radius : 10 px ;
. invite - preview - note {
padding : 10 px 12 px ;
background : # f8fafc ;
border : 1 px solid # e2e8f0 ;
border - radius : 8 px ;
font - size : 13 px ;
line - height : 1.55 ;
color : # 64748 b ;
line - height : 1.5 ;
font - family : "PingFang SC" , - apple - system , sans - serif ;
margin - bottom : 18 px ;
border : 1 px solid transparent ;
margin - bottom : 16 px ;
. t - icon {
flex - shrink : 0 ;
margin - top : 1 px ;
& . invite - preview - note - warning {
background : # fffbeb ;
border - color : # fde68a ;
color : # b45309 ;
}
}
. invite - preview - tip - success {
background : rgba ( 7 , 192 , 95 , 0.08 ) ;
color : # 059669 ;
border - color : rgba ( 7 , 192 , 95 , 0.15 ) ;
}
& . invite - preview - note - success {
display : flex ;
align - items : center ;
gap : 8 px ;
background : # f0fdf4 ;
border - color : # bbf7d0 ;
color : # 059669 ;
. invite - preview - tip - warning {
background : rgba ( 250 , 173 , 20 , 0.08 ) ;
color : # b45309 ;
border - color : rgba ( 250 , 173 , 20 , 0.15 ) ;
}
. invite - preview - tip - info {
background : rgba ( 0 , 112 , 240 , 0.06 ) ;
color : # 0369 a1 ;
border - color : rgba ( 0 , 112 , 240 , 0.12 ) ;
. t - icon {
flex - shrink : 0 ;
}
}
}
. invite - preview - form - group {
@@ -2153,8 +2169,7 @@ onUnmounted(() => {
font - family : "PingFang SC" , - apple - system , sans - serif ;
font - size : 14 px ;
font - weight : 500 ;
color : # 475569 ;
letter - spacing : - 0.02 em ;
color : # 64748 b ;
}
. invite - preview - role - select {
@@ -2168,8 +2183,8 @@ onUnmounted(() => {
. invite - preview - footer {
padding : 20 px 24 px ;
border - top : 1 px solid rgba ( 0 , 0 , 0 , 0.06 ) ;
background : linear - gradient ( 0 deg , # fafbfc 0 % , # ffffff 100 % ) ;
border - top : 1 px solid # e2e8f0 ;
background : # f8fafc ;
display : flex ;
justify - content : flex - end ;
gap : 12 px ;