feat: 我的页面
This commit is contained in:
14
dist/app.js
vendored
14
dist/app.js
vendored
@@ -1,16 +1,20 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
require("./prebundle/vendors-node_modules_taro_weapp_prebundle_antmjs_vantui_js.js");
|
||||||
require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-VXAYXK77_js.js");
|
require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-VXAYXK77_js.js");
|
||||||
require("./prebundle/vendors-node_modules_taro_weapp_prebundle_react-dom_js.js");
|
require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-OEADN3SU_js.js");
|
||||||
require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-BS6JQHLA_js.js");
|
require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-BS6JQHLA_js.js");
|
||||||
require("./prebundle/vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-framework-react_dist_runtime_js.js");
|
require("./prebundle/vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-framework-react_dist_runtime_js.js");
|
||||||
require("./prebundle/vendors-node_modules_taro_weapp_prebundle_tarojs_taro_js.js");
|
require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-TUA3UK7E_js.js");
|
||||||
require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-LNJCN3VW_js.js");
|
|
||||||
require("./prebundle/node_modules_taro_weapp_prebundle_react_jsx-runtime_js.js");
|
require("./prebundle/node_modules_taro_weapp_prebundle_react_jsx-runtime_js.js");
|
||||||
|
require("./prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-LNJCN3VW_js.js");
|
||||||
require("./prebundle/node_modules_taro_weapp_prebundle_tarojs_plugin-platform-weapp_dist_runtime_js.js");
|
require("./prebundle/node_modules_taro_weapp_prebundle_tarojs_plugin-platform-weapp_dist_runtime_js.js");
|
||||||
require("./prebundle/node_modules_taro_weapp_prebundle_react_js.js");
|
require("./prebundle/node_modules_taro_weapp_prebundle_react_js.js");
|
||||||
require("./prebundle/node_modules_taro_weapp_prebundle_tarojs_runtime_js.js");
|
|
||||||
require("./prebundle/remoteEntry.js");
|
require("./prebundle/remoteEntry.js");
|
||||||
|
require("./prebundle/node_modules_taro_weapp_prebundle_tarojs_runtime_js.js");
|
||||||
|
require("./prebundle/node_modules_taro_weapp_prebundle_react-dom_js.js");
|
||||||
|
require("./prebundle/node_modules_taro_weapp_prebundle_tarojs_taro_js.js");
|
||||||
|
|
||||||
|
require("./common");
|
||||||
require("./vendors");
|
require("./vendors");
|
||||||
require("./taro");
|
require("./taro");
|
||||||
require("./runtime");
|
require("./runtime");
|
||||||
@@ -95,7 +99,7 @@ var App = /*#__PURE__*/function (_Component) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
var config = {"pages":["pages/home/index","pages/activityList/index"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"}};
|
var config = {"pages":["pages/home/index","pages/activityList/index","pages/mountainPeak/index","pages/my/index"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"}};
|
||||||
_tarojs_runtime__WEBPACK_IMPORTED_MODULE_1__.window.__taroAppConfig = config
|
_tarojs_runtime__WEBPACK_IMPORTED_MODULE_1__.window.__taroAppConfig = config
|
||||||
var inst = App((0,_tarojs_plugin_framework_react_dist_runtime__WEBPACK_IMPORTED_MODULE_2__.createReactApp)(_node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_app_ts__WEBPACK_IMPORTED_MODULE_4__["default"], react__WEBPACK_IMPORTED_MODULE_5__, (react_dom__WEBPACK_IMPORTED_MODULE_6___default()), config))
|
var inst = App((0,_tarojs_plugin_framework_react_dist_runtime__WEBPACK_IMPORTED_MODULE_2__.createReactApp)(_node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_app_ts__WEBPACK_IMPORTED_MODULE_4__["default"], react__WEBPACK_IMPORTED_MODULE_5__, (react_dom__WEBPACK_IMPORTED_MODULE_6___default()), config))
|
||||||
|
|
||||||
|
|||||||
2
dist/app.js.map
vendored
2
dist/app.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/app.json
vendored
2
dist/app.json
vendored
@@ -1 +1 @@
|
|||||||
{"pages":["pages/home/index","pages/activityList/index","pages/mountainPeak/index"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"}}
|
{"pages":["pages/home/index","pages/activityList/index","pages/mountainPeak/index","pages/my/index"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"}}
|
||||||
8
dist/base.wxml
vendored
8
dist/base.wxml
vendored
@@ -53,14 +53,6 @@
|
|||||||
</text>
|
</text>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template name="tmpl_0_13">
|
|
||||||
<button size="{{xs.b(i.p18,'default')}}" type="{{i.p19}}" plain="{{xs.b(i.p12,!1)}}" disabled="{{i.p2}}" loading="{{xs.b(i.p9,!1)}}" form-type="{{i.p3}}" open-type="{{i.p11}}" hover-class="{{xs.b(i.p4,'button-hover')}}" hover-stop-propagation="{{xs.b(i.p7,!1)}}" hover-start-time="{{xs.b(i.p5,20)}}" hover-stay-time="{{xs.b(i.p6,70)}}" name="{{i.p10}}" bindtouchstart="eh" bindtouchmove="eh" bindtouchend="eh" bindtouchcancel="eh" bindlongpress="eh" lang="{{xs.b(i.p8,en)}}" session-from="{{i.p16}}" send-message-title="{{i.p15}}" send-message-path="{{i.p14}}" send-message-img="{{i.p13}}" app-parameter="{{i.p0}}" show-message-card="{{xs.b(i.p17,false)}}" business-id="{{i.p1}}" bindgetuserinfo="eh" bindcontact="eh" bindgetphonenumber="eh" bindchooseavatar="eh" binderror="eh" bindopensetting="eh" bindlaunchapp="eh" style="{{i.st}}" class="{{i.cl}}" bindtap="eh" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
|
|
||||||
<block wx:for="{{i.cn}}" wx:key="sid">
|
|
||||||
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
|
|
||||||
</block>
|
|
||||||
</button>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<template name="tmpl_0_48">
|
<template name="tmpl_0_48">
|
||||||
<scroll-view scroll-x="{{xs.b(i.p18,!1)}}" scroll-y="{{xs.b(i.p19,!1)}}" upper-threshold="{{xs.b(i.p21,50)}}" lower-threshold="{{xs.b(i.p6,50)}}" scroll-top="{{i.p16}}" scroll-left="{{i.p15}}" scroll-into-view="{{i.p14}}" scroll-with-animation="{{xs.b(i.p17,!1)}}" enable-back-to-top="{{xs.b(i.p2,!1)}}" bindscrolltoupper="eh" bindscrolltolower="eh" bindscroll="eh" bindtouchstart="eh" bindtouchmove="eh" bindtouchend="eh" bindtouchcancel="eh" bindlongpress="eh" animation="{{i.p0}}" bindanimationstart="eh" bindanimationiteration="eh" bindanimationend="eh" bindtransitionend="eh" enable-flex="{{xs.b(i.p3,false)}}" scroll-anchoring="{{xs.b(i.p13,false)}}" refresher-enabled="{{xs.b(i.p10,false)}}" refresher-threshold="{{xs.b(i.p11,45)}}" refresher-default-style="{{xs.b(i.p9,'black')}}" refresher-background="{{xs.b(i.p8,'#FFF')}}" refresher-triggered="{{xs.b(i.p12,false)}}" enhanced="{{xs.b(i.p4,false)}}" bounces="{{xs.b(i.p1,true)}}" show-scrollbar="{{xs.b(i.p20,true)}}" paging-enabled="{{xs.b(i.p7,false)}}" fast-deceleration="{{xs.b(i.p5,false)}}" binddragstart="eh" binddragging="eh" binddragend="eh" bindrefresherpulling="eh" bindrefresherrefresh="eh" bindrefresherrestore="eh" bindrefresherabort="eh" style="{{i.st}}" class="{{i.cl}}" bindtap="eh" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
|
<scroll-view scroll-x="{{xs.b(i.p18,!1)}}" scroll-y="{{xs.b(i.p19,!1)}}" upper-threshold="{{xs.b(i.p21,50)}}" lower-threshold="{{xs.b(i.p6,50)}}" scroll-top="{{i.p16}}" scroll-left="{{i.p15}}" scroll-into-view="{{i.p14}}" scroll-with-animation="{{xs.b(i.p17,!1)}}" enable-back-to-top="{{xs.b(i.p2,!1)}}" bindscrolltoupper="eh" bindscrolltolower="eh" bindscroll="eh" bindtouchstart="eh" bindtouchmove="eh" bindtouchend="eh" bindtouchcancel="eh" bindlongpress="eh" animation="{{i.p0}}" bindanimationstart="eh" bindanimationiteration="eh" bindanimationend="eh" bindtransitionend="eh" enable-flex="{{xs.b(i.p3,false)}}" scroll-anchoring="{{xs.b(i.p13,false)}}" refresher-enabled="{{xs.b(i.p10,false)}}" refresher-threshold="{{xs.b(i.p11,45)}}" refresher-default-style="{{xs.b(i.p9,'black')}}" refresher-background="{{xs.b(i.p8,'#FFF')}}" refresher-triggered="{{xs.b(i.p12,false)}}" enhanced="{{xs.b(i.p4,false)}}" bounces="{{xs.b(i.p1,true)}}" show-scrollbar="{{xs.b(i.p20,true)}}" paging-enabled="{{xs.b(i.p7,false)}}" fast-deceleration="{{xs.b(i.p5,false)}}" binddragstart="eh" binddragging="eh" binddragend="eh" bindrefresherpulling="eh" bindrefresherrefresh="eh" bindrefresherrestore="eh" bindrefresherabort="eh" style="{{i.st}}" class="{{i.cl}}" bindtap="eh" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
|
||||||
<block wx:for="{{i.cn}}" wx:key="sid">
|
<block wx:for="{{i.cn}}" wx:key="sid">
|
||||||
|
|||||||
67
dist/common.js
vendored
Normal file
67
dist/common.js
vendored
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
"use strict";
|
||||||
|
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["common"],{
|
||||||
|
|
||||||
|
/***/ "./src/pages/components/TabbarCom/index.tsx":
|
||||||
|
/*!**************************************************!*\
|
||||||
|
!*** ./src/pages/components/TabbarCom/index.tsx ***!
|
||||||
|
\**************************************************/
|
||||||
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
/* harmony import */ var _antmjs_vantui_es_tabbar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @antmjs/vantui/es/tabbar */ "./node_modules/@antmjs/vantui/es/tabbar/index.js");
|
||||||
|
/* harmony import */ var _antmjs_vantui_es_tabbar_item__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @antmjs/vantui/es/tabbar-item */ "./node_modules/@antmjs/vantui/es/tabbar-item/index.js");
|
||||||
|
/* harmony import */ var _Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
||||||
|
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
||||||
|
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
||||||
|
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_2__);
|
||||||
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
|
||||||
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
||||||
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
|
||||||
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var TabbarCom = function TabbarCom(props) {
|
||||||
|
var _props$active;
|
||||||
|
var _react$useState = react__WEBPACK_IMPORTED_MODULE_3___default().useState((_props$active = props === null || props === void 0 ? void 0 : props.active) !== null && _props$active !== void 0 ? _props$active : 0),
|
||||||
|
_react$useState2 = (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5__["default"])(_react$useState, 2),
|
||||||
|
active = _react$useState2[0],
|
||||||
|
setActive = _react$useState2[1];
|
||||||
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, {
|
||||||
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_antmjs_vantui_es_tabbar__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
||||||
|
active: active,
|
||||||
|
onChange: function onChange(e) {
|
||||||
|
console.log("e", e);
|
||||||
|
setActive(e === null || e === void 0 ? void 0 : e.detail);
|
||||||
|
if ((e === null || e === void 0 ? void 0 : e.detail) === 2) {
|
||||||
|
_tarojs_taro__WEBPACK_IMPORTED_MODULE_2___default().navigateTo({
|
||||||
|
url: "/pages/my/index"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
safeAreaInsetBottom: false,
|
||||||
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_antmjs_vantui_es_tabbar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
||||||
|
icon: "home-o",
|
||||||
|
children: "\u9996\u9875"
|
||||||
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_antmjs_vantui_es_tabbar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
||||||
|
icon: "friends-o",
|
||||||
|
children: "\u6D3B\u52A8"
|
||||||
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_antmjs_vantui_es_tabbar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
||||||
|
icon: "setting-o",
|
||||||
|
children: "\u6211\u7684"
|
||||||
|
})]
|
||||||
|
})
|
||||||
|
});
|
||||||
|
};
|
||||||
|
/* harmony default export */ __webpack_exports__["default"] = (TabbarCom);
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
}]);
|
||||||
|
//# sourceMappingURL=common.js.map
|
||||||
1
dist/common.js.map
vendored
Normal file
1
dist/common.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"common.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA;AACA;AACA;AAAA;AAAA;AAEA;AAAA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAEA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AACA;AAGA;AAEA","sources":["webpack://myApp/._src_pages_components_TabbarCom_index.tsx"],"sourcesContent":["import { Tabbar, TabbarItem } from \"@antmjs/vantui\";\nimport { View } from \"@tarojs/components\";\nimport Taro from \"@tarojs/taro\";\nimport react from \"react\";\n\nconst TabbarCom = (props: any) => {\n const [active, setActive] = react.useState(props?.active ?? 0);\n\n return (\n <View>\n <Tabbar\n active={active}\n onChange={(e: any) => {\n console.log(\"e\", e);\n setActive(e?.detail);\n if(e?.detail===2){\n Taro.navigateTo({\n url: \"/pages/my/index\",\n });\n }\n }}\n safeAreaInsetBottom={false}\n >\n <TabbarItem icon=\"home-o\">首页</TabbarItem>\n {/* <TabbarItem icon=\"search\">标签</TabbarItem> */}\n <TabbarItem icon=\"friends-o\">活动</TabbarItem>\n <TabbarItem icon=\"setting-o\">我的</TabbarItem>\n </Tabbar>\n </View>\n );\n};\n\nexport default TabbarCom;\n"],"names":[],"sourceRoot":""}
|
||||||
8
dist/common.wxss
vendored
8
dist/common.wxss
vendored
File diff suppressed because one or more lines are too long
625
dist/pages/home/index.js
vendored
625
dist/pages/home/index.js
vendored
@@ -1720,262 +1720,6 @@ var Swiper_ = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(Swi
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ "./node_modules/@antmjs/vantui/es/tabbar-item/index.js":
|
|
||||||
/*!*************************************************************!*\
|
|
||||||
!*** ./node_modules/@antmjs/vantui/es/tabbar-item/index.js ***!
|
|
||||||
\*************************************************************/
|
|
||||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
/* unused harmony export TabbarItem */
|
|
||||||
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
||||||
/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
||||||
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
|
||||||
/* harmony import */ var _wxs_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.js");
|
|
||||||
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./node_modules/@antmjs/vantui/es/icon/index.js");
|
|
||||||
/* harmony import */ var _info__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../info */ "./node_modules/@antmjs/vantui/es/info/index.js");
|
|
||||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
|
|
||||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__);
|
|
||||||
|
|
||||||
|
|
||||||
var _excluded = ["icon", "name", "iconPrefix", "dot", "info", "renderIconActive", "renderIcon", "index", "active", "activeColor", "inactiveColor", "onChange", "children", "style", "className", "onClick"];
|
|
||||||
|
|
||||||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
||||||
|
|
||||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function TabbarItem(props) {
|
|
||||||
var icon = props.icon,
|
|
||||||
name = props.name,
|
|
||||||
_props$iconPrefix = props.iconPrefix,
|
|
||||||
iconPrefix = _props$iconPrefix === void 0 ? 'van-icon' : _props$iconPrefix,
|
|
||||||
dot = props.dot,
|
|
||||||
info = props.info,
|
|
||||||
renderIconActive = props.renderIconActive,
|
|
||||||
renderIcon = props.renderIcon,
|
|
||||||
index = props.index,
|
|
||||||
active = props.active,
|
|
||||||
activeColor = props.activeColor,
|
|
||||||
inactiveColor = props.inactiveColor,
|
|
||||||
onChange = props.onChange,
|
|
||||||
children = props.children,
|
|
||||||
style = props.style,
|
|
||||||
className = props.className,
|
|
||||||
onClick = props.onClick,
|
|
||||||
others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__["default"])(props, _excluded);
|
|
||||||
|
|
||||||
var _click = function _click() {
|
|
||||||
if (onChange) {
|
|
||||||
var _active = name !== null && name !== void 0 ? name : index;
|
|
||||||
|
|
||||||
if (_active !== active) {
|
|
||||||
onChange(_active);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onClick === null || onClick === void 0 ? void 0 : onClick(name !== null && name !== void 0 ? name : index);
|
|
||||||
};
|
|
||||||
|
|
||||||
return onChange ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, _objectSpread(_objectSpread({
|
|
||||||
className: _wxs_utils__WEBPACK_IMPORTED_MODULE_1__.bem('tabbar-item', {
|
|
||||||
active: active === (name !== null && name !== void 0 ? name : index)
|
|
||||||
}) + ' custom-class' + " ".concat(className || ''),
|
|
||||||
style: _wxs_utils__WEBPACK_IMPORTED_MODULE_1__.style([{
|
|
||||||
color: active === (name !== null && name !== void 0 ? name : index) ? activeColor : inactiveColor
|
|
||||||
}, style])
|
|
||||||
}, others), {}, {
|
|
||||||
onClick: _click,
|
|
||||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, {
|
|
||||||
className: "van-tabbar-item__icon",
|
|
||||||
children: [icon ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_icon__WEBPACK_IMPORTED_MODULE_2__.Icon, {
|
|
||||||
size: 38,
|
|
||||||
name: icon,
|
|
||||||
classPrefix: iconPrefix,
|
|
||||||
className: "van-tabbar-item__icon__inner"
|
|
||||||
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
|
|
||||||
children: active === (name !== null && name !== void 0 ? name : index) ? renderIconActive : renderIcon
|
|
||||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_info__WEBPACK_IMPORTED_MODULE_3__.Info, {
|
|
||||||
dot: dot,
|
|
||||||
info: info,
|
|
||||||
className: "van-tabbar-item__info"
|
|
||||||
})]
|
|
||||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, {
|
|
||||||
className: "van-tabbar-item__text",
|
|
||||||
children: children
|
|
||||||
})]
|
|
||||||
})) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {});
|
|
||||||
}
|
|
||||||
/* harmony default export */ __webpack_exports__["default"] = (TabbarItem);
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./node_modules/@antmjs/vantui/es/tabbar/index.js":
|
|
||||||
/*!********************************************************!*\
|
|
||||||
!*** ./node_modules/@antmjs/vantui/es/tabbar/index.js ***!
|
|
||||||
\********************************************************/
|
|
||||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
/* unused harmony export Tabbar */
|
|
||||||
/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
||||||
/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
||||||
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
||||||
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
|
||||||
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_1__);
|
|
||||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
|
|
||||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
||||||
/* harmony import */ var rc_util_lib_Children_toArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/Children/toArray */ "./node_modules/rc-util/lib/Children/toArray.js");
|
|
||||||
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
|
||||||
/* harmony import */ var _wxs_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.js");
|
|
||||||
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/utils */ "./node_modules/@antmjs/vantui/es/common/utils.js");
|
|
||||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
|
|
||||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var _excluded = ["active", "activeColor", "inactiveColor", "border", "fixed", "safeAreaInsetBottom", "zIndex", "placeholder", "onChange", "style", "className", "children"];
|
|
||||||
|
|
||||||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
||||||
|
|
||||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function parseTabList(children) {
|
|
||||||
return (0,rc_util_lib_Children_toArray__WEBPACK_IMPORTED_MODULE_3__["default"])(children).map(function (node) {
|
|
||||||
if ( /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.isValidElement)(node)) {
|
|
||||||
var key = node.key !== undefined ? String(node.key) : undefined;
|
|
||||||
return _objectSpread(_objectSpread({
|
|
||||||
key: key
|
|
||||||
}, node.props), {}, {
|
|
||||||
node: node
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}).filter(function (tab) {
|
|
||||||
return tab;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function Tabbar(props) {
|
|
||||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)({
|
|
||||||
height: 50,
|
|
||||||
current: 0
|
|
||||||
}),
|
|
||||||
_useState2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__["default"])(_useState, 2),
|
|
||||||
state = _useState2[0],
|
|
||||||
setState = _useState2[1];
|
|
||||||
|
|
||||||
var height = state.height,
|
|
||||||
current = state.current;
|
|
||||||
|
|
||||||
var active = props.active,
|
|
||||||
activeColor = props.activeColor,
|
|
||||||
inactiveColor = props.inactiveColor,
|
|
||||||
_props$border = props.border,
|
|
||||||
border = _props$border === void 0 ? true : _props$border,
|
|
||||||
_props$fixed = props.fixed,
|
|
||||||
fixed = _props$fixed === void 0 ? true : _props$fixed,
|
|
||||||
_props$safeAreaInsetB = props.safeAreaInsetBottom,
|
|
||||||
safeAreaInsetBottom = _props$safeAreaInsetB === void 0 ? true : _props$safeAreaInsetB,
|
|
||||||
zIndex = props.zIndex,
|
|
||||||
placeholder = props.placeholder,
|
|
||||||
onChange = props.onChange,
|
|
||||||
style = props.style,
|
|
||||||
className = props.className,
|
|
||||||
children = props.children,
|
|
||||||
others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__["default"])(props, _excluded);
|
|
||||||
|
|
||||||
var _change = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (data) {
|
|
||||||
setState(function (pre) {
|
|
||||||
return _objectSpread(_objectSpread({}, pre), {}, {
|
|
||||||
current: data
|
|
||||||
});
|
|
||||||
});
|
|
||||||
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
||||||
detail: data
|
|
||||||
});
|
|
||||||
}, [onChange]);
|
|
||||||
|
|
||||||
var newChildren = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
|
|
||||||
var tabs = parseTabList(children);
|
|
||||||
return tabs.map(function (tab, index) {
|
|
||||||
return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.cloneElement)(tab.node, {
|
|
||||||
key: index,
|
|
||||||
index: index,
|
|
||||||
active: current,
|
|
||||||
activeColor: activeColor,
|
|
||||||
inactiveColor: inactiveColor,
|
|
||||||
onChange: _change
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}, [children, current, activeColor, inactiveColor, _change]);
|
|
||||||
(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
|
|
||||||
setState(function (pre) {
|
|
||||||
return _objectSpread(_objectSpread({}, pre), {}, {
|
|
||||||
current: active
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}, [active]);
|
|
||||||
(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
|
|
||||||
if (!fixed || !placeholder) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
(0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_1__.nextTick)(function () {
|
|
||||||
(0,_common_utils__WEBPACK_IMPORTED_MODULE_5__.getRect)(null, '.van-tabbar').then(function (res) {
|
|
||||||
setState(function (pre) {
|
|
||||||
return _objectSpread(_objectSpread({}, pre), {}, {
|
|
||||||
height: res.height
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}, [fixed, placeholder]); // useEffect(
|
|
||||||
// function () {
|
|
||||||
// if (!Array.isArray(children) || !children.length) {
|
|
||||||
// return
|
|
||||||
// }
|
|
||||||
// children.forEach((child) => child.updateFromParent())
|
|
||||||
// },
|
|
||||||
// // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
||||||
// [active, activeColor, inactiveColor],
|
|
||||||
// )
|
|
||||||
|
|
||||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, {
|
|
||||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_9__.View, _objectSpread(_objectSpread({
|
|
||||||
className: (border ? 'van-hairline--top-bottom' : '') + ' ' + _wxs_utils__WEBPACK_IMPORTED_MODULE_4__.bem('tabbar', {
|
|
||||||
fixed: fixed,
|
|
||||||
safe: safeAreaInsetBottom
|
|
||||||
}) + ' custom-class' + " ".concat(className || ''),
|
|
||||||
style: _wxs_utils__WEBPACK_IMPORTED_MODULE_4__.style([zIndex ? 'zIndex: ' + zIndex : '', style])
|
|
||||||
}, others), {}, {
|
|
||||||
children: newChildren
|
|
||||||
})), fixed && placeholder && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_9__.View, {
|
|
||||||
style: 'height: ' + height + 'px;'
|
|
||||||
})]
|
|
||||||
});
|
|
||||||
}
|
|
||||||
/* harmony default export */ __webpack_exports__["default"] = (Tabbar);
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./node_modules/@antmjs/vantui/es/tag/index.js":
|
/***/ "./node_modules/@antmjs/vantui/es/tag/index.js":
|
||||||
/*!*****************************************************!*\
|
/*!*****************************************************!*\
|
||||||
!*** ./node_modules/@antmjs/vantui/es/tag/index.js ***!
|
!*** ./node_modules/@antmjs/vantui/es/tag/index.js ***!
|
||||||
@@ -2078,28 +1822,24 @@ function rootStyle(data) {
|
|||||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
/* harmony import */ var _antmjs_vantui_es_tabbar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @antmjs/vantui/es/tabbar */ "./node_modules/@antmjs/vantui/es/tabbar/index.js");
|
/* harmony import */ var _antmjs_vantui_es_card__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @antmjs/vantui/es/card */ "./node_modules/@antmjs/vantui/es/card/index.js");
|
||||||
/* harmony import */ var _antmjs_vantui_es_tabbar_item__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @antmjs/vantui/es/tabbar-item */ "./node_modules/@antmjs/vantui/es/tabbar-item/index.js");
|
/* harmony import */ var _antmjs_vantui_es_divider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @antmjs/vantui/es/divider */ "./node_modules/@antmjs/vantui/es/divider/index.js");
|
||||||
/* harmony import */ var _antmjs_vantui_es_card__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @antmjs/vantui/es/card */ "./node_modules/@antmjs/vantui/es/card/index.js");
|
/* harmony import */ var _antmjs_vantui_es_grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @antmjs/vantui/es/grid */ "./node_modules/@antmjs/vantui/es/grid/index.js");
|
||||||
/* harmony import */ var _antmjs_vantui_es_divider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @antmjs/vantui/es/divider */ "./node_modules/@antmjs/vantui/es/divider/index.js");
|
/* harmony import */ var _antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @antmjs/vantui/es/grid-item */ "./node_modules/@antmjs/vantui/es/grid-item/index.js");
|
||||||
/* harmony import */ var _antmjs_vantui_es_grid__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @antmjs/vantui/es/grid */ "./node_modules/@antmjs/vantui/es/grid/index.js");
|
/* harmony import */ var _antmjs_vantui_es_swiper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @antmjs/vantui/es/swiper */ "./node_modules/@antmjs/vantui/es/swiper/index.js");
|
||||||
/* harmony import */ var _antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @antmjs/vantui/es/grid-item */ "./node_modules/@antmjs/vantui/es/grid-item/index.js");
|
/* harmony import */ var _antmjs_vantui_es_swiper_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @antmjs/vantui/es/swiper-item */ "./node_modules/@antmjs/vantui/es/swiper-item/index.js");
|
||||||
/* harmony import */ var _antmjs_vantui_es_swiper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @antmjs/vantui/es/swiper */ "./node_modules/@antmjs/vantui/es/swiper/index.js");
|
/* harmony import */ var _antmjs_vantui_es_image__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @antmjs/vantui/es/image */ "./node_modules/@antmjs/vantui/es/image/index.js");
|
||||||
/* harmony import */ var _antmjs_vantui_es_swiper_item__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @antmjs/vantui/es/swiper-item */ "./node_modules/@antmjs/vantui/es/swiper-item/index.js");
|
/* harmony import */ var _antmjs_vantui_es_tag__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @antmjs/vantui/es/tag */ "./node_modules/@antmjs/vantui/es/tag/index.js");
|
||||||
/* harmony import */ var _antmjs_vantui_es_image__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @antmjs/vantui/es/image */ "./node_modules/@antmjs/vantui/es/image/index.js");
|
/* harmony import */ var _antmjs_vantui_es_notice_bar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @antmjs/vantui/es/notice-bar */ "./node_modules/@antmjs/vantui/es/notice-bar/index.js");
|
||||||
/* harmony import */ var _antmjs_vantui_es_tag__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @antmjs/vantui/es/tag */ "./node_modules/@antmjs/vantui/es/tag/index.js");
|
/* harmony import */ var _Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
||||||
/* harmony import */ var _antmjs_vantui_es_notice_bar__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @antmjs/vantui/es/notice-bar */ "./node_modules/@antmjs/vantui/es/notice-bar/index.js");
|
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
||||||
/* harmony import */ var _Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
|
||||||
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
|
||||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
|
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
||||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
|
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_10__);
|
||||||
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
/* harmony import */ var _components_TabbarCom__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../components/TabbarCom */ "./src/pages/components/TabbarCom/index.tsx");
|
||||||
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_12__);
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
|
||||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__);
|
||||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -2127,29 +1867,29 @@ function rootStyle(data) {
|
|||||||
|
|
||||||
var Home = function Home() {
|
var Home = function Home() {
|
||||||
// const { images } = COMMON
|
// const { images } = COMMON
|
||||||
var _react$useState = react__WEBPACK_IMPORTED_MODULE_11___default().useState(0),
|
var _react$useState = react__WEBPACK_IMPORTED_MODULE_9___default().useState(0),
|
||||||
_react$useState2 = (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_14__["default"])(_react$useState, 2),
|
_react$useState2 = (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_13__["default"])(_react$useState, 2),
|
||||||
initPage1 = _react$useState2[0],
|
initPage1 = _react$useState2[0],
|
||||||
setInitPage1 = _react$useState2[1];
|
setInitPage1 = _react$useState2[1];
|
||||||
var _react$useState3 = react__WEBPACK_IMPORTED_MODULE_11___default().useState(0),
|
var _react$useState3 = react__WEBPACK_IMPORTED_MODULE_9___default().useState(0),
|
||||||
_react$useState4 = (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_14__["default"])(_react$useState3, 2),
|
_react$useState4 = (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_13__["default"])(_react$useState3, 2),
|
||||||
active = _react$useState4[0],
|
active = _react$useState4[0],
|
||||||
setActive = _react$useState4[1];
|
setActive = _react$useState4[1];
|
||||||
var onChange = function onChange(e) {};
|
var onChange = function onChange(e) {};
|
||||||
var images = ["cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/download.jpg", "cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images.jpg"];
|
var images = ["cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/download.jpg", "cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images.jpg"];
|
||||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_15__.View, {
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_14__.View, {
|
||||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_notice_bar__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_antmjs_vantui_es_notice_bar__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
||||||
leftIcon: "volume-o",
|
leftIcon: "volume-o",
|
||||||
text: "\u5728\u4EE3\u7801\u9605\u8BFB\u8FC7\u7A0B\u4E2D\u4EBA\u4EEC\u8BF4\u810F\u8BDD\u7684\u9891\u7387\u662F\u8861\u91CF\u4EE3\u7801\u8D28\u91CF\u7684\u552F\u4E00\u6807\u51C6\u3002"
|
text: "\u5728\u4EE3\u7801\u9605\u8BFB\u8FC7\u7A0B\u4E2D\u4EBA\u4EEC\u8BF4\u810F\u8BDD\u7684\u9891\u7387\u662F\u8861\u91CF\u4EE3\u7801\u8D28\u91CF\u7684\u552F\u4E00\u6807\u51C6\u3002"
|
||||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_15__.View, {
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_14__.View, {
|
||||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_tag__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_antmjs_vantui_es_tag__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
||||||
plain: true,
|
plain: true,
|
||||||
type: "primary",
|
type: "primary",
|
||||||
children: "\u6DF1\u5733"
|
children: "\u6DF1\u5733"
|
||||||
})
|
})
|
||||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_15__.View, {
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_14__.View, {
|
||||||
className: "demo-box",
|
className: "demo-box",
|
||||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_swiper__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_antmjs_vantui_es_swiper__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
||||||
height: 200,
|
height: 200,
|
||||||
paginationColor: "#426543",
|
paginationColor: "#426543",
|
||||||
autoPlay: "3000",
|
autoPlay: "3000",
|
||||||
@@ -2157,8 +1897,8 @@ var Home = function Home() {
|
|||||||
paginationVisible: true,
|
paginationVisible: true,
|
||||||
onChange: onChange,
|
onChange: onChange,
|
||||||
children: images.map(function (item, index) {
|
children: images.map(function (item, index) {
|
||||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_swiper_item__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_antmjs_vantui_es_swiper_item__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
||||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_image__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_antmjs_vantui_es_image__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
||||||
src: item,
|
src: item,
|
||||||
fit: "cover",
|
fit: "cover",
|
||||||
width: "100%",
|
width: "100%",
|
||||||
@@ -2167,36 +1907,36 @@ var Home = function Home() {
|
|||||||
}, "swiper#demo1".concat(index));
|
}, "swiper#demo1".concat(index));
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(_antmjs_vantui_es_grid__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)(_antmjs_vantui_es_grid__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
||||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
||||||
icon: "photo-o",
|
icon: "photo-o",
|
||||||
text: "\u5341\u5CF0",
|
text: "\u5341\u5CF0",
|
||||||
onClick: function onClick() {
|
onClick: function onClick() {
|
||||||
// 跳转到目的页面,打开新页面
|
// 跳转到目的页面,打开新页面
|
||||||
_tarojs_taro__WEBPACK_IMPORTED_MODULE_12___default().navigateTo({
|
_tarojs_taro__WEBPACK_IMPORTED_MODULE_10___default().navigateTo({
|
||||||
url: "/pages/mountainPeak/index"
|
url: "/pages/mountainPeak/index"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
||||||
icon: "photo-o",
|
icon: "photo-o",
|
||||||
text: "\u6D3B\u52A8",
|
text: "\u6D3B\u52A8",
|
||||||
onClick: function onClick() {
|
onClick: function onClick() {
|
||||||
// 跳转到目的页面,打开新页面
|
// 跳转到目的页面,打开新页面
|
||||||
_tarojs_taro__WEBPACK_IMPORTED_MODULE_12___default().navigateTo({
|
_tarojs_taro__WEBPACK_IMPORTED_MODULE_10___default().navigateTo({
|
||||||
url: "/pages/activityList/index"
|
url: "/pages/activityList/index"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
||||||
icon: "photo-o",
|
icon: "photo-o",
|
||||||
text: "\u6D3B\u52A8"
|
text: "\u6D3B\u52A8"
|
||||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
||||||
icon: "photo-o",
|
icon: "photo-o",
|
||||||
text: "\u6D3B\u52A8"
|
text: "\u6D3B\u52A8"
|
||||||
})]
|
})]
|
||||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_15__.View, {
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_14__.View, {
|
||||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_divider__WEBPACK_IMPORTED_MODULE_3__["default"], {})
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_antmjs_vantui_es_divider__WEBPACK_IMPORTED_MODULE_1__["default"], {})
|
||||||
}), [1, 2].map(function (item) {
|
}), [1, 2].map(function (item) {
|
||||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_card__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_antmjs_vantui_es_card__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
||||||
num: "",
|
num: "",
|
||||||
price: "",
|
price: "",
|
||||||
desc: "\u62A5\u540D\u4E2D",
|
desc: "\u62A5\u540D\u4E2D",
|
||||||
@@ -2209,22 +1949,8 @@ var Home = function Home() {
|
|||||||
// </View>
|
// </View>
|
||||||
// }
|
// }
|
||||||
});
|
});
|
||||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(_antmjs_vantui_es_tabbar__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_components_TabbarCom__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
||||||
active: active
|
active: 0
|
||||||
// onChange={(e) => setActive(e?.detail)}
|
|
||||||
,
|
|
||||||
|
|
||||||
safeAreaInsetBottom: false,
|
|
||||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_tabbar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
||||||
icon: "home-o",
|
|
||||||
children: "\u9996\u9875"
|
|
||||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_tabbar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
||||||
icon: "friends-o",
|
|
||||||
children: "\u6D3B\u52A8"
|
|
||||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_tabbar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
||||||
icon: "setting-o",
|
|
||||||
children: "\u6211\u7684"
|
|
||||||
})]
|
|
||||||
})]
|
})]
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -2321,273 +2047,6 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|||||||
}());
|
}());
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./node_modules/rc-util/lib/Children/toArray.js":
|
|
||||||
/*!******************************************************!*\
|
|
||||||
!*** ./node_modules/rc-util/lib/Children/toArray.js ***!
|
|
||||||
\******************************************************/
|
|
||||||
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
var __webpack_unused_export__;
|
|
||||||
|
|
||||||
|
|
||||||
var _interopRequireDefault = (__webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js")["default"]);
|
|
||||||
|
|
||||||
__webpack_unused_export__ = ({
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports["default"] = toArray;
|
|
||||||
|
|
||||||
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "webpack/container/remote/react"));
|
|
||||||
|
|
||||||
var _reactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
|
|
||||||
|
|
||||||
function toArray(children) {
|
|
||||||
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
||||||
var ret = [];
|
|
||||||
|
|
||||||
_react.default.Children.forEach(children, function (child) {
|
|
||||||
if ((child === undefined || child === null) && !option.keepEmpty) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Array.isArray(child)) {
|
|
||||||
ret = ret.concat(toArray(child));
|
|
||||||
} else if ((0, _reactIs.isFragment)(child) && child.props) {
|
|
||||||
ret = ret.concat(toArray(child.props.children, option));
|
|
||||||
} else {
|
|
||||||
ret.push(child);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./node_modules/react-is/cjs/react-is.development.js":
|
|
||||||
/*!***********************************************************!*\
|
|
||||||
!*** ./node_modules/react-is/cjs/react-is.development.js ***!
|
|
||||||
\***********************************************************/
|
|
||||||
/***/ (function(__unused_webpack_module, exports) {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
/** @license React v16.13.1
|
|
||||||
* react-is.development.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (true) {
|
|
||||||
(function() {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
||||||
// nor polyfill, then a plain number is used for performance.
|
|
||||||
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
||||||
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
||||||
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
||||||
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
||||||
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
||||||
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
||||||
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
||||||
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
||||||
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
||||||
|
|
||||||
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
||||||
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
||||||
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
||||||
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
||||||
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
||||||
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
||||||
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
||||||
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
||||||
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
||||||
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
||||||
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
||||||
|
|
||||||
function isValidElementType(type) {
|
|
||||||
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
||||||
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
||||||
}
|
|
||||||
|
|
||||||
function typeOf(object) {
|
|
||||||
if (typeof object === 'object' && object !== null) {
|
|
||||||
var $$typeof = object.$$typeof;
|
|
||||||
|
|
||||||
switch ($$typeof) {
|
|
||||||
case REACT_ELEMENT_TYPE:
|
|
||||||
var type = object.type;
|
|
||||||
|
|
||||||
switch (type) {
|
|
||||||
case REACT_ASYNC_MODE_TYPE:
|
|
||||||
case REACT_CONCURRENT_MODE_TYPE:
|
|
||||||
case REACT_FRAGMENT_TYPE:
|
|
||||||
case REACT_PROFILER_TYPE:
|
|
||||||
case REACT_STRICT_MODE_TYPE:
|
|
||||||
case REACT_SUSPENSE_TYPE:
|
|
||||||
return type;
|
|
||||||
|
|
||||||
default:
|
|
||||||
var $$typeofType = type && type.$$typeof;
|
|
||||||
|
|
||||||
switch ($$typeofType) {
|
|
||||||
case REACT_CONTEXT_TYPE:
|
|
||||||
case REACT_FORWARD_REF_TYPE:
|
|
||||||
case REACT_LAZY_TYPE:
|
|
||||||
case REACT_MEMO_TYPE:
|
|
||||||
case REACT_PROVIDER_TYPE:
|
|
||||||
return $$typeofType;
|
|
||||||
|
|
||||||
default:
|
|
||||||
return $$typeof;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
case REACT_PORTAL_TYPE:
|
|
||||||
return $$typeof;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return undefined;
|
|
||||||
} // AsyncMode is deprecated along with isAsyncMode
|
|
||||||
|
|
||||||
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
||||||
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
||||||
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
||||||
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
||||||
var Element = REACT_ELEMENT_TYPE;
|
|
||||||
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
||||||
var Fragment = REACT_FRAGMENT_TYPE;
|
|
||||||
var Lazy = REACT_LAZY_TYPE;
|
|
||||||
var Memo = REACT_MEMO_TYPE;
|
|
||||||
var Portal = REACT_PORTAL_TYPE;
|
|
||||||
var Profiler = REACT_PROFILER_TYPE;
|
|
||||||
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
||||||
var Suspense = REACT_SUSPENSE_TYPE;
|
|
||||||
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
||||||
|
|
||||||
function isAsyncMode(object) {
|
|
||||||
{
|
|
||||||
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
||||||
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
||||||
|
|
||||||
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
||||||
}
|
|
||||||
function isConcurrentMode(object) {
|
|
||||||
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
||||||
}
|
|
||||||
function isContextConsumer(object) {
|
|
||||||
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
||||||
}
|
|
||||||
function isContextProvider(object) {
|
|
||||||
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
||||||
}
|
|
||||||
function isElement(object) {
|
|
||||||
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
||||||
}
|
|
||||||
function isForwardRef(object) {
|
|
||||||
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
||||||
}
|
|
||||||
function isFragment(object) {
|
|
||||||
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
||||||
}
|
|
||||||
function isLazy(object) {
|
|
||||||
return typeOf(object) === REACT_LAZY_TYPE;
|
|
||||||
}
|
|
||||||
function isMemo(object) {
|
|
||||||
return typeOf(object) === REACT_MEMO_TYPE;
|
|
||||||
}
|
|
||||||
function isPortal(object) {
|
|
||||||
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
||||||
}
|
|
||||||
function isProfiler(object) {
|
|
||||||
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
||||||
}
|
|
||||||
function isStrictMode(object) {
|
|
||||||
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
||||||
}
|
|
||||||
function isSuspense(object) {
|
|
||||||
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
||||||
}
|
|
||||||
|
|
||||||
exports.AsyncMode = AsyncMode;
|
|
||||||
exports.ConcurrentMode = ConcurrentMode;
|
|
||||||
exports.ContextConsumer = ContextConsumer;
|
|
||||||
exports.ContextProvider = ContextProvider;
|
|
||||||
exports.Element = Element;
|
|
||||||
exports.ForwardRef = ForwardRef;
|
|
||||||
exports.Fragment = Fragment;
|
|
||||||
exports.Lazy = Lazy;
|
|
||||||
exports.Memo = Memo;
|
|
||||||
exports.Portal = Portal;
|
|
||||||
exports.Profiler = Profiler;
|
|
||||||
exports.StrictMode = StrictMode;
|
|
||||||
exports.Suspense = Suspense;
|
|
||||||
exports.isAsyncMode = isAsyncMode;
|
|
||||||
exports.isConcurrentMode = isConcurrentMode;
|
|
||||||
exports.isContextConsumer = isContextConsumer;
|
|
||||||
exports.isContextProvider = isContextProvider;
|
|
||||||
exports.isElement = isElement;
|
|
||||||
exports.isForwardRef = isForwardRef;
|
|
||||||
exports.isFragment = isFragment;
|
|
||||||
exports.isLazy = isLazy;
|
|
||||||
exports.isMemo = isMemo;
|
|
||||||
exports.isPortal = isPortal;
|
|
||||||
exports.isProfiler = isProfiler;
|
|
||||||
exports.isStrictMode = isStrictMode;
|
|
||||||
exports.isSuspense = isSuspense;
|
|
||||||
exports.isValidElementType = isValidElementType;
|
|
||||||
exports.typeOf = typeOf;
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./node_modules/react-is/index.js":
|
|
||||||
/*!****************************************!*\
|
|
||||||
!*** ./node_modules/react-is/index.js ***!
|
|
||||||
\****************************************/
|
|
||||||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
|
|
||||||
if (false) {} else {
|
|
||||||
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js":
|
|
||||||
/*!**********************************************************************!*\
|
|
||||||
!*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
|
|
||||||
\**********************************************************************/
|
|
||||||
/***/ (function(module) {
|
|
||||||
|
|
||||||
function _interopRequireDefault(obj) {
|
|
||||||
return obj && obj.__esModule ? obj : {
|
|
||||||
"default": obj
|
|
||||||
};
|
|
||||||
}
|
|
||||||
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ "./node_modules/@babel/runtime/helpers/regeneratorRuntime.js":
|
/***/ "./node_modules/@babel/runtime/helpers/regeneratorRuntime.js":
|
||||||
|
|||||||
2
dist/pages/home/index.js.map
vendored
2
dist/pages/home/index.js.map
vendored
File diff suppressed because one or more lines are too long
8
dist/pages/home/index.wxss
vendored
8
dist/pages/home/index.wxss
vendored
@@ -1,11 +1,3 @@
|
|||||||
/*!***********************************************************************************************************************************************************************************************************************!*\
|
|
||||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/tabbar/index.css ***!
|
|
||||||
\***********************************************************************************************************************************************************************************************************************/
|
|
||||||
.van-tabbar{display:-webkit-flex;display:flex;box-sizing:content-box;width:100%;z-index:805;height:100rpx;height:var(--tabbar-height,100rpx);background-color:#fff;background-color:var(--tabbar-background-color,#fff)}.van-tabbar--fixed{position:fixed!important;bottom:0;left:0}.van-tabbar--safe{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}
|
|
||||||
/*!****************************************************************************************************************************************************************************************************************************!*\
|
|
||||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/tabbar-item/index.css ***!
|
|
||||||
\****************************************************************************************************************************************************************************************************************************/
|
|
||||||
.van-tabbar-item{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;-webkit-flex:1;flex:1;height:100%;color:#646566;color:var(--tabbar-item-text-color,#646566);font-size:24rpx;font-size:var(--tabbar-item-font-size, 24rpx);line-height:1;line-height:var(--tabbar-item-line-height, 1)}.van-tabbar-item__icon{position:relative;margin-bottom:8rpx;margin-bottom:var(--tabbar-item-margin-bottom,8rpx);font-size:44rpx;font-size:var(--tabbar-item-icon-size, 44rpx)}.van-tabbar-item__icon__inner{display:block;min-width:1em}.van-tabbar-item--active{color:#1989fa;color:var(--tabbar-item-active-color,#1989fa)}.van-tabbar-item__info{margin-top:4rpx}
|
|
||||||
/*!********************************************************************************************************************************************************************************************************************!*\
|
/*!********************************************************************************************************************************************************************************************************************!*\
|
||||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/tag/index.css ***!
|
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/tag/index.css ***!
|
||||||
\********************************************************************************************************************************************************************************************************************/
|
\********************************************************************************************************************************************************************************************************************/
|
||||||
|
|||||||
59
dist/pages/my/index.js
vendored
Normal file
59
dist/pages/my/index.js
vendored
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
"use strict";
|
||||||
|
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["pages/my/index"],{
|
||||||
|
|
||||||
|
/***/ "./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/my/index.tsx":
|
||||||
|
/*!*****************************************************************************************************!*\
|
||||||
|
!*** ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/my/index.tsx ***!
|
||||||
|
\*****************************************************************************************************/
|
||||||
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
||||||
|
/* harmony import */ var _components_TabbarCom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/TabbarCom */ "./src/pages/components/TabbarCom/index.tsx");
|
||||||
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
|
||||||
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var my = function my(props) {
|
||||||
|
// const [active, setActive] = react.useState(props?.active ?? 0);
|
||||||
|
|
||||||
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_2__.View, {
|
||||||
|
children: ["my", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components_TabbarCom__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
||||||
|
active: 2
|
||||||
|
}), ";"]
|
||||||
|
});
|
||||||
|
};
|
||||||
|
/* harmony default export */ __webpack_exports__["default"] = (my);
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ "./src/pages/my/index.tsx":
|
||||||
|
/*!********************************!*\
|
||||||
|
!*** ./src/pages/my/index.tsx ***!
|
||||||
|
\********************************/
|
||||||
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
/* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/runtime */ "webpack/container/remote/@tarojs/runtime");
|
||||||
|
/* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
||||||
|
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_index_tsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./index.tsx */ "./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/my/index.tsx");
|
||||||
|
|
||||||
|
|
||||||
|
var config = {};
|
||||||
|
|
||||||
|
|
||||||
|
var inst = Page((0,_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__.createPageConfig)(_node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_index_tsx__WEBPACK_IMPORTED_MODULE_1__["default"], 'pages/my/index', {root:{cn:[]}}, config || {}))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
},
|
||||||
|
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
||||||
|
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
||||||
|
/******/ __webpack_require__.O(0, ["taro","vendors","common"], function() { return __webpack_exec__("./src/pages/my/index.tsx"); });
|
||||||
|
/******/ var __webpack_exports__ = __webpack_require__.O();
|
||||||
|
/******/ }
|
||||||
|
]);
|
||||||
|
//# sourceMappingURL=index.js.map
|
||||||
1
dist/pages/my/index.js.map
vendored
Normal file
1
dist/pages/my/index.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"pages/my/index.js","mappings":";;;;;;;;;;;;;AACA;AAEA;AAAA;AAAA;AAEA;AACA;;AAEA;AACA;AAEA;AAAA;AAAA;AAGA;AAEA;;;;;;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://myApp/._src_pages_my_index.tsx","webpack://myApp/./src/pages/my/index.tsx?f47f"],"sourcesContent":["import { Tabbar, TabbarItem } from \"@antmjs/vantui\";\nimport { View } from \"@tarojs/components\";\nimport react from \"react\";\nimport TabbarCom from \"../components/TabbarCom\";\n\nconst my = (props: any) => {\n// const [active, setActive] = react.useState(props?.active ?? 0);\n\n return (\n <View>\n my\n <TabbarCom active={2} />;\n </View>\n );\n};\n\nexport default my;\n","import { createPageConfig } from '@tarojs/runtime'\nimport component from \"../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./index.tsx\"\nvar config = {};\n\n\nvar inst = Page(createPageConfig(component, 'pages/my/index', {root:{cn:[]}}, config || {}))\n\n\n"],"names":[],"sourceRoot":""}
|
||||||
1
dist/pages/my/index.json
vendored
Normal file
1
dist/pages/my/index.json
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"usingComponents":{"comp":"../../comp"}}
|
||||||
2
dist/pages/my/index.wxml
vendored
Normal file
2
dist/pages/my/index.wxml
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<import src="../../base.wxml"/>
|
||||||
|
<template is="taro_tmpl" data="{{root:root}}" />
|
||||||
38
dist/prebundle/node_modules_taro_weapp_prebundle_react-dom_js.js
vendored
Normal file
38
dist/prebundle/node_modules_taro_weapp_prebundle_react-dom_js.js
vendored
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
"use strict";
|
||||||
|
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["node_modules_taro_weapp_prebundle_react-dom_js"],{
|
||||||
|
|
||||||
|
/***/ "./node_modules/.taro/weapp/prebundle/react-dom.js":
|
||||||
|
/*!*********************************************************!*\
|
||||||
|
!*** ./node_modules/.taro/weapp/prebundle/react-dom.js ***!
|
||||||
|
\*********************************************************/
|
||||||
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
__webpack_require__.r(__webpack_exports__);
|
||||||
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||||
|
/* harmony export */ "createPortal": function() { return /* reexport safe */ _chunk_OEADN3SU_js__WEBPACK_IMPORTED_MODULE_0__.createPortal; },
|
||||||
|
/* harmony export */ "createRoot": function() { return /* reexport safe */ _chunk_OEADN3SU_js__WEBPACK_IMPORTED_MODULE_0__.createRoot; },
|
||||||
|
/* harmony export */ "default": function() { return /* binding */ react_dom_default; },
|
||||||
|
/* harmony export */ "findDOMNode": function() { return /* reexport safe */ _chunk_OEADN3SU_js__WEBPACK_IMPORTED_MODULE_0__.findDOMNode; },
|
||||||
|
/* harmony export */ "render": function() { return /* reexport safe */ _chunk_OEADN3SU_js__WEBPACK_IMPORTED_MODULE_0__.render; },
|
||||||
|
/* harmony export */ "unmountComponentAtNode": function() { return /* reexport safe */ _chunk_OEADN3SU_js__WEBPACK_IMPORTED_MODULE_0__.unmountComponentAtNode; },
|
||||||
|
/* harmony export */ "unstable_batchedUpdates": function() { return /* reexport safe */ _chunk_OEADN3SU_js__WEBPACK_IMPORTED_MODULE_0__.unstable_batchedUpdates; }
|
||||||
|
/* harmony export */ });
|
||||||
|
/* harmony import */ var _chunk_OEADN3SU_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-OEADN3SU.js */ "./node_modules/.taro/weapp/prebundle/chunk-OEADN3SU.js");
|
||||||
|
/* harmony import */ var _chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-LNJCN3VW.js */ "./node_modules/.taro/weapp/prebundle/chunk-LNJCN3VW.js");
|
||||||
|
/* harmony import */ var _chunk_VXAYXK77_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-VXAYXK77.js */ "./node_modules/.taro/weapp/prebundle/chunk-VXAYXK77.js");
|
||||||
|
/* harmony import */ var _chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-BS6JQHLA.js */ "./node_modules/.taro/weapp/prebundle/chunk-BS6JQHLA.js");
|
||||||
|
/* harmony import */ var _chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-P7VEE7PG.js */ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// entry:react-dom
|
||||||
|
(0,_chunk_OEADN3SU_js__WEBPACK_IMPORTED_MODULE_0__.init_react_esm)();
|
||||||
|
(0,_chunk_OEADN3SU_js__WEBPACK_IMPORTED_MODULE_0__.init_react_esm)();
|
||||||
|
var react_dom_default = _chunk_OEADN3SU_js__WEBPACK_IMPORTED_MODULE_0__.index;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
}]);
|
||||||
@@ -1,5 +1,75 @@
|
|||||||
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["node_modules_taro_weapp_prebundle_react_jsx-runtime_js"],{
|
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["node_modules_taro_weapp_prebundle_react_jsx-runtime_js"],{
|
||||||
|
|
||||||
|
/***/ "./node_modules/.taro/weapp/prebundle/chunk-CLBGU7VA.js":
|
||||||
|
/*!**************************************************************!*\
|
||||||
|
!*** ./node_modules/.taro/weapp/prebundle/chunk-CLBGU7VA.js ***!
|
||||||
|
\**************************************************************/
|
||||||
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||||
|
/* harmony export */ "require_react_jsx_runtime_production_min": function() { return /* binding */ require_react_jsx_runtime_production_min; }
|
||||||
|
/* harmony export */ });
|
||||||
|
/* harmony import */ var _chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-LNJCN3VW.js */ "./node_modules/.taro/weapp/prebundle/chunk-LNJCN3VW.js");
|
||||||
|
/* harmony import */ var _chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-P7VEE7PG.js */ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js");
|
||||||
|
|
||||||
|
|
||||||
|
// node_modules/react/cjs/react-jsx-runtime.production.min.js
|
||||||
|
var require_react_jsx_runtime_production_min = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_1__.__commonJS)({
|
||||||
|
"node_modules/react/cjs/react-jsx-runtime.production.min.js": function node_modulesReactCjsReactJsxRuntimeProductionMinJs(exports) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var f = (0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_0__.require_react_production_min)();
|
||||||
|
var k = Symbol.for("react.element");
|
||||||
|
var l = Symbol.for("react.fragment");
|
||||||
|
var m = Object.prototype.hasOwnProperty;
|
||||||
|
var n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
|
||||||
|
var p = {
|
||||||
|
key: true,
|
||||||
|
ref: true,
|
||||||
|
__self: true,
|
||||||
|
__source: true
|
||||||
|
};
|
||||||
|
function q(c, a, g) {
|
||||||
|
var b,
|
||||||
|
d = {},
|
||||||
|
e = null,
|
||||||
|
h = null;
|
||||||
|
void 0 !== g && (e = "" + g);
|
||||||
|
void 0 !== a.key && (e = "" + a.key);
|
||||||
|
void 0 !== a.ref && (h = a.ref);
|
||||||
|
for (b in a) {
|
||||||
|
m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
|
||||||
|
}
|
||||||
|
if (c && c.defaultProps) for (b in a = c.defaultProps, a) {
|
||||||
|
void 0 === d[b] && (d[b] = a[b]);
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
$$typeof: k,
|
||||||
|
type: c,
|
||||||
|
key: e,
|
||||||
|
ref: h,
|
||||||
|
props: d,
|
||||||
|
_owner: n.current
|
||||||
|
};
|
||||||
|
}
|
||||||
|
exports.Fragment = l;
|
||||||
|
exports.jsx = q;
|
||||||
|
exports.jsxs = q;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
/**
|
||||||
|
* @license React
|
||||||
|
* react-jsx-runtime.production.min.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
/***/ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js":
|
/***/ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js":
|
||||||
/*!**************************************************************!*\
|
/*!**************************************************************!*\
|
||||||
!*** ./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js ***!
|
!*** ./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js ***!
|
||||||
@@ -92,69 +162,19 @@ var __toCommonJS = function __toCommonJS(mod) {
|
|||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
__webpack_require__.r(__webpack_exports__);
|
__webpack_require__.r(__webpack_exports__);
|
||||||
/* harmony import */ var _chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-LNJCN3VW.js */ "./node_modules/.taro/weapp/prebundle/chunk-LNJCN3VW.js");
|
/* harmony import */ var _chunk_CLBGU7VA_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-CLBGU7VA.js */ "./node_modules/.taro/weapp/prebundle/chunk-CLBGU7VA.js");
|
||||||
/* harmony import */ var _chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-P7VEE7PG.js */ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js");
|
/* harmony import */ var _chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-LNJCN3VW.js */ "./node_modules/.taro/weapp/prebundle/chunk-LNJCN3VW.js");
|
||||||
|
/* harmony import */ var _chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-P7VEE7PG.js */ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js");
|
||||||
|
|
||||||
|
|
||||||
// node_modules/react/cjs/react-jsx-runtime.production.min.js
|
|
||||||
var require_react_jsx_runtime_production_min = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_1__.__commonJS)({
|
|
||||||
"node_modules/react/cjs/react-jsx-runtime.production.min.js": function node_modulesReactCjsReactJsxRuntimeProductionMinJs(exports) {
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
var f = (0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_0__.require_react_production_min)();
|
|
||||||
var k = Symbol.for("react.element");
|
|
||||||
var l = Symbol.for("react.fragment");
|
|
||||||
var m = Object.prototype.hasOwnProperty;
|
|
||||||
var n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
|
|
||||||
var p = {
|
|
||||||
key: true,
|
|
||||||
ref: true,
|
|
||||||
__self: true,
|
|
||||||
__source: true
|
|
||||||
};
|
|
||||||
function q(c, a, g) {
|
|
||||||
var b,
|
|
||||||
d = {},
|
|
||||||
e = null,
|
|
||||||
h = null;
|
|
||||||
void 0 !== g && (e = "" + g);
|
|
||||||
void 0 !== a.key && (e = "" + a.key);
|
|
||||||
void 0 !== a.ref && (h = a.ref);
|
|
||||||
for (b in a) {
|
|
||||||
m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
|
|
||||||
}
|
|
||||||
if (c && c.defaultProps) for (b in a = c.defaultProps, a) {
|
|
||||||
void 0 === d[b] && (d[b] = a[b]);
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
$$typeof: k,
|
|
||||||
type: c,
|
|
||||||
key: e,
|
|
||||||
ref: h,
|
|
||||||
props: d,
|
|
||||||
_owner: n.current
|
|
||||||
};
|
|
||||||
}
|
|
||||||
exports.Fragment = l;
|
|
||||||
exports.jsx = q;
|
|
||||||
exports.jsxs = q;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// entry:react_jsx-runtime
|
// entry:react_jsx-runtime
|
||||||
var require_react_jsx_runtime = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_1__.__commonJS)({
|
var require_react_jsx_runtime = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_2__.__commonJS)({
|
||||||
"entry:react_jsx-runtime": function entryReact_jsxRuntime(exports, module) {
|
"entry:react_jsx-runtime": function entryReact_jsxRuntime(exports, module) {
|
||||||
module.exports = require_react_jsx_runtime_production_min();
|
module.exports = (0,_chunk_CLBGU7VA_js__WEBPACK_IMPORTED_MODULE_0__.require_react_jsx_runtime_production_min)();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
/* harmony default export */ __webpack_exports__["default"] = (require_react_jsx_runtime()); /**
|
/* harmony default export */ __webpack_exports__["default"] = (require_react_jsx_runtime());
|
||||||
* @license React
|
|
||||||
* react-jsx-runtime.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
|||||||
41
dist/prebundle/node_modules_taro_weapp_prebundle_tarojs_taro_js.js
vendored
Normal file
41
dist/prebundle/node_modules_taro_weapp_prebundle_tarojs_taro_js.js
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["node_modules_taro_weapp_prebundle_tarojs_taro_js"],{
|
||||||
|
|
||||||
|
/***/ "./node_modules/.taro/weapp/prebundle/@tarojs_taro.core.js":
|
||||||
|
/*!*****************************************************************!*\
|
||||||
|
!*** ./node_modules/.taro/weapp/prebundle/@tarojs_taro.core.js ***!
|
||||||
|
\*****************************************************************/
|
||||||
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
__webpack_require__.r(__webpack_exports__);
|
||||||
|
/* harmony import */ var _chunk_TUA3UK7E_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-TUA3UK7E.js */ "./node_modules/.taro/weapp/prebundle/chunk-TUA3UK7E.js");
|
||||||
|
/* harmony import */ var _chunk_VXAYXK77_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-VXAYXK77.js */ "./node_modules/.taro/weapp/prebundle/chunk-VXAYXK77.js");
|
||||||
|
/* harmony import */ var _chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-BS6JQHLA.js */ "./node_modules/.taro/weapp/prebundle/chunk-BS6JQHLA.js");
|
||||||
|
/* harmony import */ var _chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-P7VEE7PG.js */ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// entry:@tarojs_taro
|
||||||
|
var require_tarojs_taro = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_3__.__commonJS)({
|
||||||
|
"entry:@tarojs_taro": function entryTarojs_taro(exports, module) {
|
||||||
|
module.exports = (0,_chunk_TUA3UK7E_js__WEBPACK_IMPORTED_MODULE_0__.require_taro)();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
/* harmony default export */ __webpack_exports__["default"] = (require_tarojs_taro());
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ "./node_modules/.taro/weapp/prebundle/@tarojs_taro.js":
|
||||||
|
/*!************************************************************!*\
|
||||||
|
!*** ./node_modules/.taro/weapp/prebundle/@tarojs_taro.js ***!
|
||||||
|
\************************************************************/
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
var m = __webpack_require__(/*! ./@tarojs_taro.core.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_taro.core.js");
|
||||||
|
module.exports = m.default;
|
||||||
|
exports["default"] = module.exports;
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
}]);
|
||||||
28
dist/prebundle/remoteEntry.js
vendored
28
dist/prebundle/remoteEntry.js
vendored
@@ -12,23 +12,26 @@ var moduleMap = {
|
|||||||
"./react": function() {
|
"./react": function() {
|
||||||
return Promise.all([__webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-LNJCN3VW_js"), __webpack_require__.e("node_modules_taro_weapp_prebundle_react_js")]).then(function() { return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/react.js */ "./node_modules/.taro/weapp/prebundle/react.js")); }; });
|
return Promise.all([__webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-LNJCN3VW_js"), __webpack_require__.e("node_modules_taro_weapp_prebundle_react_js")]).then(function() { return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/react.js */ "./node_modules/.taro/weapp/prebundle/react.js")); }; });
|
||||||
},
|
},
|
||||||
|
"./@antmjs/vantui": function() {
|
||||||
|
return Promise.all([__webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-BS6JQHLA_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-VXAYXK77_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-LNJCN3VW_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-OEADN3SU_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-TUA3UK7E_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_antmjs_vantui_js")]).then(function() { return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@antmjs_vantui.js */ "./node_modules/.taro/weapp/prebundle/@antmjs_vantui.js")); }; });
|
||||||
|
},
|
||||||
|
"./@tarojs/taro": function() {
|
||||||
|
return Promise.all([__webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-BS6JQHLA_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-VXAYXK77_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-TUA3UK7E_js"), __webpack_require__.e("node_modules_taro_weapp_prebundle_tarojs_taro_js")]).then(function() { return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@tarojs_taro.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_taro.js")); }; });
|
||||||
|
},
|
||||||
"./react/jsx-runtime": function() {
|
"./react/jsx-runtime": function() {
|
||||||
return Promise.all([__webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-LNJCN3VW_js"), __webpack_require__.e("node_modules_taro_weapp_prebundle_react_jsx-runtime_js")]).then(function() { return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/react_jsx-runtime.js */ "./node_modules/.taro/weapp/prebundle/react_jsx-runtime.js")); }; });
|
return Promise.all([__webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-LNJCN3VW_js"), __webpack_require__.e("node_modules_taro_weapp_prebundle_react_jsx-runtime_js")]).then(function() { return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/react_jsx-runtime.js */ "./node_modules/.taro/weapp/prebundle/react_jsx-runtime.js")); }; });
|
||||||
},
|
},
|
||||||
"./@tarojs/runtime": function() {
|
"./@tarojs/runtime": function() {
|
||||||
return Promise.all([__webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-BS6JQHLA_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-VXAYXK77_js"), __webpack_require__.e("node_modules_taro_weapp_prebundle_tarojs_runtime_js")]).then(function() { return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@tarojs_runtime.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_runtime.js")); }; });
|
return Promise.all([__webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-BS6JQHLA_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-VXAYXK77_js"), __webpack_require__.e("node_modules_taro_weapp_prebundle_tarojs_runtime_js")]).then(function() { return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@tarojs_runtime.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_runtime.js")); }; });
|
||||||
},
|
},
|
||||||
"./@tarojs/plugin-framework-react/dist/runtime": function() {
|
|
||||||
return Promise.all([__webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-BS6JQHLA_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-VXAYXK77_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-framework-react_dist_runtime_js")]).then(function() { return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@tarojs_plugin-framework-react_dist_runtime.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_plugin-framework-react_dist_runtime.js")); }; });
|
|
||||||
},
|
|
||||||
"./@tarojs/plugin-platform-weapp/dist/runtime": function() {
|
"./@tarojs/plugin-platform-weapp/dist/runtime": function() {
|
||||||
return Promise.all([__webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-BS6JQHLA_js"), __webpack_require__.e("node_modules_taro_weapp_prebundle_tarojs_plugin-platform-weapp_dist_runtime_js")]).then(function() { return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@tarojs_plugin-platform-weapp_dist_runtime.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_plugin-platform-weapp_dist_runtime.js")); }; });
|
return Promise.all([__webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-BS6JQHLA_js"), __webpack_require__.e("node_modules_taro_weapp_prebundle_tarojs_plugin-platform-weapp_dist_runtime_js")]).then(function() { return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@tarojs_plugin-platform-weapp_dist_runtime.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_plugin-platform-weapp_dist_runtime.js")); }; });
|
||||||
},
|
},
|
||||||
"./@tarojs/taro": function() {
|
"./@tarojs/plugin-framework-react/dist/runtime": function() {
|
||||||
return Promise.all([__webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-BS6JQHLA_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-VXAYXK77_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_tarojs_taro_js")]).then(function() { return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@tarojs_taro.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_taro.js")); }; });
|
return Promise.all([__webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-BS6JQHLA_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-VXAYXK77_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-framework-react_dist_runtime_js")]).then(function() { return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@tarojs_plugin-framework-react_dist_runtime.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_plugin-framework-react_dist_runtime.js")); }; });
|
||||||
},
|
},
|
||||||
"./react-dom": function() {
|
"./react-dom": function() {
|
||||||
return Promise.all([__webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-BS6JQHLA_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-VXAYXK77_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-LNJCN3VW_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_react-dom_js")]).then(function() { return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/react-dom.js */ "./node_modules/.taro/weapp/prebundle/react-dom.js")); }; });
|
return Promise.all([__webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-BS6JQHLA_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-VXAYXK77_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-LNJCN3VW_js"), __webpack_require__.e("vendors-node_modules_taro_weapp_prebundle_chunk-OEADN3SU_js"), __webpack_require__.e("node_modules_taro_weapp_prebundle_react-dom_js")]).then(function() { return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/react-dom.js */ "./node_modules/.taro/weapp/prebundle/react-dom.js")); }; });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var get = function(module, getScope) {
|
var get = function(module, getScope) {
|
||||||
@@ -62,20 +65,23 @@ var taroModuleMap = {
|
|||||||
"./react": function() {
|
"./react": function() {
|
||||||
return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/react.js */ "./node_modules/.taro/weapp/prebundle/react.js")); };
|
return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/react.js */ "./node_modules/.taro/weapp/prebundle/react.js")); };
|
||||||
},
|
},
|
||||||
|
"./@antmjs/vantui": function() {
|
||||||
|
return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@antmjs_vantui.js */ "./node_modules/.taro/weapp/prebundle/@antmjs_vantui.js")); };
|
||||||
|
},
|
||||||
|
"./@tarojs/taro": function() {
|
||||||
|
return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@tarojs_taro.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_taro.js")); };
|
||||||
|
},
|
||||||
"./react/jsx-runtime": function() {
|
"./react/jsx-runtime": function() {
|
||||||
return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/react_jsx-runtime.js */ "./node_modules/.taro/weapp/prebundle/react_jsx-runtime.js")); };
|
return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/react_jsx-runtime.js */ "./node_modules/.taro/weapp/prebundle/react_jsx-runtime.js")); };
|
||||||
},
|
},
|
||||||
"./@tarojs/runtime": function() {
|
"./@tarojs/runtime": function() {
|
||||||
return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@tarojs_runtime.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_runtime.js")); };
|
return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@tarojs_runtime.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_runtime.js")); };
|
||||||
},
|
},
|
||||||
"./@tarojs/plugin-framework-react/dist/runtime": function() {
|
|
||||||
return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@tarojs_plugin-framework-react_dist_runtime.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_plugin-framework-react_dist_runtime.js")); };
|
|
||||||
},
|
|
||||||
"./@tarojs/plugin-platform-weapp/dist/runtime": function() {
|
"./@tarojs/plugin-platform-weapp/dist/runtime": function() {
|
||||||
return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@tarojs_plugin-platform-weapp_dist_runtime.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_plugin-platform-weapp_dist_runtime.js")); };
|
return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@tarojs_plugin-platform-weapp_dist_runtime.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_plugin-platform-weapp_dist_runtime.js")); };
|
||||||
},
|
},
|
||||||
"./@tarojs/taro": function() {
|
"./@tarojs/plugin-framework-react/dist/runtime": function() {
|
||||||
return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@tarojs_taro.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_taro.js")); };
|
return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/@tarojs_plugin-framework-react_dist_runtime.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_plugin-framework-react_dist_runtime.js")); };
|
||||||
},
|
},
|
||||||
"./react-dom": function() {
|
"./react-dom": function() {
|
||||||
return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/react-dom.js */ "./node_modules/.taro/weapp/prebundle/react-dom.js")); };
|
return function() { return (__webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/react-dom.js */ "./node_modules/.taro/weapp/prebundle/react-dom.js")); };
|
||||||
|
|||||||
23803
dist/prebundle/vendors-node_modules_taro_weapp_prebundle_antmjs_vantui_js.js
vendored
Normal file
23803
dist/prebundle/vendors-node_modules_taro_weapp_prebundle_antmjs_vantui_js.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,21 +1,22 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["vendors-node_modules_taro_weapp_prebundle_react-dom_js"],{
|
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["vendors-node_modules_taro_weapp_prebundle_chunk-OEADN3SU_js"],{
|
||||||
|
|
||||||
/***/ "./node_modules/.taro/weapp/prebundle/react-dom.js":
|
/***/ "./node_modules/.taro/weapp/prebundle/chunk-OEADN3SU.js":
|
||||||
/*!*********************************************************!*\
|
/*!**************************************************************!*\
|
||||||
!*** ./node_modules/.taro/weapp/prebundle/react-dom.js ***!
|
!*** ./node_modules/.taro/weapp/prebundle/chunk-OEADN3SU.js ***!
|
||||||
\*********************************************************/
|
\**************************************************************/
|
||||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
__webpack_require__.r(__webpack_exports__);
|
|
||||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||||
/* harmony export */ "createPortal": function() { return /* binding */ createPortal; },
|
/* harmony export */ "render": function() { return /* binding */ _render; },
|
||||||
/* harmony export */ "createRoot": function() { return /* binding */ createRoot; },
|
/* harmony export */ "createRoot": function() { return /* binding */ _createRoot; },
|
||||||
/* harmony export */ "default": function() { return /* binding */ react_dom_default; },
|
/* harmony export */ "unstable_batchedUpdates": function() { return /* binding */ _unstable_batchedUpdates; },
|
||||||
/* harmony export */ "findDOMNode": function() { return /* binding */ findDOMNode; },
|
/* harmony export */ "unmountComponentAtNode": function() { return /* binding */ _unmountComponentAtNode; },
|
||||||
/* harmony export */ "render": function() { return /* binding */ render; },
|
/* harmony export */ "findDOMNode": function() { return /* binding */ _findDOMNode; },
|
||||||
/* harmony export */ "unmountComponentAtNode": function() { return /* binding */ unmountComponentAtNode; },
|
/* harmony export */ "createPortal": function() { return /* binding */ _createPortal; },
|
||||||
/* harmony export */ "unstable_batchedUpdates": function() { return /* binding */ unstable_batchedUpdates; }
|
/* harmony export */ "index": function() { return /* binding */ index; },
|
||||||
|
/* harmony export */ "react_esm_exports": function() { return /* binding */ react_esm_exports; },
|
||||||
|
/* harmony export */ "init_react_esm": function() { return /* binding */ init_react_esm; }
|
||||||
/* harmony export */ });
|
/* harmony export */ });
|
||||||
/* harmony import */ var _Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
/* harmony import */ var _Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
||||||
/* harmony import */ var _Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/createClass.js */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
/* harmony import */ var _Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/createClass.js */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
||||||
@@ -5893,14 +5894,33 @@ var require_scheduler_production_min2 = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
// node_modules/@tarojs/react/dist/react.esm.js
|
// node_modules/@tarojs/react/dist/react.esm.js
|
||||||
(0,_chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.init_shared_esm)();
|
var react_esm_exports = {};
|
||||||
(0,_chunk_VXAYXK77_js__WEBPACK_IMPORTED_MODULE_1__.init_runtime_esm)();
|
(0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_3__.__export)(react_esm_exports, {
|
||||||
var import_react_reconciler = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_3__.__toESM)(require_react_reconciler_production_min());
|
createPortal: function createPortal() {
|
||||||
var scheduler = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_3__.__toESM)(require_scheduler_production_min2());
|
return _createPortal;
|
||||||
|
},
|
||||||
|
createRoot: function createRoot() {
|
||||||
|
return _createRoot;
|
||||||
|
},
|
||||||
|
default: function _default() {
|
||||||
|
return index;
|
||||||
|
},
|
||||||
|
findDOMNode: function findDOMNode() {
|
||||||
|
return _findDOMNode;
|
||||||
|
},
|
||||||
|
render: function render() {
|
||||||
|
return _render;
|
||||||
|
},
|
||||||
|
unmountComponentAtNode: function unmountComponentAtNode() {
|
||||||
|
return _unmountComponentAtNode;
|
||||||
|
},
|
||||||
|
unstable_batchedUpdates: function unstable_batchedUpdates() {
|
||||||
|
return _unstable_batchedUpdates;
|
||||||
|
}
|
||||||
|
});
|
||||||
function isEventName(s) {
|
function isEventName(s) {
|
||||||
return s[0] === "o" && s[1] === "n";
|
return s[0] === "o" && s[1] === "n";
|
||||||
}
|
}
|
||||||
var IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
|
||||||
function updateProps(dom, oldProps, newProps) {
|
function updateProps(dom, oldProps, newProps) {
|
||||||
var i;
|
var i;
|
||||||
for (i in oldProps) {
|
for (i in oldProps) {
|
||||||
@@ -5991,138 +6011,10 @@ function setProperty(dom, name, value, oldValue) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var now = scheduler.unstable_now;
|
|
||||||
function returnFalse() {
|
function returnFalse() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
var hostConfig = {
|
function _render(element, domContainer, cb) {
|
||||||
createInstance: function createInstance(type) {
|
|
||||||
return _chunk_VXAYXK77_js__WEBPACK_IMPORTED_MODULE_1__.document$1.createElement(type);
|
|
||||||
},
|
|
||||||
createTextInstance: function createTextInstance(text) {
|
|
||||||
return _chunk_VXAYXK77_js__WEBPACK_IMPORTED_MODULE_1__.document$1.createTextNode(text);
|
|
||||||
},
|
|
||||||
getPublicInstance: function getPublicInstance(inst) {
|
|
||||||
return inst;
|
|
||||||
},
|
|
||||||
getRootHostContext: function getRootHostContext() {
|
|
||||||
return {};
|
|
||||||
},
|
|
||||||
getChildHostContext: function getChildHostContext() {
|
|
||||||
return {};
|
|
||||||
},
|
|
||||||
getCurrentEventPriority: function getCurrentEventPriority() {
|
|
||||||
return 16;
|
|
||||||
},
|
|
||||||
detachDeletedInstance: function detachDeletedInstance() {},
|
|
||||||
appendChild: function appendChild(parent, child) {
|
|
||||||
parent.appendChild(child);
|
|
||||||
},
|
|
||||||
appendInitialChild: function appendInitialChild(parent, child) {
|
|
||||||
parent.appendChild(child);
|
|
||||||
},
|
|
||||||
appendChildToContainer: function appendChildToContainer(parent, child) {
|
|
||||||
parent.appendChild(child);
|
|
||||||
},
|
|
||||||
removeChild: function removeChild(parent, child) {
|
|
||||||
parent.removeChild(child);
|
|
||||||
},
|
|
||||||
removeChildFromContainer: function removeChildFromContainer(parent, child) {
|
|
||||||
parent.removeChild(child);
|
|
||||||
},
|
|
||||||
insertBefore: function insertBefore(parent, child, refChild) {
|
|
||||||
parent.insertBefore(child, refChild);
|
|
||||||
},
|
|
||||||
insertInContainerBefore: function insertInContainerBefore(parent, child, refChild) {
|
|
||||||
parent.insertBefore(child, refChild);
|
|
||||||
},
|
|
||||||
commitTextUpdate: function commitTextUpdate(textInst, _, newText) {
|
|
||||||
textInst.nodeValue = newText;
|
|
||||||
},
|
|
||||||
finalizeInitialChildren: function finalizeInitialChildren(dom, _, props) {
|
|
||||||
updateProps(dom, {}, props);
|
|
||||||
return false;
|
|
||||||
},
|
|
||||||
prepareUpdate: function prepareUpdate() {
|
|
||||||
return _chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.EMPTY_ARR;
|
|
||||||
},
|
|
||||||
commitUpdate: function commitUpdate(dom, _payload, _type, oldProps, newProps) {
|
|
||||||
updateProps(dom, oldProps, newProps);
|
|
||||||
},
|
|
||||||
hideInstance: function hideInstance(instance) {
|
|
||||||
var style = instance.style;
|
|
||||||
style.setProperty("display", "none");
|
|
||||||
},
|
|
||||||
unhideInstance: function unhideInstance(instance, props) {
|
|
||||||
var styleProp = props.style;
|
|
||||||
var display = (styleProp === null || styleProp === void 0 ? void 0 : styleProp.hasOwnProperty("display")) ? styleProp.display : null;
|
|
||||||
display = display == null || (0,_chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.isBoolean)(display) || display === "" ? "" : ("" + display).trim();
|
|
||||||
instance.style["display"] = display;
|
|
||||||
},
|
|
||||||
clearContainer: function clearContainer(element) {
|
|
||||||
if (element.childNodes.length > 0) {
|
|
||||||
element.textContent = "";
|
|
||||||
}
|
|
||||||
},
|
|
||||||
queueMicrotask: !(0,_chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.isUndefined)(Promise) ? function (callback) {
|
|
||||||
return Promise.resolve(null).then(callback).catch(function (error) {
|
|
||||||
setTimeout(function () {
|
|
||||||
throw error;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
} : setTimeout,
|
|
||||||
shouldSetTextContent: returnFalse,
|
|
||||||
prepareForCommit: function prepareForCommit() {
|
|
||||||
return null;
|
|
||||||
},
|
|
||||||
resetAfterCommit: _chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.noop,
|
|
||||||
commitMount: _chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.noop,
|
|
||||||
now: now,
|
|
||||||
cancelTimeout: clearTimeout,
|
|
||||||
scheduleTimeout: setTimeout,
|
|
||||||
preparePortalMount: _chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.noop,
|
|
||||||
noTimeout: -1,
|
|
||||||
supportsMutation: true,
|
|
||||||
supportsPersistence: false,
|
|
||||||
isPrimaryRenderer: true,
|
|
||||||
supportsHydration: false
|
|
||||||
};
|
|
||||||
var TaroReconciler = (0, import_react_reconciler.default)(hostConfig);
|
|
||||||
if (true) {
|
|
||||||
var foundDevTools = TaroReconciler.injectIntoDevTools({
|
|
||||||
bundleType: 1,
|
|
||||||
version: "18.0.0",
|
|
||||||
rendererPackageName: "taro-react"
|
|
||||||
});
|
|
||||||
if (!foundDevTools) {
|
|
||||||
console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools", "font-weight:bold");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var ContainerMap = /* @__PURE__ */new WeakMap();
|
|
||||||
var Root = /*#__PURE__*/function () {
|
|
||||||
function Root(renderer, domContainer) {
|
|
||||||
var isConcurrentRoot = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
||||||
(0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_5__["default"])(this, Root);
|
|
||||||
this.renderer = renderer;
|
|
||||||
this.internalRoot = renderer.createContainer(domContainer, isConcurrentRoot ? 1 : 0, false, null);
|
|
||||||
}
|
|
||||||
(0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_6__["default"])(Root, [{
|
|
||||||
key: "render",
|
|
||||||
value: function render(children, cb) {
|
|
||||||
var renderer = this.renderer,
|
|
||||||
internalRoot = this.internalRoot;
|
|
||||||
renderer.updateContainer(children, internalRoot, null, cb);
|
|
||||||
return renderer.getPublicRootInstance(internalRoot);
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
key: "unmount",
|
|
||||||
value: function unmount(cb) {
|
|
||||||
this.renderer.updateContainer(null, this.internalRoot, null, cb);
|
|
||||||
}
|
|
||||||
}]);
|
|
||||||
return Root;
|
|
||||||
}();
|
|
||||||
function render(element, domContainer, cb) {
|
|
||||||
var oldRoot = ContainerMap.get(domContainer);
|
var oldRoot = ContainerMap.get(domContainer);
|
||||||
if (oldRoot != null) {
|
if (oldRoot != null) {
|
||||||
return oldRoot.render(element, cb);
|
return oldRoot.render(element, cb);
|
||||||
@@ -6131,7 +6023,7 @@ function render(element, domContainer, cb) {
|
|||||||
ContainerMap.set(domContainer, root);
|
ContainerMap.set(domContainer, root);
|
||||||
return root.render(element, cb);
|
return root.render(element, cb);
|
||||||
}
|
}
|
||||||
function createRoot(domContainer) {
|
function _createRoot(domContainer) {
|
||||||
var oldRoot = ContainerMap.get(domContainer);
|
var oldRoot = ContainerMap.get(domContainer);
|
||||||
if (oldRoot != null) {
|
if (oldRoot != null) {
|
||||||
return oldRoot;
|
return oldRoot;
|
||||||
@@ -6140,19 +6032,18 @@ function createRoot(domContainer) {
|
|||||||
ContainerMap.set(domContainer, root);
|
ContainerMap.set(domContainer, root);
|
||||||
return root;
|
return root;
|
||||||
}
|
}
|
||||||
var unstable_batchedUpdates = TaroReconciler.batchedUpdates;
|
function _unmountComponentAtNode(dom) {
|
||||||
function unmountComponentAtNode(dom) {
|
|
||||||
(0,_chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.ensure)(dom && [1, 8, 9, 11].includes(dom.nodeType), "unmountComponentAtNode(...): Target container is not a DOM element.");
|
(0,_chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.ensure)(dom && [1, 8, 9, 11].includes(dom.nodeType), "unmountComponentAtNode(...): Target container is not a DOM element.");
|
||||||
var root = ContainerMap.get(dom);
|
var root = ContainerMap.get(dom);
|
||||||
if (!root) return false;
|
if (!root) return false;
|
||||||
unstable_batchedUpdates(function () {
|
_unstable_batchedUpdates(function () {
|
||||||
root.unmount(function () {
|
root.unmount(function () {
|
||||||
ContainerMap.delete(dom);
|
ContainerMap.delete(dom);
|
||||||
});
|
});
|
||||||
}, null);
|
}, null);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
function findDOMNode(comp) {
|
function _findDOMNode(comp) {
|
||||||
if (comp == null) {
|
if (comp == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -6162,8 +6053,7 @@ function findDOMNode(comp) {
|
|||||||
}
|
}
|
||||||
return TaroReconciler.findHostInstance(comp);
|
return TaroReconciler.findHostInstance(comp);
|
||||||
}
|
}
|
||||||
var portalType = (0,_chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(Symbol) && Symbol.for ? Symbol.for("react.portal") : 60106;
|
function _createPortal(children, containerInfo, key) {
|
||||||
function createPortal(children, containerInfo, key) {
|
|
||||||
return {
|
return {
|
||||||
$$typeof: portalType,
|
$$typeof: portalType,
|
||||||
key: key == null ? null : String(key),
|
key: key == null ? null : String(key),
|
||||||
@@ -6172,40 +6062,179 @@ function createPortal(children, containerInfo, key) {
|
|||||||
implementation: null
|
implementation: null
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
var index = {
|
var import_react_reconciler, scheduler, IS_NON_DIMENSIONAL, now, hostConfig, TaroReconciler, ContainerMap, Root, _unstable_batchedUpdates, portalType, index;
|
||||||
render: render,
|
var init_react_esm = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_3__.__esm)({
|
||||||
createRoot: createRoot,
|
"node_modules/@tarojs/react/dist/react.esm.js": function node_modulesTarojsReactDistReactEsmJs() {
|
||||||
unstable_batchedUpdates: unstable_batchedUpdates,
|
(0,_chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.init_shared_esm)();
|
||||||
unmountComponentAtNode: unmountComponentAtNode,
|
(0,_chunk_VXAYXK77_js__WEBPACK_IMPORTED_MODULE_1__.init_runtime_esm)();
|
||||||
findDOMNode: findDOMNode,
|
import_react_reconciler = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_3__.__toESM)(require_react_reconciler_production_min());
|
||||||
createPortal: createPortal
|
scheduler = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_3__.__toESM)(require_scheduler_production_min2());
|
||||||
};
|
IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
||||||
// entry:react-dom
|
var _scheduler = scheduler;
|
||||||
var react_dom_default = index;
|
now = _scheduler.unstable_now;
|
||||||
|
hostConfig = {
|
||||||
|
createInstance: function createInstance(type) {
|
||||||
|
return _chunk_VXAYXK77_js__WEBPACK_IMPORTED_MODULE_1__.document$1.createElement(type);
|
||||||
|
},
|
||||||
|
createTextInstance: function createTextInstance(text) {
|
||||||
|
return _chunk_VXAYXK77_js__WEBPACK_IMPORTED_MODULE_1__.document$1.createTextNode(text);
|
||||||
|
},
|
||||||
|
getPublicInstance: function getPublicInstance(inst) {
|
||||||
|
return inst;
|
||||||
|
},
|
||||||
|
getRootHostContext: function getRootHostContext() {
|
||||||
|
return {};
|
||||||
|
},
|
||||||
|
getChildHostContext: function getChildHostContext() {
|
||||||
|
return {};
|
||||||
|
},
|
||||||
|
getCurrentEventPriority: function getCurrentEventPriority() {
|
||||||
|
return 16;
|
||||||
|
},
|
||||||
|
detachDeletedInstance: function detachDeletedInstance() {},
|
||||||
|
appendChild: function appendChild(parent, child) {
|
||||||
|
parent.appendChild(child);
|
||||||
|
},
|
||||||
|
appendInitialChild: function appendInitialChild(parent, child) {
|
||||||
|
parent.appendChild(child);
|
||||||
|
},
|
||||||
|
appendChildToContainer: function appendChildToContainer(parent, child) {
|
||||||
|
parent.appendChild(child);
|
||||||
|
},
|
||||||
|
removeChild: function removeChild(parent, child) {
|
||||||
|
parent.removeChild(child);
|
||||||
|
},
|
||||||
|
removeChildFromContainer: function removeChildFromContainer(parent, child) {
|
||||||
|
parent.removeChild(child);
|
||||||
|
},
|
||||||
|
insertBefore: function insertBefore(parent, child, refChild) {
|
||||||
|
parent.insertBefore(child, refChild);
|
||||||
|
},
|
||||||
|
insertInContainerBefore: function insertInContainerBefore(parent, child, refChild) {
|
||||||
|
parent.insertBefore(child, refChild);
|
||||||
|
},
|
||||||
|
commitTextUpdate: function commitTextUpdate(textInst, _, newText) {
|
||||||
|
textInst.nodeValue = newText;
|
||||||
|
},
|
||||||
|
finalizeInitialChildren: function finalizeInitialChildren(dom, _, props) {
|
||||||
|
updateProps(dom, {}, props);
|
||||||
|
return false;
|
||||||
|
},
|
||||||
|
prepareUpdate: function prepareUpdate() {
|
||||||
|
return _chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.EMPTY_ARR;
|
||||||
|
},
|
||||||
|
commitUpdate: function commitUpdate(dom, _payload, _type, oldProps, newProps) {
|
||||||
|
updateProps(dom, oldProps, newProps);
|
||||||
|
},
|
||||||
|
hideInstance: function hideInstance(instance) {
|
||||||
|
var style = instance.style;
|
||||||
|
style.setProperty("display", "none");
|
||||||
|
},
|
||||||
|
unhideInstance: function unhideInstance(instance, props) {
|
||||||
|
var styleProp = props.style;
|
||||||
|
var display = (styleProp === null || styleProp === void 0 ? void 0 : styleProp.hasOwnProperty("display")) ? styleProp.display : null;
|
||||||
|
display = display == null || (0,_chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.isBoolean)(display) || display === "" ? "" : ("" + display).trim();
|
||||||
|
instance.style["display"] = display;
|
||||||
|
},
|
||||||
|
clearContainer: function clearContainer(element) {
|
||||||
|
if (element.childNodes.length > 0) {
|
||||||
|
element.textContent = "";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
queueMicrotask: !(0,_chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.isUndefined)(Promise) ? function (callback) {
|
||||||
|
return Promise.resolve(null).then(callback).catch(function (error) {
|
||||||
|
setTimeout(function () {
|
||||||
|
throw error;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
} : setTimeout,
|
||||||
|
shouldSetTextContent: returnFalse,
|
||||||
|
prepareForCommit: function prepareForCommit() {
|
||||||
|
return null;
|
||||||
|
},
|
||||||
|
resetAfterCommit: _chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.noop,
|
||||||
|
commitMount: _chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.noop,
|
||||||
|
now: now,
|
||||||
|
cancelTimeout: clearTimeout,
|
||||||
|
scheduleTimeout: setTimeout,
|
||||||
|
preparePortalMount: _chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.noop,
|
||||||
|
noTimeout: -1,
|
||||||
|
supportsMutation: true,
|
||||||
|
supportsPersistence: false,
|
||||||
|
isPrimaryRenderer: true,
|
||||||
|
supportsHydration: false
|
||||||
|
};
|
||||||
|
TaroReconciler = (0, import_react_reconciler.default)(hostConfig);
|
||||||
|
if (true) {
|
||||||
|
var foundDevTools = TaroReconciler.injectIntoDevTools({
|
||||||
|
bundleType: 1,
|
||||||
|
version: "18.0.0",
|
||||||
|
rendererPackageName: "taro-react"
|
||||||
|
});
|
||||||
|
if (!foundDevTools) {
|
||||||
|
console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools", "font-weight:bold");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ContainerMap = /* @__PURE__ */new WeakMap();
|
||||||
|
Root = /*#__PURE__*/function () {
|
||||||
|
function Root(renderer, domContainer) {
|
||||||
|
var isConcurrentRoot = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
||||||
|
(0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_5__["default"])(this, Root);
|
||||||
|
this.renderer = renderer;
|
||||||
|
this.internalRoot = renderer.createContainer(domContainer, isConcurrentRoot ? 1 : 0, false, null);
|
||||||
|
}
|
||||||
|
(0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_6__["default"])(Root, [{
|
||||||
|
key: "render",
|
||||||
|
value: function render(children, cb) {
|
||||||
|
var renderer = this.renderer,
|
||||||
|
internalRoot = this.internalRoot;
|
||||||
|
renderer.updateContainer(children, internalRoot, null, cb);
|
||||||
|
return renderer.getPublicRootInstance(internalRoot);
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "unmount",
|
||||||
|
value: function unmount(cb) {
|
||||||
|
this.renderer.updateContainer(null, this.internalRoot, null, cb);
|
||||||
|
}
|
||||||
|
}]);
|
||||||
|
return Root;
|
||||||
|
}();
|
||||||
|
_unstable_batchedUpdates = TaroReconciler.batchedUpdates;
|
||||||
|
portalType = (0,_chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(Symbol) && Symbol.for ? Symbol.for("react.portal") : 60106;
|
||||||
|
index = {
|
||||||
|
render: _render,
|
||||||
|
createRoot: _createRoot,
|
||||||
|
unstable_batchedUpdates: _unstable_batchedUpdates,
|
||||||
|
unmountComponentAtNode: _unmountComponentAtNode,
|
||||||
|
findDOMNode: _findDOMNode,
|
||||||
|
createPortal: _createPortal
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
/**
|
/**
|
||||||
* @license React
|
* @license React
|
||||||
* react-reconciler.production.min.js
|
* react-reconciler.production.min.js
|
||||||
*
|
*
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
*
|
*
|
||||||
* This source code is licensed under the MIT license found in the
|
* This source code is licensed under the MIT license found in the
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
*/ /**
|
*/ /**
|
||||||
* @license React
|
* @license React
|
||||||
* scheduler.production.min.js
|
* scheduler.production.min.js
|
||||||
*
|
*
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
*
|
*
|
||||||
* This source code is licensed under the MIT license found in the
|
* This source code is licensed under the MIT license found in the
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
*/ /** @license React v0.20.2
|
*/ /** @license React v0.20.2
|
||||||
* scheduler.production.min.js
|
* scheduler.production.min.js
|
||||||
*
|
*
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
*
|
*
|
||||||
* This source code is licensed under the MIT license found in the
|
* This source code is licensed under the MIT license found in the
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/***/ })
|
/***/ })
|
||||||
|
|
||||||
@@ -1,13 +1,23 @@
|
|||||||
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["vendors-node_modules_taro_weapp_prebundle_tarojs_taro_js"],{
|
"use strict";
|
||||||
|
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["vendors-node_modules_taro_weapp_prebundle_chunk-TUA3UK7E_js"],{
|
||||||
|
|
||||||
/***/ "./node_modules/.taro/weapp/prebundle/@tarojs_taro.core.js":
|
/***/ "./node_modules/.taro/weapp/prebundle/chunk-TUA3UK7E.js":
|
||||||
/*!*****************************************************************!*\
|
/*!**************************************************************!*\
|
||||||
!*** ./node_modules/.taro/weapp/prebundle/@tarojs_taro.core.js ***!
|
!*** ./node_modules/.taro/weapp/prebundle/chunk-TUA3UK7E.js ***!
|
||||||
\*****************************************************************/
|
\**************************************************************/
|
||||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
"use strict";
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||||
__webpack_require__.r(__webpack_exports__);
|
/* harmony export */ "typeof_exports": function() { return /* binding */ typeof_exports; },
|
||||||
|
/* harmony export */ "init_typeof": function() { return /* binding */ init_typeof; },
|
||||||
|
/* harmony export */ "defineProperty_exports": function() { return /* binding */ defineProperty_exports; },
|
||||||
|
/* harmony export */ "init_defineProperty": function() { return /* binding */ init_defineProperty; },
|
||||||
|
/* harmony export */ "classCallCheck_exports": function() { return /* binding */ classCallCheck_exports; },
|
||||||
|
/* harmony export */ "init_classCallCheck": function() { return /* binding */ init_classCallCheck; },
|
||||||
|
/* harmony export */ "createClass_exports": function() { return /* binding */ createClass_exports; },
|
||||||
|
/* harmony export */ "init_createClass": function() { return /* binding */ init_createClass; },
|
||||||
|
/* harmony export */ "require_taro": function() { return /* binding */ require_taro; }
|
||||||
|
/* harmony export */ });
|
||||||
/* harmony import */ var _chunk_VXAYXK77_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-VXAYXK77.js */ "./node_modules/.taro/weapp/prebundle/chunk-VXAYXK77.js");
|
/* harmony import */ var _chunk_VXAYXK77_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-VXAYXK77.js */ "./node_modules/.taro/weapp/prebundle/chunk-VXAYXK77.js");
|
||||||
/* harmony import */ var _chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-BS6JQHLA.js */ "./node_modules/.taro/weapp/prebundle/chunk-BS6JQHLA.js");
|
/* harmony import */ var _chunk_BS6JQHLA_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-BS6JQHLA.js */ "./node_modules/.taro/weapp/prebundle/chunk-BS6JQHLA.js");
|
||||||
/* harmony import */ var _chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-P7VEE7PG.js */ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js");
|
/* harmony import */ var _chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-P7VEE7PG.js */ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js");
|
||||||
@@ -15,6 +25,12 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
|
|
||||||
|
|
||||||
// node_modules/@babel/runtime/helpers/esm/typeof.js
|
// node_modules/@babel/runtime/helpers/esm/typeof.js
|
||||||
|
var typeof_exports = {};
|
||||||
|
(0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_2__.__export)(typeof_exports, {
|
||||||
|
default: function _default() {
|
||||||
|
return _typeof;
|
||||||
|
}
|
||||||
|
});
|
||||||
function _typeof(obj) {
|
function _typeof(obj) {
|
||||||
"@babel/helpers - typeof";
|
"@babel/helpers - typeof";
|
||||||
|
|
||||||
@@ -28,6 +44,12 @@ var init_typeof = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_2__.__esm)({
|
|||||||
"node_modules/@babel/runtime/helpers/esm/typeof.js": function node_modulesBabelRuntimeHelpersEsmTypeofJs() {}
|
"node_modules/@babel/runtime/helpers/esm/typeof.js": function node_modulesBabelRuntimeHelpersEsmTypeofJs() {}
|
||||||
});
|
});
|
||||||
// node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
// node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||||||
|
var defineProperty_exports = {};
|
||||||
|
(0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_2__.__export)(defineProperty_exports, {
|
||||||
|
default: function _default() {
|
||||||
|
return _defineProperty;
|
||||||
|
}
|
||||||
|
});
|
||||||
function _defineProperty(obj, key, value) {
|
function _defineProperty(obj, key, value) {
|
||||||
if (key in obj) {
|
if (key in obj) {
|
||||||
Object.defineProperty(obj, key, {
|
Object.defineProperty(obj, key, {
|
||||||
@@ -72,6 +94,12 @@ var init_objectSpread2 = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_2__.__es
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
// node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
// node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
||||||
|
var classCallCheck_exports = {};
|
||||||
|
(0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_2__.__export)(classCallCheck_exports, {
|
||||||
|
default: function _default() {
|
||||||
|
return _classCallCheck;
|
||||||
|
}
|
||||||
|
});
|
||||||
function _classCallCheck(instance, Constructor) {
|
function _classCallCheck(instance, Constructor) {
|
||||||
if (!(instance instanceof Constructor)) {
|
if (!(instance instanceof Constructor)) {
|
||||||
throw new TypeError("Cannot call a class as a function");
|
throw new TypeError("Cannot call a class as a function");
|
||||||
@@ -81,6 +109,12 @@ var init_classCallCheck = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_2__.__e
|
|||||||
"node_modules/@babel/runtime/helpers/esm/classCallCheck.js": function node_modulesBabelRuntimeHelpersEsmClassCallCheckJs() {}
|
"node_modules/@babel/runtime/helpers/esm/classCallCheck.js": function node_modulesBabelRuntimeHelpersEsmClassCallCheckJs() {}
|
||||||
});
|
});
|
||||||
// node_modules/@babel/runtime/helpers/esm/createClass.js
|
// node_modules/@babel/runtime/helpers/esm/createClass.js
|
||||||
|
var createClass_exports = {};
|
||||||
|
(0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_2__.__export)(createClass_exports, {
|
||||||
|
default: function _default() {
|
||||||
|
return _createClass;
|
||||||
|
}
|
||||||
|
});
|
||||||
function _defineProperties(target, props) {
|
function _defineProperties(target, props) {
|
||||||
for (var i = 0; i < props.length; i++) {
|
for (var i = 0; i < props.length; i++) {
|
||||||
var descriptor = props[i];
|
var descriptor = props[i];
|
||||||
@@ -399,25 +433,7 @@ var require_taro = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_2__.__commonJS
|
|||||||
module.exports.default = module.exports;
|
module.exports.default = module.exports;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// entry:@tarojs_taro
|
|
||||||
var require_tarojs_taro = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_2__.__commonJS)({
|
|
||||||
"entry:@tarojs_taro": function entryTarojs_taro(exports, module) {
|
|
||||||
module.exports = require_taro();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
/* harmony default export */ __webpack_exports__["default"] = (require_tarojs_taro());
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./node_modules/.taro/weapp/prebundle/@tarojs_taro.js":
|
|
||||||
/*!************************************************************!*\
|
|
||||||
!*** ./node_modules/.taro/weapp/prebundle/@tarojs_taro.js ***!
|
|
||||||
\************************************************************/
|
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
|
||||||
|
|
||||||
var m = __webpack_require__(/*! ./@tarojs_taro.core.js */ "./node_modules/.taro/weapp/prebundle/@tarojs_taro.core.js");
|
|
||||||
module.exports = m.default;
|
|
||||||
exports["default"] = module.exports;
|
|
||||||
|
|
||||||
/***/ })
|
/***/ })
|
||||||
|
|
||||||
5
dist/runtime.js
vendored
5
dist/runtime.js
vendored
@@ -271,8 +271,7 @@
|
|||||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||||
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
||||||
/******/ var installedChunks = {
|
/******/ var installedChunks = {
|
||||||
/******/ "runtime": 0,
|
/******/ "runtime": 0
|
||||||
/******/ "common": 0
|
|
||||||
/******/ };
|
/******/ };
|
||||||
/******/
|
/******/
|
||||||
/******/ __webpack_require__.f.j = function(chunkId, promises) {
|
/******/ __webpack_require__.f.j = function(chunkId, promises) {
|
||||||
@@ -284,7 +283,7 @@
|
|||||||
/******/ if(installedChunkData) {
|
/******/ if(installedChunkData) {
|
||||||
/******/ promises.push(installedChunkData[2]);
|
/******/ promises.push(installedChunkData[2]);
|
||||||
/******/ } else {
|
/******/ } else {
|
||||||
/******/ if(!/^(common|runtime)$/.test(chunkId)) {
|
/******/ if("runtime" != chunkId) {
|
||||||
/******/ // setup Promise in chunk cache
|
/******/ // setup Promise in chunk cache
|
||||||
/******/ var promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });
|
/******/ var promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });
|
||||||
/******/ promises.push(installedChunkData[2] = promise);
|
/******/ promises.push(installedChunkData[2] = promise);
|
||||||
|
|||||||
2
dist/runtime.js.map
vendored
2
dist/runtime.js.map
vendored
File diff suppressed because one or more lines are too long
523
dist/vendors.js
vendored
523
dist/vendors.js
vendored
@@ -471,6 +471,262 @@ function Info(props) {
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ "./node_modules/@antmjs/vantui/es/tabbar-item/index.js":
|
||||||
|
/*!*************************************************************!*\
|
||||||
|
!*** ./node_modules/@antmjs/vantui/es/tabbar-item/index.js ***!
|
||||||
|
\*************************************************************/
|
||||||
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
/* unused harmony export TabbarItem */
|
||||||
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
||||||
|
/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
||||||
|
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
||||||
|
/* harmony import */ var _wxs_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.js");
|
||||||
|
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./node_modules/@antmjs/vantui/es/icon/index.js");
|
||||||
|
/* harmony import */ var _info__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../info */ "./node_modules/@antmjs/vantui/es/info/index.js");
|
||||||
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
|
||||||
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__);
|
||||||
|
|
||||||
|
|
||||||
|
var _excluded = ["icon", "name", "iconPrefix", "dot", "info", "renderIconActive", "renderIcon", "index", "active", "activeColor", "inactiveColor", "onChange", "children", "style", "className", "onClick"];
|
||||||
|
|
||||||
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
||||||
|
|
||||||
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function TabbarItem(props) {
|
||||||
|
var icon = props.icon,
|
||||||
|
name = props.name,
|
||||||
|
_props$iconPrefix = props.iconPrefix,
|
||||||
|
iconPrefix = _props$iconPrefix === void 0 ? 'van-icon' : _props$iconPrefix,
|
||||||
|
dot = props.dot,
|
||||||
|
info = props.info,
|
||||||
|
renderIconActive = props.renderIconActive,
|
||||||
|
renderIcon = props.renderIcon,
|
||||||
|
index = props.index,
|
||||||
|
active = props.active,
|
||||||
|
activeColor = props.activeColor,
|
||||||
|
inactiveColor = props.inactiveColor,
|
||||||
|
onChange = props.onChange,
|
||||||
|
children = props.children,
|
||||||
|
style = props.style,
|
||||||
|
className = props.className,
|
||||||
|
onClick = props.onClick,
|
||||||
|
others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__["default"])(props, _excluded);
|
||||||
|
|
||||||
|
var _click = function _click() {
|
||||||
|
if (onChange) {
|
||||||
|
var _active = name !== null && name !== void 0 ? name : index;
|
||||||
|
|
||||||
|
if (_active !== active) {
|
||||||
|
onChange(_active);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
onClick === null || onClick === void 0 ? void 0 : onClick(name !== null && name !== void 0 ? name : index);
|
||||||
|
};
|
||||||
|
|
||||||
|
return onChange ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, _objectSpread(_objectSpread({
|
||||||
|
className: _wxs_utils__WEBPACK_IMPORTED_MODULE_1__.bem('tabbar-item', {
|
||||||
|
active: active === (name !== null && name !== void 0 ? name : index)
|
||||||
|
}) + ' custom-class' + " ".concat(className || ''),
|
||||||
|
style: _wxs_utils__WEBPACK_IMPORTED_MODULE_1__.style([{
|
||||||
|
color: active === (name !== null && name !== void 0 ? name : index) ? activeColor : inactiveColor
|
||||||
|
}, style])
|
||||||
|
}, others), {}, {
|
||||||
|
onClick: _click,
|
||||||
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, {
|
||||||
|
className: "van-tabbar-item__icon",
|
||||||
|
children: [icon ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_icon__WEBPACK_IMPORTED_MODULE_2__.Icon, {
|
||||||
|
size: 38,
|
||||||
|
name: icon,
|
||||||
|
classPrefix: iconPrefix,
|
||||||
|
className: "van-tabbar-item__icon__inner"
|
||||||
|
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
|
||||||
|
children: active === (name !== null && name !== void 0 ? name : index) ? renderIconActive : renderIcon
|
||||||
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_info__WEBPACK_IMPORTED_MODULE_3__.Info, {
|
||||||
|
dot: dot,
|
||||||
|
info: info,
|
||||||
|
className: "van-tabbar-item__info"
|
||||||
|
})]
|
||||||
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, {
|
||||||
|
className: "van-tabbar-item__text",
|
||||||
|
children: children
|
||||||
|
})]
|
||||||
|
})) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {});
|
||||||
|
}
|
||||||
|
/* harmony default export */ __webpack_exports__["default"] = (TabbarItem);
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ "./node_modules/@antmjs/vantui/es/tabbar/index.js":
|
||||||
|
/*!********************************************************!*\
|
||||||
|
!*** ./node_modules/@antmjs/vantui/es/tabbar/index.js ***!
|
||||||
|
\********************************************************/
|
||||||
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
/* unused harmony export Tabbar */
|
||||||
|
/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
||||||
|
/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
||||||
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
||||||
|
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
||||||
|
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_1__);
|
||||||
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
|
||||||
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
||||||
|
/* harmony import */ var rc_util_lib_Children_toArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/Children/toArray */ "./node_modules/rc-util/lib/Children/toArray.js");
|
||||||
|
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
||||||
|
/* harmony import */ var _wxs_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.js");
|
||||||
|
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/utils */ "./node_modules/@antmjs/vantui/es/common/utils.js");
|
||||||
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
|
||||||
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var _excluded = ["active", "activeColor", "inactiveColor", "border", "fixed", "safeAreaInsetBottom", "zIndex", "placeholder", "onChange", "style", "className", "children"];
|
||||||
|
|
||||||
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
||||||
|
|
||||||
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function parseTabList(children) {
|
||||||
|
return (0,rc_util_lib_Children_toArray__WEBPACK_IMPORTED_MODULE_3__["default"])(children).map(function (node) {
|
||||||
|
if ( /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.isValidElement)(node)) {
|
||||||
|
var key = node.key !== undefined ? String(node.key) : undefined;
|
||||||
|
return _objectSpread(_objectSpread({
|
||||||
|
key: key
|
||||||
|
}, node.props), {}, {
|
||||||
|
node: node
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}).filter(function (tab) {
|
||||||
|
return tab;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function Tabbar(props) {
|
||||||
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)({
|
||||||
|
height: 50,
|
||||||
|
current: 0
|
||||||
|
}),
|
||||||
|
_useState2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__["default"])(_useState, 2),
|
||||||
|
state = _useState2[0],
|
||||||
|
setState = _useState2[1];
|
||||||
|
|
||||||
|
var height = state.height,
|
||||||
|
current = state.current;
|
||||||
|
|
||||||
|
var active = props.active,
|
||||||
|
activeColor = props.activeColor,
|
||||||
|
inactiveColor = props.inactiveColor,
|
||||||
|
_props$border = props.border,
|
||||||
|
border = _props$border === void 0 ? true : _props$border,
|
||||||
|
_props$fixed = props.fixed,
|
||||||
|
fixed = _props$fixed === void 0 ? true : _props$fixed,
|
||||||
|
_props$safeAreaInsetB = props.safeAreaInsetBottom,
|
||||||
|
safeAreaInsetBottom = _props$safeAreaInsetB === void 0 ? true : _props$safeAreaInsetB,
|
||||||
|
zIndex = props.zIndex,
|
||||||
|
placeholder = props.placeholder,
|
||||||
|
onChange = props.onChange,
|
||||||
|
style = props.style,
|
||||||
|
className = props.className,
|
||||||
|
children = props.children,
|
||||||
|
others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__["default"])(props, _excluded);
|
||||||
|
|
||||||
|
var _change = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (data) {
|
||||||
|
setState(function (pre) {
|
||||||
|
return _objectSpread(_objectSpread({}, pre), {}, {
|
||||||
|
current: data
|
||||||
|
});
|
||||||
|
});
|
||||||
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
||||||
|
detail: data
|
||||||
|
});
|
||||||
|
}, [onChange]);
|
||||||
|
|
||||||
|
var newChildren = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
|
||||||
|
var tabs = parseTabList(children);
|
||||||
|
return tabs.map(function (tab, index) {
|
||||||
|
return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.cloneElement)(tab.node, {
|
||||||
|
key: index,
|
||||||
|
index: index,
|
||||||
|
active: current,
|
||||||
|
activeColor: activeColor,
|
||||||
|
inactiveColor: inactiveColor,
|
||||||
|
onChange: _change
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}, [children, current, activeColor, inactiveColor, _change]);
|
||||||
|
(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
|
||||||
|
setState(function (pre) {
|
||||||
|
return _objectSpread(_objectSpread({}, pre), {}, {
|
||||||
|
current: active
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}, [active]);
|
||||||
|
(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
|
||||||
|
if (!fixed || !placeholder) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
(0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_1__.nextTick)(function () {
|
||||||
|
(0,_common_utils__WEBPACK_IMPORTED_MODULE_5__.getRect)(null, '.van-tabbar').then(function (res) {
|
||||||
|
setState(function (pre) {
|
||||||
|
return _objectSpread(_objectSpread({}, pre), {}, {
|
||||||
|
height: res.height
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}, [fixed, placeholder]); // useEffect(
|
||||||
|
// function () {
|
||||||
|
// if (!Array.isArray(children) || !children.length) {
|
||||||
|
// return
|
||||||
|
// }
|
||||||
|
// children.forEach((child) => child.updateFromParent())
|
||||||
|
// },
|
||||||
|
// // eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
// [active, activeColor, inactiveColor],
|
||||||
|
// )
|
||||||
|
|
||||||
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, {
|
||||||
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_9__.View, _objectSpread(_objectSpread({
|
||||||
|
className: (border ? 'van-hairline--top-bottom' : '') + ' ' + _wxs_utils__WEBPACK_IMPORTED_MODULE_4__.bem('tabbar', {
|
||||||
|
fixed: fixed,
|
||||||
|
safe: safeAreaInsetBottom
|
||||||
|
}) + ' custom-class' + " ".concat(className || ''),
|
||||||
|
style: _wxs_utils__WEBPACK_IMPORTED_MODULE_4__.style([zIndex ? 'zIndex: ' + zIndex : '', style])
|
||||||
|
}, others), {}, {
|
||||||
|
children: newChildren
|
||||||
|
})), fixed && placeholder && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_9__.View, {
|
||||||
|
style: 'height: ' + height + 'px;'
|
||||||
|
})]
|
||||||
|
});
|
||||||
|
}
|
||||||
|
/* harmony default export */ __webpack_exports__["default"] = (Tabbar);
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
/***/ "./node_modules/@antmjs/vantui/es/wxs/add-unit.js":
|
/***/ "./node_modules/@antmjs/vantui/es/wxs/add-unit.js":
|
||||||
/*!********************************************************!*\
|
/*!********************************************************!*\
|
||||||
!*** ./node_modules/@antmjs/vantui/es/wxs/add-unit.js ***!
|
!*** ./node_modules/@antmjs/vantui/es/wxs/add-unit.js ***!
|
||||||
@@ -894,6 +1150,273 @@ module.exports.polyfill = function(object) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ "./node_modules/rc-util/lib/Children/toArray.js":
|
||||||
|
/*!******************************************************!*\
|
||||||
|
!*** ./node_modules/rc-util/lib/Children/toArray.js ***!
|
||||||
|
\******************************************************/
|
||||||
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
var __webpack_unused_export__;
|
||||||
|
|
||||||
|
|
||||||
|
var _interopRequireDefault = (__webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js")["default"]);
|
||||||
|
|
||||||
|
__webpack_unused_export__ = ({
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports["default"] = toArray;
|
||||||
|
|
||||||
|
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "webpack/container/remote/react"));
|
||||||
|
|
||||||
|
var _reactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
|
||||||
|
|
||||||
|
function toArray(children) {
|
||||||
|
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||||
|
var ret = [];
|
||||||
|
|
||||||
|
_react.default.Children.forEach(children, function (child) {
|
||||||
|
if ((child === undefined || child === null) && !option.keepEmpty) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Array.isArray(child)) {
|
||||||
|
ret = ret.concat(toArray(child));
|
||||||
|
} else if ((0, _reactIs.isFragment)(child) && child.props) {
|
||||||
|
ret = ret.concat(toArray(child.props.children, option));
|
||||||
|
} else {
|
||||||
|
ret.push(child);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ "./node_modules/react-is/cjs/react-is.development.js":
|
||||||
|
/*!***********************************************************!*\
|
||||||
|
!*** ./node_modules/react-is/cjs/react-is.development.js ***!
|
||||||
|
\***********************************************************/
|
||||||
|
/***/ (function(__unused_webpack_module, exports) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
/** @license React v16.13.1
|
||||||
|
* react-is.development.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (true) {
|
||||||
|
(function() {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
||||||
|
// nor polyfill, then a plain number is used for performance.
|
||||||
|
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
||||||
|
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
||||||
|
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
||||||
|
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
||||||
|
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
||||||
|
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
||||||
|
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
||||||
|
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
||||||
|
// (unstable) APIs that have been removed. Can we remove the symbols?
|
||||||
|
|
||||||
|
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
||||||
|
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
||||||
|
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
||||||
|
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
||||||
|
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
||||||
|
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
||||||
|
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
||||||
|
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
||||||
|
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
||||||
|
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
||||||
|
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
||||||
|
|
||||||
|
function isValidElementType(type) {
|
||||||
|
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
||||||
|
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
||||||
|
}
|
||||||
|
|
||||||
|
function typeOf(object) {
|
||||||
|
if (typeof object === 'object' && object !== null) {
|
||||||
|
var $$typeof = object.$$typeof;
|
||||||
|
|
||||||
|
switch ($$typeof) {
|
||||||
|
case REACT_ELEMENT_TYPE:
|
||||||
|
var type = object.type;
|
||||||
|
|
||||||
|
switch (type) {
|
||||||
|
case REACT_ASYNC_MODE_TYPE:
|
||||||
|
case REACT_CONCURRENT_MODE_TYPE:
|
||||||
|
case REACT_FRAGMENT_TYPE:
|
||||||
|
case REACT_PROFILER_TYPE:
|
||||||
|
case REACT_STRICT_MODE_TYPE:
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return type;
|
||||||
|
|
||||||
|
default:
|
||||||
|
var $$typeofType = type && type.$$typeof;
|
||||||
|
|
||||||
|
switch ($$typeofType) {
|
||||||
|
case REACT_CONTEXT_TYPE:
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
case REACT_LAZY_TYPE:
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
case REACT_PROVIDER_TYPE:
|
||||||
|
return $$typeofType;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return $$typeof;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
case REACT_PORTAL_TYPE:
|
||||||
|
return $$typeof;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return undefined;
|
||||||
|
} // AsyncMode is deprecated along with isAsyncMode
|
||||||
|
|
||||||
|
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
||||||
|
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
||||||
|
var ContextConsumer = REACT_CONTEXT_TYPE;
|
||||||
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
||||||
|
var Element = REACT_ELEMENT_TYPE;
|
||||||
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
||||||
|
var Fragment = REACT_FRAGMENT_TYPE;
|
||||||
|
var Lazy = REACT_LAZY_TYPE;
|
||||||
|
var Memo = REACT_MEMO_TYPE;
|
||||||
|
var Portal = REACT_PORTAL_TYPE;
|
||||||
|
var Profiler = REACT_PROFILER_TYPE;
|
||||||
|
var StrictMode = REACT_STRICT_MODE_TYPE;
|
||||||
|
var Suspense = REACT_SUSPENSE_TYPE;
|
||||||
|
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
||||||
|
|
||||||
|
function isAsyncMode(object) {
|
||||||
|
{
|
||||||
|
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
||||||
|
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
||||||
|
|
||||||
|
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
||||||
|
}
|
||||||
|
function isConcurrentMode(object) {
|
||||||
|
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
||||||
|
}
|
||||||
|
function isContextConsumer(object) {
|
||||||
|
return typeOf(object) === REACT_CONTEXT_TYPE;
|
||||||
|
}
|
||||||
|
function isContextProvider(object) {
|
||||||
|
return typeOf(object) === REACT_PROVIDER_TYPE;
|
||||||
|
}
|
||||||
|
function isElement(object) {
|
||||||
|
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||||
|
}
|
||||||
|
function isForwardRef(object) {
|
||||||
|
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
||||||
|
}
|
||||||
|
function isFragment(object) {
|
||||||
|
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
||||||
|
}
|
||||||
|
function isLazy(object) {
|
||||||
|
return typeOf(object) === REACT_LAZY_TYPE;
|
||||||
|
}
|
||||||
|
function isMemo(object) {
|
||||||
|
return typeOf(object) === REACT_MEMO_TYPE;
|
||||||
|
}
|
||||||
|
function isPortal(object) {
|
||||||
|
return typeOf(object) === REACT_PORTAL_TYPE;
|
||||||
|
}
|
||||||
|
function isProfiler(object) {
|
||||||
|
return typeOf(object) === REACT_PROFILER_TYPE;
|
||||||
|
}
|
||||||
|
function isStrictMode(object) {
|
||||||
|
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
||||||
|
}
|
||||||
|
function isSuspense(object) {
|
||||||
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.AsyncMode = AsyncMode;
|
||||||
|
exports.ConcurrentMode = ConcurrentMode;
|
||||||
|
exports.ContextConsumer = ContextConsumer;
|
||||||
|
exports.ContextProvider = ContextProvider;
|
||||||
|
exports.Element = Element;
|
||||||
|
exports.ForwardRef = ForwardRef;
|
||||||
|
exports.Fragment = Fragment;
|
||||||
|
exports.Lazy = Lazy;
|
||||||
|
exports.Memo = Memo;
|
||||||
|
exports.Portal = Portal;
|
||||||
|
exports.Profiler = Profiler;
|
||||||
|
exports.StrictMode = StrictMode;
|
||||||
|
exports.Suspense = Suspense;
|
||||||
|
exports.isAsyncMode = isAsyncMode;
|
||||||
|
exports.isConcurrentMode = isConcurrentMode;
|
||||||
|
exports.isContextConsumer = isContextConsumer;
|
||||||
|
exports.isContextProvider = isContextProvider;
|
||||||
|
exports.isElement = isElement;
|
||||||
|
exports.isForwardRef = isForwardRef;
|
||||||
|
exports.isFragment = isFragment;
|
||||||
|
exports.isLazy = isLazy;
|
||||||
|
exports.isMemo = isMemo;
|
||||||
|
exports.isPortal = isPortal;
|
||||||
|
exports.isProfiler = isProfiler;
|
||||||
|
exports.isStrictMode = isStrictMode;
|
||||||
|
exports.isSuspense = isSuspense;
|
||||||
|
exports.isValidElementType = isValidElementType;
|
||||||
|
exports.typeOf = typeOf;
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ "./node_modules/react-is/index.js":
|
||||||
|
/*!****************************************!*\
|
||||||
|
!*** ./node_modules/react-is/index.js ***!
|
||||||
|
\****************************************/
|
||||||
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
if (false) {} else {
|
||||||
|
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js":
|
||||||
|
/*!**********************************************************************!*\
|
||||||
|
!*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
|
||||||
|
\**********************************************************************/
|
||||||
|
/***/ (function(module) {
|
||||||
|
|
||||||
|
function _interopRequireDefault(obj) {
|
||||||
|
return obj && obj.__esModule ? obj : {
|
||||||
|
"default": obj
|
||||||
|
};
|
||||||
|
}
|
||||||
|
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":
|
/***/ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":
|
||||||
|
|||||||
2
dist/vendors.js.map
vendored
2
dist/vendors.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -4,6 +4,8 @@ export default {
|
|||||||
"pages/home/index",
|
"pages/home/index",
|
||||||
"pages/activityList/index",
|
"pages/activityList/index",
|
||||||
"pages/mountainPeak/index",
|
"pages/mountainPeak/index",
|
||||||
|
"pages/my/index",
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|||||||
33
src/pages/components/TabbarCom/index.tsx
Normal file
33
src/pages/components/TabbarCom/index.tsx
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
import { Tabbar, TabbarItem } from "@antmjs/vantui";
|
||||||
|
import { View } from "@tarojs/components";
|
||||||
|
import Taro from "@tarojs/taro";
|
||||||
|
import react from "react";
|
||||||
|
|
||||||
|
const TabbarCom = (props: any) => {
|
||||||
|
const [active, setActive] = react.useState(props?.active ?? 0);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<View>
|
||||||
|
<Tabbar
|
||||||
|
active={active}
|
||||||
|
onChange={(e: any) => {
|
||||||
|
console.log("e", e);
|
||||||
|
setActive(e?.detail);
|
||||||
|
if(e?.detail===2){
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: "/pages/my/index",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
safeAreaInsetBottom={false}
|
||||||
|
>
|
||||||
|
<TabbarItem icon="home-o">首页</TabbarItem>
|
||||||
|
{/* <TabbarItem icon="search">标签</TabbarItem> */}
|
||||||
|
<TabbarItem icon="friends-o">活动</TabbarItem>
|
||||||
|
<TabbarItem icon="setting-o">我的</TabbarItem>
|
||||||
|
</Tabbar>
|
||||||
|
</View>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default TabbarCom;
|
||||||
@@ -15,6 +15,7 @@ import react from "react";
|
|||||||
import { NoticeBar } from "@antmjs/vantui";
|
import { NoticeBar } from "@antmjs/vantui";
|
||||||
import Taro from "@tarojs/taro";
|
import Taro from "@tarojs/taro";
|
||||||
import { Tabbar, TabbarItem } from "@antmjs/vantui";
|
import { Tabbar, TabbarItem } from "@antmjs/vantui";
|
||||||
|
import TabbarCom from "../components/TabbarCom";
|
||||||
|
|
||||||
const Home = () => {
|
const Home = () => {
|
||||||
// const { images } = COMMON
|
// const { images } = COMMON
|
||||||
@@ -114,18 +115,18 @@ const Home = () => {
|
|||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|
||||||
<Tabbar
|
{/* <Tabbar
|
||||||
active={active}
|
active={active}
|
||||||
// onChange={(e) => setActive(e?.detail)}
|
|
||||||
safeAreaInsetBottom={false}
|
safeAreaInsetBottom={false}
|
||||||
|
|
||||||
|
|
||||||
>
|
>
|
||||||
<TabbarItem icon="home-o">首页</TabbarItem>
|
<TabbarItem icon="home-o">首页</TabbarItem>
|
||||||
{/* <TabbarItem icon="search">标签</TabbarItem> */}
|
|
||||||
<TabbarItem icon="friends-o">活动</TabbarItem>
|
<TabbarItem icon="friends-o">活动</TabbarItem>
|
||||||
<TabbarItem icon="setting-o">我的</TabbarItem>
|
<TabbarItem icon="setting-o">我的</TabbarItem>
|
||||||
</Tabbar>
|
</Tabbar> */}
|
||||||
|
|
||||||
|
<TabbarCom active={0}/>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
17
src/pages/my/index.tsx
Normal file
17
src/pages/my/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
import { Tabbar, TabbarItem } from "@antmjs/vantui";
|
||||||
|
import { View } from "@tarojs/components";
|
||||||
|
import react from "react";
|
||||||
|
import TabbarCom from "../components/TabbarCom";
|
||||||
|
|
||||||
|
const my = (props: any) => {
|
||||||
|
// const [active, setActive] = react.useState(props?.active ?? 0);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<View>
|
||||||
|
my
|
||||||
|
<TabbarCom active={2} />;
|
||||||
|
</View>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default my;
|
||||||
Reference in New Issue
Block a user