@tarojs/components-advanced 3.6.3 → 3.6.5-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/virtual-list/utils.js +3 -4
- package/dist/components/virtual-list/utils.js.map +1 -1
- package/dist/components/virtual-list/vue/render.js +1 -2
- package/dist/components/virtual-list/vue/render.js.map +1 -1
- package/dist/utils/timer.js +4 -4
- package/dist/utils/timer.js.map +1 -1
- package/package.json +6 -4
- package/dist/_virtual/_commonjsHelpers.js +0 -35
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/arrayLikeToArray.js +0 -7
- package/dist/_virtual/arrayLikeToArray.js.map +0 -1
- package/dist/_virtual/arrayLikeToArray2.js +0 -4
- package/dist/_virtual/arrayLikeToArray2.js.map +0 -1
- package/dist/_virtual/arrayWithoutHoles.js +0 -7
- package/dist/_virtual/arrayWithoutHoles.js.map +0 -1
- package/dist/_virtual/arrayWithoutHoles2.js +0 -4
- package/dist/_virtual/arrayWithoutHoles2.js.map +0 -1
- package/dist/_virtual/assertThisInitialized.js +0 -7
- package/dist/_virtual/assertThisInitialized.js.map +0 -1
- package/dist/_virtual/assertThisInitialized2.js +0 -4
- package/dist/_virtual/assertThisInitialized2.js.map +0 -1
- package/dist/_virtual/classCallCheck.js +0 -4
- package/dist/_virtual/classCallCheck.js.map +0 -1
- package/dist/_virtual/createClass.js +0 -4
- package/dist/_virtual/createClass.js.map +0 -1
- package/dist/_virtual/createSuper.js +0 -4
- package/dist/_virtual/createSuper.js.map +0 -1
- package/dist/_virtual/defineProperty.js +0 -4
- package/dist/_virtual/defineProperty.js.map +0 -1
- package/dist/_virtual/defineProperty2.js +0 -7
- package/dist/_virtual/defineProperty2.js.map +0 -1
- package/dist/_virtual/getPrototypeOf.js +0 -7
- package/dist/_virtual/getPrototypeOf.js.map +0 -1
- package/dist/_virtual/getPrototypeOf2.js +0 -4
- package/dist/_virtual/getPrototypeOf2.js.map +0 -1
- package/dist/_virtual/index.esm.js +0 -7
- package/dist/_virtual/index.esm.js.map +0 -1
- package/dist/_virtual/index.js +0 -4
- package/dist/_virtual/index.js.map +0 -1
- package/dist/_virtual/inherits.js +0 -4
- package/dist/_virtual/inherits.js.map +0 -1
- package/dist/_virtual/isNativeReflectConstruct.js +0 -7
- package/dist/_virtual/isNativeReflectConstruct.js.map +0 -1
- package/dist/_virtual/isNativeReflectConstruct2.js +0 -4
- package/dist/_virtual/isNativeReflectConstruct2.js.map +0 -1
- package/dist/_virtual/iterableToArray.js +0 -7
- package/dist/_virtual/iterableToArray.js.map +0 -1
- package/dist/_virtual/iterableToArray2.js +0 -4
- package/dist/_virtual/iterableToArray2.js.map +0 -1
- package/dist/_virtual/nonIterableSpread.js +0 -7
- package/dist/_virtual/nonIterableSpread.js.map +0 -1
- package/dist/_virtual/nonIterableSpread2.js +0 -4
- package/dist/_virtual/nonIterableSpread2.js.map +0 -1
- package/dist/_virtual/objectSpread2.js +0 -4
- package/dist/_virtual/objectSpread2.js.map +0 -1
- package/dist/_virtual/possibleConstructorReturn.js +0 -7
- package/dist/_virtual/possibleConstructorReturn.js.map +0 -1
- package/dist/_virtual/possibleConstructorReturn2.js +0 -4
- package/dist/_virtual/possibleConstructorReturn2.js.map +0 -1
- package/dist/_virtual/runtime.esm.js +0 -7
- package/dist/_virtual/runtime.esm.js.map +0 -1
- package/dist/_virtual/setPrototypeOf.js +0 -7
- package/dist/_virtual/setPrototypeOf.js.map +0 -1
- package/dist/_virtual/setPrototypeOf2.js +0 -4
- package/dist/_virtual/setPrototypeOf2.js.map +0 -1
- package/dist/_virtual/toConsumableArray.js +0 -4
- package/dist/_virtual/toConsumableArray.js.map +0 -1
- package/dist/_virtual/typeof.js +0 -4
- package/dist/_virtual/typeof.js.map +0 -1
- package/dist/_virtual/typeof2.js +0 -7
- package/dist/_virtual/typeof2.js.map +0 -1
- package/dist/_virtual/unsupportedIterableToArray.js +0 -7
- package/dist/_virtual/unsupportedIterableToArray.js.map +0 -1
- package/dist/_virtual/unsupportedIterableToArray2.js +0 -4
- package/dist/_virtual/unsupportedIterableToArray2.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +0 -21
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/arrayLikeToArray.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +0 -20
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/assertThisInitialized.js +0 -19
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/assertThisInitialized.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/classCallCheck.js +0 -17
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/classCallCheck.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/createClass.js +0 -30
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/createClass.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/createSuper.js +0 -43
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/createSuper.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/defineProperty.js +0 -26
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/defineProperty.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/getPrototypeOf.js +0 -18
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/getPrototypeOf.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/inherits.js +0 -34
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/inherits.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +0 -24
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/iterableToArray.js +0 -15
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/iterableToArray.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/nonIterableSpread.js +0 -15
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/nonIterableSpread.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/objectSpread2.js +0 -42
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/objectSpread2.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +0 -31
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/setPrototypeOf.js +0 -19
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/setPrototypeOf.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/toConsumableArray.js +0 -35
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/toConsumableArray.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/typeof.js +0 -21
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/typeof.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +0 -25
- package/dist/node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@vue_reactivity@3.2.37/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +0 -1252
- package/dist/node_modules/.pnpm/registry.npmjs.org_@vue_reactivity@3.2.37/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@vue_runtime-core@3.2.37/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +0 -7856
- package/dist/node_modules/.pnpm/registry.npmjs.org_@vue_runtime-core@3.2.37/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@vue_runtime-dom@3.2.37/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +0 -1702
- package/dist/node_modules/.pnpm/registry.npmjs.org_@vue_runtime-dom@3.2.37/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_@vue_shared@3.2.37/node_modules/@vue/shared/dist/shared.esm-bundler.js +0 -597
- package/dist/node_modules/.pnpm/registry.npmjs.org_@vue_shared@3.2.37/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +0 -1
- package/dist/node_modules/.pnpm/registry.npmjs.org_vue@3.2.37/node_modules/vue/dist/vue.runtime.esm-bundler.js +0 -24
- package/dist/node_modules/.pnpm/registry.npmjs.org_vue@3.2.37/node_modules/vue/dist/vue.runtime.esm-bundler.js.map +0 -1
- package/dist/packages/taro/index.js +0 -23
- package/dist/packages/taro/index.js.map +0 -1
- package/dist/packages/taro-api/dist/index.esm.js +0 -861
- package/dist/packages/taro-api/dist/index.esm.js.map +0 -1
- package/dist/packages/taro-runtime/dist/runtime.esm.js +0 -4107
- package/dist/packages/taro-runtime/dist/runtime.esm.js.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import { t as taro } from '../../_virtual/index.js';
|
|
1
|
+
import { createSelectorQuery } from '@tarojs/taro';
|
|
3
2
|
|
|
4
3
|
// In DEV mode, this Set helps us only log a warning once per component instance.
|
|
5
4
|
// This avoids spamming the console every time a render happens.
|
|
@@ -11,7 +10,7 @@ function isRtlFunc({ direction }) {
|
|
|
11
10
|
return direction === 'rtl';
|
|
12
11
|
}
|
|
13
12
|
function getRectSize(id, success, fail, retryMs = 500) {
|
|
14
|
-
const query =
|
|
13
|
+
const query = createSelectorQuery();
|
|
15
14
|
try {
|
|
16
15
|
query.select(id).boundingClientRect((res) => {
|
|
17
16
|
if (res) {
|
|
@@ -29,7 +28,7 @@ function getRectSize(id, success, fail, retryMs = 500) {
|
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
async function getScrollViewContextNode(id) {
|
|
32
|
-
const query =
|
|
31
|
+
const query = createSelectorQuery();
|
|
33
32
|
return new Promise((resolve) => query.select(id).node(({ node }) => resolve(node)).exec());
|
|
34
33
|
}
|
|
35
34
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../src/components/virtual-list/utils.ts"],"sourcesContent":["import { createSelectorQuery } from '@tarojs/taro'\n\n// In DEV mode, this Set helps us only log a warning once per component instance.\n// This avoids spamming the console every time a render happens.\nexport const defaultItemKey = (index: number, _itemData?: unknown) => index\n\ninterface IHorizontal {\n direction?: string\n layout?: string\n}\nexport function isHorizontalFunc ({ direction, layout }: IHorizontal) {\n return direction === 'horizontal' || layout === 'horizontal'\n}\ninterface IRrl {\n direction?: string\n}\nexport function isRtlFunc ({ direction }: IRrl) {\n return direction === 'rtl'\n}\n\nexport function getRectSize (id: string, success?: TFunc, fail?: TFunc, retryMs = 500) {\n const query = createSelectorQuery()\n try {\n query.select(id).boundingClientRect((res) => {\n if (res) {\n success?.(res)\n } else {\n fail?.()\n }\n }).exec()\n } catch (err) {\n setTimeout(() => {\n getRectSize(id, success, fail, retryMs)\n }, retryMs)\n }\n}\n\nexport async function getScrollViewContextNode (id: string) {\n const query = createSelectorQuery()\n return new Promise((resolve) => query.select(id).node(({ node }) => resolve(node)).exec())\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../src/components/virtual-list/utils.ts"],"sourcesContent":["import { createSelectorQuery } from '@tarojs/taro'\n\n// In DEV mode, this Set helps us only log a warning once per component instance.\n// This avoids spamming the console every time a render happens.\nexport const defaultItemKey = (index: number, _itemData?: unknown) => index\n\ninterface IHorizontal {\n direction?: string\n layout?: string\n}\nexport function isHorizontalFunc ({ direction, layout }: IHorizontal) {\n return direction === 'horizontal' || layout === 'horizontal'\n}\ninterface IRrl {\n direction?: string\n}\nexport function isRtlFunc ({ direction }: IRrl) {\n return direction === 'rtl'\n}\n\nexport function getRectSize (id: string, success?: TFunc, fail?: TFunc, retryMs = 500) {\n const query = createSelectorQuery()\n try {\n query.select(id).boundingClientRect((res) => {\n if (res) {\n success?.(res)\n } else {\n fail?.()\n }\n }).exec()\n } catch (err) {\n setTimeout(() => {\n getRectSize(id, success, fail, retryMs)\n }, retryMs)\n }\n}\n\nexport async function getScrollViewContextNode (id: string) {\n const query = createSelectorQuery()\n return new Promise((resolve) => query.select(id).node(({ node }) => resolve(node)).exec())\n}\n"],"names":[],"mappings":";;AAEA;AACA;AACO,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,SAAmB,KAAK,MAAK;SAM3D,gBAAgB,CAAE,EAAE,SAAS,EAAE,MAAM,EAAe,EAAA;AAClE,IAAA,OAAO,SAAS,KAAK,YAAY,IAAI,MAAM,KAAK,YAAY,CAAA;AAC9D,CAAC;AAIe,SAAA,SAAS,CAAE,EAAE,SAAS,EAAQ,EAAA;IAC5C,OAAO,SAAS,KAAK,KAAK,CAAA;AAC5B,CAAC;AAEK,SAAU,WAAW,CAAE,EAAU,EAAE,OAAe,EAAE,IAAY,EAAE,OAAO,GAAG,GAAG,EAAA;AACnF,IAAA,MAAM,KAAK,GAAG,mBAAmB,EAAE,CAAA;IACnC,IAAI;QACF,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,kBAAkB,CAAC,CAAC,GAAG,KAAI;AAC1C,YAAA,IAAI,GAAG,EAAE;AACP,gBAAA,OAAO,aAAP,OAAO,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAP,OAAO,CAAG,GAAG,CAAC,CAAA;AACf,aAAA;AAAM,iBAAA;AACL,gBAAA,IAAI,KAAJ,IAAA,IAAA,IAAI,KAAJ,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,IAAI,EAAI,CAAA;AACT,aAAA;AACH,SAAC,CAAC,CAAC,IAAI,EAAE,CAAA;AACV,KAAA;AAAC,IAAA,OAAO,GAAG,EAAE;QACZ,UAAU,CAAC,MAAK;YACd,WAAW,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAA;SACxC,EAAE,OAAO,CAAC,CAAA;AACZ,KAAA;AACH,CAAC;AAEM,eAAe,wBAAwB,CAAE,EAAU,EAAA;AACxD,IAAA,MAAM,KAAK,GAAG,mBAAmB,EAAE,CAAA;AACnC,IAAA,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,KAAK,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;AAC5F;;;;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { __rest } from '../../../node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js';
|
|
2
|
-
import '
|
|
3
|
-
import { h } from '../../../node_modules/.pnpm/registry.npmjs.org_@vue_runtime-core@3.2.37/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js';
|
|
2
|
+
import { h } from 'vue';
|
|
4
3
|
|
|
5
4
|
function render (componentName, options, children) {
|
|
6
5
|
const { attrs = {}, on = {}, props = {}, slots = {} } = options, el = __rest(options, ["attrs", "on", "props", "slots"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","sources":["../../../../src/components/virtual-list/vue/render.ts"],"sourcesContent":["import { h } from 'vue'\n\nexport default function (componentName: string, options?: Record<string, any>, children?: any) {\n const { attrs = {}, on = {}, props = {}, slots = {}, ...el } = options\n if (process.env.FRAMEWORK === 'vue3') {\n // Events\n Object.keys(on).forEach(key => {\n const name = `on${key.charAt(0).toUpperCase()}${key.slice(1)}`\n el[name] = on[key]\n })\n return h(componentName, { ...attrs, ...props, ...slots, ... el }, children)\n }\n return h(componentName, options, children)\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"render.js","sources":["../../../../src/components/virtual-list/vue/render.ts"],"sourcesContent":["import { h } from 'vue'\n\nexport default function (componentName: string, options?: Record<string, any>, children?: any) {\n const { attrs = {}, on = {}, props = {}, slots = {}, ...el } = options\n if (process.env.FRAMEWORK === 'vue3') {\n // Events\n Object.keys(on).forEach(key => {\n const name = `on${key.charAt(0).toUpperCase()}${key.slice(1)}`\n el[name] = on[key]\n })\n return h(componentName, { ...attrs, ...props, ...slots, ... el }, children)\n }\n return h(componentName, options, children)\n}\n"],"names":[],"mappings":";;;AAEc,eAAA,EAAW,aAAqB,EAAE,OAA6B,EAAE,QAAc,EAAA;IAC3F,MAAM,EAAE,KAAK,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAA,GAAY,OAAO,EAAd,EAAE,GAAA,MAAA,CAAK,OAAO,EAAhE,CAAsD,OAAA,EAAA,IAAA,EAAA,OAAA,EAAA,OAAA,CAAA,CAAU,CAAA;AACtE,IAAA,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,KAAK,MAAM,EAAE;;QAEpC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,IAAG;YAC5B,MAAM,IAAI,GAAG,CAAK,EAAA,EAAA,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAA,EAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA;YAC9D,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AACpB,SAAC,CAAC,CAAA;AACF,QAAA,OAAO,CAAC,CAAC,aAAa,EAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAO,KAAK,CAAK,EAAA,KAAK,CAAK,EAAA,KAAK,CAAM,EAAA,EAAE,CAAI,EAAA,QAAQ,CAAC,CAAA;AAC5E,KAAA;IACD,OAAO,CAAC,CAAC,aAAa,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAA;AAC5C;;;;"}
|
package/dist/utils/timer.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { cancelAnimationFrame
|
|
1
|
+
import { cancelAnimationFrame, now, requestAnimationFrame } from '@tarojs/runtime';
|
|
2
2
|
|
|
3
3
|
function cancelTimeout(timeoutID) {
|
|
4
|
-
|
|
4
|
+
cancelAnimationFrame(timeoutID.id);
|
|
5
5
|
}
|
|
6
6
|
function requestTimeout(callback, delay = 0) {
|
|
7
7
|
const start = now();
|
|
8
8
|
const timeoutID = {
|
|
9
|
-
id:
|
|
9
|
+
id: requestAnimationFrame(tick)
|
|
10
10
|
};
|
|
11
11
|
function tick() {
|
|
12
12
|
if (now() - start >= delay) {
|
|
@@ -14,7 +14,7 @@ function requestTimeout(callback, delay = 0) {
|
|
|
14
14
|
callback.call(null);
|
|
15
15
|
}
|
|
16
16
|
else {
|
|
17
|
-
timeoutID.id =
|
|
17
|
+
timeoutID.id = requestAnimationFrame(tick);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
return timeoutID;
|
package/dist/utils/timer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timer.js","sources":["../../src/utils/timer.ts"],"sourcesContent":["import { cancelAnimationFrame, now, requestAnimationFrame } from '@tarojs/runtime'\n\ninterface ITimeoutID {\n id: number\n}\n\nexport function cancelTimeout (timeoutID: ITimeoutID) {\n cancelAnimationFrame(timeoutID.id)\n}\n\nexport function requestTimeout (callback: () => void, delay = 0) {\n const start = now()\n\n const timeoutID: ITimeoutID = {\n id: requestAnimationFrame(tick) as number\n }\n\n function tick () {\n if (now() - start >= delay) {\n // eslint-disable-next-line no-useless-call\n callback.call(null)\n } else {\n timeoutID.id = requestAnimationFrame(tick) as number\n }\n }\n\n return timeoutID\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"timer.js","sources":["../../src/utils/timer.ts"],"sourcesContent":["import { cancelAnimationFrame, now, requestAnimationFrame } from '@tarojs/runtime'\n\ninterface ITimeoutID {\n id: number\n}\n\nexport function cancelTimeout (timeoutID: ITimeoutID) {\n cancelAnimationFrame(timeoutID.id)\n}\n\nexport function requestTimeout (callback: () => void, delay = 0) {\n const start = now()\n\n const timeoutID: ITimeoutID = {\n id: requestAnimationFrame(tick) as number\n }\n\n function tick () {\n if (now() - start >= delay) {\n // eslint-disable-next-line no-useless-call\n callback.call(null)\n } else {\n timeoutID.id = requestAnimationFrame(tick) as number\n }\n }\n\n return timeoutID\n}\n"],"names":[],"mappings":";;AAMM,SAAU,aAAa,CAAE,SAAqB,EAAA;AAClD,IAAA,oBAAoB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;AACpC,CAAC;SAEe,cAAc,CAAE,QAAoB,EAAE,KAAK,GAAG,CAAC,EAAA;AAC7D,IAAA,MAAM,KAAK,GAAG,GAAG,EAAE,CAAA;AAEnB,IAAA,MAAM,SAAS,GAAe;AAC5B,QAAA,EAAE,EAAE,qBAAqB,CAAC,IAAI,CAAW;KAC1C,CAAA;AAED,IAAA,SAAS,IAAI,GAAA;AACX,QAAA,IAAI,GAAG,EAAE,GAAG,KAAK,IAAI,KAAK,EAAE;;AAE1B,YAAA,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACpB,SAAA;AAAM,aAAA;AACL,YAAA,SAAS,CAAC,EAAE,GAAG,qBAAqB,CAAC,IAAI,CAAW,CAAA;AACrD,SAAA;KACF;AAED,IAAA,OAAO,SAAS,CAAA;AAClB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components-advanced",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.5-alpha",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,8 +18,10 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"memoize-one": "^6.0.0",
|
|
20
20
|
"postcss": "^8.4.18",
|
|
21
|
-
"@tarojs/components": "3.6.
|
|
22
|
-
"@tarojs/shared": "3.6.
|
|
21
|
+
"@tarojs/components": "3.6.5-alpha",
|
|
22
|
+
"@tarojs/shared": "3.6.5-alpha",
|
|
23
|
+
"@tarojs/runtime": "3.6.5-alpha",
|
|
24
|
+
"@tarojs/taro": "3.6.5-alpha"
|
|
23
25
|
},
|
|
24
26
|
"devDependencies": {
|
|
25
27
|
"@babel/cli": "^7.14.5",
|
|
@@ -36,7 +38,7 @@
|
|
|
36
38
|
"rollup-plugin-ts": "^3.0.2",
|
|
37
39
|
"typescript": "^4.7.4",
|
|
38
40
|
"vue": "^3.0.0",
|
|
39
|
-
"babel-preset-taro": "3.6.
|
|
41
|
+
"babel-preset-taro": "3.6.5-alpha"
|
|
40
42
|
},
|
|
41
43
|
"peerDependencies": {
|
|
42
44
|
"react": ">=17"
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
|
-
|
|
3
|
-
function getDefaultExportFromCjs (x) {
|
|
4
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function getDefaultExportFromNamespaceIfPresent (n) {
|
|
8
|
-
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
12
|
-
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function getAugmentedNamespace(n) {
|
|
16
|
-
if (n.__esModule) return n;
|
|
17
|
-
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
18
|
-
Object.keys(n).forEach(function (k) {
|
|
19
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
20
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () {
|
|
23
|
-
return n[k];
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
return a;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function commonjsRequire (path) {
|
|
31
|
-
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { commonjsGlobal, commonjsRequire, getAugmentedNamespace, getDefaultExportFromCjs, getDefaultExportFromNamespaceIfNotNamed, getDefaultExportFromNamespaceIfPresent };
|
|
35
|
-
//# sourceMappingURL=_commonjsHelpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_commonjsHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arrayLikeToArray.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arrayLikeToArray2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arrayWithoutHoles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arrayWithoutHoles2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import '../node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/assertThisInitialized.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var exports = assertThisInitialized$1.exports;
|
|
6
|
-
export { exports as default };
|
|
7
|
-
//# sourceMappingURL=assertThisInitialized.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertThisInitialized.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertThisInitialized2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classCallCheck.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createClass.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createSuper.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defineProperty.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defineProperty2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPrototypeOf.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPrototypeOf2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { getAugmentedNamespace } from './_commonjsHelpers.js';
|
|
2
|
-
import * as index_esm from '../packages/taro-api/dist/index.esm.js';
|
|
3
|
-
|
|
4
|
-
var require$$1 = /*@__PURE__*/getAugmentedNamespace(index_esm);
|
|
5
|
-
|
|
6
|
-
export { require$$1 as default };
|
|
7
|
-
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/dist/_virtual/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inherits.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import '../node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var exports = isNativeReflectConstruct$1.exports;
|
|
6
|
-
export { exports as default };
|
|
7
|
-
//# sourceMappingURL=isNativeReflectConstruct.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isNativeReflectConstruct.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isNativeReflectConstruct2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iterableToArray.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iterableToArray2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nonIterableSpread.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nonIterableSpread2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"objectSpread2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import '../node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var exports = possibleConstructorReturn$1.exports;
|
|
6
|
-
export { exports as default };
|
|
7
|
-
//# sourceMappingURL=possibleConstructorReturn.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"possibleConstructorReturn.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"possibleConstructorReturn2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { getAugmentedNamespace } from './_commonjsHelpers.js';
|
|
2
|
-
import * as runtime_esm from '../packages/taro-runtime/dist/runtime.esm.js';
|
|
3
|
-
|
|
4
|
-
var require$$0 = /*@__PURE__*/getAugmentedNamespace(runtime_esm);
|
|
5
|
-
|
|
6
|
-
export { require$$0 as default };
|
|
7
|
-
//# sourceMappingURL=runtime.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setPrototypeOf.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setPrototypeOf2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toConsumableArray.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/typeof.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typeof.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/typeof2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typeof2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import '../node_modules/.pnpm/registry.npmjs.org_@babel_runtime@7.18.3/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var exports = unsupportedIterableToArray$1.exports;
|
|
6
|
-
export { exports as default };
|
|
7
|
-
//# sourceMappingURL=unsupportedIterableToArray.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unsupportedIterableToArray.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unsupportedIterableToArray2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from '../../../../../../../_virtual/_commonjsHelpers.js';
|
|
2
|
-
import { a as arrayLikeToArray$1 } from '../../../../../../../_virtual/arrayLikeToArray2.js';
|
|
3
|
-
|
|
4
|
-
(function (module) {
|
|
5
|
-
function _arrayLikeToArray(arr, len) {
|
|
6
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
7
|
-
|
|
8
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
9
|
-
arr2[i] = arr[i];
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
return arr2;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
16
|
-
}(arrayLikeToArray$1));
|
|
17
|
-
|
|
18
|
-
var arrayLikeToArray = /*@__PURE__*/getDefaultExportFromCjs(arrayLikeToArray$1.exports);
|
|
19
|
-
|
|
20
|
-
export { arrayLikeToArray as default };
|
|
21
|
-
//# sourceMappingURL=arrayLikeToArray.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arrayLikeToArray.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from '../../../../../../../_virtual/_commonjsHelpers.js';
|
|
2
|
-
import { a as arrayWithoutHoles$1 } from '../../../../../../../_virtual/arrayWithoutHoles2.js';
|
|
3
|
-
import './arrayLikeToArray.js';
|
|
4
|
-
import '../../../../../../../_virtual/arrayLikeToArray.js';
|
|
5
|
-
import { a as arrayLikeToArray } from '../../../../../../../_virtual/arrayLikeToArray2.js';
|
|
6
|
-
|
|
7
|
-
(function (module) {
|
|
8
|
-
var arrayLikeToArray$1 = arrayLikeToArray.exports;
|
|
9
|
-
|
|
10
|
-
function _arrayWithoutHoles(arr) {
|
|
11
|
-
if (Array.isArray(arr)) return arrayLikeToArray$1(arr);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
15
|
-
}(arrayWithoutHoles$1));
|
|
16
|
-
|
|
17
|
-
var arrayWithoutHoles = /*@__PURE__*/getDefaultExportFromCjs(arrayWithoutHoles$1.exports);
|
|
18
|
-
|
|
19
|
-
export { arrayWithoutHoles as default };
|
|
20
|
-
//# sourceMappingURL=arrayWithoutHoles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arrayWithoutHoles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from '../../../../../../../_virtual/_commonjsHelpers.js';
|
|
2
|
-
import { a as assertThisInitialized$1 } from '../../../../../../../_virtual/assertThisInitialized2.js';
|
|
3
|
-
|
|
4
|
-
(function (module) {
|
|
5
|
-
function _assertThisInitialized(self) {
|
|
6
|
-
if (self === void 0) {
|
|
7
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
return self;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14
|
-
}(assertThisInitialized$1));
|
|
15
|
-
|
|
16
|
-
var assertThisInitialized = /*@__PURE__*/getDefaultExportFromCjs(assertThisInitialized$1.exports);
|
|
17
|
-
|
|
18
|
-
export { assertThisInitialized as default };
|
|
19
|
-
//# sourceMappingURL=assertThisInitialized.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertThisInitialized.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|