UNPKG

mp-colorui

Version:

MP ColorUI 是一款基于 Taro 框架并且联合 Color-UI CSS 库开发的多端 UI 组件库(支持小程序端和H5端)

360 lines (297 loc) 22 kB
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["package/actionPackage/progress/index"],{ /***/ "./node_modules/@tarojs/mini-runner/dist/loaders/wxTransformerLoader.js?!./src/package/actionPackage/progress/index.js?taro&type=script&parse=PAGE&": /*!**********************************************************************************************************************************************************!*\ !*** ./node_modules/@tarojs/mini-runner/dist/loaders/wxTransformerLoader.js??ref--4-0!./src/package/actionPackage/progress?taro&type=script&parse=PAGE& ***! \**********************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; var _taroWeapp = __webpack_require__(/*! @tarojs/taro-weapp */ "./node_modules/@tarojs/taro-weapp/index.js"); var _taroWeapp2 = _interopRequireDefault(_taroWeapp); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var Progress = function (_Taro$Component) { _inherits(Progress, _Taro$Component); function Progress() { var _ref; var _temp, _this, _ret; _classCallCheck(this, Progress); for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Progress.__proto__ || Object.getPrototypeOf(Progress)).call.apply(_ref, [this].concat(args))), _this), _this.config = { navigationBarTitleText: "Progress 进度条" }, _this.$usedState = ["$compid__984", "$compid__985", "$compid__986", "$compid__987", "$compid__988", "$compid__989", "$compid__990", "$compid__991", "$compid__992", "$compid__993", "$compid__994", "$compid__995", "$compid__996", "$compid__997", "$compid__998", "$compid__999", "$compid__1000", "$compid__1001"], _this.customComponents = ["ClLayout", "ClTitleBar", "ClCard", "ClProgress"], _temp), _possibleConstructorReturn(_this, _ret); } _createClass(Progress, [{ key: "_constructor", value: function _constructor(props) { _get(Progress.prototype.__proto__ || Object.getPrototypeOf(Progress.prototype), "_constructor", this).call(this, props); this.$$refs = new _taroWeapp2.default.RefsArray(); } }, { key: "_createData", value: function _createData() { this.__state = arguments[0] || this.state || {}; this.__props = arguments[1] || this.props || {}; var __isRunloopRef = arguments[2]; var __prefix = this.$prefix; ; var _genCompid = (0, _taroWeapp.genCompid)(__prefix + "$compid__984"), _genCompid2 = _slicedToArray(_genCompid, 2), $prevCompid__984 = _genCompid2[0], $compid__984 = _genCompid2[1]; var _genCompid3 = (0, _taroWeapp.genCompid)(__prefix + "$compid__985"), _genCompid4 = _slicedToArray(_genCompid3, 2), $prevCompid__985 = _genCompid4[0], $compid__985 = _genCompid4[1]; var _genCompid5 = (0, _taroWeapp.genCompid)(__prefix + "$compid__986"), _genCompid6 = _slicedToArray(_genCompid5, 2), $prevCompid__986 = _genCompid6[0], $compid__986 = _genCompid6[1]; var _genCompid7 = (0, _taroWeapp.genCompid)(__prefix + "$compid__987"), _genCompid8 = _slicedToArray(_genCompid7, 2), $prevCompid__987 = _genCompid8[0], $compid__987 = _genCompid8[1]; var _genCompid9 = (0, _taroWeapp.genCompid)(__prefix + "$compid__988"), _genCompid10 = _slicedToArray(_genCompid9, 2), $prevCompid__988 = _genCompid10[0], $compid__988 = _genCompid10[1]; var _genCompid11 = (0, _taroWeapp.genCompid)(__prefix + "$compid__989"), _genCompid12 = _slicedToArray(_genCompid11, 2), $prevCompid__989 = _genCompid12[0], $compid__989 = _genCompid12[1]; var _genCompid13 = (0, _taroWeapp.genCompid)(__prefix + "$compid__990"), _genCompid14 = _slicedToArray(_genCompid13, 2), $prevCompid__990 = _genCompid14[0], $compid__990 = _genCompid14[1]; var _genCompid15 = (0, _taroWeapp.genCompid)(__prefix + "$compid__991"), _genCompid16 = _slicedToArray(_genCompid15, 2), $prevCompid__991 = _genCompid16[0], $compid__991 = _genCompid16[1]; var _genCompid17 = (0, _taroWeapp.genCompid)(__prefix + "$compid__992"), _genCompid18 = _slicedToArray(_genCompid17, 2), $prevCompid__992 = _genCompid18[0], $compid__992 = _genCompid18[1]; var _genCompid19 = (0, _taroWeapp.genCompid)(__prefix + "$compid__993"), _genCompid20 = _slicedToArray(_genCompid19, 2), $prevCompid__993 = _genCompid20[0], $compid__993 = _genCompid20[1]; var _genCompid21 = (0, _taroWeapp.genCompid)(__prefix + "$compid__994"), _genCompid22 = _slicedToArray(_genCompid21, 2), $prevCompid__994 = _genCompid22[0], $compid__994 = _genCompid22[1]; var _genCompid23 = (0, _taroWeapp.genCompid)(__prefix + "$compid__995"), _genCompid24 = _slicedToArray(_genCompid23, 2), $prevCompid__995 = _genCompid24[0], $compid__995 = _genCompid24[1]; var _genCompid25 = (0, _taroWeapp.genCompid)(__prefix + "$compid__996"), _genCompid26 = _slicedToArray(_genCompid25, 2), $prevCompid__996 = _genCompid26[0], $compid__996 = _genCompid26[1]; var _genCompid27 = (0, _taroWeapp.genCompid)(__prefix + "$compid__997"), _genCompid28 = _slicedToArray(_genCompid27, 2), $prevCompid__997 = _genCompid28[0], $compid__997 = _genCompid28[1]; var _genCompid29 = (0, _taroWeapp.genCompid)(__prefix + "$compid__998"), _genCompid30 = _slicedToArray(_genCompid29, 2), $prevCompid__998 = _genCompid30[0], $compid__998 = _genCompid30[1]; var _genCompid31 = (0, _taroWeapp.genCompid)(__prefix + "$compid__999"), _genCompid32 = _slicedToArray(_genCompid31, 2), $prevCompid__999 = _genCompid32[0], $compid__999 = _genCompid32[1]; var _genCompid33 = (0, _taroWeapp.genCompid)(__prefix + "$compid__1000"), _genCompid34 = _slicedToArray(_genCompid33, 2), $prevCompid__1000 = _genCompid34[0], $compid__1000 = _genCompid34[1]; var _genCompid35 = (0, _taroWeapp.genCompid)(__prefix + "$compid__1001"), _genCompid36 = _slicedToArray(_genCompid35, 2), $prevCompid__1001 = _genCompid36[0], $compid__1001 = _genCompid36[1]; _taroWeapp.propsManager.set({ "title": "\u5F62\u72B6", "textColor": "black", "type": "icon", "subTitle": "shape" }, $compid__984, $prevCompid__984); _taroWeapp.propsManager.set({ "shape": "normal", "percent": 10 }, $compid__985, $prevCompid__985); _taroWeapp.propsManager.set({ "shape": "radius", "percent": 20 }, $compid__986, $prevCompid__986); _taroWeapp.propsManager.set({ "shape": "round", "percent": 40 }, $compid__987, $prevCompid__987); _taroWeapp.propsManager.set({ "title": "\u80CC\u666F\u8272", "textColor": "black", "type": "icon", "subTitle": "bgColor" }, $compid__988, $prevCompid__988); _taroWeapp.propsManager.set({ "shape": "round", "percent": 20, "bgColor": "red" }, $compid__989, $prevCompid__989); _taroWeapp.propsManager.set({ "shape": "round", "percent": 40, "bgColor": "light-red" }, $compid__990, $prevCompid__990); _taroWeapp.propsManager.set({ "shape": "round", "percent": 80, "bgColor": "gradualRed" }, $compid__991, $prevCompid__991); _taroWeapp.propsManager.set({ "title": "\u7EB9\u7406", "textColor": "black", "type": "icon", "subTitle": "stripe" }, $compid__992, $prevCompid__992); _taroWeapp.propsManager.set({ "shape": "round", "stripe": true, "percent": 20, "bgColor": "red" }, $compid__993, $prevCompid__993); _taroWeapp.propsManager.set({ "shape": "round", "stripe": true, "percent": 40, "bgColor": "light-red" }, $compid__994, $prevCompid__994); _taroWeapp.propsManager.set({ "title": "\u52A8\u753B", "textColor": "black", "type": "icon", "subTitle": "animation" }, $compid__995, $prevCompid__995); _taroWeapp.propsManager.set({ "animation": true, "shape": "round", "stripe": true, "percent": 20, "bgColor": "red" }, $compid__996, $prevCompid__996); _taroWeapp.propsManager.set({ "animation": true, "shape": "round", "stripe": true, "percent": 40, "bgColor": "light-red" }, $compid__997, $prevCompid__997); _taroWeapp.propsManager.set({ "title": "\u5927\u5C0F", "textColor": "black", "type": "icon", "subTitle": "size" }, $compid__998, $prevCompid__998); _taroWeapp.propsManager.set({ "shape": "round", "size": "xsmall", "percent": 20, "bgColor": "red" }, $compid__999, $prevCompid__999); _taroWeapp.propsManager.set({ "shape": "round", "size": "small", "percent": 40, "bgColor": "light-red" }, $compid__1000, $prevCompid__1000); _taroWeapp.propsManager.set({ "shape": "round", "size": "normal", "percent": 80, "bgColor": "gradualRed" }, $compid__1001, $prevCompid__1001); Object.assign(this.__state, { $compid__984: $compid__984, $compid__985: $compid__985, $compid__986: $compid__986, $compid__987: $compid__987, $compid__988: $compid__988, $compid__989: $compid__989, $compid__990: $compid__990, $compid__991: $compid__991, $compid__992: $compid__992, $compid__993: $compid__993, $compid__994: $compid__994, $compid__995: $compid__995, $compid__996: $compid__996, $compid__997: $compid__997, $compid__998: $compid__998, $compid__999: $compid__999, $compid__1000: $compid__1000, $compid__1001: $compid__1001 }); return this.__state; } }]); return Progress; }(_taroWeapp2.default.Component); Progress.$$events = []; Progress.$$componentPath = "package/actionPackage/progress/index"; Progress.config = { navigationBarTitleText: "Progress 进度条" }; exports.default = Progress; Component(__webpack_require__(/*! @tarojs/taro-weapp */ "./node_modules/@tarojs/taro-weapp/index.js").default.createComponent(Progress, true)); /***/ }), /***/ "./node_modules/file-loader/dist/cjs.js?name=[path][name].wxml&context=/Users/jinbai/Documents/develop/github/mp-colorui-old/mp-colorui/src!./node_modules/@tarojs/mini-runner/dist/loaders/miniTemplateLoader.js!./node_modules/@tarojs/mini-runner/dist/loaders/wxTransformerLoader.js?!./src/package/actionPackage/progress/index.js?taro&type=template&parse=PAGE&": /*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/file-loader/dist/cjs.js?name=[path][name].wxml&context=/Users/jinbai/Documents/develop/github/mp-colorui-old/mp-colorui/src!./node_modules/@tarojs/mini-runner/dist/loaders/miniTemplateLoader.js!./node_modules/@tarojs/mini-runner/dist/loaders/wxTransformerLoader.js??ref--4-0!./src/package/actionPackage/progress?taro&type=template&parse=PAGE& ***! \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__.p + "package/actionPackage/progress/index.wxml"; /***/ }), /***/ "./src/package/actionPackage/progress/index.js": /*!*****************************************************!*\ !*** ./src/package/actionPackage/progress/index.js ***! \*****************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _index_js_taro_type_template_parse_PAGE___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! .?taro&type=template&parse=PAGE& */ "./src/package/actionPackage/progress/index.js?taro&type=template&parse=PAGE&"); /* harmony import */ var _index_js_taro_type_script_parse_PAGE___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! .?taro&type=script&parse=PAGE& */ "./src/package/actionPackage/progress/index.js?taro&type=script&parse=PAGE&"); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _index_js_taro_type_script_parse_PAGE___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _index_js_taro_type_script_parse_PAGE___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /***/ }), /***/ "./src/package/actionPackage/progress/index.js?taro&type=script&parse=PAGE&": /*!*************************************************************************!*\ !*** ./src/package/actionPackage/progress?taro&type=script&parse=PAGE& ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _node_modules_tarojs_mini_runner_dist_loaders_wxTransformerLoader_js_ref_4_0_index_js_taro_type_script_parse_PAGE___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/@tarojs/mini-runner/dist/loaders/wxTransformerLoader.js??ref--4-0!.?taro&type=script&parse=PAGE& */ "./node_modules/@tarojs/mini-runner/dist/loaders/wxTransformerLoader.js?!./src/package/actionPackage/progress/index.js?taro&type=script&parse=PAGE&"); /* harmony import */ var _node_modules_tarojs_mini_runner_dist_loaders_wxTransformerLoader_js_ref_4_0_index_js_taro_type_script_parse_PAGE___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_tarojs_mini_runner_dist_loaders_wxTransformerLoader_js_ref_4_0_index_js_taro_type_script_parse_PAGE___WEBPACK_IMPORTED_MODULE_0__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_tarojs_mini_runner_dist_loaders_wxTransformerLoader_js_ref_4_0_index_js_taro_type_script_parse_PAGE___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_tarojs_mini_runner_dist_loaders_wxTransformerLoader_js_ref_4_0_index_js_taro_type_script_parse_PAGE___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (_node_modules_tarojs_mini_runner_dist_loaders_wxTransformerLoader_js_ref_4_0_index_js_taro_type_script_parse_PAGE___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), /***/ "./src/package/actionPackage/progress/index.js?taro&type=template&parse=PAGE&": /*!***************************************************************************!*\ !*** ./src/package/actionPackage/progress?taro&type=template&parse=PAGE& ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _node_modules_file_loader_dist_cjs_js_name_path_name_wxml_context_Users_jinbai_Documents_develop_github_mp_colorui_old_mp_colorui_src_node_modules_tarojs_mini_runner_dist_loaders_miniTemplateLoader_js_node_modules_tarojs_mini_runner_dist_loaders_wxTransformerLoader_js_ref_4_0_index_js_taro_type_template_parse_PAGE___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/file-loader/dist/cjs.js?name=[path][name].wxml&context=/Users/jinbai/Documents/develop/github/mp-colorui-old/mp-colorui/src!../../../../node_modules/@tarojs/mini-runner/dist/loaders/miniTemplateLoader.js!../../../../node_modules/@tarojs/mini-runner/dist/loaders/wxTransformerLoader.js??ref--4-0!.?taro&type=template&parse=PAGE& */ "./node_modules/file-loader/dist/cjs.js?name=[path][name].wxml&context=/Users/jinbai/Documents/develop/github/mp-colorui-old/mp-colorui/src!./node_modules/@tarojs/mini-runner/dist/loaders/miniTemplateLoader.js!./node_modules/@tarojs/mini-runner/dist/loaders/wxTransformerLoader.js?!./src/package/actionPackage/progress/index.js?taro&type=template&parse=PAGE&"); /* harmony import */ var _node_modules_file_loader_dist_cjs_js_name_path_name_wxml_context_Users_jinbai_Documents_develop_github_mp_colorui_old_mp_colorui_src_node_modules_tarojs_mini_runner_dist_loaders_miniTemplateLoader_js_node_modules_tarojs_mini_runner_dist_loaders_wxTransformerLoader_js_ref_4_0_index_js_taro_type_template_parse_PAGE___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_file_loader_dist_cjs_js_name_path_name_wxml_context_Users_jinbai_Documents_develop_github_mp_colorui_old_mp_colorui_src_node_modules_tarojs_mini_runner_dist_loaders_miniTemplateLoader_js_node_modules_tarojs_mini_runner_dist_loaders_wxTransformerLoader_js_ref_4_0_index_js_taro_type_template_parse_PAGE___WEBPACK_IMPORTED_MODULE_0__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_file_loader_dist_cjs_js_name_path_name_wxml_context_Users_jinbai_Documents_develop_github_mp_colorui_old_mp_colorui_src_node_modules_tarojs_mini_runner_dist_loaders_miniTemplateLoader_js_node_modules_tarojs_mini_runner_dist_loaders_wxTransformerLoader_js_ref_4_0_index_js_taro_type_template_parse_PAGE___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_file_loader_dist_cjs_js_name_path_name_wxml_context_Users_jinbai_Documents_develop_github_mp_colorui_old_mp_colorui_src_node_modules_tarojs_mini_runner_dist_loaders_miniTemplateLoader_js_node_modules_tarojs_mini_runner_dist_loaders_wxTransformerLoader_js_ref_4_0_index_js_taro_type_template_parse_PAGE___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /***/ }) },[["./src/package/actionPackage/progress/index.js","runtime","taro","vendors"]]]);