Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
company_app
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
毛细亚
company_app
Commits
d375ad64
提交
d375ad64
authored
12月 08, 2025
作者:
施汉文
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
🌈
style: 修改复制样式
上级
fbf4ba82
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
17 行增加
和
9 行删除
+17
-9
copy.svg
src/assets/icon/svg/copy.svg
+2
-0
copy.js
src/directive/copy/copy.js
+5
-1
roleInfoPanel.vue
src/views/components/roleInfo/roleInfoPanel.vue
+10
-8
没有找到文件。
src/assets/icon/svg/copy.svg
0 → 100644
浏览文件 @
d375ad64
<svg
width=
"14"
height=
"14"
viewBox=
"0 0 14 14"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
><g
clip-path=
"url(#a)"
><mask
id=
"b"
style=
"mask-type:luminance"
maskUnits=
"userSpaceOnUse"
x=
"0"
y=
"0"
width=
"14"
height=
"14"
><path
d=
"M14 0H0v14h14z"
fill=
"#fff"
/></mask><g
mask=
"url(#b)"
stroke=
"#267ef0"
stroke-width=
".875"
stroke-linecap=
"round"
stroke-linejoin=
"round"
><path
d=
"M9.333 7.525v2.45c0 2.042-.816 2.858-2.858 2.858h-2.45c-2.042 0-2.858-.816-2.858-2.858v-2.45c0-2.042.816-2.858 2.858-2.858h2.45c2.042 0 2.858.816 2.858 2.858"
/><path
d=
"M12.833 4.025v2.45c0 2.042-.816 2.858-2.858 2.858h-.642V7.525c0-2.042-.816-2.858-2.858-2.858H4.667v-.642c0-2.042.816-2.858 2.858-2.858h2.45c2.042 0 2.858.816 2.858 2.858"
/></g></g><defs><clipPath
id=
"a"
><path
fill=
"#fff"
d=
"M0 0h14v14H0z"
/></clipPath></defs></svg>
\ No newline at end of file
src/directive/copy/copy.js
浏览文件 @
d375ad64
...
...
@@ -4,12 +4,16 @@ const copy = {
// 当被绑定的元素插入到DOM中时
inserted
:
function
(
el
,
binding
)
{
// 创建复制图标元素
const
copyIcon
=
document
.
createElement
(
'iconpark-icon'
)
// const copyIcon = document.createElement('iconpark-icon')
const
copyIcon
=
document
.
createElement
(
'div'
)
copyIcon
.
setAttribute
(
'icon-class'
,
'copy'
)
copyIcon
.
name
=
'icon-fuzhi'
copyIcon
.
style
.
cursor
=
'pointer'
copyIcon
.
style
.
marginLeft
=
'8px'
copyIcon
.
style
.
fontSize
=
'16px'
copyIcon
.
title
=
'点击复制'
copyIcon
.
innerHTML
=
'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><mask id="b" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="14" height="14"><path d="M14 0H0v14h14z" fill="#fff"/></mask><g mask="url(#b)" stroke="#267ef0" stroke-width=".875" stroke-linecap="round" stroke-linejoin="round"><path d="M9.333 7.525v2.45c0 2.042-.816 2.858-2.858 2.858h-2.45c-2.042 0-2.858-.816-2.858-2.858v-2.45c0-2.042.816-2.858 2.858-2.858h2.45c2.042 0 2.858.816 2.858 2.858"/><path d="M12.833 4.025v2.45c0 2.042-.816 2.858-2.858 2.858h-.642V7.525c0-2.042-.816-2.858-2.858-2.858H4.667v-.642c0-2.042.816-2.858 2.858-2.858h2.45c2.042 0 2.858.816 2.858 2.858"/></g></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h14v14H0z"/></clipPath></defs></svg>'
// 设置元素的position为relative,确保图标的absolute定位正确
if
(
getComputedStyle
(
el
).
position
===
'static'
)
{
...
...
src/views/components/roleInfo/roleInfoPanel.vue
浏览文件 @
d375ad64
...
...
@@ -30,7 +30,7 @@
<div
class=
"text-[#323335] text-[16px] font-medium group hover:text-[#409EFF]"
>
<span
<span
class=
"flex items-center"
>
{{
items
.
role_name
}}
<i
class=
"group-hover:visible invisible"
...
...
@@ -39,8 +39,8 @@
items.recharge_total || 0
}元`
"
>
</i
>
</span>
>
</i
>
</span>
</div>
<div
class=
"text-[#4E5969] text-[14px]"
>
<span>
区服:
</span><span>
{{
items
.
server_name
}}
</span>
...
...
@@ -297,13 +297,15 @@ export default {
},
async
handleChange
(
v
)
{
const
i
tem
=
this
.
roleList
.
find
(
const
i
ndex
=
this
.
roleList
.
findIndex
(
(
item
)
=>
v
.
includes
(
item
.
role_id
)
&&
!
item
.
server_day
);
if
(
item
)
{
const
res
=
await
getServerDayApi
({
role_id
:
item
.
role_id
});
item
.
server_day
=
res
.
data
.
data
?.
server_day
;
this
.
roleList
=
[...
this
.
roleList
,
item
];
if
(
index
!==
-
1
)
{
const
res
=
await
getServerDayApi
({
role_id
:
this
.
roleList
[
index
].
role_id
,
});
this
.
roleList
[
index
].
server_day
=
res
.
data
.
data
?.
server_day
;
this
.
roleList
=
[...
this
.
roleList
];
}
},
memberChange
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论