1 |
- {"version":3,"sources":["webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-card/tm-card.vue?40ff","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-card/tm-card.vue?e60d","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-card/tm-card.vue?c88d","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-card/tm-card.vue?79bf","uni-app:///tm-vuetify/components/tm-card/tm-card.vue"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAgI;AAChI;AAC2D;AACL;;;AAGtD;AACmM;AACnM,gBAAgB,0MAAU;AAC1B,EAAE,6EAAM;AACR,EAAE,8FAAM;AACR,EAAE,uGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,kGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,qRAEN;AACP,KAAK;AACL;AACA,aAAa,+NAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC5EA;AAAA;AAAA;AAAA;AAAowB,CAAgB,kwBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC8ExxB;AACA,iBADA;AAEA,oCAFA;AAGA;AACA;AACA,kBADA;AAEA,iBAFA,EADA;;AAKA;AACA,2BADA;AAEA,gBAFA,EALA;;AASA;AACA;AACA,2BADA;AAEA,gBAFA,EAVA;;AAcA;AACA,2BADA;AAEA,gBAFA,EAdA;;AAkBA;AACA,0BADA;AAEA,oDAFA,EAlBA;;;AAuBA;AACA,iBADA;AAEA,+CAFA,EAvBA;;AA2BA;AACA,2BADA;AAEA,gBAFA,EA3BA;;;AAgCA;AACA,4BADA;AAEA,mBAFA,EAhCA;;AAoCA;AACA,kBADA;AAEA,sBAFA,EApCA;;AAwCA;AACA,kBADA;AAEA,iBAFA,EAxCA;;AA4CA;AACA;AACA,kBADA;AAEA,iBAFA,EA7CA;;AAiDA;AACA;AACA,kBADA;AAEA,iBAFA,EAlDA;;AAsDA;AACA,kBADA;AAEA,kBAFA,EAtDA;;AA0DA;AACA,4BADA;AAEA,mBAFA,EA1DA;;AA8DA;AACA;AACA,kBADA;AAEA,iBAFA,EA/DA;;AAmEA;AACA,kBADA;AAEA,iBAFA,EAnEA;;AAuEA;AACA,4BADA;AAEA,mBAFA,EAvEA;;;AA4EA;AACA,kBADA;AAEA,sBAFA,EA5EA,EAHA;;;AAoFA;AACA;AACA;AACA;AACA,KAJA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAhBA,EApFA;;AAsGA,MAtGA,kBAsGA;AACA;AACA,GAxGA;AAyGA;AACA,eADA,uBACA,KADA,EACA;AACA;AACA,KAHA;AAIA,WAJA,mBAIA,CAJA,EAIA;AACA;AACA,KANA,EAzGA,E","file":"tm-vuetify/components/tm-card/tm-card.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./tm-card.vue?vue&type=template&id=30bd62d2&scoped=true&\"\nvar renderjs\nimport script from \"./tm-card.vue?vue&type=script&lang=js&\"\nexport * from \"./tm-card.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"30bd62d2\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"tm-vuetify/components/tm-card/tm-card.vue\"\nexport default component.exports","export * from \"-!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tm-card.vue?vue&type=template&id=30bd62d2&scoped=true&\"","var components\ntry {\n components = {\n tmImages: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-images/tm-images\" */ \"@/tm-vuetify/components/tm-images/tm-images.vue\"\n )\n },\n tmButton: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-button/tm-button\" */ \"@/tm-vuetify/components/tm-button/tm-button.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (_vm.$scope.data.scopedSlotsCompiler === \"augmented\") {\n _vm.$setScopedSlotsParams(\"img\", {\n text: {\n data: _vm.img\n }\n })\n _vm.$setScopedSlotsParams(\"subTitle\", {\n text: {\n data: _vm.subTitle\n }\n })\n _vm.$setScopedSlotsParams(\"statusText\", {\n text: {\n data: _vm.statusText\n }\n })\n _vm.$setScopedSlotsParams(\"title\", {\n text: {\n data: _vm.title\n }\n })\n _vm.$setScopedSlotsParams(\"subText\", {\n text: {\n data: _vm.subText\n }\n })\n _vm.$setScopedSlotsParams(\"content\", {\n text: {\n data: _vm.content\n }\n })\n _vm.$setScopedSlotsParams(\"action\", {\n action: {\n btn: _vm.action,\n color: _vm.btnColorToarrays\n }\n })\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tm-card.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tm-card.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view @click=\"onclick\" class=\"tm-card \" :class=\"['mx-32', 'my-24', black_tmeme ? 'grey-darken-5' : bgColor, `round-${round}`, `shadow-${bgColor}-${shadow}`]\">\r\n\t\t<view :class=\"['pa-24']\">\r\n\t\t\t<view :class=\"[img?'flex-start':'']\">\r\n\t\t\t\t<view v-if=\"img\" class=\"flex-shrink mr-24\">\r\n\t\t\t\t\t<slot name=\"img\" :text=\"{data:img}\">\r\n\t\t\t\t\t\t<tm-images :round=\"imgRound\" :width=\"90\" :src=\"img\"></tm-images>\r\n\t\t\t\t\t</slot>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"fulled\">\r\n\t\t\t\t\t<view class=\"subtitle_wk flex-between \">\r\n\t\t\t\t\t\t<view v-if=\"subTitle\" class=\"subtitle text-size-s text-grey\">\r\n\t\t\t\t\t\t\t<slot name=\"subTitle\" :text=\"{data:subTitle}\">{{ subTitle }}</slot>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"px-12\"></view>\r\n\t\t\t\t\t\t<view v-if=\"statusText\" class=\"substatus flex-shrink text px-12 py-6 text-size-xs round-6 text-weight-b\" :class=\"[black_tmeme ? 'bk' : '', statusColor]\">\r\n\t\t\t\t\t\t\t<slot name=\"statusText\" :text=\"{data:statusText}\">{{ statusText }}</slot>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view v-if=\"title\" :class=\"[`text-size-${titleSize}`]\" class=\" my-16 text-weight-b text-overflow-2\">\r\n\t\t\t\t\t\t<slot name=\"title\" :text=\"{data:title}\">{{ title }}</slot>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view v-if=\"subText\" class=\"text-size-s text-grey text-overflow-2\">\r\n\t\t\t\t\t\t<slot name=\"subText\" :text=\"{data:subText}\">{{ subText }}</slot>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\" py-24 flex-center\" v-if=\"titleBorder\">\r\n\t\t\t\t<view class=\"border-t-1 fulled\" :class=\"[black_tmeme?'bk':'']\"></view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"text-size-n \" :class=\"[black_tmeme ? 'bk' : '']\">\r\n\t\t\t\t<slot name=\"content\" :text=\"{data:content}\">\r\n\t\t\t\t\t<view selectable >{{ content }}</view>\r\n\t\t\t\t</slot>\r\n\t\t\t</view>\r\n\t\t\t<view class=\" py-24 flex-center\" v-if=\"actionBorder\">\r\n\t\t\t\t<view class=\"border-t-1 fulled\" :class=\"[black_tmeme?'bk':'']\"></view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"flex-end\" :class=\"[black_tmeme ? 'bk' : '']\" v-if=\"btnColorToarrays.length > 0\">\r\n\t\t\t\t<slot name=\"action\" :action=\"{ btn: action, color: btnColorToarrays }\">\r\n\t\t\t\t\t<view v-for=\"(item, index) in action\" @click.stop=\"actionClick(item, index)\" :key=\"index\" class=\"d-inline-block\">\r\n\t\t\t\t\t\t<tm-button :round=\"actionRound\" :theme=\"btnColorToarrays[index]\" :key=\"index\" :black=\"black_tmeme\" size=\"m\">\r\n\t\t\t\t\t\t\t{{ item }}\r\n\t\t\t\t\t\t</tm-button>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</slot>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\t/**\r\n\t * 卡片\r\n\t * @param {String} title-size= [xxs|s|n|g|lg|xl] 默认:g,对应的文本尺寸:xxs,xs,s,n,g,lg,xl\r\n\t * @param {String} img= [] 默认:'',头像图片地址。\r\n\t * @param {Number} imgRound= [] 默认:4,头像圆角\r\n\t * @param {Number} round= [] 默认:4,卡片圆角\r\n\t * @param {Number} shadow= [] 默认:4,卡片投影\r\n\t * @param {Array|String} btnColor= [] 默认:white,按钮颜色,可以是string,或者数组['white,'red']按钮组就会依次使用该颜色,如只是一颜色,第一个使用,后面的使用默认的white.\r\n\t * @param {Array} action= [] 默认:[],操作按钮组\r\n\t * @param {Number} action-round= [] 默认:2,操作按钮组的圆角,\r\n\t * @param {Boolean} action-border= [] 默认:true,是否显示操作按钮上方的边线\r\n\t * @param {String} status-color= [] 默认:black,卡片右上角状态文件的主题色\r\n\t * @param {String} status-text= [] 默认:'',卡片右上角状态文本\r\n\t * @param {String} sub-title= [] 默认:'',卡片左上角的卡片名称\r\n\t * @param {String} title= [] 默认:'',标题\r\n\t * @param {String} sub-text= [] 默认:'',副标题\r\n\t * @param {Boolean} title-border= [] 默认:true,标题下方的边线。\r\n\t * @param {String} content= [] 默认:'',卡片的正方内容\r\n\t * @param {Boolean} black= [] 默认:null,是否暗黑\r\n\t * @param {String} bg-color= [] 默认:'white',卡片的背景色\r\n\t * @param {Function} click 点击卡片触发的事件\r\n\t * @param {Function} action-click 点击按钮组触发的事件\r\n\t * @example <tm-card title=\"简单示例\" content=\"内容\" :action=\"['操作按钮']\"></tm-card>\r\n\t */\r\n\t\r\nimport tmButton from '@/tm-vuetify/components/tm-button/tm-button.vue';\r\nexport default {\r\n\tname: 'tm-card',\r\n\tcomponents: { tmButton },\r\n\tprops: {\r\n\t\timg:{\r\n\t\t\ttype:String,\r\n\t\t\tdefault:''\r\n\t\t},\r\n\t\timgRound:{\r\n\t\t\ttype:Number | String,\r\n\t\t\tdefault:4\r\n\t\t},\r\n\t\t//卡片的圆角\r\n\t\tround: {\r\n\t\t\ttype: Number | String,\r\n\t\t\tdefault: 4\r\n\t\t},\r\n\t\tshadow: {\r\n\t\t\ttype: Number | String,\r\n\t\t\tdefault: 4\r\n\t\t},\r\n\t\tbtnColor: {\r\n\t\t\ttype: Array | String,\r\n\t\t\tdefault: () => 'white'\r\n\t\t},\r\n\t\t\r\n\t\taction: {\r\n\t\t\ttype: Array,\r\n\t\t\tdefault: () => []\r\n\t\t},\r\n\t\tactionRound: {\r\n\t\t\ttype: Number | String,\r\n\t\t\tdefault: 2\r\n\t\t},\r\n\t\t\r\n\t\tactionBorder:{\r\n\t\t\ttype:Boolean|String,\r\n\t\t\tdefault:true\r\n\t\t},\r\n\t\tstatusColor: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'black'\r\n\t\t},\r\n\t\tstatusText: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\t//卡片名称\r\n\t\tsubTitle: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\t//标题\r\n\t\ttitle: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\ttitleSize: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'g'\r\n\t\t},\r\n\t\ttitleBorder:{\r\n\t\t\ttype:Boolean|String,\r\n\t\t\tdefault:true\r\n\t\t},\r\n\t\t//标题介绍\r\n\t\tsubText: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\tcontent: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\tblack: {\r\n\t\t\ttype: Boolean | String,\r\n\t\t\tdefault: null\r\n\t\t},\r\n\t\r\n\t\tbgColor: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'white'\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\tblack_tmeme: function() {\r\n\t\t\tif (this.black !== null) return this.black;\r\n\t\t\treturn this.$tm.vx.state().tmVuetify.black;\r\n\t\t},\r\n\t\tbtnColorToarrays: function() {\r\n\t\t\tlet al = this.action.length;\r\n\t\t\tif (this.action.length == 0 || !this.action) return [];\r\n\t\t\tlet colors = this.btnColor;\r\n\t\t\tcolors = Array.isArray(colors) ? colors : [colors];\r\n\t\t\tfor (let i = 0; i < al; i++) {\r\n\t\t\t\tif (!colors[i]) {\r\n\t\t\t\t\tcolors.push('white');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn colors;\r\n\t\t}\r\n\t},\r\n\tdata() {\r\n\t\treturn {};\r\n\t},\r\n\tmethods:{\r\n\t\tactionClick(index){\r\n\t\t\tthis.$emit('action-click',index);\r\n\t\t},\r\n\t\tonclick(e){\r\n\t\t\tthis.$emit('click',e);\r\n\t\t}\r\n\t}\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped></style>\r\n"],"sourceRoot":""}
|