feat: 优化 diy editor 样式

This commit is contained in:
xingyu4j
2025-11-05 14:09:38 +08:00
parent 769c56aeff
commit 57f39fbc90
12 changed files with 249 additions and 404 deletions

View File

@@ -1,7 +1,8 @@
<script lang="ts" setup>
import type { MallPointActivityApi } from '#/api/mall/promotion/point';
import type { RuleConfig } from '#/views/mall/product/spu/form';
import type { SpuProperty } from '#/views/mall/promotion/components/types';
// TODO @puhui999有问题
// import type { SpuProperty } from '#/views/mall/promotion/components/types';
import { computed, ref } from 'vue';
@@ -70,7 +71,9 @@ const ruleConfig: RuleConfig[] = [
]; // SKU 规则配置
const spuList = ref<any[]>([]); // 选择的 SPU 列表
const spuPropertyList = ref<SpuProperty<any>[]>([]); // SPU 属性列表
// TODO @puhui999有问题
// const spuPropertyList = ref<SpuProperty<any>[]>([]); // SPU 属性列表
const spuPropertyList = ref<any[]>([]); // SPU 属性列表
/** 打开商品选择器 */
// TODO @puhui999spuSkuSelectRef.value.open is not a function
@@ -123,7 +126,9 @@ async function getSpuDetails(
});
res.skus = selectSkus;
const spuProperties: SpuProperty[] = [];
// TODO @puhui999有问题
// const spuProperties: SpuProperty[] = [];
const spuProperties: any[] = [];
spuProperties.push({
spuId: res.id!,
spuDetail: res,