taro-virtual-list
Version:
1,314 lines (1,154 loc) • 355 kB
JavaScript
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["taro"],{
/***/ "./node_modules/@tarojs/api/dist/index.esm.js":
/*!****************************************************!*\
!*** ./node_modules/@tarojs/api/dist/index.esm.js ***!
\****************************************************/
/*! exports provided: default */
/*! all exports used */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(global, window) {/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _babel_runtime_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/objectSpread2.js");
/* harmony import */ var _babel_runtime_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js");
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js");
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js");
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @tarojs/runtime */ "./node_modules/@tarojs/runtime/dist/runtime.esm.js");
if (typeof Object.assign !== 'function') {
// Must be writable: true, enumerable: false, configurable: true
Object.assign = function (target) {
// .length of function is 2
if (target == null) {
// TypeError if undefined or null
throw new TypeError('Cannot convert undefined or null to object');
}
var to = Object(target);
for (var index = 1; index < arguments.length; index++) {
var nextSource = arguments[index];
if (nextSource != null) {
// Skip over if undefined or null
for (var nextKey in nextSource) {
// Avoid bugs when hasOwnProperty is shadowed
if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
to[nextKey] = nextSource[nextKey];
}
}
}
}
return to;
};
}
if (typeof Object.defineProperties !== 'function') {
Object.defineProperties = function (obj, properties) {
function convertToDescriptor(desc) {
function hasProperty(obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop);
}
function isCallable(v) {
// NB: modify as necessary if other values than functions are callable.
return typeof v === 'function';
}
if (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(desc) !== 'object' || desc === null) {
throw new TypeError('bad desc');
}
var d = {};
if (hasProperty(desc, 'enumerable')) d.enumerable = !!desc.enumerable;
if (hasProperty(desc, 'configurable')) {
d.configurable = !!desc.configurable;
}
if (hasProperty(desc, 'value')) d.value = desc.value;
if (hasProperty(desc, 'writable')) d.writable = !!desc.writable;
if (hasProperty(desc, 'get')) {
var g = desc.get;
if (!isCallable(g) && typeof g !== 'undefined') {
throw new TypeError('bad get');
}
d.get = g;
}
if (hasProperty(desc, 'set')) {
var s = desc.set;
if (!isCallable(s) && typeof s !== 'undefined') {
throw new TypeError('bad set');
}
d.set = s;
}
if (('get' in d || 'set' in d) && ('value' in d || 'writable' in d)) {
throw new TypeError('identity-confused descriptor');
}
return d;
}
if (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(obj) !== 'object' || obj === null) throw new TypeError('bad obj');
properties = Object(properties);
var keys = Object.keys(properties);
var descs = [];
for (var i = 0; i < keys.length; i++) {
descs.push([keys[i], convertToDescriptor(properties[keys[i]])]);
}
for (var _i = 0; _i < descs.length; _i++) {
Object.defineProperty(obj, descs[_i][0], descs[_i][1]);
}
return obj;
};
}
var ENV_TYPE = {
WEAPP: 'WEAPP',
WEB: 'WEB',
RN: 'RN',
SWAN: 'SWAN',
ALIPAY: 'ALIPAY',
TT: 'TT',
QQ: 'QQ',
JD: 'JD'
};
var _env = null; // 一个taro项目肯定运行同样的环境
function getEnv() {
if (_env) return _env;
if (typeof jd !== 'undefined' && jd.getSystemInfo) {
_env = ENV_TYPE.JD;
return ENV_TYPE.JD;
}
if (typeof qq !== 'undefined' && qq.getSystemInfo) {
_env = ENV_TYPE.QQ;
return ENV_TYPE.QQ;
}
if (typeof tt !== 'undefined' && tt.getSystemInfo) {
_env = ENV_TYPE.TT;
return ENV_TYPE.TT;
}
if (typeof wx !== 'undefined' && wx.getSystemInfo) {
_env = ENV_TYPE.WEAPP;
return ENV_TYPE.WEAPP;
}
if (typeof swan !== 'undefined' && swan.getSystemInfo) {
_env = ENV_TYPE.SWAN;
return ENV_TYPE.SWAN;
}
if (typeof my !== 'undefined' && my.getSystemInfo) {
_env = ENV_TYPE.ALIPAY;
return ENV_TYPE.ALIPAY;
}
if (typeof global !== 'undefined' && global.__fbGenNativeModule) {
_env = ENV_TYPE.RN;
return ENV_TYPE.RN;
}
if (typeof window !== 'undefined') {
_env = ENV_TYPE.WEB;
return ENV_TYPE.WEB;
}
return 'Unknown environment';
}
var Chain = /*#__PURE__*/function () {
function Chain(requestParams) {
var interceptors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, Chain);
this.index = index;
this.requestParams = requestParams;
this.interceptors = interceptors;
}
_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(Chain, [{
key: "proceed",
value: function proceed(requestParams) {
this.requestParams = requestParams;
if (this.index >= this.interceptors.length) {
throw new Error('chain 参数错误, 请勿直接修改 request.chain');
}
var nextInterceptor = this._getNextInterceptor();
var nextChain = this._getNextChain();
var p = nextInterceptor(nextChain);
var res = p.catch(function (err) {
return Promise.reject(err);
});
if (typeof p.abort === 'function') res.abort = p.abort;
return res;
}
}, {
key: "_getNextInterceptor",
value: function _getNextInterceptor() {
return this.interceptors[this.index];
}
}, {
key: "_getNextChain",
value: function _getNextChain() {
return new Chain(this.requestParams, this.interceptors, this.index + 1);
}
}]);
return Chain;
}();
var Link = /*#__PURE__*/function () {
function Link(interceptor) {
_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, Link);
this.taroInterceptor = interceptor;
this.chain = new Chain();
}
_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(Link, [{
key: "request",
value: function request(requestParams) {
var _this = this;
this.chain.interceptors = this.chain.interceptors.filter(function (interceptor) {
return interceptor !== _this.taroInterceptor;
});
this.chain.interceptors.push(this.taroInterceptor);
return this.chain.proceed(_babel_runtime_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1___default()({}, requestParams));
}
}, {
key: "addInterceptor",
value: function addInterceptor(interceptor) {
this.chain.interceptors.push(interceptor);
}
}, {
key: "cleanInterceptors",
value: function cleanInterceptors() {
this.chain = new Chain();
}
}]);
return Link;
}();
function timeoutInterceptor(chain) {
var requestParams = chain.requestParams;
var p;
var res = new Promise(function (resolve, reject) {
var timeout = setTimeout(function () {
timeout = null;
reject(new Error('网络链接超时,请稍后再试!'));
}, requestParams && requestParams.timeout || 60000);
p = chain.proceed(requestParams);
p.then(function (res) {
if (!timeout) return;
clearTimeout(timeout);
resolve(res);
}).catch(function (err) {
timeout && clearTimeout(timeout);
reject(err);
});
});
if (p !== undefined && typeof p.abort === 'function') res.abort = p.abort;
return res;
}
function logInterceptor(chain) {
var requestParams = chain.requestParams;
var method = requestParams.method,
data = requestParams.data,
url = requestParams.url; // eslint-disable-next-line no-console
console.log("http ".concat(method || 'GET', " --> ").concat(url, " data: "), data);
var p = chain.proceed(requestParams);
var res = p.then(function (res) {
// eslint-disable-next-line no-console
console.log("http <-- ".concat(url, " result:"), res);
return res;
});
if (typeof p.abort === 'function') res.abort = p.abort;
return res;
}
var interceptors = /*#__PURE__*/Object.freeze({
__proto__: null,
timeoutInterceptor: timeoutInterceptor,
logInterceptor: logInterceptor
});
function Behavior(options) {
return options;
}
function getPreload(current) {
return function (key, val) {
if (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(key) === 'object') {
current.preloadData = key;
} else if (key !== undefined && val !== undefined) {
current.preloadData = _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()({}, key, val);
}
};
}
function getInitPxTransform(taro) {
return function (config) {
var _config$designWidth = config.designWidth,
designWidth = _config$designWidth === void 0 ? 750 : _config$designWidth,
_config$deviceRatio = config.deviceRatio,
deviceRatio = _config$deviceRatio === void 0 ? {
640: 2.34 / 2,
750: 1,
828: 1.81 / 2
} : _config$deviceRatio;
taro.config = taro.config || {};
taro.config.designWidth = designWidth;
taro.config.deviceRatio = deviceRatio;
};
}
function getPxTransform(taro) {
return function (size) {
var _ref = taro.config || {},
_ref$designWidth = _ref.designWidth,
designWidth = _ref$designWidth === void 0 ? 750 : _ref$designWidth,
_ref$deviceRatio = _ref.deviceRatio,
deviceRatio = _ref$deviceRatio === void 0 ? {
640: 2.34 / 2,
750: 1,
828: 1.81 / 2
} : _ref$deviceRatio;
if (!(designWidth in deviceRatio)) {
throw new Error("deviceRatio \u914D\u7F6E\u4E2D\u4E0D\u5B58\u5728 ".concat(designWidth, " \u7684\u8BBE\u7F6E\uFF01"));
}
return parseInt(size, 10) * deviceRatio[designWidth] + 'rpx';
};
}
/* eslint-disable camelcase */
var Taro = {
Behavior: Behavior,
getEnv: getEnv,
ENV_TYPE: ENV_TYPE,
Link: Link,
interceptors: interceptors,
Current: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["Current"],
getCurrentInstance: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["getCurrentInstance"],
options: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["options"],
nextTick: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["nextTick"],
eventCenter: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["eventCenter"],
Events: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["Events"],
useDidShow: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["useDidShow"],
useDidHide: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["useDidHide"],
usePullDownRefresh: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["usePullDownRefresh"],
useReachBottom: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["useReachBottom"],
usePageScroll: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["usePageScroll"],
useResize: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["useResize"],
useShareAppMessage: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["useShareAppMessage"],
useTabItemTap: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["useTabItemTap"],
useTitleClick: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["useTitleClick"],
useOptionMenuClick: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["useOptionMenuClick"],
usePullIntercept: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["usePullIntercept"],
useShareTimeline: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["useShareTimeline"],
useAddToFavorites: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["useAddToFavorites"],
useReady: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["useReady"],
useRouter: _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["useRouter"],
getInitPxTransform: getInitPxTransform
};
Taro.initPxTransform = getInitPxTransform(Taro);
Taro.preload = getPreload(_tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["Current"]);
Taro.pxTransform = getPxTransform(Taro);
/* harmony default export */ __webpack_exports__["default"] = (Taro);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! @tarojs/runtime */ "./node_modules/@tarojs/runtime/dist/runtime.esm.js")["window"]))
/***/ }),
/***/ "./node_modules/@tarojs/mini-runner/dist/template/comp.js":
/*!****************************************************************!*\
!*** ./node_modules/@tarojs/mini-runner/dist/template/comp.js ***!
\****************************************************************/
/*! no exports provided */
/*! all exports used */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/runtime */ "./node_modules/@tarojs/runtime/dist/runtime.esm.js");
/* eslint-disable no-undef */
// @ts-ignore
Component(Object(_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__["createRecursiveComponentConfig"])());
/***/ }),
/***/ "./node_modules/@tarojs/mini-runner/dist/template/custom-wrapper.js":
/*!**************************************************************************!*\
!*** ./node_modules/@tarojs/mini-runner/dist/template/custom-wrapper.js ***!
\**************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
/* eslint-disable no-undef */
var runtime_1 = __webpack_require__(/*! @tarojs/runtime */ "./node_modules/@tarojs/runtime/dist/runtime.esm.js"); // @ts-ignore
Component(runtime_1.createRecursiveComponentConfig('custom-wrapper'));
/***/ }),
/***/ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js":
/*!*****************************************************************************!*\
!*** ./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js ***!
\*****************************************************************************/
/*! exports provided: Ad, AdCustom, Audio, Block, Button, Camera, Canvas, Checkbox, CheckboxGroup, CoverImage, CoverView, CustomWrapper, Editor, Form, FunctionalPageNavigator, Icon, Image, Input, KeyboardAccessory, Label, LivePlayer, LivePusher, Map, MatchMedia, MovableArea, MovableView, NavigationBar, Navigator, OfficialAccount, OpenData, PageContainer, PageMeta, Picker, PickerView, PickerViewColumn, Progress, Radio, RadioGroup, RichText, ScrollView, Slider, Slot, Swiper, SwiperItem, Switch, Text, Textarea, Video, View, VoipRoom, WebView */
/*! exports used: Block, Button, ScrollView, View */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony export Ad */
/* unused harmony export AdCustom */
/* unused harmony export Audio */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Block; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Button; });
/* unused harmony export Camera */
/* unused harmony export Canvas */
/* unused harmony export Checkbox */
/* unused harmony export CheckboxGroup */
/* unused harmony export CoverImage */
/* unused harmony export CoverView */
/* unused harmony export CustomWrapper */
/* unused harmony export Editor */
/* unused harmony export Form */
/* unused harmony export FunctionalPageNavigator */
/* unused harmony export Icon */
/* unused harmony export Image */
/* unused harmony export Input */
/* unused harmony export KeyboardAccessory */
/* unused harmony export Label */
/* unused harmony export LivePlayer */
/* unused harmony export LivePusher */
/* unused harmony export Map */
/* unused harmony export MatchMedia */
/* unused harmony export MovableArea */
/* unused harmony export MovableView */
/* unused harmony export NavigationBar */
/* unused harmony export Navigator */
/* unused harmony export OfficialAccount */
/* unused harmony export OpenData */
/* unused harmony export PageContainer */
/* unused harmony export PageMeta */
/* unused harmony export Picker */
/* unused harmony export PickerView */
/* unused harmony export PickerViewColumn */
/* unused harmony export Progress */
/* unused harmony export Radio */
/* unused harmony export RadioGroup */
/* unused harmony export RichText */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return ScrollView; });
/* unused harmony export Slider */
/* unused harmony export Slot */
/* unused harmony export Swiper */
/* unused harmony export SwiperItem */
/* unused harmony export Switch */
/* unused harmony export Text */
/* unused harmony export Textarea */
/* unused harmony export Video */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return View; });
/* unused harmony export VoipRoom */
/* unused harmony export WebView */
var View = 'view';
var Icon = 'icon';
var Progress = 'progress';
var RichText = 'rich-text';
var Text = 'text';
var Button = 'button';
var Checkbox = 'checkbox';
var CheckboxGroup = 'checkbox-group';
var Form = 'form';
var Input = 'input';
var Label = 'label';
var Picker = 'picker';
var PickerView = 'picker-view';
var PickerViewColumn = 'picker-view-column';
var Radio = 'radio';
var RadioGroup = 'radio-group';
var Slider = 'slider';
var Switch = 'switch';
var CoverImage = 'cover-image';
var Textarea = 'textarea';
var CoverView = 'cover-view';
var MovableArea = 'movable-area';
var MovableView = 'movable-view';
var ScrollView = 'scroll-view';
var Swiper = 'swiper';
var SwiperItem = 'swiper-item';
var Navigator = 'navigator';
var Audio = 'audio';
var Camera = 'camera';
var Image = 'image';
var LivePlayer = 'live-player';
var Video = 'video';
var Canvas = 'canvas';
var Ad = 'ad';
var WebView = 'web-view';
var Block = 'block';
var Map = 'map';
var Slot = 'slot';
var CustomWrapper = 'custom-wrapper'; // For React.createElement's type
var Editor = 'editor';
var MatchMedia = 'match-media';
var FunctionalPageNavigator = 'functional-page-navigator';
var LivePusher = 'live-pusher';
var OfficialAccount = 'official-account';
var OpenData = 'open-data';
var NavigationBar = 'navigation-bar';
var PageMeta = 'page-meta';
var VoipRoom = 'voip-room';
var AdCustom = 'ad-custom';
var PageContainer = 'page-container';
var KeyboardAccessory = 'keyboard-accessory';
/***/ }),
/***/ "./node_modules/@tarojs/plugin-platform-weapp/dist/runtime.js":
/*!********************************************************************!*\
!*** ./node_modules/@tarojs/plugin-platform-weapp/dist/runtime.js ***!
\********************************************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _tarojs_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/shared */ "./node_modules/@tarojs/shared/dist/index.js");
/* harmony import */ var _tarojs_shared__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__);
var needPromiseApis = new Set(['authPrivateMessage', 'disableAlertBeforeUnload', 'enableAlertBeforeUnload', 'getBackgroundFetchData', 'getGroupEnterInfo', 'getShareInfo', 'getWeRunData', 'join1v1Chat', 'openVideoEditor', 'saveFileToDisk', 'scanItem', 'setEnable1v1Chat', 'setWindowSize', 'sendBizRedPacket', 'startFacialRecognitionVerify']);
function initNativeApi(taro) {
Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["processApis"])(taro, wx, {
needPromiseApis: needPromiseApis,
modifyApis: function modifyApis(apis) {
// fix https://github.com/NervJS/taro/issues/9899
apis.delete('lanDebug');
}
});
taro.cloud = wx.cloud;
}
var components = {
// ======== 调整属性 ========
Progress: {
'border-radius': '0',
'font-size': '16',
duration: '30',
bindActiveEnd: ''
},
RichText: {
space: ''
},
Text: {
'user-select': 'false'
},
Map: {
polygons: '[]',
subkey: '',
rotate: '0',
skew: '0',
'enable-3D': 'false',
'show-compass': 'false',
'show-scale': 'false',
'enable-overlooking': 'false',
'enable-zoom': 'true',
'enable-scroll': 'true',
'enable-rotate': 'false',
'enable-satellite': 'false',
'enable-traffic': 'false',
setting: '[]',
bindLabelTap: '',
bindRegionChange: '',
bindPoiTap: ''
},
Button: {
lang: 'en',
'session-from': '',
'send-message-title': '',
'send-message-path': '',
'send-message-img': '',
'app-parameter': '',
'show-message-card': 'false',
'business-id': '',
bindGetUserInfo: '',
bindContact: '',
bindGetPhoneNumber: '',
bindError: '',
bindOpenSetting: '',
bindLaunchApp: ''
},
Form: {
'report-submit-timeout': '0'
},
Input: {
'always-embed': 'false',
'adjust-position': 'true',
'hold-keyboard': 'false',
bindKeyboardHeightChange: ''
},
Picker: {
'header-text': ''
},
PickerView: {
bindPickStart: '',
bindPickEnd: ''
},
Slider: {
color: Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('#e9e9e9'),
'selected-color': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('#1aad19')
},
Textarea: {
'show-confirm-bar': 'true',
'adjust-position': 'true',
'hold-keyboard': 'false',
'disable-default-padding': 'false',
'confirm-type': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('return'),
'confirm-hold': 'false',
bindKeyboardHeightChange: ''
},
ScrollView: {
'enable-flex': 'false',
'scroll-anchoring': 'false',
'refresher-enabled': 'false',
'refresher-threshold': '45',
'refresher-default-style': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('black'),
'refresher-background': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('#FFF'),
'refresher-triggered': 'false',
enhanced: 'false',
bounces: 'true',
'show-scrollbar': 'true',
'paging-enabled': 'false',
'fast-deceleration': 'false',
bindDragStart: '',
bindDragging: '',
bindDragEnd: '',
bindRefresherPulling: '',
bindRefresherRefresh: '',
bindRefresherRestore: '',
bindRefresherAbort: ''
},
Swiper: {
'snap-to-edge': 'false',
'easing-function': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('default')
},
SwiperItem: {
'skip-hidden-item-layout': 'false'
},
Navigator: {
target: Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('self'),
'app-id': '',
path: '',
'extra-data': '',
version: Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('version')
},
Camera: {
mode: Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('normal'),
resolution: Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('medium'),
'frame-size': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('medium'),
bindInitDone: '',
bindScanCode: ''
},
Image: {
webp: 'false',
'show-menu-by-longpress': 'false'
},
LivePlayer: {
mode: Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('live'),
'sound-mode': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('speaker'),
'auto-pause-if-navigate': 'true',
'auto-pause-if-open-native': 'true',
'picture-in-picture-mode': '[]',
bindstatechange: '',
bindfullscreenchange: '',
bindnetstatus: '',
bindAudioVolumeNotify: '',
bindEnterPictureInPicture: '',
bindLeavePictureInPicture: ''
},
Video: {
title: '',
'play-btn-position': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('bottom'),
'enable-play-gesture': 'false',
'auto-pause-if-navigate': 'true',
'auto-pause-if-open-native': 'true',
'vslide-gesture': 'false',
'vslide-gesture-in-fullscreen': 'true',
'ad-unit-id': '',
'poster-for-crawler': '',
'show-casting-button': 'false',
'picture-in-picture-mode': '[]',
// picture-in-picture-show-progress 属性先注释掉的原因如下:
// 该属性超过了 wxml 属性的长度限制,实际无法使用且导致编译报错。可等微信官方修复后再放开。
// 参考1:https://developers.weixin.qq.com/community/develop/doc/000a429beb87f0eac07acc0fc5b400
// 参考2: https://developers.weixin.qq.com/community/develop/doc/0006883619c48054286a4308258c00?_at=vyxqpllafi
// 'picture-in-picture-show-progress': 'false',
'enable-auto-rotation': 'false',
'show-screen-lock-button': 'false',
'show-snapshot-button': 'false',
'show-background-playback-button': 'false',
'background-poster': '',
bindProgress: '',
bindLoadedMetadata: '',
bindControlsToggle: '',
bindEnterPictureInPicture: '',
bindLeavePictureInPicture: '',
bindSeekComplete: '',
bindAdLoad: '',
bindAdError: '',
bindAdClose: '',
bindAdPlay: ''
},
Canvas: {
type: ''
},
Ad: {
'ad-type': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('banner'),
'ad-theme': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('white')
},
CoverView: {
'marker-id': '',
slot: ''
},
// ======== 额外组件 ========
Editor: {
'read-only': 'false',
placeholder: '',
'show-img-size': 'false',
'show-img-toolbar': 'false',
'show-img-resize': 'false',
focus: 'false',
bindReady: '',
bindFocus: '',
bindBlur: '',
bindInput: '',
bindStatusChange: '',
name: ''
},
MatchMedia: {
'min-width': '',
'max-width': '',
width: '',
'min-height': '',
'max-height': '',
height: '',
orientation: ''
},
FunctionalPageNavigator: {
version: Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('release'),
name: '',
args: '',
bindSuccess: '',
bindFail: '',
bindCancel: ''
},
LivePusher: {
url: '',
mode: Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('RTC'),
autopush: 'false',
muted: 'false',
'enable-camera': 'true',
'auto-focus': 'true',
orientation: Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('vertical'),
beauty: '0',
whiteness: '0',
aspect: Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('9:16'),
'min-bitrate': '200',
'max-bitrate': '1000',
'audio-quality': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('high'),
'waiting-image': '',
'waiting-image-hash': '',
zoom: 'false',
'device-position': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('front'),
'background-mute': 'false',
mirror: 'false',
'remote-mirror': 'false',
'local-mirror': 'false',
'audio-reverb-type': '0',
'enable-mic': 'true',
'enable-agc': 'false',
'enable-ans': 'false',
'audio-volume-type': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('voicecall'),
'video-width': '360',
'video-height': '640',
'beauty-style': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('smooth'),
filter: Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('standard'),
animation: '',
bindStateChange: '',
bindNetStatus: '',
bindBgmStart: '',
bindBgmProgress: '',
bindBgmComplete: '',
bindAudioVolumeNotify: ''
},
OfficialAccount: {
bindLoad: '',
bindError: ''
},
OpenData: {
type: '',
'open-gid': '',
lang: Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('en'),
'default-text': '',
'default-avatar': '',
bindError: ''
},
NavigationBar: {
title: '',
loading: 'false',
'front-color': '',
'background-color': '',
'color-animation-duration': '0',
'color-animation-timing-func': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('linear')
},
PageMeta: {
'background-text-style': '',
'background-color': '',
'background-color-top': '',
'background-color-bottom': '',
'scroll-top': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])(''),
'scroll-duration': '300',
'page-style': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])(''),
'root-font-size': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])(''),
bindResize: '',
bindScroll: '',
bindScrollDone: ''
},
VoipRoom: {
openid: '',
mode: Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('camera'),
'device-position': Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('front'),
bindError: ''
},
AdCustom: {
'unit-id': '',
'ad-intervals': '',
bindLoad: '',
bindError: ''
},
PageContainer: {
show: 'false',
duration: '300',
'z-index': '100',
overlay: 'true',
position: Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])('bottom'),
round: 'false',
'close-on-slideDown': 'false',
'overlay-style': '',
'custom-style': '',
bindBeforeEnter: '',
bindEnter: '',
bindAfterEnter: '',
bindBeforeLeave: '',
bindLeave: '',
bindAfterLeave: '',
bindClickOverlay: ''
},
KeyboardAccessory: {}
};
var hostConfig = {
initNativeApi: initNativeApi
};
Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["mergeReconciler"])(hostConfig);
Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["mergeInternalComponents"])(components);
/***/ }),
/***/ "./node_modules/@tarojs/react/dist/react.esm.js":
/*!******************************************************!*\
!*** ./node_modules/@tarojs/react/dist/react.esm.js ***!
\******************************************************/
/*! exports provided: default, createPortal, findDOMNode, render, unmountComponentAtNode, unstable_batchedUpdates */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony export createPortal */
/* unused harmony export findDOMNode */
/* unused harmony export render */
/* unused harmony export unmountComponentAtNode */
/* unused harmony export unstable_batchedUpdates */
/* harmony import */ var _Users_boyang_learning_Taro_taro3_virtual_list_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
/* harmony import */ var _Users_boyang_learning_Taro_taro3_virtual_list_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
/* harmony import */ var _Users_boyang_learning_Taro_taro3_virtual_list_node_modules_babel_runtime_helpers_esm_newArrowCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/newArrowCheck */ "./node_modules/@babel/runtime/helpers/esm/newArrowCheck.js");
/* harmony import */ var react_reconciler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-reconciler */ "./node_modules/react-reconciler/cjs/react-reconciler.production.min.js");
/* harmony import */ var react_reconciler__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_reconciler__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var scheduler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! scheduler */ "./node_modules/scheduler/cjs/scheduler.production.min.js");
/* harmony import */ var scheduler__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(scheduler__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @tarojs/runtime */ "./node_modules/@tarojs/runtime/dist/runtime.esm.js");
/* harmony import */ var _tarojs_shared__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @tarojs/shared */ "./node_modules/@tarojs/shared/dist/index.js");
/* harmony import */ var _tarojs_shared__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_tarojs_shared__WEBPACK_IMPORTED_MODULE_6__);
var _this = undefined;
function isEventName(s) {
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/i;
function updateProps(dom, oldProps, newProps) {
var i;
for (i in oldProps) {
if (!(i in newProps)) {
setProperty(dom, i, null, oldProps[i]);
}
}
var isFormElement = dom instanceof _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["FormElement"];
for (i in newProps) {
if (oldProps[i] !== newProps[i] || isFormElement && i === 'value') {
setProperty(dom, i, newProps[i], oldProps[i]);
}
}
} // function eventProxy (e: CommonEvent) {
// const el = document.getElementById(e.currentTarget.id)
// const handlers = el!.__handlers[e.type]
// handlers[0](e)
// }
function setEvent(dom, name, value, oldValue) {
var isCapture = name.endsWith('Capture');
var eventName = name.toLowerCase().slice(2);
if (isCapture) {
eventName = eventName.slice(0, -7);
}
var compName = Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_6__["capitalize"])(Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_6__["toCamelCase"])(dom.tagName.toLowerCase()));
if (eventName === 'click' && compName in _tarojs_shared__WEBPACK_IMPORTED_MODULE_6__["internalComponents"]) {
eventName = 'tap';
}
if (Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_6__["isFunction"])(value)) {
if (!oldValue) {
dom.addEventListener(eventName, value, isCapture);
}
if (eventName === 'regionchange') {
dom.__handlers.begin[0] = value;
dom.__handlers.end[0] = value;
} else {
dom.__handlers[eventName][0] = value;
}
} else {
dom.removeEventListener(eventName, oldValue);
}
}
function setStyle(style, key, value) {
if (key[0] === '-') {
style.setProperty(key, value.toString());
}
style[key] = Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_6__["isNumber"])(value) && IS_NON_DIMENSIONAL.test(key) === false ? value + 'px' : value == null ? '' : value;
}
function setProperty(dom, name, value, oldValue) {
var _a, _b, _c, _d;
name = name === 'className' ? 'class' : name;
if (name === 'key' || name === 'children' || name === 'ref') ;else if (name === 'style') {
var style = dom.style;
if (Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_6__["isString"])(value)) {
style.cssText = value;
} else {
if (Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_6__["isString"])(oldValue)) {
style.cssText = '';
oldValue = null;
}
if (Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_6__["isObject"])(oldValue)) {
for (var i in oldValue) {
if (!(value && i in value)) {
setStyle(style, i, '');
}
}
}
if (Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_6__["isObject"])(value)) {
for (var _i in value) {
if (!oldValue || value[_i] !== oldValue[_i]) {
setStyle(style, _i, value[_i]);
}
}
}
}
} else if (isEventName(name)) {
setEvent(dom, name, value, oldValue);
} else if (name === 'dangerouslySetInnerHTML') {
var newHtml = (_b = (_a = value) === null || _a === void 0 ? void 0 : _a.__html) !== null && _b !== void 0 ? _b : '';
var oldHtml = (_d = (_c = oldValue) === null || _c === void 0 ? void 0 : _c.__html) !== null && _d !== void 0 ? _d : '';
if (newHtml || oldHtml) {
if (oldHtml !== newHtml) {
dom.innerHTML = newHtml;
}
}
} else if (!Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_6__["isFunction"])(value)) {
if (value == null) {
dom.removeAttribute(name);
} else {
dom.setAttribute(name, value);
}
}
}
/* eslint-disable @typescript-eslint/indent */
var now = scheduler__WEBPACK_IMPORTED_MODULE_4__["unstable_now"];
function returnFalse() {
return false;
}
var hostConfig = {
createInstance: function createInstance(type) {
return _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["document"].createElement(type);
},
createTextInstance: function createTextInstance(text) {
return _tarojs_runtime__WEBPACK_IMPORTED_MODULE_5__["document"].createTextNode(text);
},
getPublicInstance: function getPublicInstance(inst) {
return inst;
},
getRootHostContext: function getRootHostContext() {
return {};
},
getChildHostContext: function getChildHostContext() {
return {};
},
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 _tarojs_shared__WEBPACK_IMPORTED_MODULE_6__["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 || typeof display === 'boolean' || display === '' ? '' : ('' + display).trim(); // eslint-disable-next-line dot-notation
instance.style['display'] = display;
},
clearContainer: function clearContainer(element) {
if (element.childNodes.length > 0) {
element.textContent = '';
}
},
queueMicrotask: typeof Promise !== 'undefined' ? function (callback) {
Object(_Users_boyang_learning_Taro_taro3_virtual_list_node_modules_babel_runtime_helpers_esm_newArrowCheck__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(this, _this);
return Promise.resolve(null).then(callback).catch(function (error) {
var _this2 = this;
setTimeout(function () {
Object(_Users_boyang_learning_Taro_taro3_virtual_list_node_modules_babel_runtime_helpers_esm_newArrowCheck__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(this, _this2);
throw error;
}.bind(this));
});
}.bind(undefined) : setTimeout,
shouldSetTextContent: returnFalse,
prepareForCommit: function prepareForCommit() {
return null;
},
resetAfterCommit: _tarojs_shared__WEBPACK_IMPORTED_MODULE_6__["noop"],
commitMount: _tarojs_shared__WEBPACK_IMPORTED_MODULE_6__["noop"],
now: now,
cancelTimeout: clearTimeout,
scheduleTimeout: setTimeout,
preparePortalMount: _tarojs_shared__WEBPACK_IMPORTED_MODULE_6__["noop"],
noTimeout: -1,
supportsMutation: true,
supportsPersistence: false,
isPrimaryRenderer: true,
supportsHydration: false
};
var TaroReconciler = react_reconciler__WEBPACK_IMPORTED_MODULE_3___default()(hostConfig);
if (true) {
var foundDevTools = TaroReconciler.injectIntoDevTools({
bundleType: 1,
version: '17.0.2',
rendererPackageName: 'taro-react'
});
if (!foundDevTools) {
// eslint-disable-next-line no-console
console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://reactjs.org/link/react-devtools', 'font-weight:bold');
}
}
var ContainerMap = new WeakMap();
var Root = /*#__PURE__*/function () {
function Root(renderer, domContainer) {
Object(_Users_boyang_learning_Taro_taro3_virtual_list_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(this, Root);
this.renderer = renderer;
this.internalRoot = renderer.createContainer(domContainer, 0
/** LegacyRoot: react-reconciler/src/ReactRootTags.js */
, false, null);
}
Object(_Users_boyang_learning_Taro_taro3_virtual_list_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(Root, [{
key: "render",
value: function render(children, cb) {
this.renderer.updateContainer(children, this.internalRoot, null, cb);
return this.renderer.getPublicRootInstance(this.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);
if (oldRoot != null) {
return oldRoot.render(element, cb);
}
var root = new Root(TaroReconciler, domContainer);
ContainerMap.set(domContainer, root);
return root.render(element, cb);
}
/* eslint-disable @typescript-eslint/no-unused-vars */
var unstable_batchedUpdates = TaroReconciler.batchedUpdates;
function unmountComponentAtNode(dom) {
var _this3 = this;
Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_6__["ensure"])(dom && [1, 8, 9, 11].includes(dom.nodeType), 'unmountComponentAtNode(...): Target container is not a DOM element.');
var root = ContainerMap.get(dom);
if (!root) return false;
unstable_batchedUpdates(function () {
var _this4 = this;
Object(_Users_boyang_learning_Taro_taro3_virtual_list_node_modules_babel_runtime_helpers_esm_newArrowCheck__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(this, _this3);
root.unmount(function () {
Object(_Users_boyang_learning_Taro_taro3_virtual_list_node_modules_babel_runtime_helpers_esm_newArrowCheck__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(this, _this4);
ContainerMap.delete(dom);
}.bind(this));
}.bind(this), null);
return true;
}
function findDOMNode(comp) {
if (comp == null) {
return null;
}
var nodeType = comp.nodeType;
if (nodeType === 1 || nodeType === 3) {
return comp;
}
return TaroReconciler.findHostInstance(comp);
}
var portalType = typeof Symbol === 'function' && Symbol.for ? Symbol.for('react.portal') : 0xeaca;
function createPortal(children, containerInfo, key) {
return {
$$typeof: portalType,
key: key == null ? null : String(key),
children: children,
containerInfo: containerInfo,
implementation: null
};
}
var index = {
render: render,
unstable_batchedUpdates: unstable_batchedUpdates,
unmountComponentAtNode: unmountComponentAtNode,
findDOMNode: findDOMNode,
createPortal: createPortal
};
/* harmony default export */ __webpack_exports__["a"] = (index);
/***/ }),
/***/ "./node_modules/@tarojs/runtime/dist/runtime.esm.js":
/*!**********************************************************!*\
!*** ./node_modules/@tarojs/runtime/dist/runtime.esm.js ***!
\**********************************************************/
/*! exports provided: Current, ElementNames, Events, FormElement, SERVICE_IDENTIFIER, Style, TaroElement, TaroEvent, TaroNode, TaroRootElement, TaroText, cancelAnimationFrame, connectReactPage, connectVuePage, container, createComponentConfig, createDocument, createEvent, createNativeComponentConfig, createPageConfig, createReactApp, createRecursiveComponentConfig, createVue3App, createVueApp, document, eventCenter, getComputedStyle, getCurrentInstance, hydrate, injectPageInstance, navigator, nextTick, now, options, requestAnimationFrame, stringify, useAddToFavorites, useDidHide, useDidShow, useOptionMenuClick, usePageScroll, usePullDownRefresh, usePullIntercept, useReachBottom, useReady, useResize, useRouter, useScope, useShareAppMessage, useShareTimeline, useTabItemTap, useTitleClick, window */
/*! all exports used */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(process, global, document, window, requestAnimationFrame, cancelAnimationFrame) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Current", function() { return Current; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ElementNames", function() { return ElementNames; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Events", function() { return Events; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormElement", function() { return FormElement; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SERVICE_IDENTIFIER", function() { return SERVICE_IDENTIFIER; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Style", function() { return Style; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TaroElement", function() { return TaroElement; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TaroEvent", function() { return TaroEvent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TaroNode", function() { return TaroNode; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TaroRootElement", function() { return TaroRootElement; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TaroText", function() { return TaroText; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cancelAnimationFrame", function() { return caf; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "connectReactPage", function() { return connectReactPage; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "connectVuePage", function() { return connectVuePage; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "container", function() { return container; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createComponentConfig", function() { return createComponentConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createDocument", function() { return createDocument; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createEvent", function() { return createEvent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createNativeComponentConfig", function() { return createNativeComponentConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createPageConfig", function() { return createPageConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createReactApp", function() { return createReactApp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createRecursiveComponentConfig", function() { return createRecursiveComponentConfig; });
/* harmony export (binding) */ __web