fix:【antd】【mall】优化修复 spu-and-sku-list 选择器
This commit is contained in:
@@ -25,7 +25,6 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
},
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
// TODO @puhui999:商品的选择:上面 spuId 可以选择了,下面的 skuId 打开后,没商品。
|
|
||||||
{
|
{
|
||||||
fieldName: 'skuId',
|
fieldName: 'skuId',
|
||||||
label: '商品规格',
|
label: '商品规格',
|
||||||
|
|||||||
@@ -45,13 +45,7 @@ const expandRowKeys = ref<string[]>([]); // 控制展开行需要设置 row-key
|
|||||||
function getSkuConfigs(extendedAttribute: string) {
|
function getSkuConfigs(extendedAttribute: string) {
|
||||||
// 验证 SKU 数据(如果有 ref 的话)
|
// 验证 SKU 数据(如果有 ref 的话)
|
||||||
if (skuListRef.value) {
|
if (skuListRef.value) {
|
||||||
// TODO @puhui999:这里有个 linter 错误;
|
skuListRef.value.validateSku();
|
||||||
try {
|
|
||||||
skuListRef.value.validateSku();
|
|
||||||
} catch (error) {
|
|
||||||
// 验证失败时抛出错误
|
|
||||||
throw error;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
const seckillProducts: unknown[] = [];
|
const seckillProducts: unknown[] = [];
|
||||||
spuPropertyList.value.forEach((item) => {
|
spuPropertyList.value.forEach((item) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user