UNPKG

mp-colorui

Version:

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

171 lines (135 loc) 8.94 kB
require("./runtime"); require("./common"); require("./vendors"); require("./taro"); (wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["app"],{ /***/ "./node_modules/@tarojs/mini-runner/dist/loaders/wxTransformerLoader.js?!./src/app.tsx?taro&type=script&parse=ENTRY&": /*!************************************************************************************************************************************!*\ !*** ./node_modules/@tarojs/mini-runner/dist/loaders/wxTransformerLoader.js??ref--4-0!./src/app.tsx?taro&type=script&parse=ENTRY& ***! \************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 _taroWeapp = __webpack_require__(/*! @tarojs/taro-weapp */ "./node_modules/@tarojs/taro-weapp/index.js"); var _taroWeapp2 = _interopRequireDefault(_taroWeapp); __webpack_require__(/*! ./app.scss */ "./src/app.scss"); 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; } // if (process.env.NODE_ENV !== "production" && process.env.TARO_ENV === "h5") { // require("nerv-devtools"); // } var _App = function (_BaseComponent) { _inherits(_App, _BaseComponent); function _App() { _classCallCheck(this, _App); /** * 指定config的类型声明为: Taro.Config * * 由于 typescript 对于 object 类型推导只能推出 Key 的基本类型 * 对于像 navigationBarTextStyle: 'black' 这样的推导出的类型是 string * 提示和声明 navigationBarTextStyle: 'black' | 'white' 类型冲突, 需要显示声明类型 */ var _this = _possibleConstructorReturn(this, (_App.__proto__ || Object.getPrototypeOf(_App)).apply(this, arguments)); _this.config = { pages: [ // 首页 "pages/index/index", "pages/update/index"], subPackages: [{ root: "package/basePackage", pages: ["index/index", "color/index", "icon/index", "button/index", "floatButton/index", "text/index"] }, { root: "package/actionPackage", pages: ["index/index", "modal/index", "progress/index", "loading/index", "message/index", "animation/index", "tip/index", "swiperAction/index", "actionSheet/index"] }, { root: "package/formPackage", pages: ["index/index", "form/index", "input/index", "radio/index", "checkbox/index", "switch/index", "select/index", "imagePicker/index", "textarea/index", "tree/index"] }, { root: "package/layoutPackage", pages: ["index/index", "layout/index", "flex/index", "grid/index", "menuList/index", "card/index", "drawer/index", "screenDrawer/index", "accordion/index"] }, { root: "package/navigatePackage", pages: ["index/index", "navBar/index", "tabBar/index", "tabs/index", "verticalTab/index"] }, { root: "package/viewPackage", pages: ["index/index", "avatar/index", "tag/index", "timeline/index", "swiper/index", "steps/index", "searchBar/index", "shopBar/index", "titleBar/index", "divider/index", "curtain/index", "noticeBar/index", "calendar/index"] }], window: { backgroundTextStyle: "light", navigationBarBackgroundColor: "#fff", navigationBarTitleText: "WeChat", navigationBarTextStyle: "black" }, navigateToMiniProgramAppIdList: ["wx8abaf00ee8c3202e"] }; return _this; } _createClass(_App, [{ key: "componentDidMount", value: function componentDidMount() {} }, { key: "componentDidShow", value: function componentDidShow() {} }, { key: "componentDidHide", value: function componentDidHide() {} }, { key: "componentDidCatchError", value: function componentDidCatchError() {} // 在 App 类中的 render() 函数没有实际作用 // 请勿修改此函数 }, { key: "_createData", value: function _createData() {} }]); return _App; }(_taroWeapp.Component); exports.default = _App; App(__webpack_require__(/*! @tarojs/taro-weapp */ "./node_modules/@tarojs/taro-weapp/index.js").default.createApp(_App)); _taroWeapp2.default.initPxTransform({ "designWidth": 750, "deviceRatio": { "640": 1.17, "750": 1, "828": 0.905 } }); /***/ }), /***/ "./src/app.scss": /*!**********************!*\ !*** ./src/app.scss ***! \**********************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { // extracted by mini-css-extract-plugin /***/ }), /***/ "./src/app.tsx": /*!*********************!*\ !*** ./src/app.tsx ***! \*********************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _app_tsx_taro_type_script_parse_ENTRY___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./app.tsx?taro&type=script&parse=ENTRY& */ "./src/app.tsx?taro&type=script&parse=ENTRY&"); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _app_tsx_taro_type_script_parse_ENTRY___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _app_tsx_taro_type_script_parse_ENTRY___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /***/ }), /***/ "./src/app.tsx?taro&type=script&parse=ENTRY&": /*!***************************************************!*\ !*** ./src/app.tsx?taro&type=script&parse=ENTRY& ***! \***************************************************/ /*! 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_app_tsx_taro_type_script_parse_ENTRY___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../node_modules/@tarojs/mini-runner/dist/loaders/wxTransformerLoader.js??ref--4-0!./app.tsx?taro&type=script&parse=ENTRY& */ "./node_modules/@tarojs/mini-runner/dist/loaders/wxTransformerLoader.js?!./src/app.tsx?taro&type=script&parse=ENTRY&"); /* harmony import */ var _node_modules_tarojs_mini_runner_dist_loaders_wxTransformerLoader_js_ref_4_0_app_tsx_taro_type_script_parse_ENTRY___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_tarojs_mini_runner_dist_loaders_wxTransformerLoader_js_ref_4_0_app_tsx_taro_type_script_parse_ENTRY___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_app_tsx_taro_type_script_parse_ENTRY___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_app_tsx_taro_type_script_parse_ENTRY___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_app_tsx_taro_type_script_parse_ENTRY___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }) },[["./src/app.tsx","runtime","taro","vendors"]]]);;