1 line
1.8 KiB
Plaintext
1 line
1.8 KiB
Plaintext
|
{"version":3,"file":"s-richtext-block.js","sources":["../../../../../../src/sheep/components/s-richtext-block/s-richtext-block.vue","../../../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL3NyYy9zaGVlcC9jb21wb25lbnRzL3MtcmljaHRleHQtYmxvY2svcy1yaWNodGV4dC1ibG9jay52dWU"],"sourcesContent":["<!-- 装修营销组件:营销文章 -->\r\n<template>\r\n <view\r\n :style=\"[\r\n {\r\n marginLeft: styles.marginLeft + 'px',\r\n marginRight: styles.marginRight + 'px',\r\n marginBottom: styles.marginBottom + 'px',\r\n marginTop: styles.marginTop + 'px',\r\n padding: styles.padding + 'px',\r\n },\r\n ]\"\r\n >\r\n <mp-html class=\"richtext\" :content=\"state.content\"></mp-html>\r\n </view>\r\n</template>\r\n<script setup>\r\nimport { reactive, onMounted } from 'vue'\r\nimport ArticleApi from '@/sheep/api/promotion/article'\r\n\r\nconst props = defineProps({\r\n data: {\r\n type: Object,\r\n default: {},\r\n },\r\n styles: {\r\n type: Object,\r\n default() {},\r\n },\r\n})\r\n\r\nconst state = reactive({\r\n content: '',\r\n})\r\n\r\nonMounted(async () => {\r\n const { data } = await ArticleApi.getArticle(props.data.id)\r\n state.content = data.content\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-richtext-block/s-richtext-block.vue'\nwx.createComponent(Component)"],"names":["reactive","onMounted","ArticleApi","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,UAAM,QAAQ;AAWd,UAAM,QAAQA,cAAAA,SAAS;AAAA,MACrB,SAAS;AAAA,IACX,CAAC;AAEDC,kBAAAA,UAAU,MAAY;AACpB,YAAM,EAAE,KAAI,IAAK,MAAMC,4BAAAA,WAAW,WAAW,MAAM,KAAK,EAAE;AAC1D,YAAM,UAAU,KAAK;AAAA,IACvB,EAAC;;;;;;;;;;;;;;;;;ACrCD,GAAG,gBAAgBC,SAAS;"}
|