@tarojs/components 3.3.14 → 3.3.18
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/loader.cjs.js +1 -1
- package/dist/cjs/taro-ad-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-components.cjs.js +1 -1
- package/dist/cjs/taro-cover-image-core.cjs.entry.js +17 -3
- package/dist/cjs/taro-cover-view-core.cjs.entry.js +49 -3
- package/dist/cjs/taro-editor-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-image-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-input-core.cjs.entry.js +4 -4
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-live-player-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-map-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-match-media-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-navigator-core.cjs.entry.js +10 -6
- package/dist/cjs/taro-official-account-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-page-container-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +7 -3
- package/dist/cjs/taro-share-element-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-slot-core.cjs.entry.js +19 -0
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +10 -1
- package/dist/cjs/taro-tabbar.cjs.entry.js +100 -46
- package/dist/cjs/taro-textarea-core.cjs.entry.js +63 -3
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +19 -0
- package/dist/collection/collection-manifest.json +21 -5
- package/dist/collection/components/ad/ad.js +11 -0
- package/dist/collection/components/{cover-view/cover-image.js → ad-custom/ad-custom.js} +3 -3
- package/dist/collection/components/cover-image/cover-image.js +94 -0
- package/dist/collection/components/cover-image/style/index.css +5 -0
- package/dist/collection/components/cover-view/cover-view.js +166 -4
- package/dist/collection/components/cover-view/style/cover-view.css +3 -0
- package/dist/collection/components/editor/editor.js +11 -0
- package/dist/collection/components/functional-page-navigator/functional-page-navigator.js +11 -0
- package/dist/collection/components/image/image.js +1 -1
- package/dist/collection/components/image/style/index.css +2 -2
- package/dist/collection/components/input/input.js +4 -4
- package/dist/collection/components/keyboard-accessory/keyboard-accessory.js +11 -0
- package/dist/collection/components/live-player/live-player.js +11 -0
- package/dist/collection/components/live-pusher/live-pusher.js +11 -0
- package/dist/collection/components/map/map.js +11 -0
- package/dist/collection/components/match-media/match-media.js +11 -0
- package/dist/collection/components/{movable-view → movable-area}/movable-area.js +0 -0
- package/dist/collection/components/{movable-view → movable-area}/movable-view.js +0 -0
- package/dist/collection/components/navigation-bar/navigation-bar.js +11 -0
- package/dist/collection/components/navigator/navigator.js +1 -1
- package/dist/collection/components/official-account/official-account.js +11 -0
- package/dist/collection/components/page-container/page-container.js +11 -0
- package/dist/collection/components/page-meta/page-meta.js +11 -0
- package/dist/collection/components/{picker-view-column → picker-view}/picker-view-column.js +0 -0
- package/dist/collection/components/{pull-down-refresh → pull-to-refresh}/pull-to-refresh.js +1 -1
- package/dist/collection/components/{pull-down-refresh → pull-to-refresh}/style/index.css +0 -0
- package/dist/collection/components/share-element/share-element.js +11 -0
- package/dist/collection/components/slot/slot.js +11 -0
- package/dist/collection/components/swiper/swiper.js +10 -1
- package/dist/collection/components/tabbar/tabbar.js +82 -24
- package/dist/collection/components/textarea/style/index.css +6 -2
- package/dist/collection/components/textarea/textarea.js +98 -3
- package/dist/collection/components/voip-room/voip-room.js +11 -0
- package/dist/collection/utils/index.js +50 -64
- package/dist/esm/loader.js +1 -1
- package/dist/esm/taro-ad-core.entry.js +15 -0
- package/dist/esm/taro-ad-custom-core.entry.js +15 -0
- package/dist/esm/taro-components.js +1 -1
- package/dist/esm/taro-cover-image-core.entry.js +18 -4
- package/dist/esm/taro-cover-view-core.entry.js +50 -4
- package/dist/esm/taro-editor-core.entry.js +15 -0
- package/dist/esm/taro-functional-page-navigator-core.entry.js +15 -0
- package/dist/esm/taro-image-core.entry.js +2 -2
- package/dist/esm/taro-input-core.entry.js +4 -4
- package/dist/esm/taro-keyboard-accessory-core.entry.js +15 -0
- package/dist/esm/taro-live-player-core.entry.js +15 -0
- package/dist/esm/taro-live-pusher-core.entry.js +15 -0
- package/dist/esm/taro-map-core.entry.js +15 -0
- package/dist/esm/taro-match-media-core.entry.js +15 -0
- package/dist/esm/taro-navigation-bar-core.entry.js +15 -0
- package/dist/esm/taro-navigator-core.entry.js +1 -1
- package/dist/esm/taro-official-account-core.entry.js +15 -0
- package/dist/esm/taro-page-container-core.entry.js +15 -0
- package/dist/esm/taro-page-meta-core.entry.js +15 -0
- package/dist/esm/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm/taro-share-element-core.entry.js +15 -0
- package/dist/esm/taro-slot-core.entry.js +15 -0
- package/dist/esm/taro-swiper-core_2.entry.js +10 -1
- package/dist/esm/taro-tabbar.entry.js +79 -29
- package/dist/esm/taro-textarea-core.entry.js +63 -3
- package/dist/esm/taro-voip-room-core.entry.js +15 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-ad-core.entry.js +1 -0
- package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -0
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-editor-core.entry.js +1 -0
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -0
- package/dist/esm-es5/taro-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -0
- package/dist/esm-es5/taro-live-player-core.entry.js +1 -0
- package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -0
- package/dist/esm-es5/taro-map-core.entry.js +1 -0
- package/dist/esm-es5/taro-match-media-core.entry.js +1 -0
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -0
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -0
- package/dist/esm-es5/taro-page-container-core.entry.js +1 -0
- package/dist/esm-es5/taro-page-meta-core.entry.js +1 -0
- package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm-es5/taro-share-element-core.entry.js +1 -0
- package/dist/esm-es5/taro-slot-core.entry.js +1 -0
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js +1 -0
- package/dist/taro-components/{p-70f40e3a.entry.js → p-02b84386.entry.js} +1 -1
- package/dist/taro-components/{p-af9ec312.system.entry.js → p-0a0377f6.system.entry.js} +1 -1
- package/dist/taro-components/p-14095f6b.system.entry.js +1 -0
- package/dist/taro-components/p-14fd68ec.entry.js +1 -0
- package/dist/taro-components/p-16d9e6b9.system.entry.js +1 -0
- package/dist/taro-components/p-1cc97957.entry.js +1 -0
- package/dist/taro-components/p-30bfacb9.system.js +1 -1
- package/dist/taro-components/p-33bcdee9.entry.js +1 -0
- package/dist/taro-components/p-37594e84.entry.js +1 -0
- package/dist/taro-components/p-38d8fa46.system.entry.js +1 -0
- package/dist/taro-components/{p-098f4931.system.entry.js → p-3984f596.system.entry.js} +1 -1
- package/dist/taro-components/p-39bee235.entry.js +1 -0
- package/dist/taro-components/p-3ed0783c.system.entry.js +1 -0
- package/dist/taro-components/p-4288566a.system.entry.js +1 -0
- package/dist/taro-components/p-432f803f.entry.js +1 -0
- package/dist/taro-components/p-4d643967.entry.js +1 -0
- package/dist/taro-components/p-52ef77b2.entry.js +1 -0
- package/dist/taro-components/p-53297f27.entry.js +1 -0
- package/dist/taro-components/p-5e20dff4.system.entry.js +1 -0
- package/dist/taro-components/p-60a15326.system.entry.js +1 -0
- package/dist/taro-components/p-6422a968.system.entry.js +1 -0
- package/dist/taro-components/p-79b3c05a.entry.js +1 -0
- package/dist/taro-components/p-81e1d9a3.system.entry.js +1 -0
- package/dist/taro-components/p-8235b7b7.system.entry.js +1 -0
- package/dist/taro-components/p-82741605.entry.js +1 -0
- package/dist/taro-components/p-8415cd92.entry.js +1 -0
- package/dist/taro-components/p-8f0e3f13.entry.js +1 -0
- package/dist/taro-components/p-9b9727c7.entry.js +1 -0
- package/dist/taro-components/p-9bd65170.system.entry.js +1 -0
- package/dist/taro-components/p-9e7a85ae.entry.js +1 -0
- package/dist/taro-components/p-a4fdb95b.system.entry.js +1 -0
- package/dist/taro-components/p-a5c0a7e3.entry.js +1 -0
- package/dist/taro-components/p-ab55aacd.system.entry.js +1 -0
- package/dist/taro-components/{p-8cf16235.entry.js → p-b2ec0cf1.entry.js} +1 -1
- package/dist/taro-components/p-b3abedf8.entry.js +1 -0
- package/dist/taro-components/p-bc08a702.system.entry.js +1 -0
- package/dist/taro-components/p-becfab60.system.entry.js +1 -0
- package/dist/taro-components/p-c7cfcb8e.entry.js +1 -0
- package/dist/taro-components/p-cb8099dd.entry.js +1 -0
- package/dist/taro-components/p-cdf144cb.system.entry.js +1 -0
- package/dist/taro-components/p-d8363f59.system.entry.js +1 -0
- package/dist/taro-components/{p-2ef4681b.system.entry.js → p-d9494012.system.entry.js} +1 -1
- package/dist/taro-components/p-dfe76645.entry.js +1 -0
- package/dist/taro-components/p-e1e289bb.entry.js +1 -0
- package/dist/taro-components/p-e42b782e.system.entry.js +1 -0
- package/dist/taro-components/p-ed3ff1e4.entry.js +1 -0
- package/dist/taro-components/p-effd64d5.system.entry.js +1 -0
- package/dist/taro-components/p-f05422a6.entry.js +1 -0
- package/dist/taro-components/p-f70b6a12.system.entry.js +1 -0
- package/dist/taro-components/p-f928a72e.system.entry.js +1 -0
- package/dist/taro-components/p-fac09a5c.system.entry.js +1 -0
- package/dist/taro-components/taro-components.css +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/types/components/ad/ad.d.ts +4 -0
- package/dist/types/components/{cover-view/cover-image.d.ts → ad-custom/ad-custom.d.ts} +1 -1
- package/dist/types/components/cover-image/cover-image.d.ts +11 -0
- package/dist/types/components/cover-view/cover-view.d.ts +14 -2
- package/dist/types/components/editor/editor.d.ts +4 -0
- package/dist/types/components/functional-page-navigator/functional-page-navigator.d.ts +4 -0
- package/dist/types/components/keyboard-accessory/keyboard-accessory.d.ts +4 -0
- package/dist/types/components/live-player/live-player.d.ts +4 -0
- package/dist/types/components/live-pusher/live-pusher.d.ts +4 -0
- package/dist/types/components/map/map.d.ts +4 -0
- package/dist/types/components/match-media/match-media.d.ts +4 -0
- package/dist/types/components/{movable-view → movable-area}/movable-area.d.ts +0 -0
- package/dist/types/components/{movable-view → movable-area}/movable-view.d.ts +0 -0
- package/dist/types/components/navigation-bar/navigation-bar.d.ts +4 -0
- package/dist/types/components/official-account/official-account.d.ts +4 -0
- package/dist/types/components/page-container/page-container.d.ts +4 -0
- package/dist/types/components/page-meta/page-meta.d.ts +4 -0
- package/dist/types/components/{picker-view-column → picker-view}/picker-view-column.d.ts +0 -0
- package/dist/types/components/{pull-down-refresh → pull-to-refresh}/pull-to-refresh.d.ts +0 -0
- package/dist/types/components/share-element/share-element.d.ts +4 -0
- package/dist/types/components/slot/slot.d.ts +4 -0
- package/dist/types/components/swiper/swiper.d.ts +1 -0
- package/dist/types/components/tabbar/tabbar.d.ts +21 -2
- package/dist/types/components/textarea/textarea.d.ts +6 -0
- package/dist/types/components/voip-room/voip-room.d.ts +4 -0
- package/dist/types/components.d.ts +226 -0
- package/dist/types/utils/index.d.ts +8 -0
- package/dist-h5/react/index.js +2 -1
- package/dist-h5/vue/createComponent.js +4 -0
- package/dist-h5/vue/createFormsComponent.js +8 -1
- package/dist-h5/vue/simpleComponents.js +1 -1
- package/package.json +4 -4
- package/types/Ad.d.ts +6 -6
- package/types/AdCustom.d.ts +50 -0
- package/types/Button.d.ts +2 -2
- package/types/CoverImage.d.ts +3 -3
- package/types/CoverView.d.ts +3 -3
- package/types/Image.d.ts +8 -2
- package/types/KeyboardAccessory.d.ts +29 -0
- package/types/MovableView.d.ts +1 -1
- package/types/PageContainer.d.ts +115 -0
- package/types/ShareElement.d.ts +39 -0
- package/types/View.d.ts +1 -1
- package/types/VoipRoom.d.ts +71 -0
- package/types/common.d.ts +3 -8
- package/types/index.d.ts +72 -46
- package/virtual-list/react/createListComponent.js +4 -3
- package/dist/taro-components/p-0fb7f599.entry.js +0 -1
- package/dist/taro-components/p-2c5d57af.entry.js +0 -1
- package/dist/taro-components/p-382cabbc.system.entry.js +0 -1
- package/dist/taro-components/p-4ff67760.entry.js +0 -1
- package/dist/taro-components/p-5d84eaf0.entry.js +0 -1
- package/dist/taro-components/p-69be8189.system.entry.js +0 -1
- package/dist/taro-components/p-b685a487.system.entry.js +0 -1
- package/dist/taro-components/p-b6e0dca6.entry.js +0 -1
- package/dist/taro-components/p-c221cebb.system.entry.js +0 -1
- package/dist/taro-components/p-c5722042.entry.js +0 -1
- package/dist/taro-components/p-d52009d1.system.entry.js +0 -1
- package/dist/taro-components/p-f8d0dabb.entry.js +0 -1
- package/dist/taro-components/p-f9013b36.system.entry.js +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-7464647f.js');
|
|
6
|
+
|
|
7
|
+
let ShareElement = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
componentDidLoad() {
|
|
12
|
+
console.error('H5 暂不支持 ShareElement 组件!');
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (index.h(index.Host, null));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.taro_share_element_core = ShareElement;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-7464647f.js');
|
|
6
|
+
|
|
7
|
+
let Slot = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
componentDidLoad() {
|
|
12
|
+
console.error('H5 暂不支持 Slot 组件!');
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (index.h(index.Host, null));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.taro_slot_core = Slot;
|
|
@@ -9943,6 +9943,11 @@ let Swiper = class {
|
|
|
9943
9943
|
this.swiper.loopCreate();
|
|
9944
9944
|
}
|
|
9945
9945
|
}, 500);
|
|
9946
|
+
this.handleSwiperSize = debounce(() => {
|
|
9947
|
+
if (this.swiper && !this.circular) {
|
|
9948
|
+
this.swiper.updateSlides();
|
|
9949
|
+
}
|
|
9950
|
+
}, 50);
|
|
9946
9951
|
}
|
|
9947
9952
|
watchCurrent(newVal) {
|
|
9948
9953
|
if (!this.isWillLoadCalled)
|
|
@@ -10006,6 +10011,8 @@ let Swiper = class {
|
|
|
10006
10011
|
this.el.removeChild = (oldChild) => {
|
|
10007
10012
|
return newVal.removeChild(oldChild);
|
|
10008
10013
|
};
|
|
10014
|
+
this.el.addEventListener('DOMNodeInserted', this.handleSwiperSize);
|
|
10015
|
+
this.el.addEventListener('DOMNodeRemoved', this.handleSwiperSize);
|
|
10009
10016
|
}
|
|
10010
10017
|
watchCircular() {
|
|
10011
10018
|
if (this.swiper) {
|
|
@@ -10039,6 +10046,8 @@ let Swiper = class {
|
|
|
10039
10046
|
}
|
|
10040
10047
|
disconnectedCallback() {
|
|
10041
10048
|
var _a, _b, _c, _d, _e, _f;
|
|
10049
|
+
this.el.removeEventListener('DOMNodeInserted', this.handleSwiperSize);
|
|
10050
|
+
this.el.removeEventListener('DOMNodeRemoved', this.handleSwiperSize);
|
|
10042
10051
|
(_b = (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
10043
10052
|
(_d = (_c = this.observerFirst) === null || _c === void 0 ? void 0 : _c.disconnect) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
10044
10053
|
(_f = (_e = this.observerLast) === null || _e === void 0 ? void 0 : _e.disconnect) === null || _f === void 0 ? void 0 : _f.call(_e);
|
|
@@ -10082,7 +10091,7 @@ let Swiper = class {
|
|
|
10082
10091
|
observerUpdate(_swiper, e) {
|
|
10083
10092
|
const target = e.target;
|
|
10084
10093
|
const className = target && typeof target.className === 'string' ? target.className : '';
|
|
10085
|
-
if (className.includes('taro_page') && target.style.display
|
|
10094
|
+
if (className.includes('taro_page') && target.style.display !== 'none') {
|
|
10086
10095
|
if (that.autoplay && target.contains(_swiper.$el[0])) {
|
|
10087
10096
|
_swiper.slideTo(that.current);
|
|
10088
10097
|
}
|
|
@@ -3,8 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index$1 = require('./index-7464647f.js');
|
|
6
|
+
const Taro = require('@tarojs/taro');
|
|
6
7
|
const index = require('./index-cde74e58.js');
|
|
7
8
|
|
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
const Taro__default = /*#__PURE__*/_interopDefaultLegacy(Taro);
|
|
12
|
+
|
|
8
13
|
function isAbsolute(pathname) {
|
|
9
14
|
return pathname.charAt(0) === '/';
|
|
10
15
|
}
|
|
@@ -87,22 +92,18 @@ const splitUrl = _url => {
|
|
|
87
92
|
query: null,
|
|
88
93
|
fragment: null
|
|
89
94
|
};
|
|
90
|
-
|
|
91
95
|
pos = url.indexOf('#');
|
|
92
96
|
if (pos > -1) {
|
|
93
97
|
res.fragment = url.substring(pos + 1);
|
|
94
98
|
url = url.substring(0, pos);
|
|
95
99
|
}
|
|
96
|
-
|
|
97
100
|
pos = url.indexOf('?');
|
|
98
101
|
if (pos > -1) {
|
|
99
102
|
res.query = url.substring(pos + 1);
|
|
100
103
|
url = url.substring(0, pos);
|
|
101
104
|
}
|
|
102
|
-
|
|
103
105
|
res.path = url;
|
|
104
|
-
|
|
105
|
-
return res
|
|
106
|
+
return res;
|
|
106
107
|
};
|
|
107
108
|
|
|
108
109
|
const TabbarItem = ({ index: index$2, isSelected = false, textColor, iconPath, badgeText, showRedDot = false, text, onSelect }) => {
|
|
@@ -132,8 +133,6 @@ const TabbarItem = ({ index: index$2, isSelected = false, textColor, iconPath, b
|
|
|
132
133
|
|
|
133
134
|
const indexCss = "html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;height:100%;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.taro-tabbar__panel{-ms-flex:1;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}.taro-tabbar__tabbar{position:relative;height:50px;width:100%;-webkit-transition:bottom 0.2s, top 0.2s;transition:bottom 0.2s, top 0.2s}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{bottom:0}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{top:-52px;-ms-flex:0 0;flex:0 0}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";
|
|
134
135
|
|
|
135
|
-
// IGNORE: 由于 @tarojs/taro 与 @tarojs/components 中存在循环依赖,暂时使用 commonjs 引用
|
|
136
|
-
const Taro = require('@tarojs/taro');
|
|
137
136
|
// const removeLeadingSlash = str => str.replace(/^\.?\//, '')
|
|
138
137
|
// const removeTrailingSearch = str => str.replace(/\?[\s\S]*$/, '')
|
|
139
138
|
const addLeadingSlash = str => str[0] === '/' ? str : `/${str}`;
|
|
@@ -156,18 +155,18 @@ let Tabbar = class {
|
|
|
156
155
|
this.status = STATUS_SHOW;
|
|
157
156
|
this.getOriginUrl = (url) => {
|
|
158
157
|
const customRoute = this.customRoutes.filter(([, customUrl]) => {
|
|
159
|
-
const
|
|
160
|
-
const
|
|
161
|
-
return
|
|
158
|
+
const pathA = splitUrl(customUrl).path;
|
|
159
|
+
const pathB = splitUrl(url).path;
|
|
160
|
+
return pathA === pathB;
|
|
162
161
|
});
|
|
163
162
|
return customRoute.length ? customRoute[0][0] : url;
|
|
164
163
|
};
|
|
165
164
|
this.getSelectedIndex = (url) => {
|
|
166
165
|
let foundIndex = -1;
|
|
167
166
|
this.list.forEach(({ pagePath }, idx) => {
|
|
168
|
-
const
|
|
169
|
-
const
|
|
170
|
-
if (
|
|
167
|
+
const pathA = splitUrl(url).path;
|
|
168
|
+
const pathB = splitUrl(pagePath).path;
|
|
169
|
+
if (pathA === pathB) {
|
|
171
170
|
foundIndex = idx;
|
|
172
171
|
}
|
|
173
172
|
});
|
|
@@ -175,7 +174,7 @@ let Tabbar = class {
|
|
|
175
174
|
};
|
|
176
175
|
this.switchTab = (index) => {
|
|
177
176
|
this.selectedIndex = index;
|
|
178
|
-
|
|
177
|
+
Taro__default['default'].switchTab({
|
|
179
178
|
url: this.list[index].pagePath
|
|
180
179
|
});
|
|
181
180
|
};
|
|
@@ -210,23 +209,27 @@ let Tabbar = class {
|
|
|
210
209
|
}
|
|
211
210
|
this.selectedIndex = this.getSelectedIndex(this.getOriginUrl(currentPage));
|
|
212
211
|
};
|
|
213
|
-
this.setTabBarBadgeHandler = ({ index, text, errorHandler }) => {
|
|
214
|
-
const list = this.list;
|
|
212
|
+
this.setTabBarBadgeHandler = ({ index, text, successHandler, errorHandler }) => {
|
|
213
|
+
const list = [...this.list];
|
|
215
214
|
if (index in list) {
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
list[index].showRedDot = false;
|
|
216
|
+
list[index].badgeText = text;
|
|
217
|
+
successHandler({
|
|
218
|
+
errMsg: 'setTabBarBadge:ok'
|
|
219
|
+
});
|
|
218
220
|
}
|
|
219
221
|
else {
|
|
220
222
|
errorHandler({
|
|
221
223
|
errMsg: 'setTabBarBadge:fail tabbar item not found'
|
|
222
224
|
});
|
|
223
225
|
}
|
|
226
|
+
this.list = list;
|
|
224
227
|
};
|
|
225
228
|
this.removeTabBarBadgeHandler = ({ index, successHandler, errorHandler }) => {
|
|
226
|
-
const list = this.list;
|
|
229
|
+
const list = [...this.list];
|
|
227
230
|
if (index in list) {
|
|
228
|
-
|
|
229
|
-
|
|
231
|
+
list[index].badgeText = null;
|
|
232
|
+
list[index].badgeText = null;
|
|
230
233
|
successHandler({
|
|
231
234
|
errMsg: 'removeTabBarBadge:ok'
|
|
232
235
|
});
|
|
@@ -236,9 +239,10 @@ let Tabbar = class {
|
|
|
236
239
|
errMsg: 'removeTabBarBadge:fail tabbar item not found'
|
|
237
240
|
});
|
|
238
241
|
}
|
|
242
|
+
this.list = list;
|
|
239
243
|
};
|
|
240
244
|
this.showTabBarRedDotHandler = ({ index, successHandler, errorHandler }) => {
|
|
241
|
-
const list = this.list;
|
|
245
|
+
const list = [...this.list];
|
|
242
246
|
if (index in list) {
|
|
243
247
|
list[index].badgeText = null;
|
|
244
248
|
list[index].showRedDot = true;
|
|
@@ -251,9 +255,10 @@ let Tabbar = class {
|
|
|
251
255
|
errMsg: 'showTabBarRedDot:fail tabbar item not found'
|
|
252
256
|
});
|
|
253
257
|
}
|
|
258
|
+
this.list = list;
|
|
254
259
|
};
|
|
255
260
|
this.hideTabBarRedDotHandler = ({ index, successHandler, errorHandler }) => {
|
|
256
|
-
const list = this.list;
|
|
261
|
+
const list = [...this.list];
|
|
257
262
|
if (index in list) {
|
|
258
263
|
list[index].showRedDot = false;
|
|
259
264
|
successHandler({
|
|
@@ -265,6 +270,7 @@ let Tabbar = class {
|
|
|
265
270
|
errMsg: 'hideTabBarRedDot:fail tabbar item not found'
|
|
266
271
|
});
|
|
267
272
|
}
|
|
273
|
+
this.list = list;
|
|
268
274
|
};
|
|
269
275
|
this.showTabBarHandler = ({ successHandler }) => {
|
|
270
276
|
this.status = STATUS_SHOW;
|
|
@@ -278,6 +284,39 @@ let Tabbar = class {
|
|
|
278
284
|
errMsg: 'hideTabBar:ok'
|
|
279
285
|
});
|
|
280
286
|
};
|
|
287
|
+
this.setTabBarStyleHandler = ({ color, selectedColor, backgroundColor, borderStyle, successHandler }) => {
|
|
288
|
+
if (backgroundColor)
|
|
289
|
+
this.backgroundColor = backgroundColor;
|
|
290
|
+
if (borderStyle)
|
|
291
|
+
this.borderStyle = borderStyle;
|
|
292
|
+
if (color)
|
|
293
|
+
this.color = color;
|
|
294
|
+
if (selectedColor)
|
|
295
|
+
this.selectedColor = selectedColor;
|
|
296
|
+
successHandler({
|
|
297
|
+
errMsg: 'setTabBarStyle:ok'
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
this.setTabBarItemHandler = ({ index, iconPath, selectedIconPath, text, successHandler, errorHandler }) => {
|
|
301
|
+
const list = [...this.list];
|
|
302
|
+
if (index in list) {
|
|
303
|
+
if (iconPath)
|
|
304
|
+
list[index].iconPath = iconPath;
|
|
305
|
+
if (selectedIconPath)
|
|
306
|
+
list[index].selectedIconPath = selectedIconPath;
|
|
307
|
+
if (text)
|
|
308
|
+
list[index].text = text;
|
|
309
|
+
successHandler({
|
|
310
|
+
errMsg: 'setTabBarItem:ok'
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
else {
|
|
314
|
+
errorHandler({
|
|
315
|
+
errMsg: 'setTabBarItem:fail tabbar item not found'
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
this.list = list;
|
|
319
|
+
};
|
|
281
320
|
const list = this.conf.list;
|
|
282
321
|
const customRoutes = this.conf.customRoutes;
|
|
283
322
|
if (Object.prototype.toString.call(list) !== '[object Array]' ||
|
|
@@ -286,8 +325,15 @@ let Tabbar = class {
|
|
|
286
325
|
throw new Error('tabBar 配置错误');
|
|
287
326
|
}
|
|
288
327
|
this.homePage = addLeadingSlash(this.conf.homePage);
|
|
289
|
-
for (
|
|
290
|
-
|
|
328
|
+
for (let key in customRoutes) {
|
|
329
|
+
const path = customRoutes[key];
|
|
330
|
+
key = addLeadingSlash(key);
|
|
331
|
+
if (typeof path === 'string') {
|
|
332
|
+
this.customRoutes.push([key, addLeadingSlash(path)]);
|
|
333
|
+
}
|
|
334
|
+
else if ((path === null || path === void 0 ? void 0 : path.length) > 0) {
|
|
335
|
+
this.customRoutes.push(...path.map(p => [key, addLeadingSlash(p)]));
|
|
336
|
+
}
|
|
291
337
|
}
|
|
292
338
|
list.forEach(item => {
|
|
293
339
|
if (item.pagePath.indexOf('/') !== 0) {
|
|
@@ -295,6 +341,10 @@ let Tabbar = class {
|
|
|
295
341
|
}
|
|
296
342
|
});
|
|
297
343
|
this.list = list;
|
|
344
|
+
this.borderStyle = this.conf.borderStyle;
|
|
345
|
+
this.backgroundColor = this.conf.backgroundColor;
|
|
346
|
+
this.color = this.conf.color;
|
|
347
|
+
this.selectedColor = this.conf.selectedColor;
|
|
298
348
|
}
|
|
299
349
|
getCurrentUrl() {
|
|
300
350
|
const routerMode = this.conf.mode;
|
|
@@ -314,24 +364,28 @@ let Tabbar = class {
|
|
|
314
364
|
return processedUrl === '/' ? this.homePage : processedUrl;
|
|
315
365
|
}
|
|
316
366
|
bindEvent() {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
367
|
+
Taro__default['default'].eventCenter.on('__taroRouterChange', this.routerChangeHandler);
|
|
368
|
+
Taro__default['default'].eventCenter.on('__taroSwitchTab', this.switchTabHandler);
|
|
369
|
+
Taro__default['default'].eventCenter.on('__taroSetTabBarBadge', this.setTabBarBadgeHandler);
|
|
370
|
+
Taro__default['default'].eventCenter.on('__taroRemoveTabBarBadge', this.removeTabBarBadgeHandler);
|
|
371
|
+
Taro__default['default'].eventCenter.on('__taroShowTabBarRedDotHandler', this.showTabBarRedDotHandler);
|
|
372
|
+
Taro__default['default'].eventCenter.on('__taroHideTabBarRedDotHandler', this.hideTabBarRedDotHandler);
|
|
373
|
+
Taro__default['default'].eventCenter.on('__taroShowTabBar', this.showTabBarHandler);
|
|
374
|
+
Taro__default['default'].eventCenter.on('__taroHideTabBar', this.hideTabBarHandler);
|
|
375
|
+
Taro__default['default'].eventCenter.on('__taroSetTabBarStyle', this.setTabBarStyleHandler);
|
|
376
|
+
Taro__default['default'].eventCenter.on('__taroSetTabBarItem', this.setTabBarItemHandler);
|
|
325
377
|
}
|
|
326
378
|
removeEvent() {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
379
|
+
Taro__default['default'].eventCenter.off('__taroRouterChange', this.routerChangeHandler);
|
|
380
|
+
Taro__default['default'].eventCenter.off('__taroSwitchTab', this.switchTabHandler);
|
|
381
|
+
Taro__default['default'].eventCenter.off('__taroSetTabBarBadge', this.setTabBarBadgeHandler);
|
|
382
|
+
Taro__default['default'].eventCenter.off('__taroRemoveTabBarBadge', this.removeTabBarBadgeHandler);
|
|
383
|
+
Taro__default['default'].eventCenter.off('__taroShowTabBarRedDotHandler', this.showTabBarRedDotHandler);
|
|
384
|
+
Taro__default['default'].eventCenter.off('__taroHideTabBarRedDotHandler', this.hideTabBarRedDotHandler);
|
|
385
|
+
Taro__default['default'].eventCenter.off('__taroShowTabBar', this.showTabBarHandler);
|
|
386
|
+
Taro__default['default'].eventCenter.off('__taroHideTabBar', this.hideTabBarHandler);
|
|
387
|
+
Taro__default['default'].eventCenter.off('__taroSetTabBarStyle', this.setTabBarStyleHandler);
|
|
388
|
+
Taro__default['default'].eventCenter.off('__taroSetTabBarItem', this.setTabBarItemHandler);
|
|
335
389
|
}
|
|
336
390
|
componentDidLoad() {
|
|
337
391
|
this.tabbarPos = this.tabbar.nextElementSibling ? 'top' : 'bottom';
|
|
@@ -342,10 +396,10 @@ let Tabbar = class {
|
|
|
342
396
|
this.removeEvent();
|
|
343
397
|
}
|
|
344
398
|
render() {
|
|
345
|
-
const {
|
|
399
|
+
const { tabbarPos = 'bottom' } = this;
|
|
346
400
|
const status = this.status;
|
|
347
401
|
const containerCls = index.classnames('weui-tabbar', {
|
|
348
|
-
[`taro-tabbar__border-${
|
|
402
|
+
[`taro-tabbar__border-${this.borderStyle || 'black'}`]: true
|
|
349
403
|
});
|
|
350
404
|
const shouldHideTabBar = this.selectedIndex === -1 || status === STATUS_HIDE;
|
|
351
405
|
const shouldSlideout = status === STATUS_SLIDEOUT;
|
|
@@ -353,17 +407,17 @@ let Tabbar = class {
|
|
|
353
407
|
[hideTabBarClassName]: shouldHideTabBar,
|
|
354
408
|
[hideTabBarWithAnimationClassName]: shouldSlideout
|
|
355
409
|
}) }, index$1.h("div", { class: containerCls, style: {
|
|
356
|
-
backgroundColor:
|
|
410
|
+
backgroundColor: this.backgroundColor || ''
|
|
357
411
|
} }, this.list.map((item, index) => {
|
|
358
412
|
const isSelected = this.selectedIndex === index;
|
|
359
413
|
let textColor;
|
|
360
414
|
let iconPath;
|
|
361
415
|
if (isSelected) {
|
|
362
|
-
textColor =
|
|
416
|
+
textColor = this.selectedColor || '';
|
|
363
417
|
iconPath = item.selectedIconPath;
|
|
364
418
|
}
|
|
365
419
|
else {
|
|
366
|
-
textColor =
|
|
420
|
+
textColor = this.color || '';
|
|
367
421
|
iconPath = item.iconPath;
|
|
368
422
|
}
|
|
369
423
|
return (index$1.h(TabbarItem, { index: index, onSelect: this.switchTab.bind(this), isSelected: isSelected, textColor: textColor, iconPath: iconPath, text: item.text, badgeText: item.badgeText, showRedDot: item.showRedDot }));
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-7464647f.js');
|
|
6
6
|
|
|
7
|
-
const indexCss = "taro-textarea-core{display:block;width:300px
|
|
7
|
+
const indexCss = "taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{-webkit-appearance:none;cursor:auto;width:100%;height:150px;border:0;display:block;position:relative;line-height:1.5}.taro-textarea:focus{outline:none}";
|
|
8
8
|
|
|
9
9
|
function fixControlledValue(value) {
|
|
10
10
|
return value !== null && value !== void 0 ? value : '';
|
|
@@ -16,12 +16,16 @@ let Textarea = class {
|
|
|
16
16
|
this.onFocus = index.createEvent(this, "focus", 7);
|
|
17
17
|
this.onBlur = index.createEvent(this, "blur", 7);
|
|
18
18
|
this.onChange = index.createEvent(this, "change", 7);
|
|
19
|
+
this.onLineChange = index.createEvent(this, "linechange", 7);
|
|
19
20
|
this.disabled = false;
|
|
20
21
|
this.maxlength = 140;
|
|
21
22
|
this.autoFocus = false;
|
|
23
|
+
this.autoHeight = false;
|
|
22
24
|
this.nativeProps = {};
|
|
25
|
+
this.line = 1;
|
|
23
26
|
this.hanldeInput = (e) => {
|
|
24
27
|
e.stopPropagation();
|
|
28
|
+
this.handleLineChange();
|
|
25
29
|
this.onInput.emit({
|
|
26
30
|
value: e.target.value,
|
|
27
31
|
cursor: e.target.value.length
|
|
@@ -43,6 +47,58 @@ let Textarea = class {
|
|
|
43
47
|
value: e.target.value
|
|
44
48
|
});
|
|
45
49
|
};
|
|
50
|
+
this.handleLineChange = () => {
|
|
51
|
+
const line = this.getNumberOfLines();
|
|
52
|
+
if (line !== this.line) {
|
|
53
|
+
this.line = line;
|
|
54
|
+
this.onLineChange.emit({
|
|
55
|
+
height: this.textareaRef.clientHeight,
|
|
56
|
+
lineCount: this.line
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
this.calculateContentHeight = (ta, scanAmount) => {
|
|
61
|
+
let origHeight = ta.style.height, height = ta.offsetHeight, scrollHeight = ta.scrollHeight, overflow = ta.style.overflow;
|
|
62
|
+
/// only bother if the ta is bigger than content
|
|
63
|
+
if (height >= scrollHeight) {
|
|
64
|
+
/// check that our browser supports changing dimension
|
|
65
|
+
/// calculations mid-way through a function call...
|
|
66
|
+
ta.style.height = height + scanAmount + 'px';
|
|
67
|
+
/// because the scrollbar can cause calculation problems
|
|
68
|
+
ta.style.overflow = 'hidden';
|
|
69
|
+
/// by checking that scrollHeight has updated
|
|
70
|
+
if (scrollHeight < ta.scrollHeight) {
|
|
71
|
+
/// now try and scan the ta's height downwards
|
|
72
|
+
/// until scrollHeight becomes larger than height
|
|
73
|
+
while (ta.offsetHeight >= ta.scrollHeight) {
|
|
74
|
+
ta.style.height = (height -= scanAmount) + 'px';
|
|
75
|
+
}
|
|
76
|
+
/// be more specific to get the exact height
|
|
77
|
+
while (ta.offsetHeight < ta.scrollHeight) {
|
|
78
|
+
ta.style.height = height++ + 'px';
|
|
79
|
+
}
|
|
80
|
+
/// reset the ta back to it's original height
|
|
81
|
+
ta.style.height = origHeight;
|
|
82
|
+
/// put the overflow back
|
|
83
|
+
ta.style.overflow = overflow;
|
|
84
|
+
return height;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
return scrollHeight;
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
this.getNumberOfLines = () => {
|
|
92
|
+
const ta = this.textareaRef, style = window.getComputedStyle ? window.getComputedStyle(ta) : ta.style,
|
|
93
|
+
// This will get the line-height only if it is set in the css,
|
|
94
|
+
// otherwise it's "normal"
|
|
95
|
+
taLineHeight = parseInt(style.lineHeight, 10),
|
|
96
|
+
// Get the scroll height of the textarea
|
|
97
|
+
taHeight = this.calculateContentHeight(ta, taLineHeight),
|
|
98
|
+
// calculate the number of lines
|
|
99
|
+
numberOfLines = Math.floor(taHeight / taLineHeight);
|
|
100
|
+
return numberOfLines;
|
|
101
|
+
};
|
|
46
102
|
}
|
|
47
103
|
componentDidLoad() {
|
|
48
104
|
Object.defineProperty(this.el, 'value', {
|
|
@@ -53,12 +109,16 @@ let Textarea = class {
|
|
|
53
109
|
this.autoFocus && this.textareaRef.focus();
|
|
54
110
|
}
|
|
55
111
|
render() {
|
|
56
|
-
const { value, placeholder, disabled, maxlength, autoFocus, name, nativeProps, hanldeInput, handleFocus, handleBlur, handleChange } = this;
|
|
112
|
+
const { value, placeholder, disabled, maxlength, autoFocus, autoHeight, name, nativeProps, hanldeInput, handleFocus, handleBlur, handleChange } = this;
|
|
113
|
+
const otherProps = {};
|
|
114
|
+
if (autoHeight) {
|
|
115
|
+
otherProps.rows = this.line;
|
|
116
|
+
}
|
|
57
117
|
return (index.h("textarea", Object.assign({ ref: input => {
|
|
58
118
|
if (input) {
|
|
59
119
|
this.textareaRef = input;
|
|
60
120
|
}
|
|
61
|
-
}, class:
|
|
121
|
+
}, class: `taro-textarea ${autoHeight ? 'auto-height' : ''}`, value: fixControlledValue(value), placeholder: placeholder, name: name, disabled: disabled, maxlength: maxlength, autofocus: autoFocus, onInput: hanldeInput, onFocus: handleFocus, onBlur: handleBlur, onChange: handleChange }, nativeProps, otherProps)));
|
|
62
122
|
}
|
|
63
123
|
get el() { return index.getElement(this); }
|
|
64
124
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-7464647f.js');
|
|
6
|
+
|
|
7
|
+
let VoipRoom = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
componentDidLoad() {
|
|
12
|
+
console.error('H5 暂不支持 VoipRoom 组件!');
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (index.h(index.Host, null));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.taro_voip_room_core = VoipRoom;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
+
"./components/ad/ad.js",
|
|
4
|
+
"./components/ad-custom/ad-custom.js",
|
|
3
5
|
"./components/audio/audio.js",
|
|
4
6
|
"./components/block/block.js",
|
|
5
7
|
"./components/button/button.js",
|
|
@@ -7,29 +9,42 @@
|
|
|
7
9
|
"./components/canvas/canvas.js",
|
|
8
10
|
"./components/checkbox/checkbox-group.js",
|
|
9
11
|
"./components/checkbox/checkbox.js",
|
|
10
|
-
"./components/cover-
|
|
12
|
+
"./components/cover-image/cover-image.js",
|
|
11
13
|
"./components/cover-view/cover-view.js",
|
|
12
14
|
"./components/custom-wrapper/custom-wrapper.js",
|
|
15
|
+
"./components/editor/editor.js",
|
|
13
16
|
"./components/form/form.js",
|
|
17
|
+
"./components/functional-page-navigator/functional-page-navigator.js",
|
|
14
18
|
"./components/icon/icon.js",
|
|
15
19
|
"./components/image/image.js",
|
|
16
20
|
"./components/input/input.js",
|
|
21
|
+
"./components/keyboard-accessory/keyboard-accessory.js",
|
|
17
22
|
"./components/label/label.js",
|
|
18
|
-
"./components/
|
|
19
|
-
"./components/
|
|
23
|
+
"./components/live-player/live-player.js",
|
|
24
|
+
"./components/live-pusher/live-pusher.js",
|
|
25
|
+
"./components/map/map.js",
|
|
26
|
+
"./components/match-media/match-media.js",
|
|
27
|
+
"./components/movable-area/movable-area.js",
|
|
28
|
+
"./components/movable-area/movable-view.js",
|
|
29
|
+
"./components/navigation-bar/navigation-bar.js",
|
|
20
30
|
"./components/navigator/navigator.js",
|
|
31
|
+
"./components/official-account/official-account.js",
|
|
21
32
|
"./components/open-data/open-data.js",
|
|
33
|
+
"./components/page-container/page-container.js",
|
|
34
|
+
"./components/page-meta/page-meta.js",
|
|
22
35
|
"./components/picker/picker-group.js",
|
|
23
36
|
"./components/picker/picker.js",
|
|
37
|
+
"./components/picker-view/picker-view-column.js",
|
|
24
38
|
"./components/picker-view/picker-view.js",
|
|
25
|
-
"./components/picker-view-column/picker-view-column.js",
|
|
26
39
|
"./components/progress/progress.js",
|
|
27
|
-
"./components/pull-
|
|
40
|
+
"./components/pull-to-refresh/pull-to-refresh.js",
|
|
28
41
|
"./components/radio/radio-group.js",
|
|
29
42
|
"./components/radio/radio.js",
|
|
30
43
|
"./components/rich-text/rich-text.js",
|
|
31
44
|
"./components/scroll-view/scroll-view.js",
|
|
45
|
+
"./components/share-element/share-element.js",
|
|
32
46
|
"./components/slider/slider.js",
|
|
47
|
+
"./components/slot/slot.js",
|
|
33
48
|
"./components/swiper/swiper-item.js",
|
|
34
49
|
"./components/swiper/swiper.js",
|
|
35
50
|
"./components/switch/switch.js",
|
|
@@ -40,6 +55,7 @@
|
|
|
40
55
|
"./components/video/video-danmu.js",
|
|
41
56
|
"./components/video/video.js",
|
|
42
57
|
"./components/view/view.js",
|
|
58
|
+
"./components/voip-room/voip-room.js",
|
|
43
59
|
"./components/web-view/web-view.js"
|
|
44
60
|
],
|
|
45
61
|
"compiler": {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
|
+
import { Component, h, Host } from '@stencil/core';
|
|
3
|
+
export class Ad {
|
|
4
|
+
componentDidLoad() {
|
|
5
|
+
console.error('H5 暂不支持 Ad 组件!');
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, null));
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "taro-ad-core"; }
|
|
11
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
2
|
import { Component, h, Host } from '@stencil/core';
|
|
3
|
-
export class
|
|
3
|
+
export class AdCustom {
|
|
4
4
|
componentDidLoad() {
|
|
5
|
-
console.error('H5 暂不支持
|
|
5
|
+
console.error('H5 暂不支持 AdCustom 组件!');
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
8
|
return (h(Host, null));
|
|
9
9
|
}
|
|
10
|
-
static get is() { return "taro-
|
|
10
|
+
static get is() { return "taro-ad-custom-core"; }
|
|
11
11
|
}
|