@tarojs/components 3.3.13 → 3.3.17
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-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-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/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/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-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-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-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-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-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-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-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/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/PageContainer.d.ts +115 -0
- package/types/ShareElement.d.ts +39 -0
- package/types/VoipRoom.d.ts +71 -0
- package/types/index.d.ts +72 -46
- package/virtual-list/react/createListComponent.js +4 -3
- 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-f8d0dabb.entry.js +0 -1
- package/dist/taro-components/p-f9013b36.system.entry.js +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-165a6222.js';
|
|
2
|
+
|
|
3
|
+
let KeyboardAccessory = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
}
|
|
7
|
+
componentDidLoad() {
|
|
8
|
+
console.error('H5 暂不支持 KeyboardAccessory 组件!');
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, null));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { KeyboardAccessory as taro_keyboard_accessory_core };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-165a6222.js';
|
|
2
|
+
|
|
3
|
+
let LivePlayer = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
}
|
|
7
|
+
componentDidLoad() {
|
|
8
|
+
console.error('H5 暂不支持 LivePlayer 组件!');
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, null));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { LivePlayer as taro_live_player_core };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-165a6222.js';
|
|
2
|
+
|
|
3
|
+
let LivePusher = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
}
|
|
7
|
+
componentDidLoad() {
|
|
8
|
+
console.error('H5 暂不支持 LivePusher 组件!');
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, null));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { LivePusher as taro_live_pusher_core };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-165a6222.js';
|
|
2
|
+
|
|
3
|
+
let Map = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
}
|
|
7
|
+
componentDidLoad() {
|
|
8
|
+
console.error('H5 暂不支持 Map 组件!');
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, null));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { Map as taro_map_core };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-165a6222.js';
|
|
2
|
+
|
|
3
|
+
let MatchMedia = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
}
|
|
7
|
+
componentDidLoad() {
|
|
8
|
+
console.error('H5 暂不支持 MatchMedia 组件!');
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, null));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { MatchMedia as taro_match_media_core };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-165a6222.js';
|
|
2
|
+
|
|
3
|
+
let NavigationBar = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
}
|
|
7
|
+
componentDidLoad() {
|
|
8
|
+
console.error('H5 暂不支持 NavigationBar 组件!');
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, null));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { NavigationBar as taro_navigation_bar_core };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-165a6222.js';
|
|
2
|
+
import Taro from '@tarojs/taro';
|
|
2
3
|
import { c as classnames } from './index-85e10859.js';
|
|
3
4
|
|
|
4
5
|
const navigatorCss = ".navigator-hover{background:#efefef}";
|
|
5
6
|
|
|
6
|
-
const Taro = require('@tarojs/taro');
|
|
7
7
|
let Navigator = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
registerInstance(this, hostRef);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-165a6222.js';
|
|
2
|
+
|
|
3
|
+
let OfficialAccount = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
}
|
|
7
|
+
componentDidLoad() {
|
|
8
|
+
console.error('H5 暂不支持 OfficialAccount 组件!');
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, null));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { OfficialAccount as taro_official_account_core };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-165a6222.js';
|
|
2
|
+
|
|
3
|
+
let PageContainer = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
}
|
|
7
|
+
componentDidLoad() {
|
|
8
|
+
console.error('H5 暂不支持 PageContainer 组件!');
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, null));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { PageContainer as taro_page_container_core };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-165a6222.js';
|
|
2
|
+
|
|
3
|
+
let PageMeta = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
}
|
|
7
|
+
componentDidLoad() {
|
|
8
|
+
console.error('H5 暂不支持 PageMeta 组件!');
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, null));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { PageMeta as taro_page_meta_core };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-165a6222.js';
|
|
2
|
+
import Taro from '@tarojs/taro';
|
|
2
3
|
import { c as classnames } from './index-85e10859.js';
|
|
3
4
|
|
|
4
5
|
const indexCss = ".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0px;transform-origin:left top 0px}.rmc-pull-to-refresh-content-wrapper{overflow:hidden}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform 0.3s;transition:-webkit-transform 0.3s;transition:transform 0.3s;transition:transform 0.3s, -webkit-transform 0.3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}.rmc-pull-to-refresh-indicator{text-align:center;height:30px;line-height:10px}.rmc-pull-to-refresh-indicator>div{background-color:grey;width:6px;height:6px;border-radius:100%;margin:3px;-webkit-animation-fill-mode:both;animation-fill-mode:both;display:inline-block;-webkit-animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-0.1s !important;animation-delay:-0.1s !important}.rmc-pull-to-refresh-indicator>div:nth-child(1){-webkit-animation-delay:-0.2s !important;animation-delay:-0.2s !important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-0.3s !important;animation-delay:-0.3s !important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";
|
|
5
6
|
|
|
6
|
-
const Taro = require('@tarojs/taro');
|
|
7
7
|
function setTransform(nodeStyle, value) {
|
|
8
8
|
nodeStyle.transform = value;
|
|
9
9
|
nodeStyle.webkitTransform = value;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-165a6222.js';
|
|
2
|
+
|
|
3
|
+
let ShareElement = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
}
|
|
7
|
+
componentDidLoad() {
|
|
8
|
+
console.error('H5 暂不支持 ShareElement 组件!');
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, null));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { ShareElement as taro_share_element_core };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-165a6222.js';
|
|
2
|
+
|
|
3
|
+
let Slot = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
}
|
|
7
|
+
componentDidLoad() {
|
|
8
|
+
console.error('H5 暂不支持 Slot 组件!');
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, null));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { Slot as taro_slot_core };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-165a6222.js';
|
|
2
|
+
import Taro from '@tarojs/taro';
|
|
2
3
|
import { c as classnames } from './index-85e10859.js';
|
|
3
4
|
|
|
4
5
|
function isAbsolute(pathname) {
|
|
@@ -83,22 +84,18 @@ const splitUrl = _url => {
|
|
|
83
84
|
query: null,
|
|
84
85
|
fragment: null
|
|
85
86
|
};
|
|
86
|
-
|
|
87
87
|
pos = url.indexOf('#');
|
|
88
88
|
if (pos > -1) {
|
|
89
89
|
res.fragment = url.substring(pos + 1);
|
|
90
90
|
url = url.substring(0, pos);
|
|
91
91
|
}
|
|
92
|
-
|
|
93
92
|
pos = url.indexOf('?');
|
|
94
93
|
if (pos > -1) {
|
|
95
94
|
res.query = url.substring(pos + 1);
|
|
96
95
|
url = url.substring(0, pos);
|
|
97
96
|
}
|
|
98
|
-
|
|
99
97
|
res.path = url;
|
|
100
|
-
|
|
101
|
-
return res
|
|
98
|
+
return res;
|
|
102
99
|
};
|
|
103
100
|
|
|
104
101
|
const TabbarItem = ({ index, isSelected = false, textColor, iconPath, badgeText, showRedDot = false, text, onSelect }) => {
|
|
@@ -128,8 +125,6 @@ const TabbarItem = ({ index, isSelected = false, textColor, iconPath, badgeText,
|
|
|
128
125
|
|
|
129
126
|
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}";
|
|
130
127
|
|
|
131
|
-
// IGNORE: 由于 @tarojs/taro 与 @tarojs/components 中存在循环依赖,暂时使用 commonjs 引用
|
|
132
|
-
const Taro = require('@tarojs/taro');
|
|
133
128
|
// const removeLeadingSlash = str => str.replace(/^\.?\//, '')
|
|
134
129
|
// const removeTrailingSearch = str => str.replace(/\?[\s\S]*$/, '')
|
|
135
130
|
const addLeadingSlash = str => str[0] === '/' ? str : `/${str}`;
|
|
@@ -152,18 +147,18 @@ let Tabbar = class {
|
|
|
152
147
|
this.status = STATUS_SHOW;
|
|
153
148
|
this.getOriginUrl = (url) => {
|
|
154
149
|
const customRoute = this.customRoutes.filter(([, customUrl]) => {
|
|
155
|
-
const
|
|
156
|
-
const
|
|
157
|
-
return
|
|
150
|
+
const pathA = splitUrl(customUrl).path;
|
|
151
|
+
const pathB = splitUrl(url).path;
|
|
152
|
+
return pathA === pathB;
|
|
158
153
|
});
|
|
159
154
|
return customRoute.length ? customRoute[0][0] : url;
|
|
160
155
|
};
|
|
161
156
|
this.getSelectedIndex = (url) => {
|
|
162
157
|
let foundIndex = -1;
|
|
163
158
|
this.list.forEach(({ pagePath }, idx) => {
|
|
164
|
-
const
|
|
165
|
-
const
|
|
166
|
-
if (
|
|
159
|
+
const pathA = splitUrl(url).path;
|
|
160
|
+
const pathB = splitUrl(pagePath).path;
|
|
161
|
+
if (pathA === pathB) {
|
|
167
162
|
foundIndex = idx;
|
|
168
163
|
}
|
|
169
164
|
});
|
|
@@ -206,23 +201,27 @@ let Tabbar = class {
|
|
|
206
201
|
}
|
|
207
202
|
this.selectedIndex = this.getSelectedIndex(this.getOriginUrl(currentPage));
|
|
208
203
|
};
|
|
209
|
-
this.setTabBarBadgeHandler = ({ index, text, errorHandler }) => {
|
|
210
|
-
const list = this.list;
|
|
204
|
+
this.setTabBarBadgeHandler = ({ index, text, successHandler, errorHandler }) => {
|
|
205
|
+
const list = [...this.list];
|
|
211
206
|
if (index in list) {
|
|
212
|
-
|
|
213
|
-
|
|
207
|
+
list[index].showRedDot = false;
|
|
208
|
+
list[index].badgeText = text;
|
|
209
|
+
successHandler({
|
|
210
|
+
errMsg: 'setTabBarBadge:ok'
|
|
211
|
+
});
|
|
214
212
|
}
|
|
215
213
|
else {
|
|
216
214
|
errorHandler({
|
|
217
215
|
errMsg: 'setTabBarBadge:fail tabbar item not found'
|
|
218
216
|
});
|
|
219
217
|
}
|
|
218
|
+
this.list = list;
|
|
220
219
|
};
|
|
221
220
|
this.removeTabBarBadgeHandler = ({ index, successHandler, errorHandler }) => {
|
|
222
|
-
const list = this.list;
|
|
221
|
+
const list = [...this.list];
|
|
223
222
|
if (index in list) {
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
list[index].badgeText = null;
|
|
224
|
+
list[index].badgeText = null;
|
|
226
225
|
successHandler({
|
|
227
226
|
errMsg: 'removeTabBarBadge:ok'
|
|
228
227
|
});
|
|
@@ -232,9 +231,10 @@ let Tabbar = class {
|
|
|
232
231
|
errMsg: 'removeTabBarBadge:fail tabbar item not found'
|
|
233
232
|
});
|
|
234
233
|
}
|
|
234
|
+
this.list = list;
|
|
235
235
|
};
|
|
236
236
|
this.showTabBarRedDotHandler = ({ index, successHandler, errorHandler }) => {
|
|
237
|
-
const list = this.list;
|
|
237
|
+
const list = [...this.list];
|
|
238
238
|
if (index in list) {
|
|
239
239
|
list[index].badgeText = null;
|
|
240
240
|
list[index].showRedDot = true;
|
|
@@ -247,9 +247,10 @@ let Tabbar = class {
|
|
|
247
247
|
errMsg: 'showTabBarRedDot:fail tabbar item not found'
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
|
+
this.list = list;
|
|
250
251
|
};
|
|
251
252
|
this.hideTabBarRedDotHandler = ({ index, successHandler, errorHandler }) => {
|
|
252
|
-
const list = this.list;
|
|
253
|
+
const list = [...this.list];
|
|
253
254
|
if (index in list) {
|
|
254
255
|
list[index].showRedDot = false;
|
|
255
256
|
successHandler({
|
|
@@ -261,6 +262,7 @@ let Tabbar = class {
|
|
|
261
262
|
errMsg: 'hideTabBarRedDot:fail tabbar item not found'
|
|
262
263
|
});
|
|
263
264
|
}
|
|
265
|
+
this.list = list;
|
|
264
266
|
};
|
|
265
267
|
this.showTabBarHandler = ({ successHandler }) => {
|
|
266
268
|
this.status = STATUS_SHOW;
|
|
@@ -274,6 +276,39 @@ let Tabbar = class {
|
|
|
274
276
|
errMsg: 'hideTabBar:ok'
|
|
275
277
|
});
|
|
276
278
|
};
|
|
279
|
+
this.setTabBarStyleHandler = ({ color, selectedColor, backgroundColor, borderStyle, successHandler }) => {
|
|
280
|
+
if (backgroundColor)
|
|
281
|
+
this.backgroundColor = backgroundColor;
|
|
282
|
+
if (borderStyle)
|
|
283
|
+
this.borderStyle = borderStyle;
|
|
284
|
+
if (color)
|
|
285
|
+
this.color = color;
|
|
286
|
+
if (selectedColor)
|
|
287
|
+
this.selectedColor = selectedColor;
|
|
288
|
+
successHandler({
|
|
289
|
+
errMsg: 'setTabBarStyle:ok'
|
|
290
|
+
});
|
|
291
|
+
};
|
|
292
|
+
this.setTabBarItemHandler = ({ index, iconPath, selectedIconPath, text, successHandler, errorHandler }) => {
|
|
293
|
+
const list = [...this.list];
|
|
294
|
+
if (index in list) {
|
|
295
|
+
if (iconPath)
|
|
296
|
+
list[index].iconPath = iconPath;
|
|
297
|
+
if (selectedIconPath)
|
|
298
|
+
list[index].selectedIconPath = selectedIconPath;
|
|
299
|
+
if (text)
|
|
300
|
+
list[index].text = text;
|
|
301
|
+
successHandler({
|
|
302
|
+
errMsg: 'setTabBarItem:ok'
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
errorHandler({
|
|
307
|
+
errMsg: 'setTabBarItem:fail tabbar item not found'
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
this.list = list;
|
|
311
|
+
};
|
|
277
312
|
const list = this.conf.list;
|
|
278
313
|
const customRoutes = this.conf.customRoutes;
|
|
279
314
|
if (Object.prototype.toString.call(list) !== '[object Array]' ||
|
|
@@ -282,8 +317,15 @@ let Tabbar = class {
|
|
|
282
317
|
throw new Error('tabBar 配置错误');
|
|
283
318
|
}
|
|
284
319
|
this.homePage = addLeadingSlash(this.conf.homePage);
|
|
285
|
-
for (
|
|
286
|
-
|
|
320
|
+
for (let key in customRoutes) {
|
|
321
|
+
const path = customRoutes[key];
|
|
322
|
+
key = addLeadingSlash(key);
|
|
323
|
+
if (typeof path === 'string') {
|
|
324
|
+
this.customRoutes.push([key, addLeadingSlash(path)]);
|
|
325
|
+
}
|
|
326
|
+
else if ((path === null || path === void 0 ? void 0 : path.length) > 0) {
|
|
327
|
+
this.customRoutes.push(...path.map(p => [key, addLeadingSlash(p)]));
|
|
328
|
+
}
|
|
287
329
|
}
|
|
288
330
|
list.forEach(item => {
|
|
289
331
|
if (item.pagePath.indexOf('/') !== 0) {
|
|
@@ -291,6 +333,10 @@ let Tabbar = class {
|
|
|
291
333
|
}
|
|
292
334
|
});
|
|
293
335
|
this.list = list;
|
|
336
|
+
this.borderStyle = this.conf.borderStyle;
|
|
337
|
+
this.backgroundColor = this.conf.backgroundColor;
|
|
338
|
+
this.color = this.conf.color;
|
|
339
|
+
this.selectedColor = this.conf.selectedColor;
|
|
294
340
|
}
|
|
295
341
|
getCurrentUrl() {
|
|
296
342
|
const routerMode = this.conf.mode;
|
|
@@ -318,6 +364,8 @@ let Tabbar = class {
|
|
|
318
364
|
Taro.eventCenter.on('__taroHideTabBarRedDotHandler', this.hideTabBarRedDotHandler);
|
|
319
365
|
Taro.eventCenter.on('__taroShowTabBar', this.showTabBarHandler);
|
|
320
366
|
Taro.eventCenter.on('__taroHideTabBar', this.hideTabBarHandler);
|
|
367
|
+
Taro.eventCenter.on('__taroSetTabBarStyle', this.setTabBarStyleHandler);
|
|
368
|
+
Taro.eventCenter.on('__taroSetTabBarItem', this.setTabBarItemHandler);
|
|
321
369
|
}
|
|
322
370
|
removeEvent() {
|
|
323
371
|
Taro.eventCenter.off('__taroRouterChange', this.routerChangeHandler);
|
|
@@ -328,6 +376,8 @@ let Tabbar = class {
|
|
|
328
376
|
Taro.eventCenter.off('__taroHideTabBarRedDotHandler', this.hideTabBarRedDotHandler);
|
|
329
377
|
Taro.eventCenter.off('__taroShowTabBar', this.showTabBarHandler);
|
|
330
378
|
Taro.eventCenter.off('__taroHideTabBar', this.hideTabBarHandler);
|
|
379
|
+
Taro.eventCenter.off('__taroSetTabBarStyle', this.setTabBarStyleHandler);
|
|
380
|
+
Taro.eventCenter.off('__taroSetTabBarItem', this.setTabBarItemHandler);
|
|
331
381
|
}
|
|
332
382
|
componentDidLoad() {
|
|
333
383
|
this.tabbarPos = this.tabbar.nextElementSibling ? 'top' : 'bottom';
|
|
@@ -338,10 +388,10 @@ let Tabbar = class {
|
|
|
338
388
|
this.removeEvent();
|
|
339
389
|
}
|
|
340
390
|
render() {
|
|
341
|
-
const {
|
|
391
|
+
const { tabbarPos = 'bottom' } = this;
|
|
342
392
|
const status = this.status;
|
|
343
393
|
const containerCls = classnames('weui-tabbar', {
|
|
344
|
-
[`taro-tabbar__border-${
|
|
394
|
+
[`taro-tabbar__border-${this.borderStyle || 'black'}`]: true
|
|
345
395
|
});
|
|
346
396
|
const shouldHideTabBar = this.selectedIndex === -1 || status === STATUS_HIDE;
|
|
347
397
|
const shouldSlideout = status === STATUS_SLIDEOUT;
|
|
@@ -349,17 +399,17 @@ let Tabbar = class {
|
|
|
349
399
|
[hideTabBarClassName]: shouldHideTabBar,
|
|
350
400
|
[hideTabBarWithAnimationClassName]: shouldSlideout
|
|
351
401
|
}) }, h("div", { class: containerCls, style: {
|
|
352
|
-
backgroundColor:
|
|
402
|
+
backgroundColor: this.backgroundColor || ''
|
|
353
403
|
} }, this.list.map((item, index) => {
|
|
354
404
|
const isSelected = this.selectedIndex === index;
|
|
355
405
|
let textColor;
|
|
356
406
|
let iconPath;
|
|
357
407
|
if (isSelected) {
|
|
358
|
-
textColor =
|
|
408
|
+
textColor = this.selectedColor || '';
|
|
359
409
|
iconPath = item.selectedIconPath;
|
|
360
410
|
}
|
|
361
411
|
else {
|
|
362
|
-
textColor =
|
|
412
|
+
textColor = this.color || '';
|
|
363
413
|
iconPath = item.iconPath;
|
|
364
414
|
}
|
|
365
415
|
return (h(TabbarItem, { index: index, onSelect: this.switchTab.bind(this), isSelected: isSelected, textColor: textColor, iconPath: iconPath, text: item.text, badgeText: item.badgeText, showRedDot: item.showRedDot }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-165a6222.js';
|
|
2
2
|
|
|
3
|
-
const indexCss = "taro-textarea-core{display:block;width:300px
|
|
3
|
+
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}";
|
|
4
4
|
|
|
5
5
|
function fixControlledValue(value) {
|
|
6
6
|
return value !== null && value !== void 0 ? value : '';
|
|
@@ -12,12 +12,16 @@ let Textarea = class {
|
|
|
12
12
|
this.onFocus = createEvent(this, "focus", 7);
|
|
13
13
|
this.onBlur = createEvent(this, "blur", 7);
|
|
14
14
|
this.onChange = createEvent(this, "change", 7);
|
|
15
|
+
this.onLineChange = createEvent(this, "linechange", 7);
|
|
15
16
|
this.disabled = false;
|
|
16
17
|
this.maxlength = 140;
|
|
17
18
|
this.autoFocus = false;
|
|
19
|
+
this.autoHeight = false;
|
|
18
20
|
this.nativeProps = {};
|
|
21
|
+
this.line = 1;
|
|
19
22
|
this.hanldeInput = (e) => {
|
|
20
23
|
e.stopPropagation();
|
|
24
|
+
this.handleLineChange();
|
|
21
25
|
this.onInput.emit({
|
|
22
26
|
value: e.target.value,
|
|
23
27
|
cursor: e.target.value.length
|
|
@@ -39,6 +43,58 @@ let Textarea = class {
|
|
|
39
43
|
value: e.target.value
|
|
40
44
|
});
|
|
41
45
|
};
|
|
46
|
+
this.handleLineChange = () => {
|
|
47
|
+
const line = this.getNumberOfLines();
|
|
48
|
+
if (line !== this.line) {
|
|
49
|
+
this.line = line;
|
|
50
|
+
this.onLineChange.emit({
|
|
51
|
+
height: this.textareaRef.clientHeight,
|
|
52
|
+
lineCount: this.line
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
this.calculateContentHeight = (ta, scanAmount) => {
|
|
57
|
+
let origHeight = ta.style.height, height = ta.offsetHeight, scrollHeight = ta.scrollHeight, overflow = ta.style.overflow;
|
|
58
|
+
/// only bother if the ta is bigger than content
|
|
59
|
+
if (height >= scrollHeight) {
|
|
60
|
+
/// check that our browser supports changing dimension
|
|
61
|
+
/// calculations mid-way through a function call...
|
|
62
|
+
ta.style.height = height + scanAmount + 'px';
|
|
63
|
+
/// because the scrollbar can cause calculation problems
|
|
64
|
+
ta.style.overflow = 'hidden';
|
|
65
|
+
/// by checking that scrollHeight has updated
|
|
66
|
+
if (scrollHeight < ta.scrollHeight) {
|
|
67
|
+
/// now try and scan the ta's height downwards
|
|
68
|
+
/// until scrollHeight becomes larger than height
|
|
69
|
+
while (ta.offsetHeight >= ta.scrollHeight) {
|
|
70
|
+
ta.style.height = (height -= scanAmount) + 'px';
|
|
71
|
+
}
|
|
72
|
+
/// be more specific to get the exact height
|
|
73
|
+
while (ta.offsetHeight < ta.scrollHeight) {
|
|
74
|
+
ta.style.height = height++ + 'px';
|
|
75
|
+
}
|
|
76
|
+
/// reset the ta back to it's original height
|
|
77
|
+
ta.style.height = origHeight;
|
|
78
|
+
/// put the overflow back
|
|
79
|
+
ta.style.overflow = overflow;
|
|
80
|
+
return height;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
return scrollHeight;
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
this.getNumberOfLines = () => {
|
|
88
|
+
const ta = this.textareaRef, style = window.getComputedStyle ? window.getComputedStyle(ta) : ta.style,
|
|
89
|
+
// This will get the line-height only if it is set in the css,
|
|
90
|
+
// otherwise it's "normal"
|
|
91
|
+
taLineHeight = parseInt(style.lineHeight, 10),
|
|
92
|
+
// Get the scroll height of the textarea
|
|
93
|
+
taHeight = this.calculateContentHeight(ta, taLineHeight),
|
|
94
|
+
// calculate the number of lines
|
|
95
|
+
numberOfLines = Math.floor(taHeight / taLineHeight);
|
|
96
|
+
return numberOfLines;
|
|
97
|
+
};
|
|
42
98
|
}
|
|
43
99
|
componentDidLoad() {
|
|
44
100
|
Object.defineProperty(this.el, 'value', {
|
|
@@ -49,12 +105,16 @@ let Textarea = class {
|
|
|
49
105
|
this.autoFocus && this.textareaRef.focus();
|
|
50
106
|
}
|
|
51
107
|
render() {
|
|
52
|
-
const { value, placeholder, disabled, maxlength, autoFocus, name, nativeProps, hanldeInput, handleFocus, handleBlur, handleChange } = this;
|
|
108
|
+
const { value, placeholder, disabled, maxlength, autoFocus, autoHeight, name, nativeProps, hanldeInput, handleFocus, handleBlur, handleChange } = this;
|
|
109
|
+
const otherProps = {};
|
|
110
|
+
if (autoHeight) {
|
|
111
|
+
otherProps.rows = this.line;
|
|
112
|
+
}
|
|
53
113
|
return (h("textarea", Object.assign({ ref: input => {
|
|
54
114
|
if (input) {
|
|
55
115
|
this.textareaRef = input;
|
|
56
116
|
}
|
|
57
|
-
}, class:
|
|
117
|
+
}, 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)));
|
|
58
118
|
}
|
|
59
119
|
get el() { return getElement(this); }
|
|
60
120
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-165a6222.js';
|
|
2
|
+
|
|
3
|
+
let VoipRoom = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
}
|
|
7
|
+
componentDidLoad() {
|
|
8
|
+
console.error('H5 暂不支持 VoipRoom 组件!');
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, null));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { VoipRoom as taro_voip_room_core };
|
package/dist/esm-es5/loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as promiseResolve,b as bootstrapLazy}from"./index-165a6222.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(o,e){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){return bootstrapLazy([["taro-checkbox-core_2",[[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"]]]]],["taro-radio-core_2",[[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"]]]]],["taro-swiper-core_2",[[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"]}]]],["taro-audio-core",[[0,"taro-audio-core",{src:[1],controls:[4],autoplay:[4],loop:[4],muted:[4],nativeProps:[16]}]]],["taro-block-core",[[0,"taro-block-core"]]],["taro-button-core",[[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"]]]]],["taro-camera-core",[[0,"taro-camera-core"]]],["taro-canvas-core",[[0,"taro-canvas-core",{canvasId:[1,"canvas-id"],nativeProps:[16]}]]],["taro-cover-image-core",[[0,"taro-cover-image-core"]]],["taro-cover-view-core",[[
|
|
1
|
+
import{p as promiseResolve,b as bootstrapLazy}from"./index-165a6222.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(o,e){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){return bootstrapLazy([["taro-checkbox-core_2",[[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"]]]]],["taro-radio-core_2",[[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"]]]]],["taro-swiper-core_2",[[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"]}]]],["taro-ad-core",[[0,"taro-ad-core"]]],["taro-ad-custom-core",[[0,"taro-ad-custom-core"]]],["taro-audio-core",[[0,"taro-audio-core",{src:[1],controls:[4],autoplay:[4],loop:[4],muted:[4],nativeProps:[16]}]]],["taro-block-core",[[0,"taro-block-core"]]],["taro-button-core",[[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"]]]]],["taro-camera-core",[[0,"taro-camera-core"]]],["taro-canvas-core",[[0,"taro-canvas-core",{canvasId:[1,"canvas-id"],nativeProps:[16]}]]],["taro-cover-image-core",[[0,"taro-cover-image-core",{src:[1],nativeProps:[16]}]]],["taro-cover-view-core",[[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"]]]]],["taro-custom-wrapper-core",[[0,"taro-custom-wrapper-core"]]],["taro-editor-core",[[0,"taro-editor-core"]]],["taro-form-core",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["taro-functional-page-navigator-core",[[0,"taro-functional-page-navigator-core"]]],["taro-icon-core",[[0,"taro-icon-core",{type:[1],size:[8],color:[1]}]]],["taro-image-core",[[0,"taro-image-core",{src:[1],mode:[1],lazyLoad:[4,"lazy-load"],nativeProps:[16],aspectFillMode:[32]}]]],["taro-input-core",[[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],_value:[32]}]]],["taro-keyboard-accessory-core",[[0,"taro-keyboard-accessory-core"]]],["taro-label-core",[[4,"taro-label-core",{for:[1]}]]],["taro-live-player-core",[[0,"taro-live-player-core"]]],["taro-live-pusher-core",[[0,"taro-live-pusher-core"]]],["taro-map-core",[[0,"taro-map-core"]]],["taro-match-media-core",[[0,"taro-match-media-core"]]],["taro-movable-area-core",[[0,"taro-movable-area-core"]]],["taro-movable-view-core",[[0,"taro-movable-view-core"]]],["taro-navigation-bar-core",[[0,"taro-navigation-bar-core"]]],["taro-navigator-core",[[0,"taro-navigator-core",{hoverClass:[1,"hover-class"],url:[1],openType:[1,"open-type"],isHover:[4,"is-hover"],delta:[2]},[[0,"click","onClick"]]]]],["taro-official-account-core",[[0,"taro-official-account-core"]]],["taro-open-data-core",[[0,"taro-open-data-core"]]],["taro-page-container-core",[[0,"taro-page-container-core"]]],["taro-page-meta-core",[[0,"taro-page-meta-core"]]],["taro-picker-view-column-core",[[0,"taro-picker-view-column-core"]]],["taro-picker-view-core",[[0,"taro-picker-view-core"]]],["taro-progress-core",[[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]}]]],["taro-pull-to-refresh",[[4,"taro-pull-to-refresh",{prefixCls:[1,"prefix-cls"],distanceToRefresh:[2,"distance-to-refresh"],damping:[2],indicator:[16],currSt:[32],dragOnEdge:[32]}]]],["taro-rich-text-core",[[0,"taro-rich-text-core",{nodes:[1]}]]],["taro-scroll-view-core",[[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"]}]]],["taro-share-element-core",[[0,"taro-share-element-core"]]],["taro-slider-core",[[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]}]]],["taro-slot-core",[[0,"taro-slot-core"]]],["taro-switch-core",[[0,"taro-switch-core",{type:[1],checked:[4],color:[1],name:[1],disabled:[4],nativeProps:[16],isChecked:[32],isWillLoadCalled:[32]}]]],["taro-tabbar",[[0,"taro-tabbar",{conf:[16],list:[32],borderStyle:[32],backgroundColor:[32],color:[32],selectedColor:[32],selectedIndex:[32],status:[32]}]]],["taro-text-core",[[4,"taro-text-core",{selectable:[4]}]]],["taro-textarea-core",[[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]}]]],["taro-view-core",[[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"]]]]],["taro-voip-room-core",[[0,"taro-voip-room-core"]]],["taro-web-view-core",[[0,"taro-web-view-core",{src:[1]}]]],["taro-picker-core_2",[[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"]]]]],["taro-video-control_3",[[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)}))};export{defineCustomElements};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as registerInstance,h,H as Host}from"./index-165a6222.js";var Ad=function(){function r(r){registerInstance(this,r)}r.prototype.componentDidLoad=function(){console.error("H5 暂不支持 Ad 组件!")};r.prototype.render=function(){return h(Host,null)};return r}();export{Ad as taro_ad_core};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as registerInstance,h,H as Host}from"./index-165a6222.js";var AdCustom=function(){function o(o){registerInstance(this,o)}o.prototype.componentDidLoad=function(){console.error("H5 暂不支持 AdCustom 组件!")};o.prototype.render=function(){return h(Host,null)};return o}();export{AdCustom as taro_ad_custom_core};
|