mirror of
https://github.com/certd/certd.git
synced 2026-05-15 20:47:31 +08:00
perf: 增加系统设置,可以关闭自助注册功能
This commit is contained in:
@@ -65,6 +65,7 @@ export default defineComponent({
|
||||
//处理过,无需再次处理
|
||||
return;
|
||||
}
|
||||
value.class="is-twig"
|
||||
if (value.children != null && value.children.length > 0) {
|
||||
return;
|
||||
}
|
||||
@@ -82,8 +83,13 @@ export default defineComponent({
|
||||
}
|
||||
// 所有的子节点都没有children
|
||||
parent.class = "is-twig"; // 连接叶子节点的末梢枝杈节点
|
||||
let i = 0
|
||||
for (const child of parent.children) {
|
||||
child.class = "is-leaf";
|
||||
if(i !== 0){
|
||||
child.class += " leaf-after";
|
||||
}
|
||||
i++
|
||||
}
|
||||
});
|
||||
return [
|
||||
@@ -129,21 +135,40 @@ export default defineComponent({
|
||||
|
||||
<style lang="less">
|
||||
.fs-permission-tree {
|
||||
.is-twig ul {
|
||||
display: flex;
|
||||
|
||||
.ant-tree-list-holder-inner{
|
||||
flex-direction: row !important;
|
||||
flex-wrap: wrap;
|
||||
.is-twig{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.is-leaf {
|
||||
border-bottom: 1px solid #ddd;
|
||||
padding: 5px;
|
||||
//border-bottom: 1px solid #ddd;
|
||||
&::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.leaf-after{
|
||||
.ant-tree-indent-unit{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.node-title-pane {
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
//.is-twig ul {
|
||||
// display: flex;
|
||||
// flex-wrap: wrap;
|
||||
//}
|
||||
.node-title-pane {
|
||||
display: flex;
|
||||
.node-title {
|
||||
width: 80px;
|
||||
width: 110px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
<fs-crud ref="crudRef" v-bind="crudBinding">
|
||||
<a-button v-permission="'sys:auth:per:add'" style="margin-left: 20px" @click="addHandle({})">
|
||||
<fs-icon :icon="ui.icons.add"></fs-icon>
|
||||
添加</a-button
|
||||
>
|
||||
<fs-permission-tree class="permission-tree" :tree="crudBinding.data" :checkable="false" :actions="permission" @add="addHandle" @edit="editHandle" @remove="removeHandle"></fs-permission-tree>
|
||||
添加
|
||||
</a-button>
|
||||
<fs-permission-tree class="permission-tree mt-10" :tree="crudBinding.data" :checkable="false" :actions="permission" @add="addHandle" @edit="editHandle" @remove="removeHandle"></fs-permission-tree>
|
||||
</fs-crud>
|
||||
</fs-page>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user