123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- (global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/uni-rate/uni-rate" ], {
- 497: function(n, e, t) {
- t.r(e);
- var o = t(498), r = t(500);
- for (var c in r) "default" !== c && function(n) {
- t.d(e, n, function() {
- return r[n];
- });
- }(c);
- t(502);
- var i = t(13), a = Object(i.default)(r.default, o.render, o.staticRenderFns, !1, null, "b7a28ab8", null, !1, o.components, void 0);
- a.options.__file = "components/uni-rate/uni-rate.vue", e.default = a.exports;
- },
- 498: function(n, e, t) {
- t.r(e);
- var o = t(499);
- t.d(e, "render", function() {
- return o.render;
- }), t.d(e, "staticRenderFns", function() {
- return o.staticRenderFns;
- }), t.d(e, "recyclableRender", function() {
- return o.recyclableRender;
- }), t.d(e, "components", function() {
- return o.components;
- });
- },
- 499: function(n, e, t) {
- var o;
- t.r(e), t.d(e, "render", function() {
- return r;
- }), t.d(e, "staticRenderFns", function() {
- return i;
- }), t.d(e, "recyclableRender", function() {
- return c;
- }), t.d(e, "components", function() {
- return o;
- });
- try {
- o = {
- uniIcons: function() {
- return Promise.all([ t.e("common/vendor"), t.e("components/uni-icons/uni-icons") ]).then(t.bind(null, 541));
- }
- };
- } catch (n) {
- if (-1 === n.message.indexOf("Cannot find module") || -1 === n.message.indexOf(".vue")) throw n;
- console.error(n.message), console.error("1. 排查组件名称拼写是否正确"), console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),
- console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件");
- }
- var r = function() {
- var n = this;
- n.$createElement;
- n._self._c;
- }, c = !1, i = [];
- r._withStripped = !0;
- },
- 500: function(n, e, t) {
- t.r(e);
- var o = t(501), r = t.n(o);
- for (var c in o) "default" !== c && function(n) {
- t.d(e, n, function() {
- return o[n];
- });
- }(c);
- e.default = r.a;
- },
- 501: function(n, e, t) {
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e.default = void 0;
- var o = {
- name: "UniRate",
- components: {
- uniIcons: function() {
- Promise.all([ t.e("common/vendor"), t.e("components/uni-icons/uni-icons") ]).then(function() {
- return resolve(t(541));
- }.bind(null, t)).catch(t.oe);
- }
- },
- props: {
- isFill: {
- type: [ Boolean, String ],
- default: !0
- },
- color: {
- type: String,
- default: "#ececec"
- },
- activeColor: {
- type: String,
- default: "#ffca3e"
- },
- size: {
- type: [ Number, String ],
- default: 24
- },
- value: {
- type: [ Number, String ],
- default: 0
- },
- max: {
- type: [ Number, String ],
- default: 5
- },
- margin: {
- type: [ Number, String ],
- default: 0
- },
- disabled: {
- type: [ Boolean, String ],
- default: !1
- }
- },
- data: function() {
- return {
- valueSync: ""
- };
- },
- computed: {
- stars: function() {
- for (var n = this.valueSync ? this.valueSync : 0, e = [], t = Math.floor(n), o = Math.ceil(n), r = 0; r < this.max; r++) t > r ? e.push({
- activeWitch: "100%"
- }) : o - 1 === r ? e.push({
- activeWitch: 100 * (n - t) + "%"
- }) : e.push({
- activeWitch: "0"
- });
- return console.log("starList[4]: " + e[4].activeWitch), e;
- }
- },
- created: function() {
- this.valueSync = Number(this.value);
- },
- methods: {
- _onClick: function(n) {
- this.disabled || (this.valueSync = n + 1, this.$emit("change", {
- value: this.valueSync
- }));
- }
- }
- };
- e.default = o;
- },
- 502: function(n, e, t) {
- t.r(e);
- var o = t(503), r = t.n(o);
- for (var c in o) "default" !== c && function(n) {
- t.d(e, n, function() {
- return o[n];
- });
- }(c);
- e.default = r.a;
- },
- 503: function(n, e, t) {}
- } ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/uni-rate/uni-rate-create-component", {
- "components/uni-rate/uni-rate-create-component": function(n, e, t) {
- t("1").createComponent(t(497));
- }
- }, [ [ "components/uni-rate/uni-rate-create-component" ] ] ]);
|