mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 06:02:38 +08:00
优化字典模块
This commit is contained in:
parent
ce3d0a7e06
commit
66580ada12
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "front-next",
|
"name": "front-next",
|
||||||
"version": "5.6.0",
|
"version": "5.6.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite --host",
|
"dev": "vite --host",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
@ -91,11 +91,14 @@ function select(item: any) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 标记
|
// 编辑
|
||||||
function edit(item?: any) {
|
function edit(item?: any) {
|
||||||
Form.value?.open({
|
Form.value?.open({
|
||||||
title: item ? "编辑类型" : "添加类型",
|
title: item ? "编辑类型" : "添加类型",
|
||||||
width: "500px",
|
width: "500px",
|
||||||
|
props: {
|
||||||
|
labelWidth: "60px"
|
||||||
|
},
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
label: "名称",
|
label: "名称",
|
||||||
@ -230,11 +233,12 @@ onMounted(() => {
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
color: #666;
|
color: #666;
|
||||||
|
position: relative;
|
||||||
background-color: #f7f7f7;
|
background-color: #f7f7f7;
|
||||||
|
|
||||||
.el-icon {
|
.el-icon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 20px;
|
right: 10px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
|
@ -62,6 +62,12 @@ const title = computed(() => {
|
|||||||
|
|
||||||
// cl-upsert 配置
|
// cl-upsert 配置
|
||||||
const Upsert = useUpsert({
|
const Upsert = useUpsert({
|
||||||
|
dialog: {
|
||||||
|
width: "600px"
|
||||||
|
},
|
||||||
|
props: {
|
||||||
|
labelWidth: "60px"
|
||||||
|
},
|
||||||
items: [
|
items: [
|
||||||
{ label: "名称", prop: "name", required: true, component: { name: "el-input" } },
|
{ label: "名称", prop: "name", required: true, component: { name: "el-input" } },
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user