acdr-ui/dist/dev/mp-weixin/node-modules/wot-design-uni/components/wd-status-tip/wd-status-tip.js.map

1 line
4.0 KiB
Plaintext

{"version":3,"file":"wd-status-tip.js","sources":["../../../../../../../node_modules/wot-design-uni/components/wd-status-tip/wd-status-tip.vue","../../../../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL25vZGVfbW9kdWxlcy93b3QtZGVzaWduLXVuaS9jb21wb25lbnRzL3dkLXN0YXR1cy10aXAvd2Qtc3RhdHVzLXRpcC52dWU"],"sourcesContent":["<!--\n * @Author: weisheng\n * @Date: 2023-06-12 10:04:19\n * @LastEditTime: 2024-04-07 14:01:12\n * @LastEditors: weisheng\n * @Description: \n * @FilePath: \\wot-design-uni\\src\\uni_modules\\wot-design-uni\\components\\wd-status-tip\\wd-status-tip.vue\n * 记得注释\n-->\n<template>\n <view :class=\"`wd-status-tip ${customClass}`\" :style=\"customStyle\">\n <wd-img v-if=\"imgUrl\" :mode=\"imageMode\" :src=\"imgUrl\" custom-class=\"wd-status-tip__image\" :custom-style=\"imgStyle\"></wd-img>\n <view v-if=\"tip\" class=\"wd-status-tip__text\">{{ tip }}</view>\n </view>\n</template>\n\n<script lang=\"ts\">\nexport default {\n name: 'wd-status-tip',\n options: {\n addGlobalClass: true,\n virtualHost: true,\n styleIsolation: 'shared'\n }\n}\n</script>\n\n<script lang=\"ts\" setup>\nimport { computed, type CSSProperties } from 'vue'\nimport { addUnit, isDef, isObj, objToStyle } from '../common/util'\nimport { statusTipProps } from './types'\n\nconst props = defineProps(statusTipProps)\n\n// 图片地址\nconst imgUrl = computed(() => {\n // 改用网络地址,避免小程序打包的时候统一打包进去导致包过大问题\n let img: string = ''\n switch (props.image) {\n case 'collect':\n img = 'https://img.wot-design-uni.cn/wdu/collect.png'\n break\n case 'comment':\n img = 'https://img.wot-design-uni.cn/wdu/comment.png'\n break\n case 'content':\n img = 'https://img.wot-design-uni.cn/wdu/content.png'\n break\n case 'halo':\n img = 'https://img.wot-design-uni.cn/wdu/halo.png'\n break\n case 'message':\n img = 'https://img.wot-design-uni.cn/wdu/message.png'\n break\n case 'network':\n img = 'https://img.wot-design-uni.cn/wdu/network.png'\n break\n case 'search':\n img = 'https://img.wot-design-uni.cn/wdu/search.png'\n break\n default:\n img = props.image\n }\n return img\n})\n\n/**\n * 图片样式\n */\nconst imgStyle = computed(() => {\n let style: CSSProperties = {}\n if (props.imageSize) {\n if (isObj(props.imageSize)) {\n isDef(props.imageSize.height) && (style.height = addUnit(props.imageSize.height))\n isDef(props.imageSize.width) && (style.width = addUnit(props.imageSize.width))\n } else {\n style = {\n height: addUnit(props.imageSize),\n width: addUnit(props.imageSize)\n }\n }\n }\n return `${objToStyle(style)}`\n})\n</script>\n<style lang=\"scss\" scoped>\n@import './index.scss';\n</style>\n","import Component from 'D:/App/Work/addr/acdr-ui/node_modules/wot-design-uni/components/wd-status-tip/wd-status-tip.vue'\nwx.createComponent(Component)"],"names":["computed","isObj","isDef","addUnit","objToStyle"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,MAAA,cAAe;AAAA,EACb,MAAM;AAAA,EACN,SAAS;AAAA,IACP,gBAAgB;AAAA,IAChB,aAAa;AAAA,IACb,gBAAgB;AAAA,EAClB;AACF;;;;AAQA,UAAM,QAAQ;AAGR,UAAA,SAASA,cAAAA,SAAS,MAAM;AAE5B,UAAI,MAAc;AAClB,cAAQ,MAAM,OAAO;AAAA,QACnB,KAAK;AACG,gBAAA;AACN;AAAA,QACF,KAAK;AACG,gBAAA;AACN;AAAA,QACF,KAAK;AACG,gBAAA;AACN;AAAA,QACF,KAAK;AACG,gBAAA;AACN;AAAA,QACF,KAAK;AACG,gBAAA;AACN;AAAA,QACF,KAAK;AACG,gBAAA;AACN;AAAA,QACF,KAAK;AACG,gBAAA;AACN;AAAA,QACF;AACE,gBAAM,MAAM;AAAA,MAChB;AACO,aAAA;AAAA,IAAA,CACR;AAKK,UAAA,WAAWA,cAAAA,SAAS,MAAM;AAC9B,UAAI,QAAuB,CAAA;AAC3B,UAAI,MAAM,WAAW;AACf,YAAAC,cAAA,MAAM,MAAM,SAAS,GAAG;AACpBC,wBAAAA,MAAA,MAAM,UAAU,MAAM,MAAM,MAAM,SAASC,cAAAA,QAAQ,MAAM,UAAU,MAAM;AACzED,wBAAAA,MAAA,MAAM,UAAU,KAAK,MAAM,MAAM,QAAQC,cAAAA,QAAQ,MAAM,UAAU,KAAK;AAAA,QAAA,OACvE;AACG,kBAAA;AAAA,YACN,QAAQA,cAAAA,QAAQ,MAAM,SAAS;AAAA,YAC/B,OAAOA,cAAAA,QAAQ,MAAM,SAAS;AAAA,UAAA;AAAA,QAElC;AAAA,MACF;AACO,aAAA,GAAGC,cAAAA,WAAW,KAAK,CAAC;AAAA,IAAA,CAC5B;;;;;;;;;;;;;;;;;;;;;;;AClFD,GAAG,gBAAgB,SAAS;","x_google_ignoreList":[0]}