1 line
1.9 KiB
Plaintext
1 line
1.9 KiB
Plaintext
|
{"version":3,"file":"su-subline.js","sources":["../../../../../../src/sheep/ui/su-subline/su-subline.vue","../../../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL3NyYy9zaGVlcC91aS9zdS1zdWJsaW5lL3N1LXN1YmxpbmUudnVl"],"sourcesContent":["<template>\r\n <view class=\"wrap\" :style=\"{ height: `${height}px` }\">\r\n <view class=\"divider\" :style=\"[elStyle]\"></view>\r\n </view>\r\n</template>\r\n\r\n<script setup>\r\n/**\r\n * 分割线\r\n */\r\n\r\nimport { computed } from 'vue'\r\n\r\n// 接收参数\r\nconst props = defineProps({\r\n // 线条颜色\r\n lineColor: {\r\n type: String,\r\n default: '#000',\r\n },\r\n // 线条样式:'dotted', 'solid', 'double', 'dashed'\r\n borderType: {\r\n type: String,\r\n default: 'dashed',\r\n },\r\n // 线条宽度\r\n lineWidth: {\r\n type: Number,\r\n default: 1,\r\n },\r\n // 高度\r\n height: {\r\n type: [Number, String],\r\n default: 'auto',\r\n },\r\n // 左右边距:none - 无边距,horizontal - 左右留边\r\n paddingType: {\r\n type: String,\r\n default: 'none',\r\n },\r\n})\r\n\r\nconst elStyle = computed(() => {\r\n return {\r\n 'border-top-width': `${props.lineWidth}px`,\r\n 'border-top-color': props.lineColor,\r\n 'border-top-style': props.borderType,\r\n margin: props.paddingType === 'none' ? '0' : '0px 16px',\r\n }\r\n})\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n \r\n.wrap {\r\n display: flex;\r\n align-items: center;\r\n\r\n .divider {\r\n width: 100%;\r\n }\r\n}\r\n</style>\r\n","import Component from 'D:/App/Work/addr/acdr-ui/src/sheep/ui/su-subline/su-subline.vue'\nwx.createComponent(Component)"],"names":["computed"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,UAAM,QAAQ;AA4Bd,UAAM,UAAUA,cAAQ,SAAC,MAAM;AAC7B,aAAO;AAAA,QACL,oBAAoB,GAAG,MAAM,SAAS;AAAA,QACtC,oBAAoB,MAAM;AAAA,QAC1B,oBAAoB,MAAM;AAAA,QAC1B,QAAQ,MAAM,gBAAgB,SAAS,MAAM;AAAA,MAC9C;AAAA,IACH,CAAC;;;;;;;;;;AChDD,GAAG,gBAAgB,SAAS;"}
|