1 |
- {"version":3,"sources":["webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-rate/u-rate.vue?0ee1","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-rate/u-rate.vue?9780","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-rate/u-rate.vue?48ec","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-rate/u-rate.vue?1ea9","uni-app:///uview-ui/components/u-rate/u-rate.vue","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-rate/u-rate.vue?f1c0","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-rate/u-rate.vue?ccb6"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA+H;AAC/H;AAC0D;AACL;AACsC;;;AAG3F;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,6FAAM;AACR,EAAE,sGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,iGAAU;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,uMAEN;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACxDA;AAAA;AAAA;AAAA;AAAgmB,CAAgB,0nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACmBpnB;;;;;;;;;;;;;;;;;;;AAmBA;AACA,gBADA;AAEA;AACA;AACA;AACA;AACA,4BADA;AAEA,iBAFA,EAHA;;AAOA;AACA;AACA,4BADA;AAEA,gBAFA,EARA;;AAYA;AACA;AACA;AACA,4BADA;AAEA,gBAFA,EAdA;;AAkBA;AACA;AACA,mBADA;AAEA,oBAFA,EAnBA;;AAuBA;AACA;AACA,4BADA;AAEA,iBAFA,EAxBA;;AA4BA;AACA;AACA,kBADA;AAEA,wBAFA,EA7BA;;AAiCA;AACA;AACA,kBADA;AAEA,wBAFA,EAlCA;;AAsCA;AACA;AACA,4BADA;AAEA,iBAFA,EAvCA;;AA2CA;AACA;AACA,4BADA;AAEA,gBAFA,EA5CA;;AAgDA;AACA;AACA,mBADA;AAEA,oBAFA,EAjDA;;AAqDA;AACA;AACA,kBADA;AAEA,0BAFA,EAtDA;;AA0DA;AACA;AACA,kBADA;AAEA,qBAFA,EA3DA;;AA+DA;AACA;AACA,kBADA;AAEA,sBAFA,EAhEA;;AAoEA;AACA,iBADA;AAEA,aAFA,sBAEA;AACA;AACA,OAJA,EApEA;;AA0EA;AACA,iBADA;AAEA,aAFA,sBAEA;AACA;AACA,OAJA,EA1EA,EAFA;;;AAmFA,MAnFA,kBAmFA;AACA;AACA;AACA,0BAFA;AAGA,6BAHA;AAIA,oBAJA,EAIA;AACA;AACA,+DANA;AAOA,kBAPA,EAOA;AACA,sBARA,CAQA;AARA;AAUA,GA9FA;AA+FA;AACA,WADA,mBACA,GADA,EACA;AACA;AACA,KAHA;AAIA,SAJA,iBAIA,GAJA,EAIA;AACA;AACA,KANA,EA/FA;;AAuGA;AACA,WADA,qBACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA,KAPA;AAQA,gBARA,0BAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KApBA;AAqBA,iBArBA,2BAqBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAhCA,EAvGA;;AAyIA;AACA;AACA,iBAFA,2BAEA;AACA;AACA;AACA;AACA,OAFA;AAGA,KAPA;AAQA;AACA,oBATA,8BASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OANA;AAOA,KAlBA;AAmBA;AACA,aApBA,qBAoBA,CApBA,EAoBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAzCA;AA0CA;AACA,SA3CA,iBA2CA,KA3CA,EA2CA,CA3CA,EA2CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAFA,MAEA;AACA;AACA;AACA,OANA,MAMA;AACA;AACA;AACA;AACA;AACA;AACA,KA/DA;AAgEA;AACA,aAjEA,uBAiEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAxEA;AAyEA,mBAzEA,2BAyEA,KAzEA,EAyEA;AACA;AACA,KA3EA,EAzIA;;AAsNA,SAtNA,qBAsNA;AACA;AACA;AACA,GAzNA,E;;;;;;;;;;;;ACtCA;AAAA;AAAA;AAAA;AAA0nC,CAAgB,omCAAG,EAAC,C;;;;;;;;;;;ACA9oC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"uview-ui/components/u-rate/u-rate.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./u-rate.vue?vue&type=template&id=533abf00&scoped=true&\"\nvar renderjs\nimport script from \"./u-rate.vue?vue&type=script&lang=js&\"\nexport * from \"./u-rate.vue?vue&type=script&lang=js&\"\nimport style0 from \"./u-rate.vue?vue&type=style&index=0&id=533abf00&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!E:\\\\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 \"533abf00\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"uview-ui/components/u-rate/u-rate.vue\"\nexport default component.exports","export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./u-rate.vue?vue&type=template&id=533abf00&scoped=true&\"","var components\ntry {\n components = {\n uIcon: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-icon/u-icon\" */ \"@/uview-ui/components/u-icon/u-icon.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 var l0 = _vm.__map(_vm.count, function(item, index) {\n var $orig = _vm.__get_orig(item)\n\n var a0 = {\n fontSize: _vm.size + \"rpx\",\n padding: \"0 \" + (_vm.gutter / 2 + \"rpx\")\n }\n var m0 = _vm.showDecimalIcon(index)\n return {\n $orig: $orig,\n a0: a0,\n m0: m0\n }\n })\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l0: l0\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./u-rate.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./u-rate.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"u-rate\" :id=\"elId\" @touchmove.stop.prevent=\"touchMove\">\r\n\t\t<view class=\"u-star-wrap\" v-for=\"(item, index) in count\" :key=\"index\" :class=\"[elClass]\">\r\n\t\t\t<u-icon\r\n\t\t\t\t:name=\"activeIndex > index ? elActiveIcon : inactiveIcon\"\r\n\t\t\t\t@click=\"click(index + 1, $event)\"\r\n\t\t\t\t:color=\"activeIndex > index ? elActiveColor : inactiveColor\"\r\n\t\t\t\t:custom-style=\"{\r\n\t\t\t\t\tfontSize: size + 'rpx',\r\n\t\t\t\t\tpadding: `0 ${gutter / 2 + 'rpx'}`\r\n\t\t\t\t}\"\r\n\t\t\t\t:custom-prefix=\"customPrefix\"\r\n\t\t\t\t:show-decimal-icon=\"showDecimalIcon(index)\"\r\n\t\t\t\t:percent=\"decimal\"\r\n\t\t\t></u-icon>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>/**\r\n * rate 评分\r\n * @description 该组件一般用于满意度调查,星型评分的场景\r\n * @tutorial https://www.uviewui.com/components/rate.html\r\n * @property {String Number} count 最多可选的星星数量(默认5)\r\n * @property {String Number} current 默认选中的星星数量(默认0)\r\n * @property {Boolean} disabled 是否禁止用户操作(默认false)\r\n * @property {String Number} size 星星的大小,单位rpx(默认32)\r\n * @property {String} inactive-color 未选中星星的颜色(默认#b2b2b2)\r\n * @property {String} active-color 选中的星星颜色(默认#FA3534)\r\n * @property {String} active-icon 选中时的图标名,只能为uView的内置图标(默认star-fill)\r\n * @property {String} inactive-icon 未选中时的图标名,只能为uView的内置图标(默认star)\r\n * @property {String} gutter 星星之间的距离(默认10)\r\n * @property {String Number} min-count 最少选中星星的个数(默认0)\r\n * @property {Boolean} allow-half 是否允许半星选择(默认false)\r\n * @event {Function} change 选中的星星发生变化时触发\r\n * @example <u-rate :count=\"count\" :current=\"2\"></u-rate>\r\n */\r\n\r\nexport default {\r\n\tname: 'u-rate',\r\n\tprops: {\r\n\t\t// 用于v-model双向绑定选中的星星数量\r\n\t\t// 1.4.5版新增\r\n\t\tvalue: {\r\n\t\t\ttype: [Number, String],\r\n\t\t\tdefault: -1\r\n\t\t},\r\n\t\t// 要显示的星星数量\r\n\t\tcount: {\r\n\t\t\ttype: [Number, String],\r\n\t\t\tdefault: 5\r\n\t\t},\r\n\t\t// 当前需要默认选中的星星(选中的个数)\r\n\t\t// 1.4.5后通过value双向绑定,不再建议使用此参数\r\n\t\tcurrent: {\r\n\t\t\ttype: [Number, String],\r\n\t\t\tdefault: 0\r\n\t\t},\r\n\t\t// 是否不可选中\r\n\t\tdisabled: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: false\r\n\t\t},\r\n\t\t// 星星的大小,单位rpx\r\n\t\tsize: {\r\n\t\t\ttype: [Number, String],\r\n\t\t\tdefault: 32\r\n\t\t},\r\n\t\t// 未选中时的颜色\r\n\t\tinactiveColor: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: '#b2b2b2'\r\n\t\t},\r\n\t\t// 选中的颜色\r\n\t\tactiveColor: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: '#FA3534'\r\n\t\t},\r\n\t\t// 星星之间的间距,单位rpx\r\n\t\tgutter: {\r\n\t\t\ttype: [Number, String],\r\n\t\t\tdefault: 10\r\n\t\t},\r\n\t\t// 最少能选择的星星个数\r\n\t\tminCount: {\r\n\t\t\ttype: [Number, String],\r\n\t\t\tdefault: 0\r\n\t\t},\r\n\t\t// 是否允许半星(功能尚未实现)\r\n\t\tallowHalf: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: false\r\n\t\t},\r\n\t\t// 选中时的图标(星星)\r\n\t\tactiveIcon: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'star-fill'\r\n\t\t},\r\n\t\t// 未选中时的图标(星星)\r\n\t\tinactiveIcon: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'star'\r\n\t\t},\r\n\t\t// 自定义扩展前缀,方便用户扩展自己的图标库\r\n\t\tcustomPrefix: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'uicon'\r\n\t\t},\r\n\t\tcolors: {\r\n\t\t\ttype: Array,\r\n\t\t\tdefault() {\r\n\t\t\t\treturn []\r\n\t\t\t}\r\n\t\t},\r\n\t\ticons: {\r\n\t\t\ttype: Array,\r\n\t\t\tdefault() {\r\n\t\t\t\treturn []\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\t// 生成一个唯一id,否则一个页面多个评分组件,会造成冲突\r\n\t\t\telId: this.$u.guid(),\r\n\t\t\telClass: this.$u.guid(),\r\n\t\t\tstarBoxLeft: 0, // 评分盒子左边到屏幕左边的距离,用于滑动选择时计算距离\r\n\t\t\t// 当前激活的星星的index,如果存在value,优先使用value,因为它可以双向绑定(1.4.5新增)\r\n\t\t\tactiveIndex: this.value != -1 ? this.value : this.current,\r\n\t\t\tstarWidth: 0, // 每个星星的宽度\r\n\t\t\tstarWidthArr: [] //每个星星最右边到组件盒子最左边的距离\r\n\t\t}\r\n\t},\r\n\twatch: {\r\n\t\tcurrent(val) {\r\n\t\t\tthis.activeIndex = val\r\n\t\t},\r\n\t\tvalue(val) {\r\n\t\t\tthis.activeIndex = val\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\tdecimal() {\r\n\t\t\tif (this.disabled) {\r\n\t\t\t\treturn this.activeIndex * 100 % 100\r\n\t\t\t} else if (this.allowHalf) {\r\n\t\t\t\treturn 50\r\n\t\t\t}\r\n\t\t},\r\n\t\telActiveIcon() {\r\n\t\t\tconst len = this.icons.length\r\n\t\t\t// 此处规则类似于下方的elActiveColor参数,都是根据一定的规则,显示不同的图标\r\n\t\t\t// 结果可能如此:icons参数传递了3个图标,当选中两个时,用第一个图标,4个时,用第二个图标\r\n\t\t\t// 第三个时,用第三个图标作为激活的图标\r\n\t\t\tif (len && len <= this.count) {\r\n\t\t\t\tconst step = Math.round(this.activeIndex / Math.round(this.count / len))\r\n\t\t\t\tif (step < 1) return this.icons[0]\r\n\t\t\t\tif (step > len) return this.icons[len - 1]\r\n\t\t\t\treturn this.icons[step - 1]\r\n\t\t\t}\r\n\t\t\treturn this.activeIcon\r\n\t\t},\r\n\t\telActiveColor() {\r\n\t\t\tconst len = this.colors.length\r\n\t\t\t// 如果有设置colors参数(此参数用于将图标分段,比如一共5颗星,colors传3个颜色值,那么根据一定的规则,2颗星可能为第一个颜色\r\n\t\t\t// 4颗星为第二个颜色值,5颗星为第三个颜色值)\r\n\t\t\tif (len && len <= this.count) {\r\n\t\t\t\tconst step = Math.round(this.activeIndex / Math.round(this.count / len))\r\n\t\t\t\tif (step < 1) return this.colors[0]\r\n\t\t\t\tif (step > len) return this.colors[len - 1]\r\n\t\t\t\treturn this.colors[step - 1]\r\n\t\t\t}\r\n\t\t\treturn this.activeColor\r\n\t\t}\r\n\t},\r\n\tmethods: {\r\n\t\t// 获取评分组件盒子的布局信息\r\n\t\tgetElRectById() {\r\n\t\t\t// uView封装的获取节点的方法,详见文档\r\n\t\t\tthis.$u.getRect('#' + this.elId).then(res => {\r\n\t\t\t\tthis.starBoxLeft = res.left\r\n\t\t\t})\r\n\t\t},\r\n\t\t// 获取单个星星的尺寸\r\n\t\tgetElRectByClass() {\r\n\t\t\t// uView封装的获取节点的方法,详见文档\r\n\t\t\tthis.$u.getRect('.' + this.elClass).then(res => {\r\n\t\t\t\tthis.starWidth = res.width\r\n\t\t\t\t// 把每个星星右边到组件盒子左边的距离放入数组中\r\n\t\t\t\tfor (let i = 0; i < this.count; i++) {\r\n\t\t\t\t\tthis.starWidthArr[i] = (i + 1) * this.starWidth\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\t// 手指滑动\r\n\t\ttouchMove(e) {\r\n\t\t\tif (this.disabled) {\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\t\t\tif (!e.changedTouches[0]) {\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\t\t\tconst movePageX = e.changedTouches[0].pageX\r\n\t\t\t// 滑动点相对于评分盒子左边的距离\r\n\t\t\tconst distance = movePageX - this.starBoxLeft\r\n\r\n\t\t\t// 如果滑动到了评分盒子的左边界,就设置为0星\r\n\t\t\tif (distance <= 0) {\r\n\t\t\t\tthis.activeIndex = 0\r\n\t\t\t}\r\n\t\t\t// 滑动的距离,相当于多少颗星星\r\n\t\t\tlet index = Math.ceil(distance / this.starWidth)\r\n\t\t\tthis.activeIndex = index > this.count ? this.count : index\r\n\t\t\t// 对最少颗星星的限制\r\n\t\t\tif (this.activeIndex < this.minCount) this.activeIndex = this.minCount\r\n\t\t\tthis.emitEvent()\r\n\t\t},\r\n\t\t// 通过点击,直接选中\r\n\t\tclick(index, e) {\r\n\t\t\tif (this.disabled) {\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\t\t\t// 半星选择,尚未实现\r\n\t\t\tif (this.allowHalf) {\r\n\t\t\t}\r\n\t\t\t// 对第一个星星特殊处理,只有一个的时候,点击可以取消,否则无法作0星评价\r\n\t\t\tif (index == 1) {\r\n\t\t\t\tif (this.activeIndex == 1) {\r\n\t\t\t\t\tthis.activeIndex = 0\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.activeIndex = 1\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tthis.activeIndex = index\r\n\t\t\t}\r\n\t\t\t// 对最少颗星星的限制\r\n\t\t\tif (this.activeIndex < this.minCount) this.activeIndex = this.minCount\r\n\t\t\tthis.emitEvent()\r\n\t\t},\r\n\t\t// 发出事件\r\n\t\temitEvent() {\r\n\t\t\t// 发出change事件\r\n\t\t\tthis.$emit('change', this.activeIndex)\r\n\t\t\t// 同时修改双向绑定的value的值\r\n\t\t\tif (this.value != -1) {\r\n\t\t\t\tthis.$emit('input', this.activeIndex)\r\n\t\t\t}\r\n\t\t},\r\n\t\tshowDecimalIcon(index) {\r\n\t\t\treturn this.disabled && parseInt(this.activeIndex) === index\r\n\t\t}\r\n\t},\r\n\tmounted() {\r\n\t\tthis.getElRectById()\r\n\t\tthis.getElRectByClass()\r\n\t}\r\n}\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n@import \"../../libs/css/style.components.scss\";\r\n\r\n.u-rate {\r\n\tdisplay: -webkit-inline-flex;\r\n\tdisplay: inline-flex;\r\n\talign-items: center;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n}\r\n\r\n.u-icon {\r\n\tbox-sizing: border-box;\r\n}\r\n</style>\r\n","import mod from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./u-rate.vue?vue&type=style&index=0&id=533abf00&scoped=true&lang=scss&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./u-rate.vue?vue&type=style&index=0&id=533abf00&scoped=true&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1631761633307\n var cssReload = require(\"E:/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":""}
|