@tarojs/components-advanced 3.6.0-beta.2 → 3.6.0-beta.4
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/index.d.ts +1 -1
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -0
- package/dist/components/virtual-list/constants.d.ts +2 -1
- package/dist/components/virtual-list/constants.js +4 -1
- package/dist/components/virtual-list/constants.js.map +1 -0
- package/dist/components/virtual-list/dom-helpers.d.ts +2 -1
- package/dist/components/virtual-list/dom-helpers.js +33 -30
- package/dist/components/virtual-list/dom-helpers.js.map +1 -0
- package/dist/components/virtual-list/index.d.ts +3 -4
- package/dist/components/virtual-list/index.js +5 -102
- package/dist/components/virtual-list/index.js.map +1 -0
- package/dist/components/virtual-list/list-set.d.ts +4 -4
- package/dist/components/virtual-list/list-set.js +178 -222
- package/dist/components/virtual-list/list-set.js.map +1 -0
- package/dist/components/virtual-list/preset.d.ts +6 -6
- package/dist/components/virtual-list/preset.js +117 -148
- package/dist/components/virtual-list/preset.js.map +1 -0
- package/dist/components/virtual-list/react/index.d.ts +2 -2
- package/dist/components/virtual-list/react/index.js +31 -63
- package/dist/components/virtual-list/react/index.js.map +1 -0
- package/dist/components/virtual-list/react/list.d.ts +10 -5
- package/dist/components/virtual-list/react/list.js +347 -450
- package/dist/components/virtual-list/react/list.js.map +1 -0
- package/dist/components/virtual-list/react/validate.d.ts +4 -3
- package/dist/components/virtual-list/react/validate.js +59 -64
- package/dist/components/virtual-list/react/validate.js.map +1 -0
- package/dist/components/virtual-list/utils.d.ts +5 -5
- package/dist/components/virtual-list/utils.js +27 -28
- package/dist/components/virtual-list/utils.js.map +1 -0
- package/dist/components/virtual-list/vue/index.d.ts +6 -6
- package/dist/components/virtual-list/vue/index.js +10 -6
- package/dist/components/virtual-list/vue/index.js.map +1 -0
- package/dist/components/virtual-list/vue/list.d.ts +2 -2
- package/dist/components/virtual-list/vue/list.js +435 -474
- package/dist/components/virtual-list/vue/list.js.map +1 -0
- package/dist/components/virtual-list/vue/render.d.ts +2 -1
- package/dist/components/virtual-list/vue/render.js +17 -23
- package/dist/components/virtual-list/vue/render.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -0
- package/dist/utils/convert.d.ts +3 -2
- package/dist/utils/convert.js +15 -11
- package/dist/utils/convert.js.map +1 -0
- package/dist/utils/index.d.ts +4 -4
- package/dist/utils/index.js +5 -4
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/lodash.d.ts +2 -1
- package/dist/utils/lodash.js +10 -10
- package/dist/utils/lodash.js.map +1 -0
- package/dist/utils/math.d.ts +3 -2
- package/dist/utils/math.js +13 -16
- package/dist/utils/math.js.map +1 -0
- package/dist/utils/timer.d.ts +3 -3
- package/dist/utils/timer.js +21 -17
- package/dist/utils/timer.js.map +1 -0
- package/package.json +16 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sources":["../../../../src/components/virtual-list/react/list.ts"],"sourcesContent":["import memoizeOne from 'memoize-one'\nimport React from 'react'\n\nimport { convertNumber2PX } from '../../../utils/convert'\nimport { omit } from '../../../utils/lodash'\nimport { cancelTimeout, requestTimeout } from '../../../utils/timer'\nimport { IS_SCROLLING_DEBOUNCE_INTERVAL } from '../constants'\nimport { getRTLOffsetType } from '../dom-helpers'\nimport ListSet from '../list-set'\nimport Preset from '../preset'\nimport { defaultItemKey, getRectSize } from '../utils'\nimport { validateListProps } from './validate'\n\nimport type { IProps } from '../preset'\n\nexport interface IState {\n id: string\n instance: List\n isScrolling: boolean\n scrollDirection: 'forward' | 'backward'\n scrollOffset: number\n scrollUpdateWasRequested: boolean\n refreshCount: number\n}\n\nexport default class List extends React.PureComponent<IProps, IState> {\n static defaultProps: IProps = {\n direction: 'ltr',\n itemData: undefined,\n layout: 'vertical',\n overscanCount: 2,\n useIsScrolling: false,\n shouldResetStyleCacheOnItemSizeChange: true\n }\n\n static getDerivedStateFromProps (nextProps: IProps, prevState: IState) {\n return validateListProps(nextProps, prevState)\n }\n\n itemList: ListSet\n preset: Preset\n\n constructor (props: IProps) {\n super(props)\n\n this.preset = new Preset(\n props,\n this.refresh\n )\n this.itemList = this.preset.itemList\n\n this.state = {\n id: this.props.id || this.preset.id,\n instance: this,\n isScrolling: false,\n scrollDirection: 'forward',\n scrollOffset:\n typeof this.props.initialScrollOffset === 'number'\n ? this.props.initialScrollOffset\n : 0,\n scrollUpdateWasRequested: false,\n refreshCount: 0\n }\n }\n\n // FIXME Warning: Cannot update during an existing state transition (such as within `render`).\n refresh = () => {\n if (process.env.FRAMEWORK === 'preact') {\n this.forceUpdate()\n } else {\n this.setState(({ refreshCount }) => ({\n refreshCount: ++refreshCount\n }))\n }\n }\n\n _outerRef = undefined\n\n _resetIsScrollingTimeoutId = null\n\n _callOnItemsRendered = memoizeOne((overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) => this.props.onItemsRendered({\n overscanStartIndex,\n overscanStopIndex,\n visibleStartIndex,\n visibleStopIndex\n }))\n\n // FIXME 优化事件信息\n _callOnScroll = memoizeOne((scrollDirection, scrollOffset, scrollUpdateWasRequested, detail) => this.props.onScroll({\n scrollDirection,\n scrollOffset,\n scrollUpdateWasRequested,\n detail\n } as any))\n\n _callPropsCallbacks (prevProps: any = {}, prevState: any = {}) {\n if (typeof this.props.onItemsRendered === 'function') {\n if (this.props.itemCount > 0) {\n if (prevProps && prevProps.itemCount !== this.props.itemCount) {\n const [overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex] = this._getRangeToRender()\n\n this._callOnItemsRendered(overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex)\n }\n }\n }\n\n if (typeof this.props.onScroll === 'function') {\n if (!prevState ||\n prevState.scrollDirection !== this.state.scrollDirection ||\n prevState.scrollOffset !== this.state.scrollOffset ||\n prevState.scrollUpdateWasRequested !== this.state.scrollUpdateWasRequested\n ) {\n this._callOnScroll(\n this.state.scrollDirection,\n this.state.scrollOffset,\n this.state.scrollUpdateWasRequested,\n this.preset.field\n )\n }\n }\n\n setTimeout(() => {\n const [startIndex, stopIndex] = this._getRangeToRender()\n const isHorizontal = this.preset.isHorizontal\n for (let index = startIndex; index <= stopIndex; index++) {\n this._getSizeUploadSync(index, isHorizontal)\n }\n }, 0)\n }\n\n _getSizeUploadSync = (index: number, isHorizontal: boolean) => {\n const ID = `#${this.state.id}-${index}`\n\n return new Promise((resolve) => {\n const success = ({ width, height }) => {\n const size = isHorizontal ? width : height\n if (!this.itemList.compareSize(index, size)) {\n this.itemList.setSize(index, size)\n resolve(this.itemList.getSize(index))\n }\n }\n const fail = () => {\n const [startIndex, stopIndex] = this._getRangeToRender()\n if (index >= startIndex && index <= stopIndex) {\n setTimeout(() => {\n getRectSize(ID, success, fail)\n }, 100)\n }\n }\n getRectSize(ID, success, fail)\n })\n }\n\n // Lazily create and cache item styles while scrolling,\n // So that pure component sCU will prevent re-renders.\n // We maintain this cache, and pass a style prop rather than index,\n // So that List can clear cached styles and force item re-render if necessary.\n _getRangeToRender () {\n return this.itemList.getRangeToRender(\n this.state.scrollDirection,\n this.state.scrollOffset,\n this.state.isScrolling\n )\n }\n\n _onScrollHorizontal = event => {\n const {\n clientWidth,\n scrollTop,\n scrollLeft,\n scrollHeight,\n scrollWidth\n } = event.currentTarget\n this.preset.field = {\n scrollHeight: scrollHeight,\n scrollWidth: this.itemList.getOffsetSize(),\n scrollTop: scrollTop,\n scrollLeft: scrollLeft,\n clientHeight: scrollHeight,\n clientWidth: scrollWidth\n }\n this.setState((prevState: any) => {\n const diffOffset = this.preset.field.scrollLeft - scrollLeft\n if (prevState.scrollOffset === scrollLeft || this.preset.isShaking(diffOffset)) {\n // Scroll position may have been updated by cDM/cDU,\n // In which case we don't need to trigger another render,\n // And we don't want to update state.isScrolling.\n return null\n }\n\n let scrollOffset = scrollLeft\n\n if (this.preset.isRtl) {\n // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n // It's also easier for this component if we convert offsets to the same format as they would be in for ltr.\n // So the simplest solution is to determine which browser behavior we're dealing with, and convert based on it.\n switch (getRTLOffsetType()) {\n case 'negative':\n scrollOffset = -scrollLeft\n break\n\n case 'positive-descending':\n scrollOffset = scrollWidth - clientWidth - scrollLeft\n break\n }\n } // Prevent Safari's elastic scrolling from causing visual shaking when scrolling past bounds.\n\n this.preset.field = {\n scrollWidth: scrollOffset,\n }\n return {\n isScrolling: true,\n scrollDirection: prevState.scrollOffset < scrollLeft ? 'forward' : 'backward',\n scrollOffset,\n scrollUpdateWasRequested: false\n }\n }, this._resetIsScrollingDebounced)\n }\n\n _onScrollVertical = event => {\n const {\n clientHeight,\n scrollHeight,\n scrollWidth,\n scrollTop,\n scrollLeft\n } = event.currentTarget\n this.setState((prevState: IState) => {\n const diffOffset = this.preset.field.scrollTop - scrollTop\n if (prevState.scrollOffset === scrollTop || this.preset.isShaking(diffOffset)) {\n // Scroll position may have been updated by cDM/cDU,\n // In which case we don't need to trigger another render,\n // And we don't want to update state.isScrolling.\n return null\n }\n // FIXME preact 中使用时,该组件会出现触底滚动事件重复触发导致的抖动问题,后续修复\n // Prevent Safari's elastic scrolling from causing visual shaking when scrolling past bounds.\n const scrollOffset = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight))\n this.preset.field = {\n scrollHeight: this.itemList.getOffsetSize(),\n scrollWidth: scrollWidth,\n scrollTop: scrollOffset,\n scrollLeft: scrollLeft,\n clientHeight: clientHeight,\n clientWidth: scrollWidth,\n diffOffset: this.preset.field.scrollTop - scrollOffset,\n }\n return {\n isScrolling: true,\n scrollDirection: prevState.scrollOffset < scrollOffset ? 'forward' : 'backward',\n scrollOffset,\n scrollUpdateWasRequested: false\n }\n }, this._resetIsScrollingDebounced)\n }\n\n _outerRefSetter = ref => {\n const {\n outerRef\n } = this.props\n this._outerRef = ref\n\n if (typeof outerRef === 'function') {\n outerRef(ref)\n } else if (outerRef != null && typeof outerRef === 'object' && outerRef.hasOwnProperty('current')) {\n // @ts-ignore\n outerRef.current = ref\n }\n }\n\n _resetIsScrollingDebounced = () => {\n if (this._resetIsScrollingTimeoutId !== null) {\n cancelTimeout(this._resetIsScrollingTimeoutId)\n }\n\n this._resetIsScrollingTimeoutId = requestTimeout(this._resetIsScrolling, IS_SCROLLING_DEBOUNCE_INTERVAL)\n }\n\n _resetIsScrolling = () => {\n this._resetIsScrollingTimeoutId = null\n this.setState({\n isScrolling: false\n }, () => {\n // Clear style cache after state update has been committed.\n // This way we don't break pure sCU for items that don't use isScrolling param.\n this.preset.getItemStyleCache(-1, null)\n })\n }\n\n public scrollTo (scrollOffset: number) {\n scrollOffset = Math.max(0, scrollOffset)\n this.setState((prevState: IState) => {\n if (prevState.scrollOffset === scrollOffset) {\n return null\n }\n\n return {\n scrollDirection: prevState.scrollOffset < scrollOffset ? 'forward' : 'backward',\n scrollOffset: scrollOffset,\n scrollUpdateWasRequested: true\n }\n }, this._resetIsScrollingDebounced)\n }\n\n public scrollToItem (index: number, align = 'auto') {\n const { itemCount } = this.props\n const { scrollOffset } = this.state\n index = Math.max(0, Math.min(index, itemCount - 1))\n this.scrollTo(this.itemList.getOffsetForIndexAndAlignment(index, align, scrollOffset))\n }\n\n componentDidMount () {\n const { initialScrollOffset } = this.props\n\n if (typeof initialScrollOffset === 'number' && this._outerRef != null) {\n const outerRef = this._outerRef\n\n if (this.preset.isHorizontal) {\n outerRef.scrollLeft = initialScrollOffset\n } else {\n outerRef.scrollTop = initialScrollOffset\n }\n }\n\n this._callPropsCallbacks()\n }\n\n componentDidUpdate (prevProps: IProps, prevState: IState) {\n const { scrollOffset, scrollUpdateWasRequested } = this.state\n\n this.preset.update(this.props)\n\n if (scrollUpdateWasRequested && this._outerRef != null) {\n const outerRef = this._outerRef\n\n if (this.preset.isHorizontal) {\n if (this.preset.isRtl) {\n // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n // So we need to determine which browser behavior we're dealing with, and mimic it.\n switch (getRTLOffsetType()) {\n case 'negative':\n outerRef.scrollLeft = -scrollOffset\n break\n\n case 'positive-ascending':\n outerRef.scrollLeft = scrollOffset\n break\n\n default:\n outerRef.scrollLeft = outerRef.scrollWidth - outerRef.clientWidth - scrollOffset\n break\n }\n } else {\n outerRef.scrollLeft = scrollOffset\n }\n } else {\n outerRef.scrollTop = scrollOffset\n }\n }\n\n this._callPropsCallbacks(prevProps, prevState)\n }\n\n componentWillUnmount () {\n if (this._resetIsScrollingTimeoutId !== null) {\n cancelTimeout(this._resetIsScrollingTimeoutId)\n }\n }\n\n render () {\n const {\n className,\n direction,\n height,\n innerRef,\n item,\n itemCount,\n itemData,\n itemKey = defaultItemKey,\n layout,\n style,\n useIsScrolling,\n width,\n renderTop,\n renderBottom,\n ...rest\n } = omit(this.props, ['innerElementType', 'innerTagName', 'itemElementType', 'itemTagName', 'outerElementType', 'outerTagName', 'position'])\n const {\n id,\n isScrolling,\n scrollOffset,\n scrollUpdateWasRequested\n } = this.state\n\n const isHorizontal = this.preset.isHorizontal\n const placeholderCount = this.preset.placeholderCount\n const onScroll = isHorizontal\n ? this._onScrollHorizontal\n : this._onScrollVertical\n\n const [startIndex, stopIndex] = this._getRangeToRender()\n\n const items = []\n\n if (itemCount > 0) {\n const prevPlaceholder = startIndex < placeholderCount ? startIndex : placeholderCount\n items.push(new Array(prevPlaceholder).fill(-1).map((_, index) => React.createElement<any>(\n this.preset.itemTagName, {\n key: itemKey(index + startIndex - prevPlaceholder, itemData),\n style: { display: 'none' }\n }\n )))\n for (let index = startIndex; index <= stopIndex; index++) {\n const style = this.preset.getItemStyle(index)\n items.push(React.createElement<any>(this.preset.itemTagName, {\n key: itemKey(index, itemData),\n style\n }, React.createElement(item, {\n id: `${id}-${index}`,\n data: itemData,\n index,\n isScrolling: useIsScrolling ? isScrolling : undefined\n })))\n }\n const restCount = itemCount - stopIndex\n const postPlaceholder = restCount < placeholderCount ? restCount : placeholderCount\n items.push(new Array(postPlaceholder).fill(-1).map((_, index) => React.createElement<any>(\n this.preset.itemTagName, {\n key: itemKey(1 + index + stopIndex, itemData),\n style: { display: 'none' }\n }\n )))\n }\n\n // Read this value AFTER items have been created,\n // So their actual sizes (if variable) are taken into consideration.\n const estimatedTotalSize = convertNumber2PX(this.itemList.getOffsetSize())\n const outerElementProps: any = {\n ...rest,\n id,\n className,\n onScroll,\n ref: this._outerRefSetter,\n layout,\n style: {\n position: 'relative',\n height: convertNumber2PX(height),\n width: convertNumber2PX(width),\n overflow: 'auto',\n WebkitOverflowScrolling: 'touch',\n willChange: 'transform',\n direction,\n ...style\n }\n }\n if (isHorizontal) {\n outerElementProps.scrollLeft = scrollUpdateWasRequested ? scrollOffset : this.preset.field.scrollLeft\n } else {\n outerElementProps.scrollTop = scrollUpdateWasRequested ? scrollOffset : this.preset.field.scrollTop\n }\n\n if (this.preset.isRelative) {\n const pre = convertNumber2PX(this.itemList.getOffsetSize(startIndex))\n return React.createElement(this.preset.outerTagName, outerElementProps,\n renderTop,\n React.createElement<any>(this.preset.itemTagName, {\n key: `${id}-pre`,\n id: `${id}-pre`,\n style: {\n height: isHorizontal ? '100%' : pre,\n width: !isHorizontal ? '100%' : pre\n }\n }),\n React.createElement<any>(this.preset.innerTagName, {\n ref: innerRef,\n key: `${id}-inner`,\n id: `${id}-inner`,\n style: {\n pointerEvents: isScrolling ? 'none' : 'auto',\n position: 'relative',\n }\n }, items),\n renderBottom\n )\n } else {\n return React.createElement(this.preset.outerTagName, outerElementProps,\n renderTop,\n React.createElement<any>(this.preset.innerTagName, {\n ref: innerRef,\n key: `${id}-inner`,\n id: `${id}-inner`,\n style: {\n height: isHorizontal ? '100%' : estimatedTotalSize,\n pointerEvents: isScrolling ? 'none' : 'auto',\n position: 'relative',\n width: !isHorizontal ? '100%' : estimatedTotalSize\n }\n }, items),\n renderBottom\n )\n }\n }\n}\n\n// NOTE: I considered further wrapping individual items with a pure ListItem component.\n// This would avoid ever calling the render function for the same index more than once,\n// But it would also add the overhead of a lot of components/fibers.\n// I assume people already do this (render function returning a class component),\n// So my doing it would just unnecessarily double the wrappers.\n"],"names":[],"mappings":";;;;;;;;;;;;AAyBc,MAAO,IAAK,SAAQ,KAAK,CAAC,aAA6B,CAAA;AAiBnE,IAAA,WAAA,CAAa,KAAa,EAAA;QACxB,KAAK,CAAC,KAAK,CAAC,CAAA;;QAuBd,IAAO,CAAA,OAAA,GAAG,MAAK;AACb,YAAA,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,KAAK,QAAQ,EAAE;gBACtC,IAAI,CAAC,WAAW,EAAE,CAAA;AACnB,aAAA;AAAM,iBAAA;gBACL,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM;oBACnC,YAAY,EAAE,EAAE,YAAY;AAC7B,iBAAA,CAAC,CAAC,CAAA;AACJ,aAAA;AACH,SAAC,CAAA;QAED,IAAS,CAAA,SAAA,GAAG,SAAS,CAAA;QAErB,IAA0B,CAAA,0BAAA,GAAG,IAAI,CAAA;AAEjC,QAAA,IAAA,CAAA,oBAAoB,GAAG,UAAU,CAAC,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,gBAAgB,KAAK,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC;YAC3I,kBAAkB;YAClB,iBAAiB;YACjB,iBAAiB;YACjB,gBAAgB;AACjB,SAAA,CAAC,CAAC,CAAA;;AAGH,QAAA,IAAA,CAAA,aAAa,GAAG,UAAU,CAAC,CAAC,eAAe,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,KAAK,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;YAClH,eAAe;YACf,YAAY;YACZ,wBAAwB;YACxB,MAAM;AACA,SAAA,CAAC,CAAC,CAAA;AAqCV,QAAA,IAAA,CAAA,kBAAkB,GAAG,CAAC,KAAa,EAAE,YAAqB,KAAI;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;AAC5B,IAAA,SAAS,EAAE,KAAK;AAChB,IAAA,QAAQ,EAAE,SAAS;AACnB,IAAA,MAAM,EAAE,UAAU;AAClB,IAAA,aAAa,EAAE,CAAC;AAChB,IAAA,cAAc,EAAE,KAAK;AACrB,IAAA,qCAAqC,EAAE,IAAI;CAC5C,CAAA;AAydH;AACA;AACA;AACA;AACA;;;;"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { IProps } from "../preset";
|
|
2
|
+
import { IState } from "./list";
|
|
3
|
+
declare const validateListProps: ({ item, direction, height, layout, itemTagName, innerTagName, outerTagName, width, itemSize }: IProps, { instance, }: IState) => any;
|
|
4
|
+
export { validateListProps };
|
|
@@ -1,69 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var devWarningsTagName = null;
|
|
1
|
+
let devWarningsDirection = null;
|
|
2
|
+
let devWarningsTagName = null;
|
|
4
3
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export var validateListProps = function validateListProps(_ref, _ref2) {
|
|
13
|
-
var item = _ref.item,
|
|
14
|
-
direction = _ref.direction,
|
|
15
|
-
height = _ref.height,
|
|
16
|
-
layout = _ref.layout,
|
|
17
|
-
itemTagName = _ref.itemTagName,
|
|
18
|
-
innerTagName = _ref.innerTagName,
|
|
19
|
-
outerTagName = _ref.outerTagName,
|
|
20
|
-
width = _ref.width,
|
|
21
|
-
itemSize = _ref.itemSize;
|
|
22
|
-
var instance = _ref2.instance;
|
|
23
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
24
|
-
if (!['number', 'function'].includes(_typeof(itemSize))) {
|
|
25
|
-
throw Error('An invalid "itemSize" prop has been specified. ' + 'Value should be a number or function. ' + "\"".concat(itemSize === null ? 'null' : _typeof(itemSize), "\" was specified."));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
29
|
-
if (innerTagName != null || outerTagName != null || itemTagName != null) {
|
|
30
|
-
if (devWarningsTagName && !devWarningsTagName.has(instance)) {
|
|
31
|
-
devWarningsTagName.add(instance);
|
|
32
|
-
console.warn('The itemTagName、innerTagName and outerTagName props have been deprecated. ' + 'Please use the itemElementType、innerElementType and outerElementType props instead.');
|
|
33
|
-
}
|
|
4
|
+
if (typeof window !== 'undefined' && typeof window.WeakSet !== 'undefined') {
|
|
5
|
+
devWarningsDirection =
|
|
6
|
+
/* #__PURE__ */
|
|
7
|
+
new WeakSet();
|
|
8
|
+
devWarningsTagName =
|
|
9
|
+
/* #__PURE__ */
|
|
10
|
+
new WeakSet();
|
|
34
11
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
devWarningsDirection.add(instance);
|
|
41
|
-
console.warn('The direction prop should be either "ltr" (default) or "rtl". ' + 'Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.');
|
|
12
|
+
}
|
|
13
|
+
const validateListProps = ({ item, direction, height, layout, itemTagName, innerTagName, outerTagName, width, itemSize }, { instance, }) => {
|
|
14
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
15
|
+
if (!['number', 'function'].includes(typeof itemSize)) {
|
|
16
|
+
throw Error('An invalid "itemSize" prop has been specified. ' + 'Value should be a number or function. ' + `"${itemSize === null ? 'null' : typeof itemSize}" was specified.`);
|
|
42
17
|
}
|
|
43
|
-
break;
|
|
44
|
-
case 'ltr':
|
|
45
|
-
case 'rtl':
|
|
46
|
-
// Valid values
|
|
47
|
-
break;
|
|
48
|
-
default:
|
|
49
|
-
throw Error('An invalid "direction" prop has been specified. ' + 'Value should be either "ltr" or "rtl". ' + "\"".concat(direction, "\" was specified."));
|
|
50
18
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
19
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
20
|
+
if (innerTagName != null || outerTagName != null || itemTagName != null) {
|
|
21
|
+
if (devWarningsTagName && !devWarningsTagName.has(instance)) {
|
|
22
|
+
devWarningsTagName.add(instance);
|
|
23
|
+
console.warn('The itemTagName、innerTagName and outerTagName props have been deprecated. ' + 'Please use the itemElementType、innerElementType and outerElementType props instead.');
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
const isHorizontal = direction === 'horizontal' || layout === 'horizontal';
|
|
27
|
+
switch (direction) {
|
|
28
|
+
case 'horizontal':
|
|
29
|
+
case 'vertical':
|
|
30
|
+
if (devWarningsDirection && !devWarningsDirection.has(instance)) {
|
|
31
|
+
devWarningsDirection.add(instance);
|
|
32
|
+
console.warn('The direction prop should be either "ltr" (default) or "rtl". ' + 'Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.');
|
|
33
|
+
}
|
|
34
|
+
break;
|
|
35
|
+
case 'ltr':
|
|
36
|
+
case 'rtl':
|
|
37
|
+
// Valid values
|
|
38
|
+
break;
|
|
39
|
+
default:
|
|
40
|
+
throw Error('An invalid "direction" prop has been specified. ' + 'Value should be either "ltr" or "rtl". ' + `"${direction}" was specified.`);
|
|
41
|
+
}
|
|
42
|
+
switch (layout) {
|
|
43
|
+
case 'horizontal':
|
|
44
|
+
case 'vertical':
|
|
45
|
+
// Valid values
|
|
46
|
+
break;
|
|
47
|
+
default:
|
|
48
|
+
throw Error('An invalid "layout" prop has been specified. ' + 'Value should be either "horizontal" or "vertical". ' + `"${layout}" was specified.`);
|
|
49
|
+
}
|
|
50
|
+
if (item == null) {
|
|
51
|
+
throw Error('An invalid "item" prop has been specified. ' + 'Value should be a React component. ' + `"${item === null ? 'null' : typeof item}" was specified.`);
|
|
52
|
+
}
|
|
53
|
+
if (isHorizontal && typeof width !== 'number') {
|
|
54
|
+
throw Error('An invalid "width" prop has been specified. ' + 'Horizontal lists must specify a number for width. ' + `"${width === null ? 'null' : typeof width}" was specified.`);
|
|
55
|
+
}
|
|
56
|
+
else if (!isHorizontal && typeof height !== 'number') {
|
|
57
|
+
throw Error('An invalid "height" prop has been specified. ' + 'Vertical lists must specify a number for height. ' + `"${height === null ? 'null' : typeof height}" was specified.`);
|
|
58
|
+
}
|
|
66
59
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
60
|
+
return null;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export { validateListProps };
|
|
64
|
+
//# sourceMappingURL=validate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.js","sources":["../../../../src/components/virtual-list/react/validate.ts"],"sourcesContent":["import type { IProps } from '../preset'\nimport type { IState } from './list'\n\nlet devWarningsDirection = null\nlet devWarningsTagName = null\n\nif (process.env.NODE_ENV !== 'production') {\n if (typeof window !== 'undefined' && typeof window.WeakSet !== 'undefined') {\n devWarningsDirection =\n /* #__PURE__ */\n new WeakSet()\n devWarningsTagName =\n /* #__PURE__ */\n new WeakSet()\n }\n}\n\nexport const validateListProps = ({\n item,\n direction,\n height,\n layout,\n itemTagName,\n innerTagName,\n outerTagName,\n width,\n itemSize\n}: IProps, {\n instance,\n}: IState) => {\n if (process.env.NODE_ENV !== 'production') {\n if (!['number', 'function'].includes(typeof itemSize)) {\n throw Error('An invalid \"itemSize\" prop has been specified. ' + 'Value should be a number or function. ' + `\"${itemSize === null ? 'null' : typeof itemSize}\" was specified.`)\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (innerTagName != null || outerTagName != null || itemTagName != null) {\n if (devWarningsTagName && !devWarningsTagName.has(instance)) {\n devWarningsTagName.add(instance)\n console.warn('The itemTagName、innerTagName and outerTagName props have been deprecated. ' + 'Please use the itemElementType、innerElementType and outerElementType props instead.')\n }\n }\n\n const isHorizontal = direction as string === 'horizontal' || layout === 'horizontal'\n\n switch (direction as string) {\n case 'horizontal':\n case 'vertical':\n if (devWarningsDirection && !devWarningsDirection.has(instance)) {\n devWarningsDirection.add(instance)\n console.warn('The direction prop should be either \"ltr\" (default) or \"rtl\". ' + 'Please use the layout prop to specify \"vertical\" (default) or \"horizontal\" orientation.')\n }\n\n break\n\n case 'ltr':\n case 'rtl':\n // Valid values\n break\n\n default:\n throw Error('An invalid \"direction\" prop has been specified. ' + 'Value should be either \"ltr\" or \"rtl\". ' + `\"${direction}\" was specified.`)\n }\n\n switch (layout) {\n case 'horizontal':\n case 'vertical':\n // Valid values\n break\n\n default:\n throw Error('An invalid \"layout\" prop has been specified. ' + 'Value should be either \"horizontal\" or \"vertical\". ' + `\"${layout}\" was specified.`)\n }\n\n if (item == null) {\n throw Error('An invalid \"item\" prop has been specified. ' + 'Value should be a React component. ' + `\"${item === null ? 'null' : typeof item}\" was specified.`)\n }\n\n if (isHorizontal && typeof width !== 'number') {\n throw Error('An invalid \"width\" prop has been specified. ' + 'Horizontal lists must specify a number for width. ' + `\"${width === null ? 'null' : typeof width}\" was specified.`)\n } else if (!isHorizontal && typeof height !== 'number') {\n throw Error('An invalid \"height\" prop has been specified. ' + 'Vertical lists must specify a number for height. ' + `\"${height === null ? 'null' : typeof height}\" was specified.`)\n }\n }\n\n return null\n}\n"],"names":[],"mappings":"AAGA,IAAI,oBAAoB,GAAG,IAAI,CAAA;AAC/B,IAAI,kBAAkB,GAAG,IAAI,CAAA;AAE7B,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;IACzC,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,MAAM,CAAC,OAAO,KAAK,WAAW,EAAE;QAC1E,oBAAoB;;YAElB,IAAI,OAAO,EAAE,CAAA;QACf,kBAAkB;;YAEhB,IAAI,OAAO,EAAE,CAAA;AAChB,KAAA;AACF,CAAA;AAEM,MAAM,iBAAiB,GA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(index: number, _itemData?: unknown) => number;
|
|
2
2
|
interface IHorizontal {
|
|
3
3
|
direction?: string;
|
|
4
4
|
layout?: string;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
declare function isHorizontalFunc({ direction, layout }: IHorizontal): boolean;
|
|
7
7
|
interface IRrl {
|
|
8
8
|
direction?: string;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export {};
|
|
10
|
+
declare function isRtlFunc({ direction }: IRrl): boolean;
|
|
11
|
+
declare function getRectSize(id: string, success?: TFunc, fail?: TFunc, retryMs?: number): void;
|
|
12
|
+
export { defaultItemKey, isHorizontalFunc, isRtlFunc, getRectSize };
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import Taro
|
|
1
|
+
import Taro from '@tarojs/taro';
|
|
2
2
|
|
|
3
3
|
// In DEV mode, this Set helps us only log a warning once per component instance.
|
|
4
4
|
// This avoids spamming the console every time a render happens.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export function isHorizontalFunc(_ref) {
|
|
9
|
-
var direction = _ref.direction,
|
|
10
|
-
layout = _ref.layout;
|
|
11
|
-
return direction === 'horizontal' || layout === 'horizontal';
|
|
5
|
+
const defaultItemKey = (index, _itemData) => index;
|
|
6
|
+
function isHorizontalFunc({ direction, layout }) {
|
|
7
|
+
return direction === 'horizontal' || layout === 'horizontal';
|
|
12
8
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return direction === 'rtl';
|
|
9
|
+
function isRtlFunc({ direction }) {
|
|
10
|
+
return direction === 'rtl';
|
|
16
11
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
12
|
+
function getRectSize(id, success, fail, retryMs = 500) {
|
|
13
|
+
const query = Taro.createSelectorQuery();
|
|
14
|
+
try {
|
|
15
|
+
query.select(id).boundingClientRect((res) => {
|
|
16
|
+
if (res) {
|
|
17
|
+
success === null || success === void 0 ? void 0 : success(res);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
fail === null || fail === void 0 ? void 0 : fail();
|
|
21
|
+
}
|
|
22
|
+
}).exec();
|
|
23
|
+
}
|
|
24
|
+
catch (err) {
|
|
25
|
+
setTimeout(() => {
|
|
26
|
+
getRectSize(id, success, fail, retryMs);
|
|
27
|
+
}, retryMs);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { defaultItemKey, getRectSize, isHorizontalFunc, isRtlFunc };
|
|
32
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../src/components/virtual-list/utils.ts"],"sourcesContent":["import Taro 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 = Taro.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"],"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,IAAI,CAAC,mBAAmB,EAAE,CAAA;IACxC,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;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { ElementAttrs, TransformReact2VueType } from '@tarojs/components/types/index.vue3';
|
|
2
|
+
import { App } from 'vue';
|
|
3
|
+
import { VirtualListProps } from "../index";
|
|
4
|
+
type VueVirtualListProps = Omit<VirtualListProps, 'renderTop' | 'renderBottom'>;
|
|
5
5
|
declare global {
|
|
6
6
|
namespace JSX {
|
|
7
7
|
interface IntrinsicElements {
|
|
@@ -9,9 +9,9 @@ declare global {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
declare const VirtualList: DefineComponent<TransformReact2VueType<P>>;
|
|
13
13
|
declare function install(Vue: App): void;
|
|
14
14
|
declare const _default: {
|
|
15
15
|
install: typeof install;
|
|
16
16
|
};
|
|
17
|
-
export default
|
|
17
|
+
export { _default as default, VueVirtualListProps, VirtualList };
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import List from './list';
|
|
2
|
-
|
|
1
|
+
import List from './list.js';
|
|
2
|
+
|
|
3
|
+
const VirtualList = List;
|
|
3
4
|
function install(Vue) {
|
|
4
|
-
|
|
5
|
+
Vue.component('virtual-list', VirtualList);
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
7
|
+
var index = {
|
|
8
|
+
install
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { VirtualList, index as default };
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/virtual-list/vue/index.ts"],"sourcesContent":["import List from './list'\n\nimport type { ElementAttrs, TransformReact2VueType, VueComponentType } from '@tarojs/components/types/index.vue3'\nimport type { App } from 'vue'\nimport type { VirtualListProps } from '../'\n\nexport type VueVirtualListProps = Omit<VirtualListProps, 'renderTop' | 'renderBottom'>\n\ndeclare global {\n namespace JSX {\n interface IntrinsicElements {\n 'virtual-list': ElementAttrs<TransformReact2VueType<VueVirtualListProps>>\n }\n }\n}\n\nexport const VirtualList = List as VueComponentType<VueVirtualListProps>\n\nfunction install (Vue: App) {\n Vue.component('virtual-list', VirtualList)\n}\n\nexport default {\n install\n}\n"],"names":[],"mappings":";;AAgBO,MAAM,WAAW,GAAG,KAA6C;AAExE,SAAS,OAAO,CAAE,GAAQ,EAAA;AACxB,IAAA,GAAG,CAAC,SAAS,CAAC,cAAc,EAAE,WAAW,CAAC,CAAA;AAC5C,CAAC;AAED,YAAe;IACb,OAAO;CACR;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Preset from
|
|
1
|
+
import Preset from "../preset";
|
|
2
2
|
declare const _default: {
|
|
3
3
|
props: {
|
|
4
4
|
height: {
|
|
@@ -117,4 +117,4 @@ declare const _default: {
|
|
|
117
117
|
[key: string]: any;
|
|
118
118
|
}>;
|
|
119
119
|
};
|
|
120
|
-
export default
|
|
120
|
+
export { _default as default };
|