/* * Copyright (c) 2018-2025, lengleng All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * Neither the name of the pig4cloud.com developer nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * Author: lengleng (wangiegie@gmail.com) */ import iconList from '@/const/iconList' export const tableOption = { tip: false, dialogWidth: "60%", tree: true, border: true, index: true, viewBtn: true, align: 'center', column: [ { label: "菜单名称", prop: "name", width: 180, rules: [ { required: true, message: "请输入菜单名称", trigger: "blur" } ] }, { label: "路由路径", prop: "path", width: 180, overHidden: true, rules: [ { required: true, message: "请输入路由地址", trigger: "blur" } ] }, { label: "上级菜单", prop: "parentId", type: "tree", dicUrl: "/admin/menu/tree", hide: true, props: { label: "name", value: "id" }, rules: [ { required: false, message: "请选择上级菜单", trigger: "click" } ] }, { label: "图标", prop: "icon", type: "icon-select", slot: true, iconList: iconList, rules: [ { required: true, message: "请输入图标", trigger: "click" } ] }, { label: "类型", prop: "type", type: "radio", slot: true, valueFormat: "string", dicData: [ { label: "菜单", value: "0" }, { label: "按钮", value: "1" } ], rules: [ { required: true, message: "请选择菜单类型", trigger: "blur" } ] }, { label: "权限标识", prop: "code", rules: [ { message: "菜单类型可不填", trigger: "blur" } ] }, { label: "排序", prop: "sort", type: "number", rules: [ { required: true, message: "请输入菜单排序", trigger: "blur" } ] } ] }