Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7-Res
提交
5e1c2e15
提交
5e1c2e15
编写于
9月 10, 2020
作者:
Shine-zwj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
组件样式统一
上级
1a5b78ae
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
107 行增加
和
43 行删除
+107
-43
app-department-personnel.less
...ts/app-department-personnel/app-department-personnel.less
+51
-0
app-department-personnel.vue
...nts/app-department-personnel/app-department-personnel.vue
+2
-12
app-group-select.less
src/components/app-group-select/app-group-select.less
+50
-0
app-group-select.vue
src/components/app-group-select/app-group-select.vue
+4
-31
未找到文件。
src/components/app-department-personnel/app-department-personnel.less
0 → 100644
浏览文件 @
5e1c2e15
.app-department-personnel{
position: relative;
.ivu-select-selection{
position: relative;
padding: 0;
.ivu-select-selected-value{
padding-left: 15px;
font-size: 13px;
}
.ivu-tag.ivu-tag-checked{
top: 1px;
font-size: 12px;
height: 24px;
line-height: 22px;
margin: 2px 0px 2px 6px;
padding: 0 3px 0 8px;
background-color: #f4f4f5;
border-color: #e9e9eb;
color: #909399;
.ivu-tag-text{
padding: 0 8px 0 0;
}
}
.ivu-icon.ivu-icon-ios-close{
position: absolute;
width: 10px;
line-height: 10px;
height: 10px;
top: 6px;
margin-left: 8px;
font-size: 4px;
color: #909399;
background-color: #c0c4cc;
border-radius: 50%;
}
.ivu-icon.ivu-icon-ios-close:hover{
color: #fff;
background-color: #909399;
}
.ivu-icon-ios-close:before {
position: absolute;
left: -1px;
}
}
.el-icon-search{
position: absolute;
top: 10px;
right: 27px;
color: #c0c4cc;
}
}
\ No newline at end of file
src/components/app-department-personnel/app-department-personnel.vue
浏览文件 @
5e1c2e15
<
template
>
<div
class=
"app-department-personnel"
>
<i-select
:multiple=
"multiple"
:transfer=
"true"
transfer-class-name=
"app-department-personnel-select"
:value=
"selectsLabel"
:disabled=
"disabled"
:clearable=
"true"
@
on-open-change=
"onClick"
@
on-change=
"change"
>
<i-option
v-for=
"(item, index) in items"
:key=
"index"
:value=
"item.id"
:label=
"item.label"
>
{{
item
.
label
}}
</i-option>
<i-option
v-for=
"(item, index) in items"
:key=
"index"
:value=
"item.id"
:label=
"item.label"
></i-option>
</i-select>
<template>
<i
v-if=
"!disabled"
class=
"el-icon-search"
@
click=
"openView"
></i>
...
...
@@ -434,13 +432,5 @@ export default class AppDepartmentPersonnel extends Vue {
</
script
>
<
style
lang=
"less"
>
.app-department-personnel{
position: relative;
.el-icon-search{
position: absolute;
top: 10px;
right: 27px;
color: #c0c4cc;
}
}
@import './app-department-personnel.less';
</
style
>
\ No newline at end of file
src/components/app-group-select/app-group-select.less
0 → 100644
浏览文件 @
5e1c2e15
.ibiz-group-select {
width: 100%;
display: flex;
border: 1px solid #DCDFE6;
height: 32px;
border-radius: 4px;
.ibiz-group-content {
flex-grow: 1;
height: 32px;
.group-item-text{
padding-left: 15px;
font-size: 13px;
}
.ibiz-group-item {
display: inline-block;
border: 1px solid #bbb;
border-radius: 5px;
font-size: 12px;
height: 24px;
line-height: 22px;
margin: 2px 0px 2px 6px;
padding: 1px 3px 0 8px;
background-color: #f4f4f5;
border-color: #e9e9eb;
color: #909399;
.group-item-multiple{
margin: 0 8px 0 0;
}
.el-icon-close{
color: #909399;
background-color: #c0c4cc;
border-radius: 50%;
top: 0;
}
.el-icon-close:hover{
color: #fff;
background-color: #909399;
}
}
}
.ibiz-group-open {
display: flex;
text-align: center;
align-items: center;
padding: 0 5px;
}
}
.ibiz-group-select:hover {
border-color: #108cee;
}
\ No newline at end of file
src/components/app-group-select/app-group-select.vue
浏览文件 @
5e1c2e15
<
template
>
<div
class=
"ibiz-group-select"
>
<div
class=
"ibiz-group-content"
>
<span
v-if=
"!multiple"
>
<span
class=
"group-item-text"
v-if=
"!multiple"
>
{{
selectName
}}
</span>
<template
v-else
v-for=
"(select, index) of selects"
>
<div
:key=
"index"
class=
"ibiz-group-item"
>
{{
select
.
label
}}
<span
class=
"group-item-multiple"
>
{{
select
.
label
}}
</span>
<i
v-if=
"!disabled"
class=
"el-icon-close"
@
click=
"remove(select)"
></i>
</div>
</
template
>
</div>
<div
v-if=
"!disabled"
class=
"ibiz-group-open"
>
<i
v-if=
"!disabled && !multiple && selects.length > 0"
class=
"el-icon-close"
@
click=
"remove(selects[0])"
></i>
<i
class=
"el-icon-search"
@
click=
"openView"
></i>
<i
class=
"el-icon-search"
@
click=
"openView"
style=
"color: #c0c4cc;"
></i>
</div>
</div>
</template>
...
...
@@ -328,32 +328,5 @@ export default class AppGroupSelect extends Vue {
</
script
>
<
style
lang=
"less"
>
.ibiz-group-select {
width: 100%;
display: flex;
border: 1px solid #DCDFE6;
min-height: 32px;
border-radius: 4px;
.ibiz-group-content {
flex-grow: 1;
padding: 0 16px;
.ibiz-group-item {
display: inline-block;
border: 1px solid #bbb;
line-height: 24px;
border-radius: 5px;
margin-right: 5px;
padding: 0 5px;
}
}
.ibiz-group-open {
display: flex;
text-align: center;
align-items: center;
padding: 0 5px;
}
}
.ibiz-group-select:hover {
border-color: #108cee;
}
@import './app-group-select.less';
</
style
>
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录