uni-rate.js.map 13 KB

1
  1. {"version":3,"sources":["webpack:///G:/item/appBase/components/uni-rate/uni-rate.vue?73ec","webpack:///G:/item/appBase/components/uni-rate/uni-rate.vue?63f8","webpack:///G:/item/appBase/components/uni-rate/uni-rate.vue?3f1c","webpack:///G:/item/appBase/components/uni-rate/uni-rate.vue?b7f9","uni-app:///components/uni-rate/uni-rate.vue","webpack:///G:/item/appBase/components/uni-rate/uni-rate.vue?3ba4","webpack:///G:/item/appBase/components/uni-rate/uni-rate.vue?89d5"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiI;AACjI;AAC4D;AACL;AACsC;;;AAG7F;AAC2K;AAC3K,gBAAgB,oLAAU;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,aAAa,oPAEN;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;;;;;;;;;;;;;;ACjCA;AAAA;AAAA;AAAA;AAAgoB,CAAgB,qpBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACoBppB;AACA,iBADA;AAEA;AACA,sBADA,EAFA;;AAKA;AACA;AACA;AACA,6BAFA;AAGA,mBAHA,EADA;;AAMA;AACA;AACA,kBAFA;AAGA,wBAHA,EANA;;AAWA;AACA;AACA,kBAFA;AAGA,wBAHA,EAXA;;AAgBA;AACA;AACA,4BAFA;AAGA,iBAHA,EAhBA;;AAqBA;AACA;AACA,4BAFA;AAGA,gBAHA,EArBA;;AA0BA;AACA;AACA,4BAFA;AAGA,gBAHA,EA1BA;;AA+BA;AACA;AACA,4BAFA;AAGA,gBAHA,EA/BA;;AAoCA;AACA;AACA,6BAFA;AAGA,oBAHA,EApCA,EALA;;;AA+CA,MA/CA,kBA+CA;AACA;AACA,mBADA;;AAGA,GAnDA;AAoDA;AACA,SADA,mBACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BADA;;AAGA,SAJA,MAIA;AACA;AACA,yDADA;;AAGA,SAJA,MAIA;AACA;AACA,4BADA;;AAGA;AACA;AACA;AACA;AACA,KAzBA,EApDA;;AA+EA,SA/EA,qBA+EA;AACA;AACA,GAjFA;AAkFA;AACA,YADA,oBACA,KADA,EACA;AACA;AACA;AACA;AACA;AACA;AACA,6BADA;;AAGA,KATA,EAlFA,E;;;;;;;;;;;;ACpBA;AAAA;AAAA;AAAA;AAAkrC,CAAgB,mpCAAG,EAAC,C;;;;;;;;;;;ACAtsC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/uni-rate/uni-rate.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./uni-rate.vue?vue&type=template&id=b7a28ab8&scoped=true&\"\nvar renderjs\nimport script from \"./uni-rate.vue?vue&type=script&lang=js&\"\nexport * from \"./uni-rate.vue?vue&type=script&lang=js&\"\nimport style0 from \"./uni-rate.vue?vue&type=style&index=0&id=b7a28ab8&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\work\\\\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 \"b7a28ab8\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/uni-rate/uni-rate.vue\"\nexport default component.exports","export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./uni-rate.vue?vue&type=template&id=b7a28ab8&scoped=true&\"","var components\ntry {\n components = {\n uniIcons: function() {\n return import(\n /* webpackChunkName: \"components/uni-icons/uni-icons\" */ \"@/components/uni-icons/uni-icons.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}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./uni-rate.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./uni-rate.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"uni-rate\">\r\n\t\t<view :key=\"index\" :style=\"{ marginLeft: margin + 'px' }\" @click=\"_onClick(index)\" class=\"uni-rate__icon\" v-for=\"(star, index) in stars\">\r\n\t\t\t<uni-icons :color=\"color\" :size=\"size\" :type=\"isFill ? 'star-filled' : 'star'\" />\r\n\t\t\t<!-- #ifdef APP-NVUE -->\r\n\t\t\t<view :style=\"{ width: star.activeWitch.replace('%','')*size/100+'px'}\" class=\"uni-rate__icon-on\">\r\n\t\t\t\t<uni-icons style=\"text-align: left;\" :color=\"activeColor\" :size=\"size\" type=\"star-filled\" />\r\n\t\t\t</view>\r\n\t\t\t<!-- #endif -->\r\n\t\t\t<!-- #ifndef APP-NVUE -->\r\n\t\t\t<view :style=\"{ width: star.activeWitch,top:-size/2+'px' }\" class=\"uni-rate__icon-on\">\r\n\t\t\t\t<uni-icons :color=\"activeColor\" :size=\"size\" type=\"star-filled\" />\r\n\t\t\t</view>\r\n\t\t\t<!-- #endif -->\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport uniIcons from \"../uni-icons/uni-icons.vue\";\r\n\texport default {\r\n\t\tname: \"UniRate\",\r\n\t\tcomponents: {\r\n\t\t\tuniIcons\r\n\t\t},\r\n\t\tprops: {\r\n\t\t\tisFill: {\r\n\t\t\t\t// 星星的类型,是否镂空\r\n\t\t\t\ttype: [Boolean, String],\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\tcolor: {\r\n\t\t\t\t// 星星的颜色\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: \"#ececec\"\r\n\t\t\t},\r\n\t\t\tactiveColor: {\r\n\t\t\t\t// 星星选中状态颜色\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: \"#ffca3e\"\r\n\t\t\t},\r\n\t\t\tsize: {\r\n\t\t\t\t// 星星的大小\r\n\t\t\t\ttype: [Number, String],\r\n\t\t\t\tdefault: 24\r\n\t\t\t},\r\n\t\t\tvalue: {\r\n\t\t\t\t// 当前评分\r\n\t\t\t\ttype: [Number, String],\r\n\t\t\t\tdefault: 0\r\n\t\t\t},\r\n\t\t\tmax: {\r\n\t\t\t\t// 最大评分\r\n\t\t\t\ttype: [Number, String],\r\n\t\t\t\tdefault: 5\r\n\t\t\t},\r\n\t\t\tmargin: {\r\n\t\t\t\t// 星星的间距\r\n\t\t\t\ttype: [Number, String],\r\n\t\t\t\tdefault: 0\r\n\t\t\t},\r\n\t\t\tdisabled: {\r\n\t\t\t\t// 是否可点击\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\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tvalueSync: \"\"\r\n\t\t\t};\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\tstars() {\r\n\t\t\t\tconst value = this.valueSync ? this.valueSync : 0;\r\n\t\t\t\tconst starList = [];\r\n\t\t\t\tconst floorValue = Math.floor(value);\r\n\t\t\t\tconst ceilValue = Math.ceil(value);\r\n\t\t\t\t// console.log(\"ceilValue: \" + ceilValue);\r\n\t\t\t\t// console.log(\"floorValue: \" + floorValue);\r\n\t\t\t\tfor (let i = 0; i < this.max; i++) {\r\n\t\t\t\t\tif (floorValue > i) {\r\n\t\t\t\t\t\tstarList.push({\r\n\t\t\t\t\t\t\tactiveWitch: \"100%\"\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t} else if (ceilValue - 1 === i) {\r\n\t\t\t\t\t\tstarList.push({\r\n\t\t\t\t\t\t\tactiveWitch: (value - floorValue) * 100 + \"%\"\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tstarList.push({\r\n\t\t\t\t\t\t\tactiveWitch: \"0\"\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tconsole.log(\"starList[4]: \" + starList[4].activeWitch);\r\n\t\t\t\treturn starList;\r\n\t\t\t}\r\n\t\t},\r\n\t\tcreated() {\r\n\t\t\tthis.valueSync = Number(this.value);\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t_onClick(index) {\r\n\t\t\t\tif (this.disabled) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.valueSync = index + 1;\r\n\t\t\t\tthis.$emit(\"change\", {\r\n\t\t\t\t\tvalue: this.valueSync\r\n\t\t\t\t});\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.uni-rate {\r\n\t\t/* #ifndef APP-NVUE */\r\n\t\tdisplay: flex;\r\n\t\t/* #endif */\r\n\t\tline-height: 0;\r\n\t\tfont-size: 0;\r\n\t\tflex-direction: row;\r\n\t}\r\n\r\n\t.uni-rate__icon {\r\n\t\tposition: relative;\r\n\t\tline-height: 0;\r\n\t\tfont-size: 0;\r\n\t}\r\n\r\n\t.uni-rate__icon-on {\r\n\t\toverflow: hidden;\r\n\t\tposition: absolute;\r\n\t\ttop: 0;\r\n\t\tleft: 0;\r\n\t\tline-height: 1;\r\n\t\ttext-align: left;\r\n\t}\r\n</style>\r\n","import mod from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./uni-rate.vue?vue&type=style&index=0&id=b7a28ab8&lang=scss&scoped=true&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./uni-rate.vue?vue&type=style&index=0&id=b7a28ab8&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1618025084653\n var cssReload = require(\"D:/work/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":""}