: never
+
+export type RemoveReactAttribute = 'children' | 'className' | 'style' | 'key' | 'ref' | 'dangerouslySetInnerHTML'
+
+export type TransformReact2SolidType> = DistributiveOmit
& SlimProps & JSX.DirectiveAttributes & JSX.CustomAttributes
+
+type Components = (props: TransformReact2SolidType) => JSXElement;
+
+
+/** 视图容器 */
+export declare const Block: Components
+export declare const CoverImage: Components
+export declare const CoverView: Components
+export declare const GridView: Components
+export declare const ListView: Components
+export declare const MatchMedia: Components
+export declare const MovableArea: Components
+export declare const MovableView: Components
+export declare const PageContainer: Components
+export declare const RootPortal: Components
+export declare const ScrollView: Components
+export declare const ShareElement: Components
+export declare const StickyHeader: Components
+export declare const StickySection: Components
+export declare const Swiper: Components
+export declare const SwiperItem: Components
+export declare const View: Components
+/** 基础内容 */
+export declare const Icon: Components
+export declare const Progress: Components
+export declare const RichText: Components
+export declare const Text: Components
+/** 表单组件 */
+export declare const Button: Components
+export declare const Checkbox: Components
+export declare const CheckboxGroup: Components
+export declare const Editor: Components
+export declare const Form: Components
+export declare const Input: Components
+export declare const KeyboardAccessory: Components
+export declare const Label: Components
+export declare const Picker: Components
+export declare const PickerView: Components
+export declare const PickerViewColumn: Components
+export declare const Radio: Components
+export declare const RadioGroup: Components
+export declare const Slider: Components
+export declare const Switch: Components
+export declare const Textarea: Components
+/** 导航 */
+export declare const FunctionalPageNavigator: Components
+export declare const Navigator: Components
+export declare const NavigationBar: Components
+/** 媒体组件 */
+export declare const Audio: Components
+export declare const Camera: Components
+export declare const ChannelLive: Components
+export declare const ChannelVideo: Components
+export declare const Image: Components
+export declare const LivePlayer: Components
+export declare const LivePusher: Components
+export declare const Video: Components
+export declare const VoipRoom: Components
+/** 地图 */
+export declare const Map: Components
+/** 画布 */
+export declare const Canvas: Components
+/** 开放能力 */
+export declare const Ad: Components
+export declare const AdCustom: Components
+export declare const OfficialAccount: Components
+export declare const OpenData: Components
+export declare const WebView: Components
+/** 配置节点 */
+export declare const PageMeta: Components
+
+export declare const CustomWrapper: Components
+export declare const Slot: Components
+export declare const NativeSlot: Components
+
+declare global {
+ namespace JSX {
+ interface IntrinsicElements {
+ /** 视图容器 */
+ block: TransformReact2SolidType
+ 'taro-block-core': TransformReact2SolidType
+ 'cover-image': TransformReact2SolidType
+ 'taro-cover-image-core': TransformReact2SolidType
+ 'cover-view': TransformReact2SolidType
+ 'taro-cover-view-core': TransformReact2SolidType
+ 'match-media': TransformReact2SolidType
+ 'taro-match-media-core': TransformReact2SolidType
+ 'movable-area': TransformReact2SolidType
+ 'taro-movable-area-core': TransformReact2SolidType
+ 'movable-view': TransformReact2SolidType
+ 'taro-movable-view-core': TransformReact2SolidType
+ 'page-container': TransformReact2SolidType
+ 'taro-page-container-core': TransformReact2SolidType
+ 'root-portal': TransformReact2SolidType
+ 'taro-root-portal-core': TransformReact2SolidType
+ 'scroll-view': TransformReact2SolidType
+ 'taro-scroll-view-core': TransformReact2SolidType
+ swiper: TransformReact2SolidType
+ 'taro-swiper-core': TransformReact2SolidType
+ 'swiper-item': TransformReact2SolidType
+ 'taro-swiper-item-core': TransformReact2SolidType
+ view: TransformReact2SolidType
+ 'taro-view-core': TransformReact2SolidType
+ /** 基础内容 */
+ icon: TransformReact2SolidType
+ 'taro-icon-core': TransformReact2SolidType
+ progress: TransformReact2SolidType
+ 'taro-progress-core': TransformReact2SolidType
+ 'rich-text': TransformReact2SolidType
+ 'taro-rich-text-core': TransformReact2SolidType
+ text: TransformReact2SolidType
+ 'taro-text-core': TransformReact2SolidType
+ /** 表单组件 */
+ button: TransformReact2SolidType
+ 'taro-button-core': TransformReact2SolidType
+ checkbox: TransformReact2SolidType
+ 'taro-checkbox-core': TransformReact2SolidType
+ 'checkbox-group': TransformReact2SolidType
+ 'taro-checkbox-group-core': TransformReact2SolidType
+ editor: TransformReact2SolidType
+ 'taro-editor-core': TransformReact2SolidType
+ form: TransformReact2SolidType
+ 'taro-form-core': TransformReact2SolidType
+ input: TransformReact2SolidType
+ 'taro-input-core': TransformReact2SolidType
+ 'keyboard-accessory': TransformReact2SolidType
+ 'taro-keyboard-accessory-core': TransformReact2SolidType
+ label: TransformReact2SolidType
+ 'taro-label-core': TransformReact2SolidType
+ picker: TransformReact2SolidType
+ 'taro-picker-core': TransformReact2SolidType
+ 'picker-view': TransformReact2SolidType
+ 'taro-picker-view-core': TransformReact2SolidType
+ 'picker-view-column': TransformReact2SolidType
+ 'taro-picker-view-column-core': TransformReact2SolidType
+ radio: TransformReact2SolidType
+ 'taro-radio-core': TransformReact2SolidType
+ 'radio-group': TransformReact2SolidType
+ 'taro-radio-group-core': TransformReact2SolidType
+ slider: TransformReact2SolidType
+ 'taro-slider-core': TransformReact2SolidType
+ switch: TransformReact2SolidType
+ 'taro-switch-core': TransformReact2SolidType
+ textarea: TransformReact2SolidType
+ 'taro-textarea-core': TransformReact2SolidType
+ /** Skyline */
+ 'grid-view': TransformReact2SolidType
+ 'taro-grid-view-core': TransformReact2SolidType
+ 'list-view': TransformReact2SolidType
+ 'taro-list-view-core': TransformReact2SolidType
+ 'share-element': TransformReact2SolidType
+ 'taro-share-element-core': TransformReact2SolidType
+ 'snapshot': TransformReact2SolidType
+ 'taro-snapshot-core': TransformReact2SolidType
+ 'sticky-header': TransformReact2SolidType
+ 'taro-sticky-header-core': TransformReact2SolidType
+ 'sticky-section': TransformReact2SolidType
+ 'taro-sticky-section-core': TransformReact2SolidType
+ /** 导航 */
+ 'functional-page-navigator': TransformReact2SolidType
+ 'taro-functional-page-navigator-core': TransformReact2SolidType
+ navigator: TransformReact2SolidType
+ 'taro-navigator-core': TransformReact2SolidType
+ 'navigation-bar': TransformReact2SolidType
+ 'taro-navigation-bar-core': TransformReact2SolidType
+ /** 媒体组件 */
+ audio: TransformReact2SolidType
+ 'taro-audio-core': TransformReact2SolidType
+ camera: TransformReact2SolidType
+ 'taro-camera-core': TransformReact2SolidType
+ 'channel-live': TransformReact2SolidType
+ 'taro-channel-live-core': TransformReact2SolidType
+ 'channel-video': TransformReact2SolidType
+ 'taro-channel-video-core': TransformReact2SolidType
+ image: TransformReact2SolidType
+ 'taro-image-core': TransformReact2SolidType
+ 'live-player': TransformReact2SolidType
+ 'taro-live-player-core': TransformReact2SolidType
+ 'live-pusher': TransformReact2SolidType
+ 'taro-live-pusher-core': TransformReact2SolidType
+ video: TransformReact2SolidType
+ 'taro-video-core': TransformReact2SolidType
+ 'voip-room': TransformReact2SolidType
+ 'taro-voip-room-core': TransformReact2SolidType
+ /** 地图 */
+ map: TransformReact2SolidType
+ 'taro-map-core': TransformReact2SolidType
+ /** 画布 */
+ canvas: TransformReact2SolidType
+ 'taro-canvas-core': TransformReact2SolidType
+ /** 开放能力 */
+ ad: TransformReact2SolidType
+ 'taro-ad-core': TransformReact2SolidType
+ 'ad-custom': TransformReact2SolidType
+ 'taro-ad-custom-core': TransformReact2SolidType
+ 'official-account': TransformReact2SolidType
+ 'taro-official-account-core': TransformReact2SolidType
+ 'open-data': TransformReact2SolidType
+ 'taro-open-data-core': TransformReact2SolidType
+ 'web-view': TransformReact2SolidType
+ 'taro-web-view-core': TransformReact2SolidType
+ /** 配置节点 */
+ 'page-meta': TransformReact2SolidType
+ 'taro-page-meta-core': TransformReact2SolidType
+
+ 'custom-wrapper': TransformReact2SolidType
+ 'taro-custom-wrapper-core': TransformReact2SolidType
+ /** 为了不与vue3模板默认的slot冲突,增加 Record */
+ 'slot': TransformReact2SolidType & Record
+ 'taro-slot-core': TransformReact2SolidType
+ 'native-slot': TransformReact2SolidType
+ 'taro-native-slot-core': TransformReact2SolidType
+ }
+ }
+}
+
+
diff --git a/packages/taro-extend/package.json b/packages/taro-extend/package.json
index 9dc355cfa8a..7147870e67d 100644
--- a/packages/taro-extend/package.json
+++ b/packages/taro-extend/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/extend",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro extend functionality",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-framework-react/package.json b/packages/taro-framework-react/package.json
index a3ef57a6a1d..01b0a410722 100644
--- a/packages/taro-framework-react/package.json
+++ b/packages/taro-framework-react/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-framework-react",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "React/Preact 框架插件",
"author": "O2Team",
"homepage": "https://github.com/nervjs/taro",
diff --git a/packages/taro-framework-solid/package.json b/packages/taro-framework-solid/package.json
index 6ce7f5146dd..cc774f16e23 100644
--- a/packages/taro-framework-solid/package.json
+++ b/packages/taro-framework-solid/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-framework-solid",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Solid 框架插件",
"author": "drchan",
"homepage": "https://github.com/nervjs/taro",
diff --git a/packages/taro-framework-solid/src/webpack.mini.ts b/packages/taro-framework-solid/src/webpack.mini.ts
index c720bab9274..7202bb1b74e 100644
--- a/packages/taro-framework-solid/src/webpack.mini.ts
+++ b/packages/taro-framework-solid/src/webpack.mini.ts
@@ -1,5 +1,3 @@
-import { defaultMainFields, resolveSync } from '@tarojs/helper'
-
import { RECONCILER_NAME } from './constant'
import { getLoaderMeta } from './loader-meta'
@@ -10,14 +8,7 @@ export function modifyMiniWebpackChain (chain) {
function setAlias (chain) {
const alias = chain.resolve.alias
- const mainFields = ['unpkg', ...defaultMainFields]
- const resolveOptions = {
- basedir: process.cwd(),
- mainFields,
- }
alias.set('solid-js/web$', RECONCILER_NAME)
- // Note: 本地 link 调试时,避免 solid 重复打包
- alias.set('solid-js$', resolveSync('solid-js', resolveOptions))
}
function setLoader (chain) {
diff --git a/packages/taro-framework-vue3/package.json b/packages/taro-framework-vue3/package.json
index e217afe5cff..a737b18f937 100644
--- a/packages/taro-framework-vue3/package.json
+++ b/packages/taro-framework-vue3/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-framework-vue3",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Vue3 框架插件",
"author": "O2Team",
"homepage": "https://github.com/nervjs/taro",
diff --git a/packages/taro-h5/__mocks__/swiper/bundle.ts b/packages/taro-h5/__mocks__/swiper/bundle.ts
new file mode 100644
index 00000000000..62640385c7c
--- /dev/null
+++ b/packages/taro-h5/__mocks__/swiper/bundle.ts
@@ -0,0 +1,181 @@
+/* eslint-disable @typescript-eslint/no-unused-vars */
+import { A11yMethods } from 'swiper/types/modules/a11y'
+import { AutoplayMethods } from 'swiper/types/modules/autoplay'
+import { ControllerMethods } from 'swiper/types/modules/controller'
+import { CardsEffectMethods } from 'swiper/types/modules/effect-cards'
+import { CoverflowEffectMethods } from 'swiper/types/modules/effect-coverflow'
+import { CreativeEffectMethods } from 'swiper/types/modules/effect-creative'
+import { CubeEffectMethods } from 'swiper/types/modules/effect-cube'
+import { FadeEffectMethods } from 'swiper/types/modules/effect-fade'
+import { FlipEffectMethods } from 'swiper/types/modules/effect-flip'
+import { FreeModeMethods } from 'swiper/types/modules/free-mode'
+import { HashNavigationMethods } from 'swiper/types/modules/hash-navigation'
+import { HistoryMethods } from 'swiper/types/modules/history'
+import { KeyboardMethods } from 'swiper/types/modules/keyboard'
+import { MousewheelMethods } from 'swiper/types/modules/mousewheel'
+import { NavigationMethods } from 'swiper/types/modules/navigation'
+import { PaginationMethods } from 'swiper/types/modules/pagination'
+import { ParallaxMethods } from 'swiper/types/modules/parallax'
+import { ScrollbarMethods } from 'swiper/types/modules/scrollbar'
+import { ThumbsMethods } from 'swiper/types/modules/thumbs'
+import { VirtualMethods } from 'swiper/types/modules/virtual'
+import { ZoomMethods } from 'swiper/types/modules/zoom'
+import { SwiperEvents } from 'swiper/types/swiper-events'
+import { SwiperOptions } from 'swiper/types/swiper-options'
+
+import type ISwiper from 'swiper/types/swiper-class'
+
+export default class Swiper implements ISwiper {
+ originalParams: SwiperOptions
+ loopedSlides: number | null
+ snapIndex: number
+ snapGrid: number[]
+ isLocked: boolean
+ swipeDirection: 'next' | 'prev'
+ slidesPerViewDynamic (): number {
+ throw new Error('Method not implemented.')
+ }
+
+ changeLanguageDirection (direction: 'rtl' | 'ltr'): void {
+ throw new Error('Method not implemented.')
+ }
+
+ loopCreate (): void {
+ throw new Error('Method not implemented.')
+ }
+
+ loopDestroy (): void {
+ throw new Error('Method not implemented.')
+ }
+
+ init (el?: HTMLElement | undefined): ISwiper {
+ throw new Error('Method not implemented.')
+ }
+
+ creativeEffect: CreativeEffectMethods
+ cardsEffect: CardsEffectMethods
+ freeMode: FreeModeMethods
+ params: SwiperOptions
+ el: HTMLElement
+ wrapperEl: HTMLElement
+ slides
+ width: number
+ height: number
+ translate: number
+ progress: number
+ activeIndex: number
+ realIndex: number
+ previousIndex: number
+ isBeginning: boolean
+ isEnd: boolean
+ animating: boolean
+ touches: { startX: number, startY: number, currentX: number, currentY: number, diff: number }
+ clickedIndex: number
+ clickedSlide: HTMLElement
+ allowSlideNext: boolean
+ allowSlidePrev: boolean
+ allowTouchMove: boolean
+ rtlTranslate: boolean
+ disable (): void {}
+
+ enable (): void {}
+
+ setProgress (progress: number, speed?: number | undefined): void {}
+
+ slideNext (speed?: number | undefined, runCallbacks?: boolean | undefined): void {}
+
+ slidePrev (speed?: number | undefined, runCallbacks?: boolean | undefined): void {}
+
+ slideTo (index: number, speed?: number | undefined, runCallbacks?: boolean | undefined): void {}
+
+ slideToLoop (index: number, speed?: number | undefined, runCallbacks?: boolean | undefined): void {}
+
+ slideReset (speed?: number | undefined, runCallbacks?: boolean | undefined): void {}
+
+ slideToClosest (speed?: number | undefined, runCallbacks?: boolean | undefined): void {}
+
+ updateAutoHeight (speed?: number | undefined): void {}
+
+ update (): void {}
+
+ updateSize (): void {}
+
+ updateSlides (): void {}
+
+ updateProgress (): void {}
+
+ updateSlidesClasses (): void {}
+
+ changeDirection (direction?: 'horizontal' | 'vertical' | undefined, needUpdate?: boolean | undefined): void {}
+
+ detachEvents (): void {}
+
+ attachEvents (): void {}
+
+ destroy (deleteInstance?: boolean | undefined, cleanStyles?: boolean | undefined): void {}
+
+ appendSlide (slides: string | HTMLElement | string[] | HTMLElement[]): void {}
+
+ prependSlide (slides: string | HTMLElement | string[] | HTMLElement[]): void {}
+
+ addSlide (index: number, slides: string | HTMLElement | string[] | HTMLElement[]): void {}
+
+ removeSlide (slideIndex: number | number[]): void {}
+
+ removeAllSlides (): void {}
+
+ setTranslate (translate: any): void {}
+
+ getTranslate () {}
+
+ translateTo (translate: number, speed: number, runCallbacks?: boolean | undefined, translateBounds?: boolean | undefined) {}
+
+ unsetGrabCursor (): void {}
+
+ setGrabCursor (): void {}
+
+ onAny (handler: (eventName: string, ...args: any[]) => void): void {}
+
+ offAny (handler: (eventName: string, ...args: any[]) => void): void {}
+
+ isHorizontal (): boolean {
+ return false
+ }
+
+ getBreakpoint (breakpoints: { [width: number]: SwiperOptions, [ratio: string]: SwiperOptions } | undefined): string {
+ return ''
+ }
+
+ setBreakpoint (): void {}
+
+ currentBreakpoint: any
+ destroyed: boolean
+ modules: any[]
+ a11y: A11yMethods
+ autoplay: AutoplayMethods
+ controller: ControllerMethods
+ coverflowEffect: CoverflowEffectMethods
+ cubeEffect: CubeEffectMethods
+ fadeEffect: FadeEffectMethods
+ flipEffect: FlipEffectMethods
+ hashNavigation: HashNavigationMethods
+ history: HistoryMethods
+ keyboard: KeyboardMethods
+ mousewheel: MousewheelMethods
+ navigation: NavigationMethods
+ pagination: PaginationMethods
+ parallax: ParallaxMethods
+ scrollbar: ScrollbarMethods
+ thumbs: ThumbsMethods
+ virtual: VirtualMethods
+ zoom: ZoomMethods
+ on (event: E, handler: SwiperEvents[E]): void {}
+
+ once (event: E, handler: SwiperEvents[E]): void {}
+
+ off (event: E, handler: SwiperEvents[E]): void;
+ off (event: E): void;
+ off (event: unknown, handler?: unknown): void {}
+
+ emit (event: E, ...args: any[]): void {}
+}
diff --git a/packages/taro-h5/package.json b/packages/taro-h5/package.json
index 8ef42baff9b..5b7694647c5 100644
--- a/packages/taro-h5/package.json
+++ b/packages/taro-h5/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/taro-h5",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro h5 framework",
"browser": "dist/index.js",
"main:h5": "dist/index.esm.js",
@@ -66,6 +66,7 @@
"jest-transform-css": "^6.0.1",
"mock-socket": "^7.1.0",
"react": "^18.2.0",
+ "swiper": "11.1.0",
"react-test-renderer": "^18.2.0",
"rollup": "^3.29.4",
"rollup-plugin-node-externals": "^5.0.0",
diff --git a/packages/taro-helper/package.json b/packages/taro-helper/package.json
index 485725c176e..63460f93e58 100644
--- a/packages/taro-helper/package.json
+++ b/packages/taro-helper/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/helper",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro Helper",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-loader/package.json b/packages/taro-loader/package.json
index 6081182cf05..3a0277f46f8 100644
--- a/packages/taro-loader/package.json
+++ b/packages/taro-loader/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/taro-loader",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro runner use webpack loader",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-platform-alipay/package.json b/packages/taro-platform-alipay/package.json
index 3658db9fb08..8aaeb41f539 100644
--- a/packages/taro-platform-alipay/package.json
+++ b/packages/taro-platform-alipay/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-platform-alipay",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "支付宝小程序平台插件",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-platform-h5/package.json b/packages/taro-platform-h5/package.json
index 78c631cce27..d7513195ca7 100644
--- a/packages/taro-platform-h5/package.json
+++ b/packages/taro-platform-h5/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-platform-h5",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Web 端平台插件",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-platform-harmony-hybrid/package.json b/packages/taro-platform-harmony-hybrid/package.json
index f6ce980a2a0..35ad1426c4e 100644
--- a/packages/taro-platform-harmony-hybrid/package.json
+++ b/packages/taro-platform-harmony-hybrid/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-platform-harmony-hybrid",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Harmony 端平台插件",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-platform-harmony-hybrid/src/api/apis/NativeApi.ts b/packages/taro-platform-harmony-hybrid/src/api/apis/NativeApi.ts
index e1ed2f0cc34..28e7a4f8ee1 100644
--- a/packages/taro-platform-harmony-hybrid/src/api/apis/NativeApi.ts
+++ b/packages/taro-platform-harmony-hybrid/src/api/apis/NativeApi.ts
@@ -1,6 +1,6 @@
// import {timeLog} from "./NativeApiLog";
import { syncApiCache } from './harmony-native/ApiCache'
-import { asyncAndNotRelease, asyncAndRelease, syncAndRelease } from './harmony-native/ApiDecorator'
+import { asyncAndNotRelease, asyncAndRelease, syncAndNotRelease, syncAndRelease } from './harmony-native/ApiDecorator'
import { storageCacheAndSyncProxy } from './harmony-native/StorageCacheAndSyncProxy'
import { NativeDataChangeListener, SyncCacheProxyHandler } from './NativeApiSyncCacheProxy'
@@ -627,6 +627,12 @@ export class NativeApi {
exitMiniProgram (option?: any): any {
return option
}
+
+ @(syncAndNotRelease)
+ onStorageStatusChange (_options: any): void {}
+
+ @(syncAndNotRelease)
+ offStorageStatusChange (_options: any): void {}
}
export interface Status {
diff --git a/packages/taro-platform-harmony-hybrid/src/api/apis/harmony-native/ApiDecorator.ts b/packages/taro-platform-harmony-hybrid/src/api/apis/harmony-native/ApiDecorator.ts
index f343d931691..8d427ed28ad 100644
--- a/packages/taro-platform-harmony-hybrid/src/api/apis/harmony-native/ApiDecorator.ts
+++ b/packages/taro-platform-harmony-hybrid/src/api/apis/harmony-native/ApiDecorator.ts
@@ -2,7 +2,7 @@
export const syncAndRelease = window.MethodChannel && window.MethodChannel.jsBridgeMode({ isAsync: false, autoRelease: true }) || (target => target)
// @ts-ignore
-// const syncAndNotRelease = window.MethodChannel && window.MethodChannel.jsBridgeMode({ isAsync: false, autoRelease: false }) || (target => target)
+export const syncAndNotRelease = window.MethodChannel && window.MethodChannel.jsBridgeMode({ isAsync: false, autoRelease: false }) || (target => target)
// @ts-ignore
export const asyncAndRelease = window.MethodChannel && window.MethodChannel.jsBridgeMode({ isAsync: true, autoRelease: true }) || (target => target)
diff --git a/packages/taro-platform-harmony-hybrid/src/api/apis/harmony-native/StorageCacheAndSyncProxy.ts b/packages/taro-platform-harmony-hybrid/src/api/apis/harmony-native/StorageCacheAndSyncProxy.ts
index c2edd9ae56c..93f0d9e06b0 100644
--- a/packages/taro-platform-harmony-hybrid/src/api/apis/harmony-native/StorageCacheAndSyncProxy.ts
+++ b/packages/taro-platform-harmony-hybrid/src/api/apis/harmony-native/StorageCacheAndSyncProxy.ts
@@ -1,3 +1,4 @@
+const TYPE_STORAGE_UPDATE_EVENT_CLEAR = 'TYPE_STORAGE_UPDATE_EVENT_CLEAR'
class ProxyHandler {
private cacheMap: Map
private pageHasShowed: boolean = false
@@ -28,6 +29,14 @@ class ProxyHandler {
})
}, 2000)
})
+
+ native.onStorageStatusChange((type: string, key: string) => {
+ if (type === TYPE_STORAGE_UPDATE_EVENT_CLEAR) {
+ this.cacheMap.clear()
+ } else {
+ this.cacheMap.delete(key)
+ }
+ })
}
get (target, propKey, receiver) {
diff --git a/packages/taro-platform-harmony-hybrid/src/components/react/index.ts b/packages/taro-platform-harmony-hybrid/src/components/react/index.ts
index 7e0723d1de6..9cccfd478a0 100644
--- a/packages/taro-platform-harmony-hybrid/src/components/react/index.ts
+++ b/packages/taro-platform-harmony-hybrid/src/components/react/index.ts
@@ -43,7 +43,7 @@ export { Navigator } from '@tarojs/components/lib/react'
export { OfficialAccount } from '@tarojs/components/lib/react'
export { OpenData } from '@tarojs/components/lib/react'
export { PageMeta } from '@tarojs/components/lib/react'
-export { Picker, PickerGroup } from '@tarojs/components/lib/react'
+export { Picker } from '@tarojs/components/lib/react'
export { PickerView, PickerViewColumn } from '@tarojs/components/lib/react'
export { Progress } from '@tarojs/components/lib/react'
export { PullToRefresh } from '@tarojs/components/lib/react'
@@ -56,11 +56,10 @@ export { Slider } from '@tarojs/components/lib/react'
export { NativeSlot, Slot } from '@tarojs/components/lib/react'
export { Swiper, SwiperItem } from '@tarojs/components/lib/react'
export { Switch } from '@tarojs/components/lib/react'
-export { Tabbar, TabItem } from '@tarojs/components/lib/react'
export { Tabs } from '@tarojs/components/lib/react'
export { Text } from '@tarojs/components/lib/react'
export { Textarea } from '@tarojs/components/lib/react'
-export { Video, VideoControl, VideoDanmu } from '@tarojs/components/lib/react'
+export { Video } from '@tarojs/components/lib/react'
export { View } from '@tarojs/components/lib/react'
export { VoipRoom } from '@tarojs/components/lib/react'
export { WebView } from '@tarojs/components/lib/react'
diff --git a/packages/taro-platform-harmony-hybrid/src/components/vue3/index.ts b/packages/taro-platform-harmony-hybrid/src/components/vue3/index.ts
index d46811a5b4a..2c59f0f9b40 100644
--- a/packages/taro-platform-harmony-hybrid/src/components/vue3/index.ts
+++ b/packages/taro-platform-harmony-hybrid/src/components/vue3/index.ts
@@ -42,7 +42,7 @@ export { Navigator } from '@tarojs/components/lib/vue3'
export { OfficialAccount } from '@tarojs/components/lib/vue3'
export { OpenData } from '@tarojs/components/lib/vue3'
export { PageMeta } from '@tarojs/components/lib/vue3'
-export { Picker, PickerGroup } from '@tarojs/components/lib/vue3'
+export { Picker } from '@tarojs/components/lib/vue3'
export { PickerView, PickerViewColumn } from '@tarojs/components/lib/vue3'
export { Progress } from '@tarojs/components/lib/vue3'
export { PullToRefresh } from '@tarojs/components/lib/vue3'
@@ -55,11 +55,11 @@ export { Slider } from '@tarojs/components/lib/vue3'
export { NativeSlot, Slot } from '@tarojs/components/lib/vue3'
export { Swiper, SwiperItem } from '@tarojs/components/lib/vue3'
export { Switch } from '@tarojs/components/lib/vue3'
-export { Tabbar, TabItem } from '@tarojs/components/lib/vue3'
+// export { Tabbar, TabItem } from '@tarojs/components/lib/vue3'
export { Tabs } from '@tarojs/components/lib/vue3'
export { Text } from '@tarojs/components/lib/vue3'
export { Textarea } from '@tarojs/components/lib/vue3'
-export { Video, VideoControl, VideoDanmu } from '@tarojs/components/lib/vue3'
+export { Video } from '@tarojs/components/lib/vue3'
export { View } from '@tarojs/components/lib/vue3'
export { VoipRoom } from '@tarojs/components/lib/vue3'
export { WebView } from '@tarojs/components/lib/vue3'
diff --git a/packages/taro-platform-harmony-hybrid/types/component.d.ts b/packages/taro-platform-harmony-hybrid/types/component.d.ts
index 71b07c3852c..08adf62ca2f 100644
--- a/packages/taro-platform-harmony-hybrid/types/component.d.ts
+++ b/packages/taro-platform-harmony-hybrid/types/component.d.ts
@@ -4,3 +4,11 @@ declare module '@tarojs/components/dist/components' {
export * from '@tarojs/components/dist/components'
}
+
+declare module '@tarojs/components/lib/vue3' {
+ export * from '@tarojs/components'
+}
+
+declare module '@tarojs/components/lib/react' {
+ export * from '@tarojs/components'
+}
\ No newline at end of file
diff --git a/packages/taro-platform-harmony/package.json b/packages/taro-platform-harmony/package.json
index 0a7a8e1aec1..d0e58c130de 100644
--- a/packages/taro-platform-harmony/package.json
+++ b/packages/taro-platform-harmony/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-platform-harmony-ets",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "OpenHarmony & 鸿蒙系统插件",
"author": "O2Team",
"homepage": "https://gitee.com/openharmony-sig/taro",
diff --git a/packages/taro-platform-jd/package.json b/packages/taro-platform-jd/package.json
index 4fa11631682..46a48bb1fa0 100644
--- a/packages/taro-platform-jd/package.json
+++ b/packages/taro-platform-jd/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-platform-jd",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "京东小程序平台插件",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-platform-jd/rollup.config.mjs b/packages/taro-platform-jd/rollup.config.mjs
index 8531851d8f9..f2de662ed82 100644
--- a/packages/taro-platform-jd/rollup.config.mjs
+++ b/packages/taro-platform-jd/rollup.config.mjs
@@ -1,6 +1,7 @@
import * as path from 'node:path'
import { fileURLToPath } from 'node:url'
+import { nodeResolve } from '@rollup/plugin-node-resolve'
import typescript from '@rollup/plugin-typescript'
import externals from 'rollup-plugin-node-externals'
@@ -9,6 +10,7 @@ const cwd = path.dirname(__filename)
const base = {
plugins: [
+ nodeResolve(),
externals({
peerDeps: true,
}),
diff --git a/packages/taro-platform-jd/src/components-react.ts b/packages/taro-platform-jd/src/components-react.ts
index c9bc9c15782..9fd382a64b8 100644
--- a/packages/taro-platform-jd/src/components-react.ts
+++ b/packages/taro-platform-jd/src/components-react.ts
@@ -1,4 +1,5 @@
// For React.createElement's type
export * from '@tarojs/components/mini'
export const Editor = 'editor'
-
+export const PageContainer = 'page-container'
+export const RootPortal = 'root-portal'
diff --git a/packages/taro-platform-jd/src/components.ts b/packages/taro-platform-jd/src/components.ts
index 5bc9da815be..fe021ea580f 100644
--- a/packages/taro-platform-jd/src/components.ts
+++ b/packages/taro-platform-jd/src/components.ts
@@ -25,4 +25,39 @@ export const components = {
'adjust-position': 'true',
'disable-default-padding': 'false',
},
+ RootPortal: {
+ enable: 'true'
+ },
+ Editor: {
+ 'read-only': 'false',
+ placeholder: '',
+ 'show-img-size': 'false',
+ 'show-img-toolbar': 'false',
+ 'show-img-resize': 'false',
+ focus: 'false',
+ bindReady: '',
+ bindFocus: '',
+ bindBlur: '',
+ bindInput: '',
+ bindStatusChange: '',
+ name: ''
+ },
+ PageContainer: {
+ show: 'false',
+ duration: '300',
+ 'z-index': '100',
+ overlay: 'true',
+ position: "'bottom'",
+ round: 'false',
+ 'close-on-slide-down': 'false',
+ 'overlay-style': '',
+ 'custom-style': '',
+ bindBeforeEnter: '',
+ bindEnter: '',
+ bindAfterEnter: '',
+ bindBeforeLeave: '',
+ bindLeave: '',
+ bindAfterLeave: '',
+ bindClickOverlay: ''
+ },
}
diff --git a/packages/taro-platform-qq/package.json b/packages/taro-platform-qq/package.json
index 230de48696e..c60e8659447 100644
--- a/packages/taro-platform-qq/package.json
+++ b/packages/taro-platform-qq/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-platform-qq",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "QQ 小程序平台插件",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-platform-swan/package.json b/packages/taro-platform-swan/package.json
index 81b6c978a74..70830285052 100644
--- a/packages/taro-platform-swan/package.json
+++ b/packages/taro-platform-swan/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-platform-swan",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "百度小程序平台插件",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-platform-tt/package.json b/packages/taro-platform-tt/package.json
index 3006d6d0419..078d9038e04 100644
--- a/packages/taro-platform-tt/package.json
+++ b/packages/taro-platform-tt/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-platform-tt",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "头条小程序平台插件",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-platform-weapp/package.json b/packages/taro-platform-weapp/package.json
index 5ca14768ba8..14edcf80c12 100644
--- a/packages/taro-platform-weapp/package.json
+++ b/packages/taro-platform-weapp/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-platform-weapp",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "微信小程序平台插件",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-plugin-html/package.json b/packages/taro-plugin-html/package.json
index d36172cfe7a..d5094866188 100644
--- a/packages/taro-plugin-html/package.json
+++ b/packages/taro-plugin-html/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-html",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro 小程序端支持使用 HTML 标签的插件",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-plugin-http/package.json b/packages/taro-plugin-http/package.json
index ea4b3c2ce2d..74d697d7198 100644
--- a/packages/taro-plugin-http/package.json
+++ b/packages/taro-plugin-http/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-http",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro 小程序端支持使用 web 请求 的插件",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-plugin-inject/package.json b/packages/taro-plugin-inject/package.json
index bebffa0d039..a1ebdfe7805 100644
--- a/packages/taro-plugin-inject/package.json
+++ b/packages/taro-plugin-inject/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-inject",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro 小程序端平台中间层插件",
"author": "O2Team",
"homepage": "https://github.com/nervjs/taro",
diff --git a/packages/taro-plugin-mini-ci/package.json b/packages/taro-plugin-mini-ci/package.json
index e15f8022c20..6e8a49e76db 100644
--- a/packages/taro-plugin-mini-ci/package.json
+++ b/packages/taro-plugin-mini-ci/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-mini-ci",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro 小程序端构建后支持CI(持续集成)的插件",
"keywords": [
"Taro",
diff --git a/packages/taro-plugin-react-devtools/package.json b/packages/taro-plugin-react-devtools/package.json
index 2258b4f6655..5e09b9274c3 100644
--- a/packages/taro-plugin-react-devtools/package.json
+++ b/packages/taro-plugin-react-devtools/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-react-devtools",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro 小程序端支持使用 React DevTools 的插件",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-plugin-vue-devtools/package.json b/packages/taro-plugin-vue-devtools/package.json
index a29f2d41535..5b4566600fb 100644
--- a/packages/taro-plugin-vue-devtools/package.json
+++ b/packages/taro-plugin-vue-devtools/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-vue-devtools",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro 小程序端支持使用 Vue DevTools 的插件",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-react/package.json b/packages/taro-react/package.json
index 0305bb0c522..2b97ade8528 100644
--- a/packages/taro-react/package.json
+++ b/packages/taro-react/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/react",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "like react-dom, but for mini apps.",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-rn-runner/package.json b/packages/taro-rn-runner/package.json
index 727de8f93b9..fdcb61a617c 100644
--- a/packages/taro-rn-runner/package.json
+++ b/packages/taro-rn-runner/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/rn-runner",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "ReactNative build tool for taro",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-rn-style-transformer/package.json b/packages/taro-rn-style-transformer/package.json
index d4ac34fe2e3..658e87ea280 100644
--- a/packages/taro-rn-style-transformer/package.json
+++ b/packages/taro-rn-style-transformer/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/rn-style-transformer",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "提供 Taro RN 统一处理样式文件能力",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-rn-style-transformer/src/transforms/StyleSheet/ImageStylePropTypes.ts b/packages/taro-rn-style-transformer/src/transforms/StyleSheet/ImageStylePropTypes.ts
index 6fdc6b07a27..a4aa8e4b3d5 100644
--- a/packages/taro-rn-style-transformer/src/transforms/StyleSheet/ImageStylePropTypes.ts
+++ b/packages/taro-rn-style-transformer/src/transforms/StyleSheet/ImageStylePropTypes.ts
@@ -27,7 +27,9 @@ const ImageStylePropTypes = {
borderColor: ColorPropType,
borderWidth: ReactPropTypes.number,
borderRadius: ReactPropTypes.number,
+ cursor: ReactPropTypes.oneOf(['auto', 'pointer']),
overflow: ReactPropTypes.oneOf(['visible', 'hidden']),
+ objectFit: ReactPropTypes.oneOf(['cover', 'contain', 'fill', 'scale-down']),
/**
* Changes the color of all the non-transparent pixels to the tintColor.
diff --git a/packages/taro-rn-style-transformer/src/transforms/StyleSheet/LayoutPropTypes.ts b/packages/taro-rn-style-transformer/src/transforms/StyleSheet/LayoutPropTypes.ts
index 17a25237c26..76c444e4ff5 100644
--- a/packages/taro-rn-style-transformer/src/transforms/StyleSheet/LayoutPropTypes.ts
+++ b/packages/taro-rn-style-transformer/src/transforms/StyleSheet/LayoutPropTypes.ts
@@ -395,7 +395,7 @@ const LayoutPropTypes = {
* for more details on how `position` differs between React Native
* and CSS.
*/
- position: ReactPropTypes.oneOf(['absolute', 'relative']),
+ position: ReactPropTypes.oneOf(['absolute', 'relative', 'static']),
/** `flexDirection` controls which directions children of a container go.
* `row` goes left to right, `column` goes top to bottom, and you may
@@ -476,7 +476,8 @@ const LayoutPropTypes = {
'center',
'stretch',
'space-between',
- 'space-around'
+ 'space-around',
+ 'space-evenly'
]),
/** `overflow` controls how children are measured and displayed.
@@ -553,7 +554,29 @@ const LayoutPropTypes = {
* for more details.
* @platform ios
*/
- direction: ReactPropTypes.oneOf(['inherit', 'ltr', 'rtl'])
+ direction: ReactPropTypes.oneOf(['inherit', 'ltr', 'rtl']),
+
+ /**
+ * In React Native, gap works the same way it does in CSS.
+ * If there are two or more children in a container, they will be separated from each other
+ * by the value of the gap - but the children will not be separated from the edges of their parent container.
+ * For horizontal gaps, use columnGap, for vertical gaps, use rowGap, and to apply both at the same time, it's gap.
+ * When align-content or justify-content are set to space-between or space-around, the separation
+ * between children may be larger than the gap value.
+ * See https://developer.mozilla.org/en-US/docs/Web/CSS/gap for more details.
+ */
+ rowGap: ReactPropTypes.oneOfType([
+ ReactPropTypes.number,
+ ReactPropTypes.string
+ ]),
+ columnGap: ReactPropTypes.oneOfType([
+ ReactPropTypes.number,
+ ReactPropTypes.string
+ ]),
+ gap: ReactPropTypes.oneOfType([
+ ReactPropTypes.number,
+ ReactPropTypes.string
+ ]),
}
export default LayoutPropTypes
diff --git a/packages/taro-rn-style-transformer/src/transforms/StyleSheet/TextStylePropTypes.ts b/packages/taro-rn-style-transformer/src/transforms/StyleSheet/TextStylePropTypes.ts
index a162b368e86..3ac07e4f1f5 100644
--- a/packages/taro-rn-style-transformer/src/transforms/StyleSheet/TextStylePropTypes.ts
+++ b/packages/taro-rn-style-transformer/src/transforms/StyleSheet/TextStylePropTypes.ts
@@ -38,29 +38,24 @@ const TextStylePropTypes = {
'600',
'700',
'800',
- '900'
+ '900',
+ 'ultralight',
+ 'thin',
+ 'light',
+ 'medium',
+ 'regular',
+ 'semibold',
+ 'condensedBold',
+ 'condensed',
+ 'heavy',
+ 'black'
]),
- /**
- * @platform ios
- */
- fontVariant: ReactPropTypes.arrayOf(
- ReactPropTypes.oneOf([
- 'small-caps',
- 'oldstyle-nums',
- 'lining-nums',
- 'tabular-nums',
- 'proportional-nums'
- ])
- ),
textShadowOffset: ReactPropTypes.shape({
width: ReactPropTypes.number,
height: ReactPropTypes.number
}),
textShadowRadius: ReactPropTypes.number,
textShadowColor: ColorPropType,
- /**
- * @platform ios
- */
letterSpacing: ReactPropTypes.number,
lineHeight: ReactPropTypes.number,
/**
@@ -68,57 +63,54 @@ const TextStylePropTypes = {
* fallbacks to `left` on Android.
*/
textAlign: ReactPropTypes.oneOf([
- 'auto' /* default */,
+ 'auto',
'left',
'right',
'center',
'justify'
]),
- /**
- * @platform android
- */
- textAlignVertical: ReactPropTypes.oneOf([
- 'auto' /* default */,
- 'top',
- 'bottom',
- 'center'
- ]),
- /**
- * Set to `false` to remove extra font padding intended to make space for certain ascenders / descenders.
- * With some fonts, this padding can make text look slightly misaligned when centered vertically.
- * For best results also set `textAlignVertical` to `center`. Default is true.
- * @platform android
- */
- includeFontPadding: ReactPropTypes.bool,
textDecorationLine: ReactPropTypes.oneOf([
- 'none' /* default */,
+ 'none',
'underline',
'line-through',
'underline line-through'
]),
+ textTransform: ReactPropTypes.oneOf(['none', 'capitalize', 'uppercase', 'lowercase']),
+ userSelect: ReactPropTypes.oneOf(['auto', 'none', 'text', 'contain', 'all']),
+
/**
* @platform ios
*/
+ fontVariant: ReactPropTypes.arrayOf(
+ ReactPropTypes.oneOf([
+ 'small-caps',
+ 'oldstyle-nums',
+ 'lining-nums',
+ 'tabular-nums',
+ 'proportional-nums'
+ ])
+ ),
+ textDecorationColor: ColorPropType,
textDecorationStyle: ReactPropTypes.oneOf([
'solid' /* default */,
'double',
'dotted',
'dashed'
]),
+ writingDirection: ReactPropTypes.oneOf(['auto' /* default */, 'ltr', 'rtl']),
+
/**
- * @platform ios
+ * @platform android
*/
- textDecorationColor: ColorPropType,
- textTransform: ReactPropTypes.oneOf([
- 'none' /* default */,
- 'capitalize',
- 'uppercase',
- 'lowercase'
- ]),
+ textAlignVertical: ReactPropTypes.oneOf(['auto', 'top', 'bottom', 'center']),
+ verticalAlign: ReactPropTypes.oneOf(['auto', 'top', 'bottom', 'middle']),
/**
- * @platform ios
+ * Set to `false` to remove extra font padding intended to make space for certain ascenders / descenders.
+ * With some fonts, this padding can make text look slightly misaligned when centered vertically.
+ * For best results also set `textAlignVertical` to `center`. Default is true.
+ * @platform android
*/
- writingDirection: ReactPropTypes.oneOf(['auto' /* default */, 'ltr', 'rtl'])
+ includeFontPadding: ReactPropTypes.bool,
}
export default TextStylePropTypes
diff --git a/packages/taro-rn-style-transformer/src/transforms/StyleSheet/TransformPropTypes.ts b/packages/taro-rn-style-transformer/src/transforms/StyleSheet/TransformPropTypes.ts
index f9277f6b51c..eecf88713ce 100644
--- a/packages/taro-rn-style-transformer/src/transforms/StyleSheet/TransformPropTypes.ts
+++ b/packages/taro-rn-style-transformer/src/transforms/StyleSheet/TransformPropTypes.ts
@@ -73,6 +73,15 @@ const TransformPropTypes = {
ReactPropTypes.shape({ skewY: ReactPropTypes.string })
])
),
+ transformOrigin: ReactPropTypes.oneOfType([
+ ReactPropTypes.arrayOf(
+ ReactPropTypes.oneOfType([
+ ReactPropTypes.number,
+ ReactPropTypes.string
+ ])
+ ),
+ ReactPropTypes.string
+ ]),
/**
* Deprecated. Use the transform prop instead.
diff --git a/packages/taro-rn-style-transformer/src/transforms/StyleSheet/ViewStylePropTypes.ts b/packages/taro-rn-style-transformer/src/transforms/StyleSheet/ViewStylePropTypes.ts
index 977835c8919..0452f908ebc 100644
--- a/packages/taro-rn-style-transformer/src/transforms/StyleSheet/ViewStylePropTypes.ts
+++ b/packages/taro-rn-style-transformer/src/transforms/StyleSheet/ViewStylePropTypes.ts
@@ -27,6 +27,9 @@ const ViewStylePropTypes = {
backfaceVisibility: ReactPropTypes.oneOf(['visible', 'hidden']),
backgroundColor: ColorPropType,
borderColor: ColorPropType,
+ borderBlockColor: ColorPropType,
+ borderBlockStartColor: ColorPropType,
+ borderBlockEndColor: ColorPropType,
borderTopColor: ColorPropType,
borderRightColor: ColorPropType,
borderBottomColor: ColorPropType,
@@ -42,6 +45,10 @@ const ViewStylePropTypes = {
borderBottomRightRadius: ReactPropTypes.number,
borderBottomStartRadius: ReactPropTypes.number,
borderBottomEndRadius: ReactPropTypes.number,
+ borderStartStartRadius: ReactPropTypes.number,
+ borderStartEndRadius: ReactPropTypes.number,
+ borderEndStartRadius: ReactPropTypes.number,
+ borderEndEndRadius: ReactPropTypes.number,
borderStyle: ReactPropTypes.oneOf(['solid', 'dotted', 'dashed']),
borderWidth: ReactPropTypes.number,
borderTopWidth: ReactPropTypes.number,
@@ -49,6 +56,9 @@ const ViewStylePropTypes = {
borderBottomWidth: ReactPropTypes.number,
borderLeftWidth: ReactPropTypes.number,
opacity: ReactPropTypes.number,
+ pointerEvents: ReactPropTypes.oneOf(['box-none', 'none', 'box-only', 'auto']),
+ cursor: ReactPropTypes.oneOf(['auto', 'pointer']),
+
/**
* (Android-only) Sets the elevation of a view, using Android's underlying
* [elevation API](https://developer.android.com/training/material/shadows-clipping.html#Elevation).
@@ -56,7 +66,13 @@ const ViewStylePropTypes = {
* Only supported on Android 5.0+, has no effect on earlier versions.
* @platform android
*/
- elevation: ReactPropTypes.number
+ elevation: ReactPropTypes.number,
+
+ /**
+ * On iOS 13+, it is possible to change the corner curve of borders.
+ * @platform ios
+ */
+ borderCurve: ReactPropTypes.oneOf(['circular', 'continuous'])
}
export default ViewStylePropTypes
diff --git a/packages/taro-rn-supporter/package.json b/packages/taro-rn-supporter/package.json
index c8fad2ee1a5..3467b2d7c7b 100644
--- a/packages/taro-rn-supporter/package.json
+++ b/packages/taro-rn-supporter/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/rn-supporter",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro rn supporter",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-rn-transformer/package.json b/packages/taro-rn-transformer/package.json
index 6832b8f3adc..cb92cf79247 100644
--- a/packages/taro-rn-transformer/package.json
+++ b/packages/taro-rn-transformer/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/rn-transformer",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro RN 入口文件处理",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-rn/package.json b/packages/taro-rn/package.json
index 529d12af4f6..fc5d51ab74e 100644
--- a/packages/taro-rn/package.json
+++ b/packages/taro-rn/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/taro-rn",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro RN framework",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-router-rn/package.json b/packages/taro-router-rn/package.json
index 8c58a50f45d..ee45bfc4c71 100644
--- a/packages/taro-router-rn/package.json
+++ b/packages/taro-router-rn/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/router-rn",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro-router-rn",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-router/package.json b/packages/taro-router/package.json
index 78d635346b3..dfb3788e045 100644
--- a/packages/taro-router/package.json
+++ b/packages/taro-router/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/router",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro-router",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-runner-utils/package.json b/packages/taro-runner-utils/package.json
index a6840623ea0..6f6c8cf7594 100644
--- a/packages/taro-runner-utils/package.json
+++ b/packages/taro-runner-utils/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/runner-utils",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro runner utilities.",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-runtime-rn/package.json b/packages/taro-runtime-rn/package.json
index 139ea92f697..c361413697e 100644
--- a/packages/taro-runtime-rn/package.json
+++ b/packages/taro-runtime-rn/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/runtime-rn",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "taro-runtime-rn",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-runtime/package.json b/packages/taro-runtime/package.json
index f1820e721ba..51908a47f25 100644
--- a/packages/taro-runtime/package.json
+++ b/packages/taro-runtime/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/runtime",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "taro runtime for mini apps.",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-service/package.json b/packages/taro-service/package.json
index 613fa8c50e4..b1e6345c187 100644
--- a/packages/taro-service/package.json
+++ b/packages/taro-service/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/service",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro Service",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-transformer-wx/package.json b/packages/taro-transformer-wx/package.json
index 1a771545216..6f5ce58eafa 100644
--- a/packages/taro-transformer-wx/package.json
+++ b/packages/taro-transformer-wx/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/transformer-wx",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Transfrom Nerv Component to Wechat mini program.",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-vite-runner/package.json b/packages/taro-vite-runner/package.json
index c57af035db2..6414ff5b7cd 100644
--- a/packages/taro-vite-runner/package.json
+++ b/packages/taro-vite-runner/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/vite-runner",
- "version": "4.0.4",
+ "version": "4.0.5",
"main": "index.js",
"license": "MIT",
"files": [
diff --git a/packages/taro-webpack5-prebundle/package.json b/packages/taro-webpack5-prebundle/package.json
index 2757b7f1228..32bf7968d74 100644
--- a/packages/taro-webpack5-prebundle/package.json
+++ b/packages/taro-webpack5-prebundle/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/webpack5-prebundle",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro app webpack5 prebundle",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-webpack5-runner/package.json b/packages/taro-webpack5-runner/package.json
index 033e4047b5f..dd92d5ddd77 100644
--- a/packages/taro-webpack5-runner/package.json
+++ b/packages/taro-webpack5-runner/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/webpack5-runner",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro app runner",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro-webpack5-runner/src/prerender/prerender.ts b/packages/taro-webpack5-runner/src/prerender/prerender.ts
index aa163131ab7..49f5e71d3e4 100644
--- a/packages/taro-webpack5-runner/src/prerender/prerender.ts
+++ b/packages/taro-webpack5-runner/src/prerender/prerender.ts
@@ -75,7 +75,7 @@ export function validatePrerenderPages (pages: string[], config?: PrerenderConfi
const picomatch = require('picomatch')
const isMatch = picomatch(match)
pageConfigs = pages
- .filter(isMatch)
+ .filter((page) => isMatch(page)) // Note: 这里不能写成 .filter(isMatch),因为 filter 会传入三个参数,会影响 picomatch 的匹配
.filter((p: string) => !p.includes('.config'))
.map((p: string) => ({ path: p, params: {} }))
}
diff --git a/packages/taro-webpack5-runner/src/utils/webpack.ts b/packages/taro-webpack5-runner/src/utils/webpack.ts
index 24e93a0ec36..4268a110169 100644
--- a/packages/taro-webpack5-runner/src/utils/webpack.ts
+++ b/packages/taro-webpack5-runner/src/utils/webpack.ts
@@ -1,6 +1,7 @@
import path from 'node:path'
import { promoteRelativePath } from '@tarojs/helper'
+import { isBoolean } from '@tarojs/shared'
import { sources } from 'webpack'
import type { Chunk, ChunkGraph, Compilation, Stats } from 'webpack'
@@ -48,3 +49,15 @@ export function errorHandling (errorLevel?: number, stats?: Stats) {
process.exit(1)
}
}
+
+export function getAssetsMaxSize (options, defaultValue): number {
+ // Note:limit 为 false 时,不限制大小 全部转为 base64
+ const { limit } = options
+ let maxSize: number
+ if (isBoolean(limit)) {
+ maxSize = limit ? 0 : Number.MAX_SAFE_INTEGER
+ } else {
+ maxSize = limit || defaultValue
+ }
+ return maxSize
+}
diff --git a/packages/taro-webpack5-runner/src/webpack/WebpackModule.ts b/packages/taro-webpack5-runner/src/webpack/WebpackModule.ts
index 6ebeacc7f40..a4d59878acd 100644
--- a/packages/taro-webpack5-runner/src/webpack/WebpackModule.ts
+++ b/packages/taro-webpack5-runner/src/webpack/WebpackModule.ts
@@ -10,7 +10,8 @@ import {
} from '@tarojs/helper'
import { FONT_LIMIT, IMAGE_LIMIT, MEDIA_LIMIT, } from '@tarojs/runner-utils'
import { isFunction } from '@tarojs/shared'
-import { isBoolean } from 'lodash'
+
+import { getAssetsMaxSize } from '../utils/webpack'
import type { PostcssOption } from '@tarojs/taro/types/compile'
@@ -170,13 +171,13 @@ export class WebpackModule {
}
static getMediaRule (sourceRoot: string, options) {
+ const maxSize = getAssetsMaxSize(options, MEDIA_LIMIT)
return {
test: REG_MEDIA,
type: 'asset',
parser: {
- dataUrlCondition: (asset): boolean => {
- if (isBoolean(options.limit)) return options.limit
- return asset.size <= (options.limit || MEDIA_LIMIT)
+ dataUrlCondition: {
+ maxSize,
}
},
generator: {
@@ -192,13 +193,13 @@ export class WebpackModule {
}
static getFontRule (sourceRoot: string, options) {
+ const maxSize = getAssetsMaxSize(options, FONT_LIMIT)
return {
test: REG_FONT,
type: 'asset',
parser: {
- dataUrlCondition: (asset): boolean => {
- if (isBoolean(options.limit)) return options.limit
- return asset.size <= (options.limit || FONT_LIMIT)
+ dataUrlCondition: {
+ maxSize,
}
},
generator: {
@@ -214,13 +215,13 @@ export class WebpackModule {
}
static getImageRule (sourceRoot: string, options) {
+ const maxSize = getAssetsMaxSize(options, IMAGE_LIMIT)
return {
test: REG_IMAGE,
type: 'asset',
parser: {
- dataUrlCondition: (asset): boolean => {
- if (isBoolean(options.limit)) return options.limit
- return asset.size <= (options.limit || IMAGE_LIMIT)
+ dataUrlCondition: {
+ maxSize,
}
},
generator: {
diff --git a/packages/taro-with-weapp/package.json b/packages/taro-with-weapp/package.json
index 93133305dd8..085be6faa9d 100644
--- a/packages/taro-with-weapp/package.json
+++ b/packages/taro-with-weapp/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/with-weapp",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "taroize 之后的运行时",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taro/package.json b/packages/taro/package.json
index 1feb532efc6..59ead17418c 100644
--- a/packages/taro/package.json
+++ b/packages/taro/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/taro",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "Taro framework",
"author": "O2Team",
"license": "MIT",
diff --git a/packages/taroize/package.json b/packages/taroize/package.json
index 460eaa46423..215a1c08f2b 100644
--- a/packages/taroize/package.json
+++ b/packages/taroize/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/taroize",
- "version": "4.0.4",
+ "version": "4.0.5",
"description": "转换原生微信小程序代码为 Taro 代码",
"author": "O2Team",
"license": "MIT",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4edcd64f12e..8baa64c5aa9 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -733,8 +733,8 @@ importers:
specifier: ^3.0.0
version: 3.0.0
swiper:
- specifier: 6.8.0
- version: 6.8.0
+ specifier: 11.1.0
+ version: 11.1.0
tslib:
specifier: ^2.6.2
version: 2.6.2
@@ -918,8 +918,8 @@ importers:
specifier: ^2.2.5
version: 2.5.1
swiper:
- specifier: 6.8.0
- version: 6.8.0
+ specifier: 11.1.0
+ version: 11.1.0
tslib:
specifier: ^2.6.2
version: 2.6.2
@@ -1248,6 +1248,9 @@ importers:
rollup-plugin-ts:
specifier: ^3.0.2
version: 3.4.5(@babel/core@7.24.4)(@babel/preset-env@7.24.6)(@babel/runtime@7.24.6)(rollup@3.29.4)(typescript@5.4.5)
+ swiper:
+ specifier: 11.1.0
+ version: 11.1.0
packages/taro-helper:
dependencies:
@@ -13350,12 +13353,6 @@ packages:
resolution: {integrity: sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==, tarball: https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.2.tgz}
dev: false
- /dom7@3.0.0:
- resolution: {integrity: sha512-oNlcUdHsC4zb7Msx7JN3K0Nro1dzJ48knvBOnDPKJ2GV9wl1i5vydJZUSyOfrkKFDZEud/jBsTk92S/VGSAe/g==, tarball: https://registry.npmjs.org/dom7/-/dom7-3.0.0.tgz}
- dependencies:
- ssr-window: 3.0.0
- dev: false
-
/domelementtype@2.3.0:
resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==, tarball: https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz}
@@ -24454,10 +24451,6 @@ packages:
dev: false
optional: true
- /ssr-window@3.0.0:
- resolution: {integrity: sha512-q+8UfWDg9Itrg0yWK7oe5p/XRCJpJF9OBtXfOPgSJl+u3Xd5KI328RUEvUqSMVM9CiQUEf1QdBzJMkYGErj9QA==, tarball: https://registry.npmjs.org/ssr-window/-/ssr-window-3.0.0.tgz}
- dev: false
-
/ssri@10.0.6:
resolution: {integrity: sha512-MGrFH9Z4NP9Iyhqn16sDtBpRRNJ0Y2hNa6D65h736fVSaPCHr4DM4sWUNvVaSuC+0OBGhwsrydQwmgfg5LncqQ==, tarball: https://registry.npmjs.org/ssri/-/ssri-10.0.6.tgz}
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
@@ -25055,14 +25048,9 @@ packages:
picocolors: 1.0.1
dev: false
- /swiper@6.8.0:
- resolution: {integrity: sha512-6H3e7VOihasMp8sPXNhRDkc61UD0XeFlefbWfUHecBLBTtmA+9WxJiKDBMdzgetK1cny+5+mKfVcsmxYgnEDSw==, tarball: https://registry.npmjs.org/swiper/-/swiper-6.8.0.tgz}
+ /swiper@11.1.0:
+ resolution: {integrity: sha512-Pm78CgU7Wvg+w/MgIL/1NwMSLgx0XqFof25EnVyX8iZFCYJv5CppH7LHkBj43qW2k5Cp3Iz7FcdBxrox7XX2AQ==, tarball: https://registry.npmjs.org/swiper/-/swiper-11.1.0.tgz}
engines: {node: '>= 4.7.0'}
- requiresBuild: true
- dependencies:
- dom7: 3.0.0
- ssr-window: 3.0.0
- dev: false
/symbol-tree@3.2.4:
resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==, tarball: https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz}
diff --git a/tests/__tests__/__snapshots__/mini-platform.spec.ts.snap b/tests/__tests__/__snapshots__/mini-platform.spec.ts.snap
index 40826344911..3401ce8d66c 100644
--- a/tests/__tests__/__snapshots__/mini-platform.spec.ts.snap
+++ b/tests/__tests__/__snapshots__/mini-platform.spec.ts.snap
@@ -2865,6 +2865,41 @@ require("./runtime");
"show-confirm-bar": "true",
"adjust-position": "true",
"disable-default-padding": "false"
+ },
+ RootPortal: {
+ enable: "true"
+ },
+ Editor: {
+ "read-only": "false",
+ placeholder: "",
+ "show-img-size": "false",
+ "show-img-toolbar": "false",
+ "show-img-resize": "false",
+ focus: "false",
+ bindReady: "",
+ bindFocus: "",
+ bindBlur: "",
+ bindInput: "",
+ bindStatusChange: "",
+ name: ""
+ },
+ PageContainer: {
+ show: "false",
+ duration: "300",
+ "z-index": "100",
+ overlay: "true",
+ position: "'bottom'",
+ round: "false",
+ "close-on-slide-down": "false",
+ "overlay-style": "",
+ "custom-style": "",
+ bindBeforeEnter: "",
+ bindEnter: "",
+ bindAfterEnter: "",
+ bindBeforeLeave: "",
+ bindLeave: "",
+ bindAfterLeave: "",
+ bindClickOverlay: ""
}
};
const hostConfig = {
diff --git a/tests/__tests__/__snapshots__/prerender.spec.ts.snap b/tests/__tests__/__snapshots__/prerender.spec.ts.snap
index 51dbfd53a0c..3fb20418c08 100644
--- a/tests/__tests__/__snapshots__/prerender.spec.ts.snap
+++ b/tests/__tests__/__snapshots__/prerender.spec.ts.snap
@@ -667,9 +667,6 @@ require("./runtime");
if (typeof PRERENDER !== 'undefined') {
module.exports = wx._prerender
}
- if (typeof PRERENDER !== 'undefined') {
- module.exports = wx._prerender
- }
/** filePath: dist/app.json **/
{"pages":["pages/index/index","others/detail/index","others/normal/index"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"}}
@@ -1479,9 +1476,6 @@ require("./runtime");
}));
var __webpack_exports__ = __webpack_require__.O();
} ]);
- if (typeof PRERENDER !== 'undefined') {
- module.exports = wx._prerender
- }
/** filePath: dist/comp.json **/
{"component":true,"usingComponents":{"comp":"./comp"}}
@@ -1491,14 +1485,6 @@ require("./runtime");
-/** filePath: dist/custom-wrapper.js **/
- if (typeof PRERENDER !== 'undefined') {
- module.exports = wx._prerender
- }
- if (typeof PRERENDER !== 'undefined') {
- module.exports = wx._prerender
- }
-
/** filePath: dist/others/detail/index.js **/
"use strict";
@@ -2907,9 +2893,6 @@ require("./runtime");
if (typeof PRERENDER !== 'undefined') {
module.exports = wx._prerender
}
- if (typeof PRERENDER !== 'undefined') {
- module.exports = wx._prerender
- }
/** filePath: dist/pages/index/index.json **/
{"navigationBarTitleText":"首页","usingComponents":{"comp":"../../comp"}}
@@ -2917,7 +2900,7 @@ require("./runtime");
/** filePath: dist/pages/index/index.wxml **/
-
+
Hello world!
@@ -3781,9 +3764,6 @@ require("./runtime");
if (typeof PRERENDER !== 'undefined') {
module.exports = wx._prerender
}
- if (typeof PRERENDER !== 'undefined') {
- module.exports = wx._prerender
- }
/** filePath: dist/app.json **/
{"pages":["pages/index/index","others/detail/index","others/normal/index"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"}}
@@ -4593,9 +4573,6 @@ require("./runtime");
}));
var __webpack_exports__ = __webpack_require__.O();
} ]);
- if (typeof PRERENDER !== 'undefined') {
- module.exports = wx._prerender
- }
/** filePath: dist/comp.json **/
{"component":true,"usingComponents":{"comp":"./comp"}}
@@ -4605,11 +4582,6 @@ require("./runtime");
-/** filePath: dist/custom-wrapper.js **/
- if (typeof PRERENDER !== 'undefined') {
- module.exports = wx._prerender
- }
-
/** filePath: dist/others/detail/index.js **/
"use strict";
@@ -6018,9 +5990,6 @@ require("./runtime");
if (typeof PRERENDER !== 'undefined') {
module.exports = wx._prerender
}
- if (typeof PRERENDER !== 'undefined') {
- module.exports = wx._prerender
- }
/** filePath: dist/pages/index/index.json **/
{"navigationBarTitleText":"首页","usingComponents":{"comp":"../../comp"}}
@@ -6028,7 +5997,7 @@ require("./runtime");
/** filePath: dist/pages/index/index.wxml **/
-
+
Hello world!
@@ -6892,9 +6861,6 @@ require("./runtime");
if (typeof PRERENDER !== 'undefined') {
module.exports = wx._prerender
}
- if (typeof PRERENDER !== 'undefined') {
- module.exports = wx._prerender
- }
/** filePath: dist/app.json **/
{"pages":["pages/index/index","others/detail/index","others/normal/index"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"}}
@@ -7704,9 +7670,6 @@ require("./runtime");
}));
var __webpack_exports__ = __webpack_require__.O();
} ]);
- if (typeof PRERENDER !== 'undefined') {
- module.exports = wx._prerender
- }
/** filePath: dist/comp.json **/
{"component":true,"usingComponents":{"comp":"./comp"}}
@@ -7716,11 +7679,6 @@ require("./runtime");
-/** filePath: dist/custom-wrapper.js **/
- if (typeof PRERENDER !== 'undefined') {
- module.exports = wx._prerender
- }
-
/** filePath: dist/others/detail/index.js **/
"use strict";
@@ -9129,9 +9087,6 @@ require("./runtime");
if (typeof PRERENDER !== 'undefined') {
module.exports = wx._prerender
}
- if (typeof PRERENDER !== 'undefined') {
- module.exports = wx._prerender
- }
/** filePath: dist/pages/index/index.json **/
{"navigationBarTitleText":"首页","usingComponents":{"comp":"../../comp"}}
@@ -9139,7 +9094,7 @@ require("./runtime");
/** filePath: dist/pages/index/index.wxml **/
-
+
Hello world!