update
This commit is contained in:
@@ -13,7 +13,7 @@ const MaterialSourceRef = ref();
|
||||
const visible = ref(false);
|
||||
const targetList = reactive([]);
|
||||
const emits = defineEmits(['success']);
|
||||
const {id, material, disabled} = defineProps({
|
||||
const {id, material, disabled, hiddenMaterial} = defineProps({
|
||||
id: {
|
||||
type: Number,
|
||||
default: null,
|
||||
@@ -25,6 +25,10 @@ const {id, material, disabled} = defineProps({
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
hiddenMaterial: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
}
|
||||
});
|
||||
|
||||
@@ -112,7 +116,7 @@ const success = async () => {
|
||||
</UploadButton>
|
||||
</div>
|
||||
|
||||
<div class="mt-[20px]" v-if="!SystemStore.isRoot">
|
||||
<div class="mt-[20px]" v-if="!SystemStore.isRoot && !hiddenMaterial">
|
||||
<div class="text-[#1D2129] text-[14px] mb-[12px]">从素材库添加</div>
|
||||
<MaterialSource
|
||||
ref="MaterialSourceRef"
|
||||
|
||||
@@ -121,6 +121,7 @@ const update = async () => {
|
||||
:src="v">
|
||||
</x-image>
|
||||
<add-material
|
||||
:hiddenMaterial="true"
|
||||
@success="val => item.material = val"
|
||||
ref="AddMaterialRef"
|
||||
:id="task.task_id"
|
||||
|
||||
Reference in New Issue
Block a user