diff --git a/apps/web-antd/src/components/description/description.vue b/apps/web-antd/src/components/description/description.vue index 3d341596e..d591e5722 100644 --- a/apps/web-antd/src/components/description/description.vue +++ b/apps/web-antd/src/components/description/description.vue @@ -133,9 +133,7 @@ export default defineComponent({ > {() => { if (item.slot) { - // TODO @xingyu:这里要 inline 掉么? - const slotContent = getSlot(slots, item.slot, data); - return slotContent; + return getSlot(slots, item.slot, data); } if (!contentMinWidth) { return getContent(); diff --git a/apps/web-antd/src/plugins/form-create/index.ts b/apps/web-antd/src/plugins/form-create/index.ts index d7b59b5b7..e13f1c1f7 100644 --- a/apps/web-antd/src/plugins/form-create/index.ts +++ b/apps/web-antd/src/plugins/form-create/index.ts @@ -96,7 +96,7 @@ export function setupFormCreate(app: App) { components.forEach((component) => { app.component(component.name as string, component); }); - // TODO @xingyu:这里为啥 app.component('AMessage', message); 看官方是没有的; + // TODO @xingyu:这里为啥 app.component('AMessage', message); 看官方是没有的; 需要额外引入 app.component('AMessage', message); formCreate.use(install); app.use(formCreate); diff --git a/apps/web-antd/src/views/mall/product/spu/form/data.ts b/apps/web-antd/src/views/mall/product/spu/form/data.ts index 3ca6e5c79..d2ff7eeb5 100644 --- a/apps/web-antd/src/views/mall/product/spu/form/data.ts +++ b/apps/web-antd/src/views/mall/product/spu/form/data.ts @@ -102,7 +102,6 @@ export function useInfoFormSchema(): VbenFormSchema[] { } /** 价格库存的表单 */ -// TODO @puhui999:貌似太宽了。。。屏幕小的,整个 table 展示补全哈~~ export function useSkuFormSchema( propertyList: any[] = [], isDetail: boolean = false, diff --git a/apps/web-antd/src/views/mall/product/spu/form/index.vue b/apps/web-antd/src/views/mall/product/spu/form/index.vue index 8e9144cca..78c5d6a4b 100644 --- a/apps/web-antd/src/views/mall/product/spu/form/index.vue +++ b/apps/web-antd/src/views/mall/product/spu/form/index.vue @@ -128,10 +128,6 @@ const [InfoForm, infoFormApi] = useVbenForm({ const [SkuForm, skuFormApi] = useVbenForm({ commonConfig: { - componentProps: { - class: 'w-full', - }, - formItemClass: 'col-span-2', labelWidth: 120, }, layout: 'horizontal', @@ -364,6 +360,7 @@ onMounted(async () => {