添加测试

This commit is contained in:
icssoa 2023-05-15 14:32:09 +08:00
parent 105f2b5f58
commit f1832c7831
2 changed files with 35 additions and 1 deletions

View File

@ -141,6 +141,29 @@ const Upsert = useUpsert({
name: "cl-upload"
}
},
{
label: "账号",
group: "base",
prop: "account",
component: {
name: "el-input"
}
},
// mode
() => {
return {
label: "密码",
group: "base",
prop: "password",
hidden: Upsert.value?.mode == "update",
component: {
name: "el-input",
props: {
type: "password"
}
}
};
},
//
() => {
return {
@ -153,6 +176,14 @@ const Upsert = useUpsert({
}
};
},
{
label: "省市区",
prop: "pca",
group: "base",
component: {
name: "cl-distpicker"
}
},
{
label: "年龄",
group: "base",

View File

@ -24,7 +24,10 @@ export default defineComponent({
setup(props) {
return () => {
return (
<el-cascader options={data} props={{ label: "name", value: "name", ...props }} />
<el-cascader
options={data}
props={{ label: "name", value: "name", ...props.props }}
/>
);
};
}