mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
feat: 按钮组件新增add类型
This commit is contained in:
parent
ea48b948bf
commit
9705149b2b
1 changed files with 34 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ export default {
|
||||||
type: {
|
type: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'default',
|
default: 'default',
|
||||||
validator: (val) => ['default', 'confirm', 'delete'].includes(val)
|
validator: (val) => ['default', 'confirm', 'delete', 'add'].includes(val)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -122,4 +122,37 @@ export default {
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.custom-button--add {
|
||||||
|
width: fit-content;
|
||||||
|
background: #52c41a;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
&.el-button--small {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
&.el-button--medium {
|
||||||
|
padding: 12px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: white;
|
||||||
|
border-color: transparent;
|
||||||
|
box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.is-disabled,
|
||||||
|
&.is-disabled:hover {
|
||||||
|
background: linear-gradient(to right, #a0e89a, #c4f0c0);
|
||||||
|
color: rgba(255, 255, 255, 0.6);
|
||||||
|
border-color: transparent;
|
||||||
|
box-shadow: none;
|
||||||
|
transform: none;
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue