sku 商品规格编辑组件
组合使用
html
<ml-sku-spec v-model="specification" :limit="1" />
<ml-SkuTable v-model="skus" :specification.sync="specification" :showProductNo="true" :showProductCost="true" :showEnable="true"></ml-SkuTable>j-sku-spec 属性
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| value | 规格集合 | Array | [] |
| limit | 最多可添加规格数 | Number | 10 |
| disabled | 是否禁用 | boolean | false |
j-sku-spec 函数
| 参数 | 说明 | 返回值 |
|---|---|---|
| verify | 验证名称是否为空,可选值数量是否为0 | Bool |
j-sku-table 属性
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| value | sku 集合 | Array | [] |
| specification | 规格集合 | Array | [] |
| showProductStock | 是否显示库存 | bool | true |
| showProductNo | 是否显示商品编码 | bool | true |
| showProductCost | 是否显示成本价 | bool | true |
| isShowCode | 是否显示sku代码(开发阶段) | bool | true |
| showEnable | 是否显示启用控制按钮 | bool | true |
| defaultPrice | 规格默认价格 | Number | 1 |
| disabled | 是否禁用 | boolean | false |
