@tarojs/components 3.5.0-beta.2 → 3.5.0-beta.3
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/cjs/taro-rich-text-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +8 -3
- package/dist/collection/components/rich-text/rich-text.js +1 -1
- package/dist/collection/components/swiper/swiper.js +8 -3
- package/dist/esm/taro-rich-text-core.entry.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +8 -3
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/taro-components/p-a2fd3c03.system.js +1 -1
- package/dist/taro-components/{p-49df1b65.system.entry.js → p-c59f3780.system.entry.js} +1 -1
- package/dist/taro-components/{p-7419e765.entry.js → p-f980e090.entry.js} +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist-h5/react/utils/reactify-wc.js +5 -2
- package/package.json +7 -3
- package/types/ScrollView.d.ts +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-8c7cf814.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),e(r)})().then((e=>o([["p-de726095",[[4,"taro-checkbox-core",{name:[1],value:[1],color:[1],id:[1025],checked:[4],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-checkbox-group-core",{name:[8]},[[0,"checkboxchange","function"]]]]],["p-8a2b7701",[[4,"taro-radio-core",{name:[1],value:[1],id:[1025],checked:[1028],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-radio-group-core",{name:[8]},[[0,"radiochange","function"]]]]],["p-
|
|
1
|
+
import{p as e,b as o}from"./p-8c7cf814.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),e(r)})().then((e=>o([["p-de726095",[[4,"taro-checkbox-core",{name:[1],value:[1],color:[1],id:[1025],checked:[4],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-checkbox-group-core",{name:[8]},[[0,"checkboxchange","function"]]]]],["p-8a2b7701",[[4,"taro-radio-core",{name:[1],value:[1],id:[1025],checked:[1028],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-radio-group-core",{name:[8]},[[0,"radiochange","function"]]]]],["p-f980e090",[[4,"taro-swiper-core",{indicatorDots:[4,"indicator-dots"],indicatorColor:[1,"indicator-color"],indicatorActiveColor:[1,"indicator-active-color"],autoplay:[4],current:[2],interval:[2],duration:[2],circular:[4],vertical:[4],previousMargin:[1,"previous-margin"],nextMargin:[1,"next-margin"],displayMultipleItems:[2,"display-multiple-items"],full:[4],swiperWrapper:[32],swiper:[32],isWillLoadCalled:[32],observer:[32],observerFirst:[32],observerLast:[32]}],[0,"taro-swiper-item-core",{itemId:[1,"item-id"]}]]],["p-8c6d8802",[[0,"taro-ad-core"]]],["p-e6ec7abc",[[0,"taro-ad-custom-core"]]],["p-884e6eab",[[0,"taro-audio-core",{src:[1],controls:[4],autoplay:[4],loop:[4],muted:[4],nativeProps:[16]}]]],["p-549636ca",[[0,"taro-block-core"]]],["p-17b78ad7",[[4,"taro-button-core",{disabled:[4],hoverClass:[1,"hover-class"],type:[1],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],size:[1],plain:[4],loading:[4],formType:[1,"form-type"],hover:[32],touch:[32]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-fee2ad82",[[0,"taro-camera-core"]]],["p-7d457a6a",[[0,"taro-canvas-core",{canvasId:[1,"canvas-id"],nativeProps:[16]}]]],["p-880791ee",[[0,"taro-cover-image-core",{src:[1],nativeProps:[16]}]]],["p-c1642977",[[4,"taro-cover-view-core",{animation:[1],hoverClass:[1,"hover-class"],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],hover:[32],touch:[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-b31e6cf0",[[0,"taro-custom-wrapper-core"]]],["p-13d03572",[[0,"taro-editor-core"]]],["p-aca73ca4",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-087d704b",[[0,"taro-functional-page-navigator-core"]]],["p-c995a3aa",[[0,"taro-icon-core",{type:[1],size:[8],color:[1]}]]],["p-92f26e22",[[0,"taro-image-core",{src:[1],mode:[1],lazyLoad:[4,"lazy-load"],nativeProps:[16],aspectFillMode:[32]}]]],["p-a9c3e575",[[0,"taro-input-core",{value:[1],type:[1],password:[4],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],confirmType:[1,"confirm-type"],name:[1],nativeProps:[16]}]]],["p-c33b552b",[[0,"taro-keyboard-accessory-core"]]],["p-7f726d39",[[4,"taro-label-core",{for:[1]}]]],["p-615b87e8",[[0,"taro-live-player-core"]]],["p-1fbf755f",[[0,"taro-live-pusher-core"]]],["p-c6d14c2b",[[0,"taro-map-core"]]],["p-14484d41",[[0,"taro-match-media-core"]]],["p-917185f3",[[0,"taro-movable-area-core"]]],["p-ee1ffbb0",[[0,"taro-movable-view-core"]]],["p-b640bd56",[[0,"taro-navigation-bar-core"]]],["p-3b067d1f",[[0,"taro-navigator-core",{hoverClass:[1,"hover-class"],url:[1],openType:[1,"open-type"],isHover:[4,"is-hover"],delta:[2]},[[0,"click","onClick"]]]]],["p-e56a303b",[[0,"taro-official-account-core"]]],["p-68246408",[[0,"taro-open-data-core"]]],["p-085c4322",[[0,"taro-page-container-core"]]],["p-3e7aced1",[[0,"taro-page-meta-core"]]],["p-0afc53da",[[0,"taro-picker-view-column-core",{col:[1],initialPosition:[1,"initial-position"],paddingVertical:[2,"padding-vertical"],isInit:[32],isMove:[32]},[[1,"scroll","onScroll"],[1,"mouseup","onMouseEnd"],[1,"mouseout","onMouseEnd"],[1,"mouseleave","onMouseEnd"],[1,"touchend","onTouchEnd"]]]]],["p-88e3bc92",[[4,"taro-picker-view-core",{indicatorStyle:[1,"indicator-style"],indicatorClass:[1,"indicator-class"],value:[16],maskStyle:[1,"mask-style"],maskClass:[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-06352f55",[[0,"taro-progress-core",{percent:[2],showInfo:[4,"show-info"],borderRadius:[8,"border-radius"],fontSize:[8,"font-size"],strokeWidth:[8,"stroke-width"],activeColor:[1,"active-color"],backgroundColor:[1,"background-color"],active:[4]}]]],["p-3e1e4626",[[4,"taro-pull-to-refresh",{prefixCls:[1,"prefix-cls"],distanceToRefresh:[2,"distance-to-refresh"],damping:[2],indicator:[16],currSt:[32],dragOnEdge:[32]}]]],["p-55646f03",[[0,"taro-rich-text-core",{nodes:[1]}]]],["p-f5377a15",[[4,"taro-scroll-view-core",{scrollX:[4,"scroll-x"],scrollY:[4,"scroll-y"],upperThreshold:[8,"upper-threshold"],lowerThreshold:[8,"lower-threshold"],mpScrollTop:[8,"scroll-top"],mpScrollLeft:[8,"scroll-left"],mpScrollIntoView:[1,"scroll-into-view"],scrollWithAnimation:[4,"scroll-with-animation"]}]]],["p-b455351e",[[0,"taro-share-element-core"]]],["p-7f8ddefe",[[0,"taro-slider-core",{min:[2],max:[2],step:[2],disabled:[4],value:[1026],activeColor:[1,"active-color"],backgroundColor:[1,"background-color"],blockSize:[2,"block-size"],blockColor:[1,"block-color"],showValue:[4,"show-value"],name:[1],val:[32],totalWidth:[32],touching:[32],ogX:[32],touchId:[32],percent:[32],ogPercent:[32],isWillLoadCalled:[32]}]]],["p-f425f3b5",[[0,"taro-slot-core"]]],["p-58cbfd17",[[0,"taro-switch-core",{type:[1],checked:[4],color:[1],name:[1],disabled:[4],nativeProps:[16],isChecked:[32],isWillLoadCalled:[32]}]]],["p-1d5fa0f3",[[0,"taro-tabbar",{conf:[16],list:[32],borderStyle:[32],backgroundColor:[32],color:[32],selectedColor:[32],selectedIndex:[32],status:[32]}]]],["p-8ca394d6",[[4,"taro-text-core",{selectable:[4]}]]],["p-34d60fc8",[[0,"taro-textarea-core",{value:[1],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],autoHeight:[4,"auto-height"],name:[1],nativeProps:[16],line:[32]}]]],["p-1e44fcfd",[[4,"taro-view-core",{animation:[1],hoverClass:[1,"hover-class"],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],hover:[32],touch:[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-9ff180ae",[[0,"taro-voip-room-core"]]],["p-c0875abf",[[0,"taro-web-view-core",{src:[1]}]]],["p-e5fdbc1c",[[4,"taro-picker-core",{mode:[1],disabled:[4],range:[16],rangeKey:[1,"range-key"],value:[8],start:[1],end:[1],fields:[1],name:[1],pickerValue:[32],height:[32],hidden:[32],fadeOut:[32],isWillLoadCalled:[32]}],[0,"taro-picker-group",{mode:[1],range:[16],rangeKey:[1,"range-key"],height:[2],columnId:[1,"column-id"],updateHeight:[16],onColumnChange:[16],updateDay:[16],startY:[32],preY:[32],hadMove:[32],touchEnd:[32],isMove:[32]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-9eb01395",[[0,"taro-video-core",{src:[1],duration:[2],controls:[4],autoplay:[4],loop:[4],muted:[4],initialTime:[2,"initial-time"],poster:[1],objectFit:[1,"object-fit"],showProgress:[4,"show-progress"],showFullscreenBtn:[4,"show-fullscreen-btn"],showPlayBtn:[4,"show-play-btn"],showCenterPlayBtn:[4,"show-center-play-btn"],showMuteBtn:[4,"show-mute-btn"],danmuList:[16],danmuBtn:[4,"danmu-btn"],enableDanmu:[4,"enable-danmu"],enablePlayGesture:[4,"enable-play-gesture"],enableProgressGesture:[4,"enable-progress-gesture"],vslideGesture:[4,"vslide-gesture"],vslideGestureInFullscreen:[4,"vslide-gesture-in-fullscreen"],nativeProps:[16],_duration:[32],_enableDanmu:[32],isPlaying:[32],isFirst:[32],isFullScreen:[32],fullScreenTimestamp:[32],isMute:[32],play:[64],pause:[64],stop:[64],seek:[64],requestFullScreen:[64],exitFullScreen:[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{controls:[4],currentTime:[2,"current-time"],duration:[2],isPlaying:[4,"is-playing"],pauseFunc:[16],playFunc:[16],seekFunc:[16],showPlayBtn:[4,"show-play-btn"],showProgress:[4,"show-progress"],setProgressBall:[64],toggleVisibility:[64],getIsDraggingProgressBall:[64],setCurrentTime:[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{enable:[4],danmuList:[32],sendDanmu:[64],tick:[64]}]]]],e)));
|
|
@@ -23,7 +23,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
23
23
|
import React, { createElement, createRef } from 'react'; // eslint-disable-next-line
|
|
24
24
|
|
|
25
25
|
var h = React.createElement;
|
|
26
|
-
var SCROLL_VIEW = 'taro-scroll-view-core';
|
|
26
|
+
var SCROLL_VIEW = 'taro-scroll-view-core';
|
|
27
|
+
var IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i; // 为了不要覆盖 wc 中 host 内置的 class 和 stencil 加入的 class
|
|
27
28
|
|
|
28
29
|
function getClassName(wc, prevProps, props) {
|
|
29
30
|
var classList = Array.from(wc.classList);
|
|
@@ -48,8 +49,10 @@ function updateStyle(dom, key, val) {
|
|
|
48
49
|
if (/^--/.test(key)) {
|
|
49
50
|
// css variable
|
|
50
51
|
dom.style.setProperty(key, val);
|
|
51
|
-
} else {
|
|
52
|
+
} else if (typeof val !== 'number' || IS_NON_DIMENSIONAL.test(key)) {
|
|
52
53
|
dom.style[key] = val;
|
|
54
|
+
} else {
|
|
55
|
+
dom.style[key] = val + 'px';
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "3.5.0-beta.
|
|
3
|
+
"version": "3.5.0-beta.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@stencil/core": "~2.13.0",
|
|
43
43
|
"@stencil/sass": "1.5.2",
|
|
44
|
-
"@tarojs/taro": "3.5.0-beta.
|
|
44
|
+
"@tarojs/taro": "3.5.0-beta.3",
|
|
45
45
|
"better-scroll": "^1.14.1",
|
|
46
46
|
"classnames": "^2.2.5",
|
|
47
47
|
"hls.js": "^1.1.5",
|
|
@@ -54,7 +54,11 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"jquery": "^3.4.1",
|
|
56
56
|
"karmatic": "^2.1.0",
|
|
57
|
+
"react": "^17.0.2",
|
|
58
|
+
"react-dom": "^17.0.2",
|
|
57
59
|
"simulant": "^0.2.2",
|
|
60
|
+
"style-loader": "1.3.0",
|
|
61
|
+
"webpack": "4.46.0",
|
|
58
62
|
"workbox-build": "4.3.1"
|
|
59
63
|
},
|
|
60
64
|
"peerDependenciesMeta": {
|
|
@@ -68,5 +72,5 @@
|
|
|
68
72
|
"optional": true
|
|
69
73
|
}
|
|
70
74
|
},
|
|
71
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "bd1aa21707e51500eac9b16526e4ba4171fa8e5f"
|
|
72
76
|
}
|
package/types/ScrollView.d.ts
CHANGED
|
@@ -225,15 +225,15 @@ declare namespace ScrollViewProps {
|
|
|
225
225
|
* const Threshold = 20
|
|
226
226
|
* const vStyleA = {
|
|
227
227
|
* height: '150px',
|
|
228
|
-
* '
|
|
228
|
+
* 'backgroundColor': 'rgb(26, 173, 25)'
|
|
229
229
|
* }
|
|
230
230
|
* const vStyleB = {
|
|
231
231
|
* height: '150px',
|
|
232
|
-
* '
|
|
232
|
+
* 'backgroundColor': 'rgb(39,130,215)'
|
|
233
233
|
* }
|
|
234
234
|
* const vStyleC = {
|
|
235
235
|
* height: '150px',
|
|
236
|
-
* '
|
|
236
|
+
* 'backgroundColor': 'rgb(241,241,241)',
|
|
237
237
|
* color: '#333'
|
|
238
238
|
* }
|
|
239
239
|
* return (
|