自定义级联多选优化
parent
03e29c9eb8
commit
fe92a49a9f
|
|
@ -7,7 +7,7 @@
|
|||
<template v-if="item.type == 'select'">
|
||||
<template v-if="+item?.config?.is_level == 1">
|
||||
<div class="flex-row gap-10">
|
||||
<el-cascader v-model="new_dataInterface[item.form_name]" :placeholder="placeholder_config(item, 'select')" :show-all-levels="false" filterable clearable class="w h" collapse-tags popper-class="filter-form-cascader" :placement="+item?.config?.is_level == 1 && props.direction == 'vertical' ? 'left' : 'bottom'" :props="{ 'expandTrigger': 'hover', 'multiple': +item?.config?.is_multiple == 1, 'checkStrictly': true, 'emitPath': false, 'value': item?.data_key || 'id', 'label': item?.data_name || 'name', 'children': item?.config?.children || '' }" :options="selectData(item)" />
|
||||
<el-cascader v-model="new_dataInterface[item.form_name]" :placeholder="placeholder_config(item, 'select')" :show-all-levels="false" filterable clearable class="w h" collapse-tags popper-class="filter-form-cascader" :placement="+item?.config?.is_level == 1 && props.direction == 'vertical' ? 'left' : 'bottom'" :props="{'multiple': +item?.config?.is_multiple == 1, 'checkStrictly': true, 'emitPath': false, 'value': item?.data_key || 'id', 'label': item?.data_name || 'name', 'children': item?.config?.children || '' }" :options="selectData(item)" />
|
||||
<template v-if="+item?.config?.is_multiple == 1">
|
||||
<el-tooltip effect="dark" :show-after="200" :hide-after="200" content="父级选中包含所有子级" raw-content placement="top">
|
||||
<icon name="miaosha-hdgz" size="12" color="#999"></icon>
|
||||
|
|
|
|||
|
|
@ -269,27 +269,27 @@ p {
|
|||
text-align: left;
|
||||
}
|
||||
|
||||
.filter-form-cascader {
|
||||
.el-checkbox,
|
||||
.el-radio {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 10;
|
||||
}
|
||||
// .filter-form-cascader {
|
||||
// .el-checkbox,
|
||||
// .el-radio {
|
||||
// width: 100%;
|
||||
// height: 100%;
|
||||
// position: absolute;
|
||||
// top: 0;
|
||||
// left: 0;
|
||||
// z-index: 10;
|
||||
// }
|
||||
|
||||
.el-cascader-node {
|
||||
padding-left: 34px;
|
||||
}
|
||||
// .el-cascader-node {
|
||||
// padding-left: 34px;
|
||||
// }
|
||||
|
||||
.el-checkbox__input,
|
||||
.el-radio__input {
|
||||
position: absolute;
|
||||
left: 20px;
|
||||
}
|
||||
}
|
||||
// .el-checkbox__input,
|
||||
// .el-radio__input {
|
||||
// position: absolute;
|
||||
// left: 20px;
|
||||
// }
|
||||
// }
|
||||
|
||||
.el-table .table-error-row {
|
||||
background: #FFEAEA !important;
|
||||
|
|
|
|||
Loading…
Reference in New Issue