mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-16 08:38:48 +00:00
添加测试
This commit is contained in:
parent
105f2b5f58
commit
f1832c7831
@ -141,6 +141,29 @@ const Upsert = useUpsert({
|
|||||||
name: "cl-upload"
|
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 {
|
return {
|
||||||
@ -153,6 +176,14 @@ const Upsert = useUpsert({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "省市区",
|
||||||
|
prop: "pca",
|
||||||
|
group: "base",
|
||||||
|
component: {
|
||||||
|
name: "cl-distpicker"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: "年龄",
|
label: "年龄",
|
||||||
group: "base",
|
group: "base",
|
||||||
|
|||||||
@ -24,7 +24,10 @@ export default defineComponent({
|
|||||||
setup(props) {
|
setup(props) {
|
||||||
return () => {
|
return () => {
|
||||||
return (
|
return (
|
||||||
<el-cascader options={data} props={{ label: "name", value: "name", ...props }} />
|
<el-cascader
|
||||||
|
options={data}
|
||||||
|
props={{ label: "name", value: "name", ...props.props }}
|
||||||
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user