1 line
3.1 KiB
Plaintext
1 line
3.1 KiB
Plaintext
{"version":3,"file":"s-block.js","sources":["../../../../../../src/sheep/components/s-block/s-block.vue","../../../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL3NyYy9zaGVlcC9jb21wb25lbnRzL3MtYmxvY2svcy1ibG9jay52dWU"],"sourcesContent":["<!-- 装修组件容器 -->\r\n<template>\r\n <view :style=\"[elStyles, elBackground]\"><slot /></view>\r\n</template>\r\n\r\n<script setup>\r\n/**\r\n * 容器组件 - 装修组件的样式容器\r\n */\r\nimport { computed, provide, unref } from 'vue'\r\nimport sheep from '@/sheep'\r\n\r\nconst props = defineProps({\r\n styles: {\r\n type: Object,\r\n default() {},\r\n },\r\n})\r\n\r\n// 组件样式\r\n\r\nconst elBackground = computed(() => {\r\n if (props.styles) {\r\n if (props.styles.bgType === 'color') return { background: props.styles.bgColor }\r\n if (props.styles.bgType === 'img')\r\n return {\r\n background: `url(${sheep.$url.cdn(props.styles.bgImage)}) no-repeat top center / 100% auto`,\r\n }\r\n }\r\n})\r\n\r\nconst elStyles = computed(() => {\r\n if (props.styles) {\r\n return {\r\n marginTop: `${props.styles.marginTop || 0}px`,\r\n marginBottom: `${props.styles.marginBottom || 0}px`,\r\n marginLeft: `${props.styles.marginLeft || 0}px`,\r\n marginRight: `${props.styles.marginRight || 0}px`,\r\n paddingTop: `${props.styles.paddingTop || 0}px`,\r\n paddingRight: `${props.styles.paddingRight || 0}px`,\r\n paddingBottom: `${props.styles.paddingBottom || 0}px`,\r\n paddingLeft: `${props.styles.paddingLeft || 0}px`,\r\n borderTopLeftRadius: `${props.styles.borderTopLeftRadius || 0}px`,\r\n borderTopRightRadius: `${props.styles.borderTopRightRadius || 0}px`,\r\n borderBottomRightRadius: `${props.styles.borderBottomRightRadius || 0}px`,\r\n borderBottomLeftRadius: `${props.styles.borderBottomLeftRadius || 0}px`,\r\n overflow: 'hidden',\r\n }\r\n }\r\n})\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n \r\n</style>\r\n","import Component from 'D:/App/Work/addr/acdr-ui/src/sheep/components/s-block/s-block.vue'\nwx.createComponent(Component)"],"names":["computed","sheep","Component"],"mappings":";;;;;;;;;;;;;AAYA,UAAM,QAAQ;AASd,UAAM,eAAeA,cAAQ,SAAC,MAAM;AAClC,UAAI,MAAM,QAAQ;AAChB,YAAI,MAAM,OAAO,WAAW;AAAS,iBAAO,EAAE,YAAY,MAAM,OAAO,QAAS;AAChF,YAAI,MAAM,OAAO,WAAW;AAC1B,iBAAO;AAAA,YACL,YAAY,OAAOC,YAAAA,MAAM,KAAK,IAAI,MAAM,OAAO,OAAO,CAAC;AAAA,UACxD;AAAA,MACJ;AAAA,IACH,CAAC;AAED,UAAM,WAAWD,cAAQ,SAAC,MAAM;AAC9B,UAAI,MAAM,QAAQ;AAChB,eAAO;AAAA,UACL,WAAW,GAAG,MAAM,OAAO,aAAa,CAAC;AAAA,UACzC,cAAc,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAAA,UAC/C,YAAY,GAAG,MAAM,OAAO,cAAc,CAAC;AAAA,UAC3C,aAAa,GAAG,MAAM,OAAO,eAAe,CAAC;AAAA,UAC7C,YAAY,GAAG,MAAM,OAAO,cAAc,CAAC;AAAA,UAC3C,cAAc,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAAA,UAC/C,eAAe,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAAA,UACjD,aAAa,GAAG,MAAM,OAAO,eAAe,CAAC;AAAA,UAC7C,qBAAqB,GAAG,MAAM,OAAO,uBAAuB,CAAC;AAAA,UAC7D,sBAAsB,GAAG,MAAM,OAAO,wBAAwB,CAAC;AAAA,UAC/D,yBAAyB,GAAG,MAAM,OAAO,2BAA2B,CAAC;AAAA,UACrE,wBAAwB,GAAG,MAAM,OAAO,0BAA0B,CAAC;AAAA,UACnE,UAAU;AAAA,QACX;AAAA,MACF;AAAA,IACH,CAAC;;;;;;;;;AChDD,GAAG,gBAAgBE,SAAS;"} |