1 |
- {"version":3,"sources":["webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-icons/tm-icons.vue?ffd4","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-icons/tm-icons.vue?ac91","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-icons/tm-icons.vue?f0f3","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-icons/tm-icons.vue?b037","uni-app:///tm-vuetify/components/tm-icons/tm-icons.vue","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-icons/tm-icons.vue?005e","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-icons/tm-icons.vue?32c0"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiI;AACjI;AAC4D;AACL;AACsC;;;AAG7F;AACmM;AACnM,gBAAgB,0MAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,+FAAM;AACR,EAAE,wGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAqwB,CAAgB,mwBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC2CzxB;;;;;;;;;;AAUA;AACA;AACA;AACA;AACA,mBAFA;AAGA,oBAHA,EADA;;AAMA;AACA,mBADA;AAEA,mBAFA,EANA;;AAUA;AACA,kBADA,EACA;AACA,yBAFA,EAVA;;AAcA;AACA,kBADA,EACA;AACA,iBAFA,EAdA;;AAkBA;AACA,2BADA,EACA;AACA,iBAFA,EAlBA;;AAsBA;AACA,kBADA,EACA;AACA,wBAFA,EAtBA;;AA0BA;AACA;AACA,kBADA;AAEA,iBAFA,CAEA;AAFA,KA3BA;AA+BA;AACA;AACA,4BADA;AAEA,oBAFA,EAhCA,EADA;;;AAsCA;AACA;;;;;;;;;;;AAWA;AACA,KAbA;AAcA,kBAdA,4BAcA;AACA;AACA;AACA;;AAEA;AACA,KApBA;AAqBA;;AAEA;AACA,KAxBA;AAyBA;AACA;AACA,yBADA;AAEA,yCAFA;AAGA,0CAHA;AAIA,wCAJA;AAKA;AACA;AACA;AACA;AACA,KAnCA;AAoCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KA9CA;AA+CA;;AAEA;AACA,gBADA,EACA;AACA;AACA;AACA;AACA,KAtDA;AAuDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAPA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA,OAdA,EAvDA,EAtCA;;;AA8GA,MA9GA,kBA8GA;AACA;AACA,sBADA;;AAGA,GAlHA;AAmHA;AACA,WADA,mBACA,CADA,EACA;AACA;AACA,KAHA,EAnHA,E;;;;;;;;;;;;;ACrDA;AAAA;AAAA;AAAA;AAAw8C,CAAgB,83CAAG,EAAC,C;;;;;;;;;;;ACA59C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"tm-vuetify/components/tm-icons/tm-icons.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./tm-icons.vue?vue&type=template&id=7b090d4d&scoped=true&\"\nvar renderjs\nimport script from \"./tm-icons.vue?vue&type=script&lang=js&\"\nexport * from \"./tm-icons.vue?vue&type=script&lang=js&\"\nimport style0 from \"./tm-icons.vue?vue&type=style&index=0&id=7b090d4d&lang=scss&scoped=true&\"\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 \"7b090d4d\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"tm-vuetify/components/tm-icons/tm-icons.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-icons.vue?vue&type=template&id=7b090d4d&scoped=true&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\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-icons.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-icons.vue?vue&type=script&lang=js&\"","<template>\r\n\t<!-- 图标 -->\r\n\t<view @click=\"onclick\" v-if=\"name\" class=\"tm-icons vertical-align-top\" style=\"display: inline-block;font-size: 0;\" >\r\n\t\t<view class=\"flex-center \" :style=\"{\r\n\t\t\t\t\t\twidth: sizes,\r\n\t\t\t\t\t\theight: sizes,\r\n\t\t\t\t\t\tlineHeight:sizes,\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\">\r\n\t\t\t<block v-if=\"vtype == false\">\r\n\t\t\t\t<image :src=\"name\" :style=\"{\r\n\t\t\t\t\t\twidth: sizes,\r\n\t\t\t\t\t\theight: sizes\r\n\t\t\t\t\t}\" mode=\"scaleToFill\"></image>\r\n\t\t\t</block>\r\n\t\t\t<block v-if=\"vtype == true\">\r\n\t\t\t\t<!-- #ifdef APP-NVUE -->\r\n\t\t\t\t<text :style=\"{\r\n\t\t\t\t\t\tfontSize: sizes,\r\n\t\t\t\t\t\tfontFamily:'iconfontTM'\r\n\t\t\t\t\t}\" class=\"icons \"\r\n\t\t\t\t\t:class=\"[ black_tmeme ? colors+'-bk':colors, dense ? '' : 'pa-10', black ? 'opacity-6' : '']\">{{iconName}}</text>\r\n\t\t\t\t<!-- #endif -->\r\n\t\t\t\t\r\n\t\t\t\t<!-- #ifdef MP -->\r\n\t\t\t\t<text :style=\"{\r\n\t\t\t\t\t\tfontSize: sizes,\r\n\t\t\t\t\t}\" class=\"icons mt--4\"\r\n\t\t\t\t\t:class=\"[prefx_computed, black_tmeme ? 'bk' : '', iconName, colorTheme ? colors : '', dense ? '' : 'pa-10', black ? 'opacity-6' : '']\"></text>\r\n\t\t\t\t<!-- #endif -->\r\n\t\t\t\t<!-- #ifndef MP -->\r\n\t\t\t\t<text :style=\"{\r\n\t\t\t\t\t\tfontSize: sizes,\r\n\t\t\t\t\t}\" class=\"icons \"\r\n\t\t\t\t\t:class=\"[prefx_computed, black_tmeme ? 'bk' : '', iconName, colorTheme ? colors : '', dense ? '' : 'pa-10', black ? 'opacity-6' : '']\"></text>\r\n\t\t\t\t<!-- #endif -->\r\n\t\t\t\t\r\n\t\t\t</block>\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 * @property {Boolean} dense = [true|false] 默认false,是否去除边距\r\n\t * @property {String} prefx = [iconfont] 默认iconfont,默认图标的前缀,对自定义图标时有好处。\r\n\t * @property {String} name = [] 默认'',图标名称,注意不带前缀。\r\n\t * @property {String | Number} size = [] 默认28, 图标大小,单位是upx\r\n\t * @property {String} color = [primary] 默认primary, 图标主题颜色名\r\n\t * @property {Function} click 图标点击事件。\r\n\t * @example <tm-icons name='icon-clear'></tm-icons>\r\n\t */\r\n\texport default {\r\n\t\tprops: {\r\n\t\t\tdense: {\r\n\t\t\t\t//是否小边距\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\tblack: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: null\r\n\t\t\t},\r\n\t\t\tprefx: {\r\n\t\t\t\ttype: String, //前缀\r\n\t\t\t\tdefault: 'iconfont'\r\n\t\t\t},\r\n\t\t\tname: {\r\n\t\t\t\ttype: String, //图标名称。\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\tsize: {\r\n\t\t\t\ttype: String | Number, //图标名称。\r\n\t\t\t\tdefault: 28\r\n\t\t\t},\r\n\t\t\tcolor: {\r\n\t\t\t\ttype: String, //颜色名称或者颜色值。\r\n\t\t\t\tdefault: 'primary'\r\n\t\t\t},\r\n\t\t\t//强制转换图标类型,不通过内置判定,解决自己引用图片svg图标时当作字体图标的错误。\r\n\t\t\ticonType: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '' //img|icon\r\n\t\t\t},\r\n\t\t\t// 跟随主题色的改变而改变。\r\n\t\t\tfllowTheme: {\r\n\t\t\t\ttype: Boolean | String,\r\n\t\t\t\tdefault: false\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\ticonName: function() {\r\n\t\t\t\t// #ifdef APP-NVUE || APP-PLUS-NVUE\r\n\t\t\t\tlet fontList = require('@/tm-vuetify/scss/iconfonts/iconfont.json');\r\n\t\t\t\tlet name = this.name.replace('icon-', '');\r\n\t\t\t\t\r\n\t\t\t\t// fontList.glyphs\r\n\t\t\t\tlet itemIcon = fontList.glyphs.find((item, index) => {\r\n\t\t\t\t\treturn item.font_class == name;\r\n\t\t\t\t})\r\n\t\t\t\treturn eval('\"\\\\u' + itemIcon.unicode + '\"');\r\n\t\t\t\t// #endif\r\n\t\t\t\treturn this.name;\r\n\t\t\t},\r\n\t\t\tprefx_computed(){\r\n\t\t\t\tlet prefix = this.name.split('-')[0];\r\n\t\t\t\tif(prefix=='icon') return 'iconfont';\r\n\t\t\t\tif(prefix=='mdi') return 'mdi';\r\n\t\t\t\t\r\n\t\t\t\treturn prefix;\r\n\t\t\t},\r\n\t\t\tblack_tmeme: function() {\r\n\r\n\t\t\t\treturn this.$tm.vx.state().tmVuetify.black;\r\n\t\t\t},\r\n\t\t\tvtype: function() {\r\n\t\t\t\tif (this.name[0] == \".\" ||\r\n\t\t\t\t\tthis.name[0] == \"/\" ||\r\n\t\t\t\t\tthis.name.substring(0, 4) == 'http' ||\r\n\t\t\t\t\tthis.name.substring(0, 5) == 'https' ||\r\n\t\t\t\t\tthis.name.substring(0, 3) == 'ftp'\r\n\t\t\t\t) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t},\r\n\t\t\tsizes: function() {\r\n\t\t\t\tif (typeof this.size === 'string') {\r\n\t\t\t\t\tif (/[rpx|upx|rem|em|vx|vh|px]$/.test(this.size)) {\r\n\t\t\t\t\t\treturn this.size;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn uni.upx2px(parseInt(this.size)) + 'px';\r\n\t\t\t\t}\r\n\t\t\t\tif (typeof this.size === 'number' && !isNaN(this.size)) {\r\n\t\t\t\t\treturn uni.upx2px(this.size) + 'px';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcolor_tmeme: function() {\r\n\r\n\t\t\t\tif (this.$tm.vx.state().tmVuetify.color !== null && this.$tm.vx.state().tmVuetify.color && this\r\n\t\t\t\t\t.fllowTheme) {\r\n\t\t\t\t\treturn this.$tm.vx.state().tmVuetify.color;\r\n\t\t\t\t}\r\n\t\t\t\treturn this.color;\r\n\t\t\t},\r\n\t\t\tcolors: {\r\n\t\t\t\tget: function() {\r\n\t\t\t\t\tif (!this.color_tmeme) return 'text-primary';\r\n\t\t\t\t\tif (!this.$TestColor(this.color_tmeme)) {\r\n\t\t\t\t\t\treturn this.color_tmeme;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn 'text-' + this.color_tmeme;\r\n\t\t\t\t},\r\n\t\t\t\tset: function() {\r\n\t\t\t\t\tif (!this.$TestColor(this.color_tmeme)) {\r\n\t\t\t\t\t\tthis.colorTheme = false;\r\n\t\t\t\t\t\treturn this.color_tmeme;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.colorTheme = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tcolorTheme: true\r\n\t\t\t};\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tonclick(e) {\r\n\t\t\t\tthis.$emit('click', e);\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.tm-icons {\r\n\t\tvertical-align: middle;\r\n\r\n\t\t.icons {\r\n\t\t\t&.black {\r\n\t\t\t\tcolor: #fff;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</style>\r\n","import mod from \"-!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.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--8-oneOf-1-2!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../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-icons.vue?vue&type=style&index=0&id=7b090d4d&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.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--8-oneOf-1-2!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../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-icons.vue?vue&type=style&index=0&id=7b090d4d&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1678780470184\n var cssReload = require(\"D:/yzm/exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
|