提交 ba63fabc 编写于 作者: Q qq_63480508

Wed Mar 12 18:25:00 CST 2025 inscode

上级 608482e9
......@@ -25,7 +25,6 @@ export default {
setup() {
const materials = ref([]);
const newMaterial = ref({ name: '', quantity: '',text:'' });
const addMaterial = () => {
if (!newMaterial.value.name.trim()) {
alert('请输入耗材名称');
......@@ -49,7 +48,6 @@ export default {
const removeMaterial = (index) => {
materials.value.splice(index, 1);
};
return {
materials,
newMaterial,
......@@ -64,24 +62,19 @@ export default {
h1 {
margin-bottom: 20px;
}
form {
margin-bottom: 20px;
}
input {
margin-right: 10px;
}
ul {
list-style-type: none;
padding: 0;
}
li {
margin-bottom: 5px;
}
button {
margin-left: 10px;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册