Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ChenSun1
vue-vben-admin
提交
f05b90f8
V
vue-vben-admin
项目概览
ChenSun1
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
f05b90f8
编写于
3月 30, 2023
作者:
ufo025174
提交者:
GitHub
3月 30, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(form-design): CollapseItem组件页面css添加prefixCls前缀, 防止打包后污染全局样式 (#2654)
Co-authored-by:
N
苗大
<
caoshengmiao@hypergryph.com
>
上级
1b30834e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
34 addition
and
28 deletion
+34
-28
src/views/form-design/components/VFormDesign/modules/CollapseItem.vue
...rm-design/components/VFormDesign/modules/CollapseItem.vue
+34
-28
未找到文件。
src/views/form-design/components/VFormDesign/modules/CollapseItem.vue
浏览文件 @
f05b90f8
<
template
>
<div>
<div
:class=
"prefixCls"
>
<draggable
tag=
"ul"
:model-value=
"list"
...
...
@@ -36,6 +36,7 @@
import
draggable
from
'
vuedraggable
'
;
// import { toRefs } from '@vueuse/core';
import
{
Icon
}
from
'
/@/components/Icon
'
;
import
{
useDesign
}
from
'
/@/hooks/web/useDesign
'
;
export
default
defineComponent
({
name
:
'
CollapseItem
'
,
...
...
@@ -51,6 +52,8 @@
},
},
setup
(
props
,
{
emit
})
{
const
{
prefixCls
}
=
useDesign
(
'
form-design-collapse-item
'
);
const
state
=
reactive
({});
const
handleStart
=
(
e
:
any
,
list1
:
IVFormComponent
[])
=>
{
emit
(
'
start
'
,
list1
[
e
.
oldIndex
].
component
);
...
...
@@ -63,44 +66,47 @@
const
cloneItem
=
(
one
)
=>
{
return
props
.
handleListPush
(
one
);
};
return
{
state
,
handleStart
,
handleAdd
,
cloneItem
};
return
{
prefixCls
,
state
,
handleStart
,
handleAdd
,
cloneItem
};
},
});
</
script
>
<
style
lang=
"less"
scoped
>
@prefix-cls: ~'@{namespace}-form-design-collapse-item';
@import url(../styles/variable.less);
ul {
padding: 5px;
list-style: none;
display: flex;
margin-bottom: 0;
flex-wrap: wrap;
// background: #efefef;
.@{prefix-cls} {
ul {
padding: 5px;
list-style: none;
display: flex;
margin-bottom: 0;
flex-wrap: wrap;
// background: #efefef;
li {
padding: 8px 12px;
transition: all 0.3s;
width: calc(50% - 6px);
margin: 2.7px;
height: 36px;
line-height: 20px;
cursor: move;
border: 1px solid @border-color;
border-radius: 3px;
li {
padding: 8px 12px;
transition: all 0.3s;
width: calc(50% - 6px);
margin: 2.7px;
height: 36px;
line-height: 20px;
cursor: move;
border: 1px solid @border-color;
border-radius: 3px;
&:hover {
color: @primary-color;
border: 1px solid @primary-color;
position: relative;
// z-index: 1;
box-shadow: 0 2px 6px @primary-color;
&:hover {
color: @primary-color;
border: 1px solid @primary-color;
position: relative;
// z-index: 1;
box-shadow: 0 2px 6px @primary-color;
}
}
}
}
svg {
display: inline !important;
svg {
display: inline !important;
}
}
</
style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录