fix PackageConfig*.vue style
This commit is contained in:
@@ -67,6 +67,7 @@ import { getProductPhotoURL } from "@/utils/product";
|
||||
|
||||
interface Props {
|
||||
modelValue: { productId: string; productUnitId: string } | undefined;
|
||||
selectedProduct?: Product;
|
||||
label?: string;
|
||||
requiredMark?: boolean;
|
||||
placeholder?: string;
|
||||
@@ -82,7 +83,7 @@ const selectedText = computed(() => {
|
||||
if (!props.modelValue) {
|
||||
return "";
|
||||
}
|
||||
const product = productList.value.find(item => item.id === props.modelValue?.productId);
|
||||
const product = props.selectedProduct || productList.value.find(item => item.id === props.modelValue?.productId);
|
||||
return product?.name || "";
|
||||
});
|
||||
const filteredProductList = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user