5 changed files with 3033 additions and 2883 deletions
File diff suppressed because it is too large
@ -0,0 +1,50 @@ |
|||
<!-- |
|||
@ 作者: 秦东 |
|||
@ 时间: 2024-12-03 14:29:45 |
|||
@ 备注: 树型组件 |
|||
--> |
|||
<script lang="ts" setup> |
|||
import { stringToObj } from "@/utils/DesignForm/form"; |
|||
const props = withDefaults( |
|||
defineProps<{ |
|||
modelValue?: string; |
|||
disabled?: boolean; |
|||
action?: string; |
|||
name?: string; |
|||
fileList?: Object; |
|||
control?: Object; |
|||
config?: Object; |
|||
data?: Object; |
|||
options?: Object; |
|||
}>(), |
|||
{} |
|||
); |
|||
const emits = defineEmits<{ |
|||
(e: "update:modelValue", value: string): void; |
|||
}>(); |
|||
const value = computed({ |
|||
get: () => { |
|||
console.log("图片上传处理-112->", props.modelValue, stringToObj(props.modelValue)); |
|||
return stringToObj(props.modelValue); |
|||
}, |
|||
set: (newVal: any) => { |
|||
emits("update:modelValue", newVal); |
|||
return newVal; |
|||
}, |
|||
}); |
|||
const handleChange = () => {}; |
|||
const cascaderProps = { |
|||
label: "label", |
|||
value: "value", |
|||
children: "children", |
|||
}; |
|||
</script> |
|||
<template> |
|||
<el-tree-select |
|||
v-model="value" |
|||
:data="props.data" |
|||
clearable |
|||
:render-after-expand="false" |
|||
/> |
|||
</template> |
|||
<style lang="scss" scoped></style> |
|||
File diff suppressed because it is too large
Loading…
Reference in new issue