acdr-ui/dist/dev/mp-weixin/modules/mall/goods/components/detail/detail-cell-sku.js.map

1 line
1.5 KiB
Plaintext
Raw Normal View History

2024-09-19 07:20:14 +08:00
{"version":3,"file":"detail-cell-sku.js","sources":["../../../../../../../../src/modules/mall/goods/components/detail/detail-cell-sku.vue","../../../../../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL3NyYy9tb2R1bGVzL21hbGwvZ29vZHMvY29tcG9uZW50cy9kZXRhaWwvZGV0YWlsLWNlbGwtc2t1LnZ1ZQ"],"sourcesContent":["<template>\r\n <!-- SKU 选择的提示框 -->\r\n <detail-cell label=\"选择\" :value=\"value\" />\r\n</template>\r\n\r\n<script setup>\r\nimport { computed } from 'vue'\r\nimport detailCell from './detail-cell.vue'\r\n\r\nconst props = defineProps({\r\n modelValue: {\r\n type: Array,\r\n default() {\r\n return []\r\n },\r\n },\r\n sku: {\r\n type: Object,\r\n },\r\n})\r\nconst value = computed(() => {\r\n if (!props.sku?.id) {\r\n return '请选择商品规格'\r\n }\r\n let str = ''\r\n props.sku.properties.forEach((property) => {\r\n str += property.propertyName + ':' + property.valueName + ' '\r\n })\r\n return str\r\n})\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n \r\n</style>\r\n","import Component from 'D:/App/Work/addr/acdr-ui/src/modules/mall/goods/components/detail/detail-cell-sku.vue'\nwx.createComponent(Component)"],"names":["computed","Component"],"mappings":";;;;;AAOA,MAAM,aAAa,MAAW;;;;;;;;;;;;;;;AAE9B,UAAM,QAAQ;AAWd,UAAM,QAAQA,cAAQ,SAAC,MAAM;;AAC3B,UAAI,GAAC,WAAM,QAAN,mBAAW,KAAI;AAClB,eAAO;AAAA,MACR;AACD,UAAI,MAAM;AACV,YAAM,IAAI,WAAW,QAAQ,CAAC,aAAa;AACzC,eAAO,SAAS,eAAe,MAAM,SAAS,YAAY;AAAA,MAC9D,CAAG;AACD,aAAO;AAAA,IACT,CAAC;;;;;;;;;;;AC5BD,GAAG,gBAAgBC,SAAS;"}