export interface Quantity { /** * 最大商品商量数量 */ maxValue: number; /** * 最小商品数量 */ minValue: number; /** * 增加商品增加的数量 */ step: number; /** * 提示新 * @example 最多可换 1 个 */ tips: string; /** * 标题 * @example 换货数量 */ title: string; /** * 当前的商品数量 */ value: number; } export interface SkuValue { /** * id */ id: string; /** * 展示文案 */ text: string; } export interface Sku { /** * id */ id: string; /** * 展示文案 */ text: string; /** * 可选择的值 */ values: SkuValue[]; } export interface FieldsType { /** * 标题 * @example 换货商品 */ title: string; /** * 选中的名称 * @example 请选择 */ value: string; /** * 选中的 skuId */ selectedSkuId: string; /** * 区域 id */ areaId: string; /** * 商品 id */ itemId: string; /** * 商品数量信息 */ quantity: Quantity; /** * 可以选择的 sku 信息 */ skuName: Sku[]; } /** * @title 换货商品 Sku 选择器 * @cloud * @page apply-exchange */ export interface ExchangeSkuSelectType { /** * 组件数据 */ fields: FieldsType; onChange: (changFields: Partial) => {}; }