@tarojs/components-react 4.0.5-alpha.3 → 4.0.5-alpha.7
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.
|
@@ -55,7 +55,10 @@ class SwiperInner extends React__default.Component {
|
|
|
55
55
|
this._id = 1 + INSTANCE_ID++;
|
|
56
56
|
_SwiperInner_source.set(this, 'autoplay');
|
|
57
57
|
_SwiperInner_swiperResetting.set(this, false);
|
|
58
|
-
_SwiperInner_lastSwiperActiveIndex.set(this, 0
|
|
58
|
+
_SwiperInner_lastSwiperActiveIndex.set(this, 0
|
|
59
|
+
// dom 变化是否由外部引起,因为 swiper 的循环模式也会引起 dom 的变化。如果不是由外部引起的 dom 变化,就不需要重新初始化 swiper
|
|
60
|
+
);
|
|
61
|
+
// dom 变化是否由外部引起,因为 swiper 的循环模式也会引起 dom 的变化。如果不是由外部引起的 dom 变化,就不需要重新初始化 swiper
|
|
59
62
|
_SwiperInner_domChangeByOutSide.set(this, false);
|
|
60
63
|
this.handleInit = function () {
|
|
61
64
|
let reset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
@@ -169,6 +172,10 @@ class SwiperInner extends React__default.Component {
|
|
|
169
172
|
};
|
|
170
173
|
}
|
|
171
174
|
_this.swiper = new Swipers(_this.$el, opt);
|
|
175
|
+
// Note: 这里是拦截了 swiper 的 minTranslate 和 maxTranslate 方法,手动修复了 loop 模式下的 margin 问题
|
|
176
|
+
// 因为这两个属性会影响滑动到哪个位置进行 fixloop
|
|
177
|
+
// 可参考源码:https://github.com/nolimits4web/swiper/blob/v11.1.0/src/core/events/onTouchMove.mjs
|
|
178
|
+
// https://github.com/nolimits4web/swiper/blob/v11.1.0/src/core/loop/loopFix.mjs
|
|
172
179
|
if (_this.getNeedFixLoop()) {
|
|
173
180
|
// @ts-ignore
|
|
174
181
|
const minTranslate = _this.swiper.minTranslate.bind(_this.swiper);
|
|
@@ -210,10 +217,12 @@ class SwiperInner extends React__default.Component {
|
|
|
210
217
|
this.handleInit(true);
|
|
211
218
|
__classPrivateFieldSet(this, _SwiperInner_swiperResetting, false, "f");
|
|
212
219
|
};
|
|
220
|
+
// 以下为方法函数
|
|
213
221
|
this.getSlidersList = () => {
|
|
214
222
|
var _a, _b;
|
|
215
223
|
return ((_b = (_a = this.$el) === null || _a === void 0 ? void 0 : _a.querySelectorAll) === null || _b === void 0 ? void 0 : _b.call(_a, '.swiper-slide')) || [];
|
|
216
224
|
};
|
|
225
|
+
// 获取是否需要手动修复 loop 的条件
|
|
217
226
|
this.getNeedFixLoop = () => {
|
|
218
227
|
const margins = this.parseMargin();
|
|
219
228
|
const hasMargin = margins.filter(Boolean).length > 0;
|
|
@@ -245,6 +254,8 @@ class SwiperInner extends React__default.Component {
|
|
|
245
254
|
if (!this.state.swiperWrapper || !this.swiper) return;
|
|
246
255
|
__classPrivateFieldSet(this, _SwiperInner_swiperResetting, true, "f");
|
|
247
256
|
if (!__classPrivateFieldGet(this, _SwiperInner_domChangeByOutSide, "f") && this.props.circular) {
|
|
257
|
+
// 如果是由于外部子节点的变化引起的 dom 变化,需要重新初始化 swiper。
|
|
258
|
+
// 在初dom操作之前,需要调用 loopDestroy,把子节点的顺序恢复
|
|
248
259
|
__classPrivateFieldSet(this, _SwiperInner_domChangeByOutSide, true, "f");
|
|
249
260
|
this.swiper.loopDestroy();
|
|
250
261
|
this.swiper.params.loop = false;
|
|
@@ -366,6 +377,8 @@ class SwiperInner extends React__default.Component {
|
|
|
366
377
|
const func = this.props.onAnimationFinish;
|
|
367
378
|
typeof func === 'function' && func(e);
|
|
368
379
|
}
|
|
380
|
+
// Note: loop 的时候添加 additionalSlides 可以避免循环的时候由于 loopFix 不及时,出现空白的问题。但是并不是 additionalSlides 越多越好,因为 additionalSlides 越多,如果 swiper-item 的数量不够,会导致出现 bug。
|
|
381
|
+
// 目前的策略是 swiper-item 的数量小于等于 5 时,不添加 additionalSlides,大于 5 小于等于 7 时,添加 1 个 additionalSlides,大于 7 时,添加 2 个 additionalSlides。
|
|
369
382
|
getLoopAdditionalSlides() {
|
|
370
383
|
const slidersLength = this.getSlidersList().length;
|
|
371
384
|
if (!this.$el || !this.getNeedFixLoop() || slidersLength < ONE_ADDITIONAL_SLIDES_THRESHOLD) return 0;
|
|
@@ -400,10 +413,7 @@ class SwiperInner extends React__default.Component {
|
|
|
400
413
|
sty.height = '100%';
|
|
401
414
|
}
|
|
402
415
|
const swiperContainerStyleList = ['overflow: visible;', vertical ? `margin-top: ${pM}px; margin-bottom: ${nM}px;` : `margin-right: ${nM}px; margin-left: ${pM}px;`, this.props.full ? 'height: 100%;' : ''];
|
|
403
|
-
const
|
|
404
|
-
'swiper-pagination-hidden': !this.props.indicatorDots,
|
|
405
|
-
'swiper-pagination-bullets': this.props.indicatorDots
|
|
406
|
-
});
|
|
416
|
+
const swiperPaginationStyleList = [this.props.indicatorDots ? 'opacity: 1;' : 'display: none;', 'font-size: 0;'];
|
|
407
417
|
return /*#__PURE__*/jsx("div", {
|
|
408
418
|
className: `swiper-container-wrapper ${cls}`,
|
|
409
419
|
style: sty,
|
|
@@ -426,13 +436,14 @@ class SwiperInner extends React__default.Component {
|
|
|
426
436
|
.taro-swiper-${this._id} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet { background: ${defaultIndicatorColor} }
|
|
427
437
|
.taro-swiper-${this._id} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet-active { background: ${defaultIndicatorActiveColor} }
|
|
428
438
|
.taro-swiper-${this._id} > .swiper-container { ${swiperContainerStyleList.join('')} }
|
|
439
|
+
.taro-swiper-${this._id} > .swiper-container > .swiper-pagination { ${swiperPaginationStyleList.join('')} }
|
|
429
440
|
</style>`
|
|
430
441
|
}
|
|
431
442
|
}), /*#__PURE__*/jsx("div", {
|
|
432
443
|
className: "swiper-wrapper",
|
|
433
444
|
children: this.props.children
|
|
434
445
|
}), /*#__PURE__*/jsx("div", {
|
|
435
|
-
className:
|
|
446
|
+
className: "swiper-pagination"
|
|
436
447
|
})]
|
|
437
448
|
})
|
|
438
449
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/swiper/index.tsx"],"sourcesContent":["import 'swiper/swiper-bundle.css'\nimport './style/index.css'\n\nimport classNames from 'classnames'\nimport React from 'react'\nimport Swipers from 'swiper/bundle'\n\nimport { createForwardRefComponent, debounce } from '../../utils'\n\nimport type ISwiper from 'swiper'\n\nlet INSTANCE_ID = 0\nconst ONE_ADDITIONAL_SLIDES_THRESHOLD = 5\nconst TWO_ADDITIONAL_SLIDES_THRESHOLD = 7\n\ninterface SwiperItemProps extends React.HTMLAttributes<HTMLDivElement> {\n itemId: string\n forwardedRef?: React.MutableRefObject<HTMLDivElement>\n}\n\ninterface SwiperProps extends React.HTMLAttributes<HTMLDivElement> {\n autoplay?: boolean\n interval?: number\n duration?: number\n current?: number\n displayMultipleItems?: number\n circular?: boolean\n vertical?: boolean\n spaceBetween?: any\n previousMargin?: string\n nextMargin?: string\n indicatorColor?: string\n indicatorActiveColor?: string\n indicatorDots?: boolean\n currentItemId?: string\n forwardedRef?: React.MutableRefObject<HTMLDivElement>\n full?: boolean\n onAnimationFinish?: (e: TouchEvent) => void\n effectsProps?: Record<string, any>\n}\n\nconst createEvent = (type: string) => {\n let e\n try {\n e = new TouchEvent(type)\n } catch (err) {\n e = document.createEvent('Event')\n e.initEvent(type, true, true)\n }\n return e\n}\n\nclass SwiperItemInner extends React.Component<SwiperItemProps, Record<string, unknown>> {\n render () {\n const { className, style, itemId, children, forwardedRef, ...restProps } = this.props\n const cls = classNames('swiper-slide', className)\n return (\n <div\n ref={(e) => {\n if (e && forwardedRef) {\n forwardedRef.current = e\n }\n }}\n className={cls}\n style={style}\n item-id={itemId}\n {...restProps}\n >\n {children}\n </div>\n )\n }\n}\n\ninterface SwiperState {\n swiperWrapper: HTMLElement | null\n}\n\nclass SwiperInner extends React.Component<SwiperProps, SwiperState> {\n _id = 1 + INSTANCE_ID++\n #source = 'autoplay'\n #swiperResetting: boolean = false\n #lastSwiperActiveIndex: number = 0\n #domChangeByOutSide: boolean = false\n $el: HTMLDivElement | null\n swiper: ISwiper| null\n observer: MutationObserver\n\n constructor(props) {\n super(props)\n this.state = {\n swiperWrapper: null\n }\n }\n\n componentDidMount () {\n this.handleInit()\n }\n\n hackSwiperWrapDomAction () {\n if (!this.state.swiperWrapper || !this.swiper) return\n const appendChild = this.state.swiperWrapper.appendChild.bind(this.state.swiperWrapper)\n const removeChild = this.state.swiperWrapper.removeChild.bind(this.state.swiperWrapper)\n const replaceChild = this.state.swiperWrapper.replaceChild.bind(this.state.swiperWrapper)\n const insertBefore = this.state.swiperWrapper.insertBefore.bind(this.state.swiperWrapper)\n\n const beforeAction = () => {\n if (!this.state.swiperWrapper || !this.swiper) return\n this.#swiperResetting = true\n if (!this.#domChangeByOutSide && this.props.circular) {\n this.#domChangeByOutSide = true\n this.swiper.loopDestroy()\n this.swiper.params.loop = false\n }\n }\n\n // eslint-disable-next-line react/no-direct-mutation-state\n this.state.swiperWrapper.appendChild = (...args) => {\n beforeAction()\n return appendChild(...args)\n }\n\n // eslint-disable-next-line react/no-direct-mutation-state\n this.state.swiperWrapper.removeChild = (...args) => {\n beforeAction()\n return removeChild(...args)\n }\n\n // eslint-disable-next-line react/no-direct-mutation-state\n this.state.swiperWrapper.replaceChild = (...args) => {\n beforeAction()\n return replaceChild(...args)\n }\n\n // eslint-disable-next-line react/no-direct-mutation-state\n this.state.swiperWrapper.insertBefore = (...args) => {\n beforeAction()\n return insertBefore(...args)\n }\n }\n\n handleInit = (reset = false) => {\n const {\n autoplay = false,\n circular = true,\n current = 0,\n displayMultipleItems = 1,\n duration = 500,\n interval = 5000,\n currentItemId,\n effectsProps = {},\n vertical\n } = this.props\n\n let initialSlide = parseInt(String(current), 10)\n if (reset) {\n initialSlide = this.#lastSwiperActiveIndex\n } else {\n if (currentItemId) {\n let itemIdIndex = 0\n this.getSlidersList().forEach((swiperItem, index) => {\n // @ts-ignore\n if (swiperItem.itemId && swiperItem.itemId === currentItemId) {\n itemIdIndex = index\n }\n })\n initialSlide = itemIdIndex\n }\n }\n\n const loopAdditionalSlides = this.getLoopAdditionalSlides()\n const centeredSlides = parseFloat(String(displayMultipleItems)) === 1\n const slidesPerView = parseFloat(String(displayMultipleItems)) === 1 ? 'auto' : displayMultipleItems\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const that = this\n const opt: Record<string, any> = {\n // 指示器\n pagination: { el: `.taro-swiper-${this._id} > .swiper-container > .swiper-pagination` },\n direction: vertical ? 'vertical' : 'horizontal',\n loop: circular,\n slidesPerView: slidesPerView,\n initialSlide,\n speed: parseInt(String(duration), 10),\n observer: true,\n observeParents: true,\n loopAdditionalSlides,\n centeredSlides,\n ...effectsProps,\n on: {\n init (_swiper) {\n that.getNeedFixLoop() && _swiper.loopFix()\n that.props.autoplay && _swiper.autoplay.start()\n },\n slideChangeTransitionEnd (_swiper) {\n if (that.#swiperResetting) return\n that.getNeedFixLoop() && _swiper.loopFix()\n that.props.autoplay && _swiper.autoplay.start()\n const e = createEvent('touchend')\n try {\n const currentId = that.getCurrentId(_swiper)\n Object.defineProperty(e, 'detail', {\n enumerable: true,\n value: {\n source: that.#source,\n current: this.realIndex,\n currentId: currentId\n }\n })\n } catch (err) {} // eslint-disable-line no-empty\n that.handleOnAnimationFinish(e)\n that.#source = 'autoplay'\n },\n touchEnd: (_swiper) => {\n that.#source = 'touch'\n that.props.autoplay && _swiper.autoplay.start()\n },\n touchStart: (_swiper) => {\n that.#source = 'touch'\n that.props.autoplay && _swiper.autoplay.pause()\n },\n slideChange (_swiper) {\n if (that.#swiperResetting || that.#lastSwiperActiveIndex === _swiper.realIndex) return\n that.#lastSwiperActiveIndex = _swiper.realIndex\n const e = createEvent('touchend')\n try {\n const currentId = that.getCurrentId(_swiper)\n Object.defineProperty(e, 'detail', {\n enumerable: true,\n value: {\n current: this.realIndex,\n source: that.#source,\n currentId,\n }\n })\n } catch (err) {} // eslint-disable-line no-empty\n that.handleOnChange(e)\n },\n autoplay (_swiper) {\n // Note: 修复 autoplay 时,切换到其他页面再切回来,autoplay 会停止的问题\n _swiper.animating = false\n that.#source = 'autoplay'\n }\n }\n }\n\n // 自动播放\n if (autoplay) {\n opt.autoplay = {\n delay: parseInt(String(interval), 10),\n disableOnInteraction: false\n }\n }\n\n this.swiper = new Swipers(this.$el!, opt)\n if (this.getNeedFixLoop()) {\n // @ts-ignore\n const minTranslate = this.swiper.minTranslate.bind(this.swiper)\n // @ts-ignore\n const maxTranslate = this.swiper.maxTranslate.bind(this.swiper)\n if (centeredSlides && this.getSlidersList().length < 4) {\n // @ts-ignore\n this.swiper.minTranslate = () => minTranslate() + this.parseMargin()[1]\n // @ts-ignore\n this.swiper.maxTranslate = () => maxTranslate() - this.parseMargin()[0]\n } else {\n // @ts-ignore\n this.swiper.minTranslate = () => minTranslate() - this.parseMargin()[0]\n // @ts-ignore\n this.swiper.maxTranslate = () => maxTranslate() + this.parseMargin()[1]\n }\n }\n\n this.setState({\n swiperWrapper: this.swiper.wrapperEl\n })\n }\n\n componentDidUpdate (prevProps, pervState) {\n if (!this.swiper || !this.state.swiperWrapper) return\n if (pervState.swiperWrapper !== this.state.swiperWrapper && this.state.swiperWrapper) {\n this.observer && this.observer.disconnect()\n this.observer = new MutationObserver(this.handleSwiperSizeDebounce)\n this.observer.observe(this.state.swiperWrapper as Node, {\n childList: true\n })\n this.hackSwiperWrapDomAction()\n }\n\n if (prevProps.circular !== this.props.circular || prevProps.displayMultipleItems !== this.props.displayMultipleItems) {\n this.reset()\n }\n\n if (prevProps.interval !== this.props.interval) {\n if (typeof this.swiper.params.autoplay === 'object') {\n this.swiper.params.autoplay.delay = this.props.interval\n }\n }\n\n if (prevProps.duration !== this.props.duration) {\n this.swiper.params.speed = this.props.duration\n }\n\n if (prevProps.current !== this.props.current && !this.props.currentItemId) {\n const n = parseInt(String(this.props.current), 10)\n if (isNaN(n) || n === this.swiper.realIndex) return\n this.#source = ''\n if (this.props.circular) {\n this.swiper.slideToLoop(n) // 更新下标\n this.props.autoplay && this.swiper.autoplay.pause()\n // @ts-ignore\n this.swiper.loopFix()\n this.props.autoplay && this.swiper.autoplay.start()\n } else {\n this.swiper.slideTo(n) // 更新下标\n }\n }\n\n if (prevProps.autoplay !== this.props.autoplay) {\n const swiperAutoplay = this.swiper.autoplay\n if (swiperAutoplay) {\n if (swiperAutoplay.running === this.props.autoplay) return\n\n if (this.props.autoplay) {\n if (this.swiper.params && typeof this.swiper.params.autoplay === 'object') {\n if (this.swiper.params.autoplay.disableOnInteraction === true) {\n this.swiper.params.autoplay.disableOnInteraction = false\n }\n this.swiper.params.autoplay.delay = this.props.interval\n }\n swiperAutoplay.start()\n } else {\n swiperAutoplay.stop()\n }\n }\n }\n\n if (prevProps.currentItemId !== this.props.currentItemId) {\n let itemIdIndex = 0\n this.getSlidersList().forEach((swiperItem, index) => {\n const itemId = swiperItem.getAttribute('item-id')\n // @ts-ignore\n if (itemId === this.props.currentItemId) {\n if (this.props.circular) {\n itemIdIndex = Number(swiperItem.getAttribute('data-swiper-slide-index'))\n } else {\n itemIdIndex = index\n }\n }\n })\n if (isNaN(itemIdIndex) || itemIdIndex === this.swiper.realIndex) return\n this.#source = ''\n if (this.props.circular) {\n this.swiper.slideToLoop(itemIdIndex) // 更新下标\n this.props.autoplay && this.swiper.autoplay.pause()\n // @ts-ignore\n this.swiper.loopFix()\n this.props.autoplay && this.swiper.autoplay.start()\n } else {\n this.swiper.slideTo(itemIdIndex) // 更新下标\n }\n }\n }\n\n componentWillUnmount () {\n this.$el = null\n this.swiper?.destroy?.()\n this.observer?.disconnect?.()\n this.setState({\n swiperWrapper: null\n })\n }\n\n handleOnChange (e: React.FormEvent<HTMLDivElement>) {\n const func = this.props.onChange\n typeof func === 'function' && func(e)\n }\n\n handleOnAnimationFinish (e: TouchEvent) {\n const func = this.props.onAnimationFinish\n typeof func === 'function' && func(e)\n }\n\n handleSwiperSizeDebounce = debounce(() => {\n if (!this.swiper) return\n if (this.props.circular) {\n if (this.#domChangeByOutSide) {\n this.reset()\n this.#domChangeByOutSide = false\n }\n } else {\n this.swiper.update()\n this.#swiperResetting = false\n }\n }, 50)\n\n\n reset = () => {\n if (!this.swiper) return\n this.#swiperResetting = true\n this.#lastSwiperActiveIndex = this.swiper.realIndex\n this.swiper.destroy()\n this.handleInit(true)\n this.#swiperResetting = false\n }\n\n getSlidersList = () => this.$el?.querySelectorAll?.('.swiper-slide') || []\n\n getNeedFixLoop = () => {\n const margins = this.parseMargin()\n const hasMargin = margins.filter(Boolean).length > 0\n return this.props.circular && hasMargin\n }\n\n getLoopAdditionalSlides():number {\n const slidersLength = (this.getSlidersList()).length\n if (!this.$el || !this.getNeedFixLoop() || slidersLength < ONE_ADDITIONAL_SLIDES_THRESHOLD) return 0\n if (slidersLength <= TWO_ADDITIONAL_SLIDES_THRESHOLD) return 1\n return 2\n }\n\n parseMargin = () => {\n const { previousMargin = '0px', nextMargin = '0px' } = this.props\n const [, pM] = /^(\\d+)px/.exec(previousMargin) || []\n const [, nN] = /^(\\d+)px/.exec(nextMargin as string) || []\n return [parseInt(pM) || 0, parseInt(nN) || 0]\n }\n\n getCurrentId (swiper: ISwiper) {\n const slides = swiper.slides\n const activeIndex = swiper.activeIndex\n const currentSlide = slides[activeIndex]\n return currentSlide.getAttribute('item-id')\n }\n\n render () {\n const {\n className,\n style,\n vertical,\n indicatorColor,\n indicatorActiveColor,\n forwardedRef\n } = this.props\n const defaultIndicatorColor = indicatorColor || 'rgba(0, 0, 0, .3)'\n const defaultIndicatorActiveColor = indicatorActiveColor || '#000'\n const [pM, nM] = this.parseMargin()\n const cls = classNames(`taro-swiper-${this._id}`, className)\n const sty = Object.assign({}, style)\n const hasMargin = pM || nM\n if (hasMargin) {\n sty.overflow = 'hidden'\n }\n if (this.props.full) {\n sty.height = '100%'\n }\n const swiperContainerStyleList:string [] = [\n 'overflow: visible;',\n vertical ? `margin-top: ${pM}px; margin-bottom: ${nM}px;` : `margin-right: ${nM}px; margin-left: ${pM}px;`,\n this.props.full ? 'height: 100%;' : ''\n ]\n\n\n const paginationCls = classNames(\n 'swiper-pagination',\n {\n 'swiper-pagination-hidden': !this.props.indicatorDots,\n 'swiper-pagination-bullets': this.props.indicatorDots\n }\n )\n return (\n <div className={`swiper-container-wrapper ${cls}`} style={sty} ref={(e) => {\n if (forwardedRef && e) {\n forwardedRef.current = e\n }\n }}>\n <div className='swiper-container' style={{ overflow: 'visible' }} ref={(el) => { this.$el = el }}>\n <div\n dangerouslySetInnerHTML={{\n __html: `<style type='text/css'>\n .taro-swiper-${this._id} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet { background: ${defaultIndicatorColor} }\n .taro-swiper-${this._id} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet-active { background: ${defaultIndicatorActiveColor} }\n .taro-swiper-${this._id} > .swiper-container { ${swiperContainerStyleList.join('')} }\n </style>`\n }}\n />\n <div className='swiper-wrapper' >{this.props.children}</div>\n <div className={paginationCls} />\n </div>\n </div>\n )\n }\n}\n\nexport const Swiper = createForwardRefComponent(SwiperInner)\nexport const SwiperItem = createForwardRefComponent(SwiperItemInner)\n"],"names":["INSTANCE_ID","ONE_ADDITIONAL_SLIDES_THRESHOLD","TWO_ADDITIONAL_SLIDES_THRESHOLD","createEvent","type","e","TouchEvent","err","document","initEvent","SwiperItemInner","React","Component","render","_a","props","className","style","itemId","children","forwardedRef","restProps","__rest","cls","classNames","_jsx","ref","current","SwiperInner","constructor","_this","this","_id","_SwiperInner_source","set","_SwiperInner_swiperResetting","_SwiperInner_lastSwiperActiveIndex","_SwiperInner_domChangeByOutSide","handleInit","reset","arguments","length","undefined","autoplay","circular","displayMultipleItems","duration","interval","currentItemId","effectsProps","vertical","initialSlide","parseInt","String","__classPrivateFieldGet","itemIdIndex","getSlidersList","forEach","swiperItem","index","loopAdditionalSlides","getLoopAdditionalSlides","centeredSlides","parseFloat","slidesPerView","that","opt","Object","assign","pagination","el","direction","loop","speed","observer","observeParents","on","init","_swiper","getNeedFixLoop","loopFix","start","slideChangeTransitionEnd","currentId","getCurrentId","defineProperty","enumerable","value","source","realIndex","handleOnAnimationFinish","__classPrivateFieldSet","touchEnd","touchStart","pause","slideChange","handleOnChange","animating","delay","disableOnInteraction","swiper","Swipers","$el","minTranslate","bind","maxTranslate","parseMargin","setState","swiperWrapper","wrapperEl","handleSwiperSizeDebounce","debounce","update","destroy","_b","querySelectorAll","margins","hasMargin","filter","Boolean","previousMargin","nextMargin","pM","exec","nN","state","componentDidMount","hackSwiperWrapDomAction","appendChild","removeChild","replaceChild","insertBefore","beforeAction","loopDestroy","params","componentDidUpdate","prevProps","pervState","disconnect","MutationObserver","observe","childList","n","isNaN","slideToLoop","slideTo","swiperAutoplay","running","stop","getAttribute","Number","componentWillUnmount","_d","_c","func","onChange","onAnimationFinish","slidersLength","slides","activeIndex","currentSlide","indicatorColor","indicatorActiveColor","defaultIndicatorColor","defaultIndicatorActiveColor","nM","sty","overflow","full","height","swiperContainerStyleList","paginationCls","indicatorDots","_jsxs","dangerouslySetInnerHTML","__html","join","Swiper","createForwardRefComponent","SwiperItem"],"mappings":";;;;;;;;;;AAWA,IAAIA,WAAW,GAAG,CAAC,CAAA;AACnB,MAAMC,+BAA+B,GAAG,CAAC,CAAA;AACzC,MAAMC,+BAA+B,GAAG,CAAC,CAAA;AA4BzC,MAAMC,WAAW,GAAIC,IAAY,IAAI;AACnC,EAAA,IAAIC,CAAC,CAAA;EACL,IAAI;AACFA,IAAAA,CAAC,GAAG,IAAIC,UAAU,CAACF,IAAI,CAAC,CAAA;GACzB,CAAC,OAAOG,GAAG,EAAE;AACZF,IAAAA,CAAC,GAAGG,QAAQ,CAACL,WAAW,CAAC,OAAO,CAAC,CAAA;IACjCE,CAAC,CAACI,SAAS,CAACL,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAC/B,GAAA;AACA,EAAA,OAAOC,CAAC,CAAA;AACV,CAAC,CAAA;AAED,MAAMK,eA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E;AACvBC,YAAAA,MAAM,EAAE,CAAA;6BACO,IAAI,CAAC/I,GAAG,CAAA,oFAAA,EAAuFmI,qBAAqB,CAAA;6BACpH,IAAI,CAACnI,GAAG,CAAA,2FAAA,EAA8FoI,2BAA2B,CAAA;2BACjI,EAAA,IAAI,CAACpI,GAAG,CAAA,uBAAA,EAA0B0I,wBAAwB,CAACM,IAAI,CAAC,EAAE,CAAC,CAAA;AACzE,sBAAA,CAAA;AACV,WAAA;SAEH,CAAA,eAAAvJ,GAAA,CAAA,KAAA,EAAA;AAAKT,UAAAA,SAAS,EAAC,gBAAgB;AAAAG,UAAAA,QAAA,EAAG,IAAI,CAACJ,KAAK,CAACI,QAAAA;SAAc,CAC3D,eAAAM,GAAA,CAAA,KAAA,EAAA;AAAKT,UAAAA,SAAS,EAAE2J,aAAAA;AAAc,SAChC,CAAA,CAAA;OAAK,CAAA;AACP,KAAK,CAAC,CAAA;AAEV,GAAA;AACD,CAAA;;MAEYM,MAAM,GAAGC,yBAAyB,CAACtJ,WAAW,EAAC;MAC/CuJ,UAAU,GAAGD,yBAAyB,CAACxK,eAAe;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/swiper/index.tsx"],"sourcesContent":["import 'swiper/swiper-bundle.css'\nimport './style/index.css'\n\nimport classNames from 'classnames'\nimport React from 'react'\nimport Swipers from 'swiper/bundle'\n\nimport { createForwardRefComponent, debounce } from '../../utils'\n\nimport type ISwiper from 'swiper'\n\nlet INSTANCE_ID = 0\nconst ONE_ADDITIONAL_SLIDES_THRESHOLD = 5\nconst TWO_ADDITIONAL_SLIDES_THRESHOLD = 7\n\ninterface SwiperItemProps extends React.HTMLAttributes<HTMLDivElement> {\n itemId: string\n forwardedRef?: React.MutableRefObject<HTMLDivElement>\n}\n\ninterface SwiperProps extends React.HTMLAttributes<HTMLDivElement> {\n autoplay?: boolean\n interval?: number\n duration?: number\n current?: number\n displayMultipleItems?: number\n circular?: boolean\n vertical?: boolean\n spaceBetween?: any\n previousMargin?: string\n nextMargin?: string\n indicatorColor?: string\n indicatorActiveColor?: string\n indicatorDots?: boolean\n currentItemId?: string\n forwardedRef?: React.MutableRefObject<HTMLDivElement>\n full?: boolean\n onAnimationFinish?: (e: TouchEvent) => void\n effectsProps?: Record<string, any>\n}\n\nconst createEvent = (type: string) => {\n let e\n try {\n e = new TouchEvent(type)\n } catch (err) {\n e = document.createEvent('Event')\n e.initEvent(type, true, true)\n }\n return e\n}\n\nclass SwiperItemInner extends React.Component<SwiperItemProps, Record<string, unknown>> {\n render () {\n const { className, style, itemId, children, forwardedRef, ...restProps } = this.props\n const cls = classNames('swiper-slide', className)\n return (\n <div\n ref={(e) => {\n if (e && forwardedRef) {\n forwardedRef.current = e\n }\n }}\n className={cls}\n style={style}\n item-id={itemId}\n {...restProps}\n >\n {children}\n </div>\n )\n }\n}\n\ninterface SwiperState {\n swiperWrapper: HTMLElement | null\n}\n\nclass SwiperInner extends React.Component<SwiperProps, SwiperState> {\n _id = 1 + INSTANCE_ID++\n #source = 'autoplay'\n #swiperResetting: boolean = false\n #lastSwiperActiveIndex: number = 0\n // dom 变化是否由外部引起,因为 swiper 的循环模式也会引起 dom 的变化。如果不是由外部引起的 dom 变化,就不需要重新初始化 swiper\n #domChangeByOutSide: boolean = false\n $el: HTMLDivElement | null\n swiper: ISwiper| null\n observer: MutationObserver\n\n constructor(props) {\n super(props)\n this.state = {\n swiperWrapper: null\n }\n }\n\n componentDidMount () {\n this.handleInit()\n }\n\n hackSwiperWrapDomAction () {\n if (!this.state.swiperWrapper || !this.swiper) return\n const appendChild = this.state.swiperWrapper.appendChild.bind(this.state.swiperWrapper)\n const removeChild = this.state.swiperWrapper.removeChild.bind(this.state.swiperWrapper)\n const replaceChild = this.state.swiperWrapper.replaceChild.bind(this.state.swiperWrapper)\n const insertBefore = this.state.swiperWrapper.insertBefore.bind(this.state.swiperWrapper)\n\n const beforeAction = () => {\n if (!this.state.swiperWrapper || !this.swiper) return\n this.#swiperResetting = true\n if (!this.#domChangeByOutSide && this.props.circular) {\n // 如果是由于外部子节点的变化引起的 dom 变化,需要重新初始化 swiper。\n // 在初dom操作之前,需要调用 loopDestroy,把子节点的顺序恢复\n this.#domChangeByOutSide = true\n this.swiper.loopDestroy()\n this.swiper.params.loop = false\n }\n }\n\n // eslint-disable-next-line react/no-direct-mutation-state\n this.state.swiperWrapper.appendChild = (...args) => {\n beforeAction()\n return appendChild(...args)\n }\n\n // eslint-disable-next-line react/no-direct-mutation-state\n this.state.swiperWrapper.removeChild = (...args) => {\n beforeAction()\n return removeChild(...args)\n }\n\n // eslint-disable-next-line react/no-direct-mutation-state\n this.state.swiperWrapper.replaceChild = (...args) => {\n beforeAction()\n return replaceChild(...args)\n }\n\n // eslint-disable-next-line react/no-direct-mutation-state\n this.state.swiperWrapper.insertBefore = (...args) => {\n beforeAction()\n return insertBefore(...args)\n }\n }\n\n handleInit = (reset = false) => {\n const {\n autoplay = false,\n circular = true,\n current = 0,\n displayMultipleItems = 1,\n duration = 500,\n interval = 5000,\n currentItemId,\n effectsProps = {},\n vertical\n } = this.props\n\n let initialSlide = parseInt(String(current), 10)\n if (reset) {\n initialSlide = this.#lastSwiperActiveIndex\n } else {\n if (currentItemId) {\n let itemIdIndex = 0\n this.getSlidersList().forEach((swiperItem, index) => {\n // @ts-ignore\n if (swiperItem.itemId && swiperItem.itemId === currentItemId) {\n itemIdIndex = index\n }\n })\n initialSlide = itemIdIndex\n }\n }\n\n const loopAdditionalSlides = this.getLoopAdditionalSlides()\n const centeredSlides = parseFloat(String(displayMultipleItems)) === 1\n const slidesPerView = parseFloat(String(displayMultipleItems)) === 1 ? 'auto' : displayMultipleItems\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const that = this\n const opt: Record<string, any> = {\n // 指示器\n pagination: { el: `.taro-swiper-${this._id} > .swiper-container > .swiper-pagination` },\n direction: vertical ? 'vertical' : 'horizontal',\n loop: circular,\n slidesPerView: slidesPerView,\n initialSlide,\n speed: parseInt(String(duration), 10),\n observer: true,\n observeParents: true,\n loopAdditionalSlides,\n centeredSlides,\n ...effectsProps,\n on: {\n init (_swiper) {\n that.getNeedFixLoop() && _swiper.loopFix()\n that.props.autoplay && _swiper.autoplay.start()\n },\n slideChangeTransitionEnd (_swiper) {\n if (that.#swiperResetting) return\n that.getNeedFixLoop() && _swiper.loopFix()\n that.props.autoplay && _swiper.autoplay.start()\n const e = createEvent('touchend')\n try {\n const currentId = that.getCurrentId(_swiper)\n Object.defineProperty(e, 'detail', {\n enumerable: true,\n value: {\n source: that.#source,\n current: this.realIndex,\n currentId: currentId\n }\n })\n } catch (err) {} // eslint-disable-line no-empty\n that.handleOnAnimationFinish(e)\n that.#source = 'autoplay'\n },\n touchEnd: (_swiper) => {\n that.#source = 'touch'\n that.props.autoplay && _swiper.autoplay.start()\n },\n touchStart: (_swiper) => {\n that.#source = 'touch'\n that.props.autoplay && _swiper.autoplay.pause()\n },\n slideChange (_swiper) {\n if (that.#swiperResetting || that.#lastSwiperActiveIndex === _swiper.realIndex) return\n that.#lastSwiperActiveIndex = _swiper.realIndex\n const e = createEvent('touchend')\n try {\n const currentId = that.getCurrentId(_swiper)\n Object.defineProperty(e, 'detail', {\n enumerable: true,\n value: {\n current: this.realIndex,\n source: that.#source,\n currentId,\n }\n })\n } catch (err) {} // eslint-disable-line no-empty\n that.handleOnChange(e)\n },\n autoplay (_swiper) {\n // Note: 修复 autoplay 时,切换到其他页面再切回来,autoplay 会停止的问题\n _swiper.animating = false\n that.#source = 'autoplay'\n }\n }\n }\n\n // 自动播放\n if (autoplay) {\n opt.autoplay = {\n delay: parseInt(String(interval), 10),\n disableOnInteraction: false\n }\n }\n\n this.swiper = new Swipers(this.$el!, opt)\n\n // Note: 这里是拦截了 swiper 的 minTranslate 和 maxTranslate 方法,手动修复了 loop 模式下的 margin 问题\n // 因为这两个属性会影响滑动到哪个位置进行 fixloop\n // 可参考源码:https://github.com/nolimits4web/swiper/blob/v11.1.0/src/core/events/onTouchMove.mjs\n // https://github.com/nolimits4web/swiper/blob/v11.1.0/src/core/loop/loopFix.mjs\n if (this.getNeedFixLoop()) {\n // @ts-ignore\n const minTranslate = this.swiper.minTranslate.bind(this.swiper)\n // @ts-ignore\n const maxTranslate = this.swiper.maxTranslate.bind(this.swiper)\n if (centeredSlides && this.getSlidersList().length < 4) {\n // @ts-ignore\n this.swiper.minTranslate = () => minTranslate() + this.parseMargin()[1]\n // @ts-ignore\n this.swiper.maxTranslate = () => maxTranslate() - this.parseMargin()[0]\n } else {\n // @ts-ignore\n this.swiper.minTranslate = () => minTranslate() - this.parseMargin()[0]\n // @ts-ignore\n this.swiper.maxTranslate = () => maxTranslate() + this.parseMargin()[1]\n }\n }\n\n this.setState({\n swiperWrapper: this.swiper.wrapperEl\n })\n }\n\n componentDidUpdate (prevProps, pervState) {\n if (!this.swiper || !this.state.swiperWrapper) return\n if (pervState.swiperWrapper !== this.state.swiperWrapper && this.state.swiperWrapper) {\n this.observer && this.observer.disconnect()\n this.observer = new MutationObserver(this.handleSwiperSizeDebounce)\n this.observer.observe(this.state.swiperWrapper as Node, {\n childList: true\n })\n this.hackSwiperWrapDomAction()\n }\n\n if (prevProps.circular !== this.props.circular || prevProps.displayMultipleItems !== this.props.displayMultipleItems) {\n this.reset()\n }\n\n if (prevProps.interval !== this.props.interval) {\n if (typeof this.swiper.params.autoplay === 'object') {\n this.swiper.params.autoplay.delay = this.props.interval\n }\n }\n\n if (prevProps.duration !== this.props.duration) {\n this.swiper.params.speed = this.props.duration\n }\n\n if (prevProps.current !== this.props.current && !this.props.currentItemId) {\n const n = parseInt(String(this.props.current), 10)\n if (isNaN(n) || n === this.swiper.realIndex) return\n this.#source = ''\n if (this.props.circular) {\n this.swiper.slideToLoop(n) // 更新下标\n this.props.autoplay && this.swiper.autoplay.pause()\n // @ts-ignore\n this.swiper.loopFix()\n this.props.autoplay && this.swiper.autoplay.start()\n } else {\n this.swiper.slideTo(n) // 更新下标\n }\n }\n\n if (prevProps.autoplay !== this.props.autoplay) {\n const swiperAutoplay = this.swiper.autoplay\n if (swiperAutoplay) {\n if (swiperAutoplay.running === this.props.autoplay) return\n\n if (this.props.autoplay) {\n if (this.swiper.params && typeof this.swiper.params.autoplay === 'object') {\n if (this.swiper.params.autoplay.disableOnInteraction === true) {\n this.swiper.params.autoplay.disableOnInteraction = false\n }\n this.swiper.params.autoplay.delay = this.props.interval\n }\n swiperAutoplay.start()\n } else {\n swiperAutoplay.stop()\n }\n }\n }\n\n if (prevProps.currentItemId !== this.props.currentItemId) {\n let itemIdIndex = 0\n this.getSlidersList().forEach((swiperItem, index) => {\n const itemId = swiperItem.getAttribute('item-id')\n // @ts-ignore\n if (itemId === this.props.currentItemId) {\n if (this.props.circular) {\n itemIdIndex = Number(swiperItem.getAttribute('data-swiper-slide-index'))\n } else {\n itemIdIndex = index\n }\n }\n })\n if (isNaN(itemIdIndex) || itemIdIndex === this.swiper.realIndex) return\n this.#source = ''\n if (this.props.circular) {\n this.swiper.slideToLoop(itemIdIndex) // 更新下标\n this.props.autoplay && this.swiper.autoplay.pause()\n // @ts-ignore\n this.swiper.loopFix()\n this.props.autoplay && this.swiper.autoplay.start()\n } else {\n this.swiper.slideTo(itemIdIndex) // 更新下标\n }\n }\n }\n\n componentWillUnmount () {\n this.$el = null\n this.swiper?.destroy?.()\n this.observer?.disconnect?.()\n this.setState({\n swiperWrapper: null\n })\n }\n\n handleOnChange (e: React.FormEvent<HTMLDivElement>) {\n const func = this.props.onChange\n typeof func === 'function' && func(e)\n }\n\n handleOnAnimationFinish (e: TouchEvent) {\n const func = this.props.onAnimationFinish\n typeof func === 'function' && func(e)\n }\n\n handleSwiperSizeDebounce = debounce(() => {\n if (!this.swiper) return\n if (this.props.circular) {\n if (this.#domChangeByOutSide) {\n this.reset()\n this.#domChangeByOutSide = false\n }\n } else {\n this.swiper.update()\n this.#swiperResetting = false\n }\n }, 50)\n\n\n reset = () => {\n if (!this.swiper) return\n this.#swiperResetting = true\n this.#lastSwiperActiveIndex = this.swiper.realIndex\n this.swiper.destroy()\n this.handleInit(true)\n this.#swiperResetting = false\n }\n\n // 以下为方法函数\n getSlidersList = () => this.$el?.querySelectorAll?.('.swiper-slide') || []\n\n // 获取是否需要手动修复 loop 的条件\n getNeedFixLoop = () => {\n const margins = this.parseMargin()\n const hasMargin = margins.filter(Boolean).length > 0\n return this.props.circular && hasMargin\n }\n\n // Note: loop 的时候添加 additionalSlides 可以避免循环的时候由于 loopFix 不及时,出现空白的问题。但是并不是 additionalSlides 越多越好,因为 additionalSlides 越多,如果 swiper-item 的数量不够,会导致出现 bug。\n // 目前的策略是 swiper-item 的数量小于等于 5 时,不添加 additionalSlides,大于 5 小于等于 7 时,添加 1 个 additionalSlides,大于 7 时,添加 2 个 additionalSlides。\n getLoopAdditionalSlides():number {\n const slidersLength = (this.getSlidersList()).length\n if (!this.$el || !this.getNeedFixLoop() || slidersLength < ONE_ADDITIONAL_SLIDES_THRESHOLD) return 0\n if (slidersLength <= TWO_ADDITIONAL_SLIDES_THRESHOLD) return 1\n return 2\n }\n\n parseMargin = () => {\n const { previousMargin = '0px', nextMargin = '0px' } = this.props\n const [, pM] = /^(\\d+)px/.exec(previousMargin) || []\n const [, nN] = /^(\\d+)px/.exec(nextMargin as string) || []\n return [parseInt(pM) || 0, parseInt(nN) || 0]\n }\n\n getCurrentId (swiper: ISwiper) {\n const slides = swiper.slides\n const activeIndex = swiper.activeIndex\n const currentSlide = slides[activeIndex]\n return currentSlide.getAttribute('item-id')\n }\n\n render () {\n const {\n className,\n style,\n vertical,\n indicatorColor,\n indicatorActiveColor,\n forwardedRef\n } = this.props\n const defaultIndicatorColor = indicatorColor || 'rgba(0, 0, 0, .3)'\n const defaultIndicatorActiveColor = indicatorActiveColor || '#000'\n const [pM, nM] = this.parseMargin()\n const cls = classNames(`taro-swiper-${this._id}`, className)\n const sty = Object.assign({}, style)\n const hasMargin = pM || nM\n if (hasMargin) {\n sty.overflow = 'hidden'\n }\n if (this.props.full) {\n sty.height = '100%'\n }\n const swiperContainerStyleList:string [] = [\n 'overflow: visible;',\n vertical ? `margin-top: ${pM}px; margin-bottom: ${nM}px;` : `margin-right: ${nM}px; margin-left: ${pM}px;`,\n this.props.full ? 'height: 100%;' : ''\n ]\n\n\n const swiperPaginationStyleList:string [] = [\n this.props.indicatorDots ? 'opacity: 1;' : 'display: none;',\n 'font-size: 0;'\n ]\n return (\n <div className={`swiper-container-wrapper ${cls}`} style={sty} ref={(e) => {\n if (forwardedRef && e) {\n forwardedRef.current = e\n }\n }}>\n <div className='swiper-container' style={{ overflow: 'visible' }} ref={(el) => { this.$el = el }}>\n <div\n dangerouslySetInnerHTML={{\n __html: `<style type='text/css'>\n .taro-swiper-${this._id} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet { background: ${defaultIndicatorColor} }\n .taro-swiper-${this._id} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet-active { background: ${defaultIndicatorActiveColor} }\n .taro-swiper-${this._id} > .swiper-container { ${swiperContainerStyleList.join('')} }\n .taro-swiper-${this._id} > .swiper-container > .swiper-pagination { ${swiperPaginationStyleList.join('')} }\n </style>`\n }}\n />\n <div className='swiper-wrapper' >{this.props.children}</div>\n <div className='swiper-pagination' />\n </div>\n </div>\n )\n }\n}\n\nexport const Swiper = createForwardRefComponent(SwiperInner)\nexport const SwiperItem = createForwardRefComponent(SwiperItemInner)\n"],"names":["INSTANCE_ID","ONE_ADDITIONAL_SLIDES_THRESHOLD","TWO_ADDITIONAL_SLIDES_THRESHOLD","createEvent","type","e","TouchEvent","err","document","initEvent","SwiperItemInner","React","Component","render","_a","props","className","style","itemId","children","forwardedRef","restProps","__rest","cls","classNames","_jsx","ref","current","SwiperInner","constructor","_this","this","_id","_SwiperInner_source","set","_SwiperInner_swiperResetting","_SwiperInner_lastSwiperActiveIndex","_SwiperInner_domChangeByOutSide","handleInit","reset","arguments","length","undefined","autoplay","circular","displayMultipleItems","duration","interval","currentItemId","effectsProps","vertical","initialSlide","parseInt","String","__classPrivateFieldGet","itemIdIndex","getSlidersList","forEach","swiperItem","index","loopAdditionalSlides","getLoopAdditionalSlides","centeredSlides","parseFloat","slidesPerView","that","opt","Object","assign","pagination","el","direction","loop","speed","observer","observeParents","on","init","_swiper","getNeedFixLoop","loopFix","start","slideChangeTransitionEnd","currentId","getCurrentId","defineProperty","enumerable","value","source","realIndex","handleOnAnimationFinish","__classPrivateFieldSet","touchEnd","touchStart","pause","slideChange","handleOnChange","animating","delay","disableOnInteraction","swiper","Swipers","$el","minTranslate","bind","maxTranslate","parseMargin","setState","swiperWrapper","wrapperEl","handleSwiperSizeDebounce","debounce","update","destroy","_b","querySelectorAll","margins","hasMargin","filter","Boolean","previousMargin","nextMargin","pM","exec","nN","state","componentDidMount","hackSwiperWrapDomAction","appendChild","removeChild","replaceChild","insertBefore","beforeAction","loopDestroy","params","componentDidUpdate","prevProps","pervState","disconnect","MutationObserver","observe","childList","n","isNaN","slideToLoop","slideTo","swiperAutoplay","running","stop","getAttribute","Number","componentWillUnmount","_d","_c","func","onChange","onAnimationFinish","slidersLength","slides","activeIndex","currentSlide","indicatorColor","indicatorActiveColor","defaultIndicatorColor","defaultIndicatorActiveColor","nM","sty","overflow","full","height","swiperContainerStyleList","swiperPaginationStyleList","indicatorDots","_jsxs","dangerouslySetInnerHTML","__html","join","Swiper","createForwardRefComponent","SwiperItem"],"mappings":";;;;;;;;;;AAWA,IAAIA,WAAW,GAAG,CAAC,CAAA;AACnB,MAAMC,+BAA+B,GAAG,CAAC,CAAA;AACzC,MAAMC,+BAA+B,GAAG,CAAC,CAAA;AA4BzC,MAAMC,WAAW,GAAIC,IAAY,IAAI;AACnC,EAAA,IAAIC,CAAC,CAAA;EACL,IAAI;AACFA,IAAAA,CAAC,GAAG,IAAIC,UAAU,CAACF,IAAI,CAAC,CAAA;GACzB,CAAC,OAAOG,GAAG,EAAE;AACZF,IAAAA,CAAC,GAAGG,QAAQ,CAACL,WAAW,CAAC,OAAO,CAAC,CAAA;IACjCE,CAAC,CAACI,SAAS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EAAE,CAAA;SAAG;AAAAnD,QAAAA,QAAA,gBAC/FM,GAAA,CAAA,KAAA,EAAA;AACEqJ,UAAAA,uBAAuB,EAAE;AACvBC,YAAAA,MAAM,EAAE,CAAA;6BACO,IAAI,CAAC/I,GAAG,CAAA,oFAAA,EAAuFmI,qBAAqB,CAAA;6BACpH,IAAI,CAACnI,GAAG,CAAA,2FAAA,EAA8FoI,2BAA2B,CAAA;2BACjI,EAAA,IAAI,CAACpI,GAAG,CAAA,uBAAA,EAA0B0I,wBAAwB,CAACM,IAAI,CAAC,EAAE,CAAC,CAAA;2BACnE,EAAA,IAAI,CAAChJ,GAAG,CAAA,4CAAA,EAA+C2I,yBAAyB,CAACK,IAAI,CAAC,EAAE,CAAC,CAAA;AAC/F,sBAAA,CAAA;AACV,WAAA;SAEH,CAAA,eAAAvJ,GAAA,CAAA,KAAA,EAAA;AAAKT,UAAAA,SAAS,EAAC,gBAAgB;AAAAG,UAAAA,QAAA,EAAG,IAAI,CAACJ,KAAK,CAACI,QAAAA;SAAc,CAC3D,eAAAM,GAAA,CAAA,KAAA,EAAA;AAAKT,UAAAA,SAAS,EAAC,mBAAA;AAAmB,SACpC,CAAA,CAAA;OAAK,CAAA;AACP,KAAK,CAAC,CAAA;AAEV,GAAA;AACD,CAAA;;MAEYiK,MAAM,GAAGC,yBAAyB,CAACtJ,WAAW,EAAC;MAC/CuJ,UAAU,GAAGD,yBAAyB,CAACxK,eAAe;;;;"}
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@-webkit-keyframes weuiLoading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes weuiLoading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.taro-button-core[loading]>.weui-loading{animation:weuiLoading 1s steps(12) infinite;background:transparent url("data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E") no-repeat;background-size:100%;display:inline-block;height:20px;vertical-align:middle;width:20px}.taro-button-core[loading]>.weui-loading.weui-btn_primary,.taro-button-core[loading]>.weui-loading.weui-btn_warn{color:hsla(0,0%,100%,.6)}.taro-button-core[loading]>.weui-loading.weui-btn_primary{background-color:#179b16}.taro-button-core[loading]>.weui-loading.weui-btn_warn{background-color:#ce3c39}.taro-button-core{-webkit-tap-highlight-color:rgba(0,0,0,0);appearance:none;background-color:#f8f8f8;border-radius:5px;border-width:0;box-sizing:border-box;color:#000;display:block;font-size:18px;line-height:2.55555556;margin-left:auto;margin-right:auto;outline:0;overflow:hidden;padding-left:14px;padding-right:14px;position:relative;text-align:center;text-decoration:none;width:100%}.taro-button-core:focus{outline:0}.taro-button-core:not([disabled]):active{background-color:#dedede;color:rgba(0,0,0,.6)}.taro-button-core:after{border:1px solid rgba(0,0,0,.2);border-radius:10px;box-sizing:border-box;content:" ";height:200%;left:0;position:absolute;top:0;transform:scale(.5);transform-origin:0 0;width:200%}.taro-button-core+.taro-button-core{margin-top:15px}.taro-button-core[type=default]{background-color:#f8f8f8;color:#000}.taro-button-core[type=default]:not([disabled]):visited{color:#000}.taro-button-core[type=default]:not([disabled]):active{background-color:#dedede;color:rgba(0,0,0,.6)}.taro-button-core[size=mini]{display:inline-block;font-size:13px;line-height:2.3;padding:0 1.32em;width:auto}.taro-button-core[plain=true],.taro-button-core[plain=true][type=default],.taro-button-core[plain=true][type=primary]{background-color:transparent;border-width:1px}.taro-button-core[disabled]{color:hsla(0,0%,100%,.6)}.taro-button-core[disabled][type=default]{background-color:#f7f7f7;color:rgba(0,0,0,.3)}.taro-button-core[disabled][type=primary]{background-color:#9ed99d}.taro-button-core[disabled][type=warn]{background-color:#ec8b89}.taro-button-core[loading] .weui-loading{margin:-.2em .34em 0 0}.taro-button-core[loading][type=primary],.taro-button-core[loading][type=warn]{color:hsla(0,0%,100%,.6)}.taro-button-core[loading][type=primary]{background-color:#179b16}.taro-button-core[loading][type=warn]{background-color:#ce3c39}.taro-button-core[plain=true][type=primary]{border:1px solid #1aad19;color:#1aad19}.taro-button-core[plain=true][type=primary]:not([disabled]):active{background-color:transparent;border-color:rgba(26,173,25,.6);color:rgba(26,173,25,.6)}.taro-button-core[plain=true][type=primary]:after{border-width:0}.taro-button-core[plain=true][type=warn]{border:1px solid #e64340;color:#e64340}.taro-button-core[plain=true][type=warn]:not([disabled]):active{background-color:transparent;border-color:rgba(230,67,64,.6);color:rgba(230,67,64,.6)}.taro-button-core[plain=true][type=warn]:after{border-width:0}.taro-button-core[plain=true],.taro-button-core[plain=true][type=default]{border:1px solid #353535;color:#353535}.taro-button-core[plain=true]:not([disabled]):active,.taro-button-core[plain=true][type=default]:not([disabled]):active{background-color:transparent;border-color:rgba(53,53,53,.6);color:rgba(53,53,53,.6)}.taro-button-core[plain=true]:after,.taro-button-core[plain=true][type=default]:after{border-width:0}.taro-button-core[type=primary]{background-color:#1aad19;color:#fff}.taro-button-core[type=primary]:not([disabled]):visited{color:#fff}.taro-button-core[type=primary]:not([disabled]):active{background-color:#179b16;color:hsla(0,0%,100%,.6)}.taro-button-core[type=warn]{background-color:#e64340;color:#fff}.taro-button-core[type=warn]:not([disabled]):visited{color:#fff}.taro-button-core[type=warn]:not([disabled]):active{background-color:#ce3c39;color:hsla(0,0%,100%,.6)}.taro-button-core[plain=true][disabled],.taro-button-core[plain=true][disabled][type=primary]{background-color:#f7f7f7;border:1px solid rgba(0,0,0,.2);color:rgba(0,0,0,.3)}.weui-icon-circle:before{content:"\ea01"}.weui-icon-download:before{content:"\ea02"}.weui-icon-info:before{content:"\ea03"}.weui-icon-safe-success:before{content:"\ea04"}.weui-icon-safe-warn:before{content:"\ea05"}.weui-icon-success:before{content:"\ea06"}.weui-icon-success-circle:before{content:"\ea07"}.weui-icon-success-no-circle:before{content:"\ea08"}.weui-icon-waiting:before{content:"\ea09"}.weui-icon-waiting-circle:before{content:"\ea0a"}.weui-icon-warn:before{content:"\ea0b"}.weui-icon-info-circle:before{content:"\ea0c"}.weui-icon-cancel:before{content:"\ea0d"}.weui-icon-search:before{content:"\ea0e"}.weui-icon-clear:before{content:"\ea0f"}.weui-icon-back:before{content:"\ea10"}.weui-icon-delete:before{content:"\ea11"}.weui-icon-success{color:#09bb07;font-size:23px}.weui-icon-waiting{color:#10aeff;font-size:23px}.weui-icon-warn{color:#f43530;font-size:23px}.weui-icon-info{color:#10aeff;font-size:23px}.weui-icon-success-circle,.weui-icon-success-no-circle{color:#09bb07;font-size:23px}.weui-icon-waiting-circle{color:#10aeff;font-size:23px}.weui-icon-circle{color:#c9c9c9;font-size:23px}.weui-icon-download,.weui-icon-info-circle{color:#09bb07;font-size:23px}.weui-icon-safe-success{color:#09bb07}.weui-icon-safe-warn{color:#ffbe00}.weui-icon-cancel{color:#f43530;font-size:22px}.weui-icon-clear,.weui-icon-search{color:#b2b2b2;font-size:14px}.weui-icon-delete.weui-icon_gallery-delete{color:#fff;font-size:22px}.weui-icon_msg{font-size:93px}.weui-icon_msg.weui-icon-warn{color:#f76260}.weui-icon_msg-primary{font-size:93px}.weui-icon_msg-primary.weui-icon-warn{color:#ffbe00}img[src=""]{opacity:0}.taro-img{display:inline-block;font-size:0;height:240px;overflow:hidden;position:relative;width:320px}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{height:100%;width:100%}.taro-img__mode-aspectfit{height:100%;object-fit:contain;width:100%}.taro-img__mode-aspectfill{height:100%;object-fit:cover;width:100%}.taro-img__mode-top,.taro-img__mode-widthfix{width:100%}.taro-img__mode-bottom{bottom:0;position:absolute;width:100%}.taro-img__mode-left{height:100%}.taro-img__mode-right{height:100%}.taro-img__mode-right,.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{bottom:0;position:absolute}.taro-img__mode-bottomright{bottom:0;position:absolute;right:0}.taro-input-core{display:block}.weui-input{-webkit-appearance:none;background-color:transparent;border:0;color:inherit;font-size:inherit;height:1.4705882353em;line-height:1.4705882353;outline:0;width:100%}.weui-input::-webkit-inner-spin-button,.weui-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.rmc-pull-to-refresh-content{transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{min-height:100%}.rmc-pull-to-refresh-transition{transition:transform .3s}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:.2}to{opacity:1}}.rmc-pull-to-refresh-indicator{height:30px;line-height:10px;text-align:center}.rmc-pull-to-refresh-indicator>div{animation-fill-mode:both;animation:rmc-pull-to-refresh-indicator .5s linear 0s infinite;background-color:grey;border-radius:100%;display:inline-block;height:6px;margin:3px;width:6px}.rmc-pull-to-refresh-indicator>div:nth-child(0){animation-delay:-.1s!important}.rmc-pull-to-refresh-indicator>div:first-child{animation-delay:-.2s!important}.rmc-pull-to-refresh-indicator>div:nth-child(2){animation-delay:-.3s!important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}.taro-scroll{-webkit-overflow-scrolling:auto}.taro-scroll::-webkit-scrollbar{display:none}.taro-scroll-view{overflow:hidden}.taro-scroll-view__scroll-x{overflow-x:scroll;overflow-y:hidden}.taro-scroll-view__scroll-y{overflow-x:hidden;overflow-y:scroll}.swiper-container-wrapper{height:150px}.swiper-container{height:100%;overflow:visible;position:relative}.
|
|
1
|
+
@-webkit-keyframes weuiLoading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes weuiLoading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.taro-button-core[loading]>.weui-loading{animation:weuiLoading 1s steps(12) infinite;background:transparent url("data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E") no-repeat;background-size:100%;display:inline-block;height:20px;vertical-align:middle;width:20px}.taro-button-core[loading]>.weui-loading.weui-btn_primary,.taro-button-core[loading]>.weui-loading.weui-btn_warn{color:hsla(0,0%,100%,.6)}.taro-button-core[loading]>.weui-loading.weui-btn_primary{background-color:#179b16}.taro-button-core[loading]>.weui-loading.weui-btn_warn{background-color:#ce3c39}.taro-button-core{-webkit-tap-highlight-color:rgba(0,0,0,0);appearance:none;background-color:#f8f8f8;border-radius:5px;border-width:0;box-sizing:border-box;color:#000;display:block;font-size:18px;line-height:2.55555556;margin-left:auto;margin-right:auto;outline:0;overflow:hidden;padding-left:14px;padding-right:14px;position:relative;text-align:center;text-decoration:none;width:100%}.taro-button-core:focus{outline:0}.taro-button-core:not([disabled]):active{background-color:#dedede;color:rgba(0,0,0,.6)}.taro-button-core:after{border:1px solid rgba(0,0,0,.2);border-radius:10px;box-sizing:border-box;content:" ";height:200%;left:0;position:absolute;top:0;transform:scale(.5);transform-origin:0 0;width:200%}.taro-button-core+.taro-button-core{margin-top:15px}.taro-button-core[type=default]{background-color:#f8f8f8;color:#000}.taro-button-core[type=default]:not([disabled]):visited{color:#000}.taro-button-core[type=default]:not([disabled]):active{background-color:#dedede;color:rgba(0,0,0,.6)}.taro-button-core[size=mini]{display:inline-block;font-size:13px;line-height:2.3;padding:0 1.32em;width:auto}.taro-button-core[plain=true],.taro-button-core[plain=true][type=default],.taro-button-core[plain=true][type=primary]{background-color:transparent;border-width:1px}.taro-button-core[disabled]{color:hsla(0,0%,100%,.6)}.taro-button-core[disabled][type=default]{background-color:#f7f7f7;color:rgba(0,0,0,.3)}.taro-button-core[disabled][type=primary]{background-color:#9ed99d}.taro-button-core[disabled][type=warn]{background-color:#ec8b89}.taro-button-core[loading] .weui-loading{margin:-.2em .34em 0 0}.taro-button-core[loading][type=primary],.taro-button-core[loading][type=warn]{color:hsla(0,0%,100%,.6)}.taro-button-core[loading][type=primary]{background-color:#179b16}.taro-button-core[loading][type=warn]{background-color:#ce3c39}.taro-button-core[plain=true][type=primary]{border:1px solid #1aad19;color:#1aad19}.taro-button-core[plain=true][type=primary]:not([disabled]):active{background-color:transparent;border-color:rgba(26,173,25,.6);color:rgba(26,173,25,.6)}.taro-button-core[plain=true][type=primary]:after{border-width:0}.taro-button-core[plain=true][type=warn]{border:1px solid #e64340;color:#e64340}.taro-button-core[plain=true][type=warn]:not([disabled]):active{background-color:transparent;border-color:rgba(230,67,64,.6);color:rgba(230,67,64,.6)}.taro-button-core[plain=true][type=warn]:after{border-width:0}.taro-button-core[plain=true],.taro-button-core[plain=true][type=default]{border:1px solid #353535;color:#353535}.taro-button-core[plain=true]:not([disabled]):active,.taro-button-core[plain=true][type=default]:not([disabled]):active{background-color:transparent;border-color:rgba(53,53,53,.6);color:rgba(53,53,53,.6)}.taro-button-core[plain=true]:after,.taro-button-core[plain=true][type=default]:after{border-width:0}.taro-button-core[type=primary]{background-color:#1aad19;color:#fff}.taro-button-core[type=primary]:not([disabled]):visited{color:#fff}.taro-button-core[type=primary]:not([disabled]):active{background-color:#179b16;color:hsla(0,0%,100%,.6)}.taro-button-core[type=warn]{background-color:#e64340;color:#fff}.taro-button-core[type=warn]:not([disabled]):visited{color:#fff}.taro-button-core[type=warn]:not([disabled]):active{background-color:#ce3c39;color:hsla(0,0%,100%,.6)}.taro-button-core[plain=true][disabled],.taro-button-core[plain=true][disabled][type=primary]{background-color:#f7f7f7;border:1px solid rgba(0,0,0,.2);color:rgba(0,0,0,.3)}.weui-icon-circle:before{content:"\ea01"}.weui-icon-download:before{content:"\ea02"}.weui-icon-info:before{content:"\ea03"}.weui-icon-safe-success:before{content:"\ea04"}.weui-icon-safe-warn:before{content:"\ea05"}.weui-icon-success:before{content:"\ea06"}.weui-icon-success-circle:before{content:"\ea07"}.weui-icon-success-no-circle:before{content:"\ea08"}.weui-icon-waiting:before{content:"\ea09"}.weui-icon-waiting-circle:before{content:"\ea0a"}.weui-icon-warn:before{content:"\ea0b"}.weui-icon-info-circle:before{content:"\ea0c"}.weui-icon-cancel:before{content:"\ea0d"}.weui-icon-search:before{content:"\ea0e"}.weui-icon-clear:before{content:"\ea0f"}.weui-icon-back:before{content:"\ea10"}.weui-icon-delete:before{content:"\ea11"}.weui-icon-success{color:#09bb07;font-size:23px}.weui-icon-waiting{color:#10aeff;font-size:23px}.weui-icon-warn{color:#f43530;font-size:23px}.weui-icon-info{color:#10aeff;font-size:23px}.weui-icon-success-circle,.weui-icon-success-no-circle{color:#09bb07;font-size:23px}.weui-icon-waiting-circle{color:#10aeff;font-size:23px}.weui-icon-circle{color:#c9c9c9;font-size:23px}.weui-icon-download,.weui-icon-info-circle{color:#09bb07;font-size:23px}.weui-icon-safe-success{color:#09bb07}.weui-icon-safe-warn{color:#ffbe00}.weui-icon-cancel{color:#f43530;font-size:22px}.weui-icon-clear,.weui-icon-search{color:#b2b2b2;font-size:14px}.weui-icon-delete.weui-icon_gallery-delete{color:#fff;font-size:22px}.weui-icon_msg{font-size:93px}.weui-icon_msg.weui-icon-warn{color:#f76260}.weui-icon_msg-primary{font-size:93px}.weui-icon_msg-primary.weui-icon-warn{color:#ffbe00}img[src=""]{opacity:0}.taro-img{display:inline-block;font-size:0;height:240px;overflow:hidden;position:relative;width:320px}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{height:100%;width:100%}.taro-img__mode-aspectfit{height:100%;object-fit:contain;width:100%}.taro-img__mode-aspectfill{height:100%;object-fit:cover;width:100%}.taro-img__mode-top,.taro-img__mode-widthfix{width:100%}.taro-img__mode-bottom{bottom:0;position:absolute;width:100%}.taro-img__mode-left{height:100%}.taro-img__mode-right{height:100%}.taro-img__mode-right,.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{bottom:0;position:absolute}.taro-img__mode-bottomright{bottom:0;position:absolute;right:0}.taro-input-core{display:block}.weui-input{-webkit-appearance:none;background-color:transparent;border:0;color:inherit;font-size:inherit;height:1.4705882353em;line-height:1.4705882353;outline:0;width:100%}.weui-input::-webkit-inner-spin-button,.weui-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.rmc-pull-to-refresh-content{transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{min-height:100%}.rmc-pull-to-refresh-transition{transition:transform .3s}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:.2}to{opacity:1}}.rmc-pull-to-refresh-indicator{height:30px;line-height:10px;text-align:center}.rmc-pull-to-refresh-indicator>div{animation-fill-mode:both;animation:rmc-pull-to-refresh-indicator .5s linear 0s infinite;background-color:grey;border-radius:100%;display:inline-block;height:6px;margin:3px;width:6px}.rmc-pull-to-refresh-indicator>div:nth-child(0){animation-delay:-.1s!important}.rmc-pull-to-refresh-indicator>div:first-child{animation-delay:-.2s!important}.rmc-pull-to-refresh-indicator>div:nth-child(2){animation-delay:-.3s!important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}.taro-scroll{-webkit-overflow-scrolling:auto}.taro-scroll::-webkit-scrollbar{display:none}.taro-scroll-view{overflow:hidden}.taro-scroll-view__scroll-x{overflow-x:scroll;overflow-y:hidden}.taro-scroll-view__scroll-y{overflow-x:hidden;overflow-y:scroll}.swiper-container-wrapper{height:150px}.swiper-container{height:100%;overflow:visible;position:relative}.taro-text{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.taro-text__selectable{-moz-user-select:text;-webkit-user-select:text;-ms-user-select:text;user-select:text}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components-react",
|
|
3
|
-
"version": "4.0.5-alpha.
|
|
3
|
+
"version": "4.0.5-alpha.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main:h5": "dist/index.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
"classnames": "^2.2.5",
|
|
29
29
|
"swiper": "11.1.0",
|
|
30
30
|
"tslib": "^2.6.2",
|
|
31
|
-
"@tarojs/taro": "4.0.5-alpha.
|
|
32
|
-
"@tarojs/
|
|
33
|
-
"@tarojs/
|
|
31
|
+
"@tarojs/taro": "4.0.5-alpha.7",
|
|
32
|
+
"@tarojs/components": "4.0.5-alpha.7",
|
|
33
|
+
"@tarojs/shared": "4.0.5-alpha.7"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/preset-react": "^7.24.1",
|
|
37
37
|
"babel-preset-solid": "^1.8.15",
|
|
38
38
|
"react": "^18.2.0",
|
|
39
39
|
"solid-js": "^1.8.16",
|
|
40
|
-
"@tarojs/
|
|
41
|
-
"@tarojs/
|
|
40
|
+
"@tarojs/runtime": "4.0.5-alpha.7",
|
|
41
|
+
"@tarojs/helper": "4.0.5-alpha.7"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": "*",
|